Re: [PATCH 08/20] Add ability to store other metadata in the qemu capabilities object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]