diff options
| author | Anthony Liguori | 2013-10-11 18:38:07 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2013-10-11 18:38:07 +0200 |
| commit | 1cdae4573d7613149348d834c605bfbe3c7d405b (patch) | |
| tree | 5a214e9be9c6161c094244365bbb0ea539ede093 /include | |
| parent | Merge remote-tracking branch 'rth/tcg-pull' into staging (diff) | |
| parent | qemu-ga: Extend 'guest-info' command to expose flag 'success-response' (diff) | |
| download | qemu-1cdae4573d7613149348d834c605bfbe3c7d405b.tar.gz qemu-1cdae4573d7613149348d834c605bfbe3c7d405b.tar.xz qemu-1cdae4573d7613149348d834c605bfbe3c7d405b.zip | |
Merge remote-tracking branch 'mdroth/qga-pull-2013-10-10' into staging
# By Mark Wu (2) and Tomoki Sekiyama (1)
# Via Michael Roth
* mdroth/qga-pull-2013-10-10:
qemu-ga: Extend 'guest-info' command to expose flag 'success-response'
qemu-ga: Add interface to traverse the qmp command list by QmpCommand
qemu-ga: execute fsfreeze-freeze in reverse order of mounts
Message-id: 1381435782-25524-1-git-send-email-mdroth@linux.vnet.ibm.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qapi/qmp/dispatch.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/qapi/qmp/dispatch.h b/include/qapi/qmp/dispatch.h index 1ce11f5df0..cea38181bf 100644 --- a/include/qapi/qmp/dispatch.h +++ b/include/qapi/qmp/dispatch.h @@ -47,9 +47,12 @@ QmpCommand *qmp_find_command(const char *name); QObject *qmp_dispatch(QObject *request); void qmp_disable_command(const char *name); void qmp_enable_command(const char *name); -bool qmp_command_is_enabled(const char *name); -char **qmp_get_command_list(void); +bool qmp_command_is_enabled(const QmpCommand *cmd); +const char *qmp_command_name(const QmpCommand *cmd); +bool qmp_has_success_response(const QmpCommand *cmd); QObject *qmp_build_error_object(Error *errp); +typedef void (*qmp_cmd_callback_fn)(QmpCommand *cmd, void *opaque); +void qmp_for_each_command(qmp_cmd_callback_fn fn, void *opaque); #endif |
