summaryrefslogtreecommitdiffstats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorHani Benhabiles2014-04-13 17:25:06 +0200
committerLuiz Capitulino2014-04-25 15:27:49 +0200
commitbfa40f77af05731e2e976c5aa8c4edc86a87acd3 (patch)
treea5bfac74058070e4dda89cc494d0be56902d6cbc /hmp-commands.hx
parentmonitor: Fix drive_del id argument type completion. (diff)
downloadqemu-bfa40f77af05731e2e976c5aa8c4edc86a87acd3.tar.gz
qemu-bfa40f77af05731e2e976c5aa8c4edc86a87acd3.tar.xz
qemu-bfa40f77af05731e2e976c5aa8c4edc86a87acd3.zip
monitor: Add command_completion callback to mon_cmd_t.
Convert object_add and object_del commands to use the new callback. Signed-off-by: Hani Benhabiles <hani@linux.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 6bf47972e5..1b382b6bf2 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1254,6 +1254,7 @@ ETEXI
.params = "[qom-type=]type,id=str[,prop=value][,...]",
.help = "create QOM object",
.mhandler.cmd = hmp_object_add,
+ .command_completion = object_add_completion,
},
STEXI
@@ -1268,6 +1269,7 @@ ETEXI
.params = "id",
.help = "destroy QOM object",
.mhandler.cmd = hmp_object_del,
+ .command_completion = object_del_completion,
},
STEXI