]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add qemuMonitorJSONGetObjectProperty() method for QMP qom-get command
authorJohn Ferlan <jferlan@redhat.com>
Wed, 3 Jul 2013 18:15:07 +0000 (14:15 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Jul 2013 16:26:16 +0000 (12:26 -0400)
commitbdce278984673230e61fb729d155c411f3e61f42
treee113a529dab380c6a1f1ce1781362e5bb4a8892a
parentd76a89780b645277a2521797f65a4776ddc09907
Add qemuMonitorJSONGetObjectProperty() method for QMP qom-get command

Add a new qemuMonitorJSONGetObjectProperty() method to support invocation
of the 'qom-get' JSON monitor command with a provided path, property, and
expected data type return. The qemuMonitorJSONObjectProperty is similar to
virTypedParameter; however, a future patch will extend it a bit to include
a void pointer to balloon driver statistic data.

NOTE: The ObjectProperty structures and API are added only for the
      purpose of the qemumonitorjsontest

The provided test will execute a qom-get on "/machine/i440fx" which will
return a property "realized".
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
tests/qemumonitorjsontest.c