[libvirt] [PATCH v3 2/4] qemu: Create common code for JSON "query-block" call

Peter Krempa pkrempa at redhat.com
Wed Oct 5 07:55:16 UTC 2016


On Tue, Oct 04, 2016 at 11:28:56 -0400, John Ferlan wrote:
> Reduce some cut-n-paste code by creating common helper. Make use of the
> recently added virJSONValueObjectStealArray to grab the devices list as
> part of the common code (we we can Free the reply) and return devices for
> each of the callers to continue to parse.
> 
> NB: This also adds error checking to qemuMonitorJSONDiskNameLookup
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/qemu/qemu_monitor_json.c | 91 ++++++++++++++++++++------------------------
>  1 file changed, 41 insertions(+), 50 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161005/437e5d06/attachment-0001.sig>


More information about the libvir-list mailing list