]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Add better APIs for adding of objects to qemu
authorPeter Krempa <pkrempa@redhat.com>
Thu, 17 May 2018 14:43:58 +0000 (16:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:13:59 +0000 (08:13 +0200)
commitf0a23c0c35df9ceab0e01205e4b8c79cbe24f5ee
treebe626ad043269ff79a98cbbc08ff41f853c20b3a
parentbf26dd222fe73f2610729a46922a2d7cb37ca9c9
qemu: monitor: Add better APIs for adding of objects to qemu

Use the new monitor command internal API to allow wrapping of the object
name and alias into the JSON props so that they don't have to be passed
out of band.

The new API also takes a double pointer so that it can be cleared when
the value is consumed so that it does not need to happen in every single
caller.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h