@@ -3017,3 +3017,5 @@
# Since: 1.3.0
##
{ 'command': 'nbd-server-stop' }
+
+{ 'command': 'hello-world' }
@@ -2654,3 +2654,9 @@ EQMP
.args_type = "",
.mhandler.cmd_new = qmp_marshal_input_query_target,
},
+
+ {
+ .name = "hello-world",
+ .args_type = "",
+ .mhandler.cmd_new = qmp_marshal_input_hello_world,
+ },
@@ -519,3 +519,8 @@ void qmp_add_client(const char *protocol, const char *fdname,
error_setg(errp, "protocol '%s' is invalid", protocol);
close(fd);
}
+
+void qmp_hello_world(Error **errp)
+{
+ printf("Hello, world!\n");
+}