]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qapi/qmp-registry.c
Make 'uri' optional for migrate QAPI
[mirror_qemu.git] / qapi / qmp-registry.c
index f78c064aae51c811a9eaa02239cfc87c375c57b8..485bc5e6fc713ebd0d44888c2be4fc31a00d988c 100644 (file)
@@ -16,7 +16,8 @@
 #include "qapi/qmp/dispatch.h"
 
 void qmp_register_command(QmpCommandList *cmds, const char *name,
-                          QmpCommandFunc *fn, QmpCommandOptions options)
+                          QmpCommandFunc *fn, QmpCommandOptions options,
+                          unsigned special_features)
 {
     QmpCommand *cmd = g_malloc0(sizeof(*cmd));
 
@@ -27,6 +28,7 @@ void qmp_register_command(QmpCommandList *cmds, const char *name,
     cmd->fn = fn;
     cmd->enabled = true;
     cmd->options = options;
+    cmd->special_features = special_features;
     QTAILQ_INSERT_TAIL(cmds, cmd, node);
 }