
5 Oct
2016
5 Oct
'16
7:55 a.m.
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@redhat.com> --- src/qemu/qemu_monitor_json.c | 91 ++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 50 deletions(-)
ACK