summary refs log tree commit diff stats
path: root/qapi/qmp-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'qapi/qmp-core.h')
-rw-r--r--qapi/qmp-core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qapi/qmp-core.h b/qapi/qmp-core.h
index f1c26e4b2e..3bb3acb589 100644
--- a/qapi/qmp-core.h
+++ b/qapi/qmp-core.h
@@ -31,11 +31,15 @@ typedef struct QmpCommand
     QmpCommandType type;
     QmpCommandFunc *fn;
     QTAILQ_ENTRY(QmpCommand) node;
+    bool enabled;
 } QmpCommand;
 
 void qmp_register_command(const char *name, QmpCommandFunc *fn);
 QmpCommand *qmp_find_command(const char *name);
 QObject *qmp_dispatch(QObject *request);
+void qmp_disable_command(const char *name);
+bool qmp_command_is_enabled(const char *name);
+char **qmp_get_command_list(void);
 
 #endif