]> Git Repo - qemu.git/blobdiff - qapi/qmp-registry.c
qlist: Make conversion from QObject * accept null
[qemu.git] / qapi / qmp-registry.c
index 5e26710d8984b3d2194d76fcdecb06c5ed8fb640..3e4498a3f6b88980f3c6194a1f7db501270fa111 100644 (file)
@@ -76,6 +76,11 @@ const char *qmp_command_name(const QmpCommand *cmd)
     return cmd->name;
 }
 
+bool qmp_has_success_response(const QmpCommand *cmd)
+{
+    return !(cmd->options & QCO_NO_SUCCESS_RESP);
+}
+
 void qmp_for_each_command(qmp_cmd_callback_fn fn, void *opaque)
 {
     QmpCommand *cmd;
This page took 0.022954 seconds and 4 git commands to generate.