]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Use qemuMonitorJSONGetReply for VIR_JSON_TYPE_OBJECT
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Dec 2022 15:27:13 +0000 (16:27 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Dec 2022 15:18:37 +0000 (16:18 +0100)
commit9c9adc97575d41c8ea297ff38f8cc9efd77bfe66
tree20f75213a76e64b7ab461adf321dcbdacf8897f3
parenta434684a57f95f65bc844f24240abd9031db1d2c
qemu: monitor: Use qemuMonitorJSONGetReply for VIR_JSON_TYPE_OBJECT

Replace usage of the following pattern with the new helper:

  if (qemuMonitorJSONCheckReply(cmd, reply, VIR_JSON_TYPE_OBJECT) < 0)
      return -1;

  data = virJSONValueObjectGetObject(reply, "return");

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor_json.c