@@ -393,3 +393,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)
+{
+}
@@ -82,4 +82,6 @@ void qmp_state_event(QmpConnection *conn, QObject *data);
void qmp_init_chardev(CharDriverState *chr);
+void qmp_qmp_capabilities(QmpState *state, Error **errp);
+
#endif
@@ -48,3 +48,13 @@
# Since: 0.14.0
##
[ 'quit', {}, {}, 'none' ]
+
+##
+# @qmp_capabilities:
+#
+# Currently a nop command. To communicate with older servers, this should be
+# sent first before executing new commands.
+#
+# Since: 0.14.0
+##
+[ 'qmp_capabilities', {}, {}, 'none' ]
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>