On 09/11/2012 08:11 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> > > Add struct fields and APIs to allow the qemu capabilities object > to store version, arch, machines & cpu names, etc > > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> > --- > src/qemu/qemu_capabilities.c | 78 ++++++++++++++++++++++++++++++++++++++++++++ > src/qemu/qemu_capabilities.h | 10 ++++++ > 2 files changed, 88 insertions(+) ACK. > +size_t qemuCapsGetMachineTypes(qemuCapsPtr caps, > + char ***names) > +{ > + *names = caps->machineTypes; > + return caps->nmachineTypes; I guess we're pretty safe assuming the caller won't go modifying the contents of the returned array behind the qemuCaps' back. -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list