Patchwork [11/15] qapi: add QMP qmp_capabilities command

login
register
mail settings
Submitter Anthony Liguori
Date March 11, 2011, 11:05 p.m.
Message ID <1299884745-521-12-git-send-email-aliguori@us.ibm.com>
Download mbox | patch
Permalink /patch/86468/
State New
Headers show

Comments

Anthony Liguori - March 11, 2011, 11:05 p.m.
For now, it's a nop.  In the near future, it will be used to register default
signals.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Patch

diff --git a/qmp-core.c b/qmp-core.c
index 22b413b..ccc2b7d 100644
--- a/qmp-core.c
+++ b/qmp-core.c
@@ -447,3 +447,7 @@  void qmp_init_chardev(CharDriverState *chr)
     qemu_chr_add_handlers(chr, qmp_chr_can_receive, qmp_chr_receive,
                           qmp_chr_event, s);
 }
+
+void qmp_qmp_capabilities(QmpState *state, Error **errp)
+{
+}
diff --git a/qmp-schema.json b/qmp-schema.json
index d19cf73..e0789d0 100644
--- a/qmp-schema.json
+++ b/qmp-schema.json
@@ -100,3 +100,13 @@ 
 # Since: 0.14.0
 ##
 { 'command': 'quit' }
+
+##
+# @qmp_capabilities:
+#
+# Currently a nop command.  To communicate with older servers, this should be
+# sent first before executing new commands.
+#
+# Since: 0.14.0
+##
+{ 'command': 'qmp_capabilities' }