aboutsummaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-12 14:29:35 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-15 09:20:48 -0600
commiteb6e8ea5c38b47a3c6cf27f4780abd92bc079caa (patch)
tree02cb9341c0ab3aefe309dd441b2a7c85829b6d97 /monitor.h
parentb4b12c6247d89b94e197891fbadb2699fd469ed6 (diff)
qom: qom_{get, set} monitor commands (v2)
This allows clients to read and write device model properties through QMP. QAPI doesn't support Visitor types yet and these commands are special in that they don't work with fixed types. I've added a documentation stub to qapi-schema.json so we can keep consistency there. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor.h b/monitor.h
index 052f1cb244..cfa2f679f4 100644
--- a/monitor.h
+++ b/monitor.h
@@ -67,4 +67,8 @@ typedef void (MonitorCompletion)(void *opaque, QObject *ret_data);
void monitor_set_error(Monitor *mon, QError *qerror);
+int qmp_qom_set(Monitor *mon, const QDict *qdict, QObject **ret);
+
+int qmp_qom_get(Monitor *mon, const QDict *qdict, QObject **ret);
+
#endif /* !MONITOR_H */