Patchwork [12/15] qapi: add QMP put-event command

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

Comments

Anthony Liguori - March 11, 2011, 11:05 p.m.
This is needed for libqmp to support events.  put-event is used to disconnect
from signals.

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

Patch

diff --git a/qmp-schema.json b/qmp-schema.json
index e0789d0..17db1cb 100644
--- a/qmp-schema.json
+++ b/qmp-schema.json
@@ -110,3 +110,18 @@ 
 # Since: 0.14.0
 ##
 { 'command': 'qmp_capabilities' }
+
+##
+# @put_event:
+#
+# Disconnect a signal.  This command is used to disconnect from a signal based
+# on the handle returned by a signal accessor.
+#
+# @tag: the handle returned by a signal accessor.
+#
+# Returns: Nothing on success.
+#          If @tag is not a valid handle, InvalidParameterValue
+#
+# Since: 0.15.0
+##
+{ 'command': 'put-event', 'data': {'tag': 'int'} }