[libvirt] [PATCH 3/7] qemu_agent: Add support for appending arrays to commands
Eric Blake
eblake at redhat.com
Mon Apr 15 22:53:59 UTC 2013
On 04/15/2013 09:11 AM, Peter Krempa wrote:
> Add support for array elements for agent commands just like 64d5e815 did for
> monitor commands
Always fun to see someone else using one of my commits as a starting
point - the virtual pay day of open source development!
> ---
> src/qemu/qemu_agent.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
> index 3e26cf1..8c8c38b 100644
> --- a/src/qemu/qemu_agent.c
> +++ b/src/qemu/qemu_agent.c
> @@ -1209,6 +1209,10 @@ qemuAgentMakeCommand(const char *cmdname,
> case 'n': {
> ret = virJSONValueObjectAppendNull(jargs, key);
> } break;
> + case 'a': {
> + virJSONValuePtr val = va_arg(args, virJSONValuePtr);
> + ret = virJSONValueObjectAppend(jargs, key, val);
> + } break;
ACK.
--
Eric Blake eblake 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: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130415/7ba023dc/attachment-0001.sig>
More information about the libvir-list
mailing list