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

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



On 09/11/2012 08:11 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange 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 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 redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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