[libvirt] [PATCH 08/20] Add ability to store other metadata in the qemu capabilities object
Eric Blake
eblake at redhat.com
Thu Sep 13 01:13:20 UTC 2012
On 09/11/2012 08:11 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> 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 at redhat.com>
> ---
> 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 at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120912/b42fbf37/attachment-0001.sig>
More information about the libvir-list
mailing list