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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to