On Wed, May 30, 2018 at 07:06:28PM +0200, Peter Krempa wrote:
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(a)redhat.com>
---
src/qemu/qemu_monitor.c | 116 +++++++++++++++++++++++++++++++++++++++++--
src/qemu/qemu_monitor.h | 13 +++++
src/qemu/qemu_monitor_json.c | 15 ++----
src/qemu/qemu_monitor_json.h | 2 -
4 files changed, 129 insertions(+), 17 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano