summaryrefslogtreecommitdiff
path: root/qapi/qmp-core.h
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-07-19 14:50:37 -0500
committerLuiz Capitulino <lcapitulino@gmail.com>2011-07-21 16:48:14 -0300
commitab02ab2aa7a36d78a579642caa404abd99acdc6e (patch)
tree804fb89fd19dcb31be40173edcfc1311684987b6 /qapi/qmp-core.h
parent43c20a43ca4b3fa265469887186eb0fee68e4a0d (diff)
downloadqemu-ab02ab2aa7a36d78a579642caa404abd99acdc6e.tar.gz
qapi: add QMP dispatch functions
Given an object recieved via QMP, this code uses the dispatch table provided by qmp_registry.c to call the corresponding marshalling/dispatch function and format return values/errors for delivery to the QMP. Currently only synchronous QMP functions are supported, but this will also be used for async QMP functions and QMP guest proxy dispatch as well. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Diffstat (limited to 'qapi/qmp-core.h')
-rw-r--r--qapi/qmp-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qapi/qmp-core.h b/qapi/qmp-core.h
index 8b96d2c676..f1c26e4b2e 100644
--- a/qapi/qmp-core.h
+++ b/qapi/qmp-core.h
@@ -35,5 +35,7 @@ typedef struct QmpCommand
void qmp_register_command(const char *name, QmpCommandFunc *fn);
QmpCommand *qmp_find_command(const char *name);
+QObject *qmp_dispatch(QObject *request);
#endif
+