summary refs log tree commit diff stats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorHani Benhabiles <kroosec@gmail.com>2014-04-13 16:25:06 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2014-04-25 09:27:49 -0400
commitbfa40f77af05731e2e976c5aa8c4edc86a87acd3 (patch)
treea5bfac74058070e4dda89cc494d0be56902d6cbc /hmp-commands.hx
parentf7bdc41acc0f9e3f35562ff6a2c37d1a09b79b7b (diff)
downloadfocaccia-qemu-bfa40f77af05731e2e976c5aa8c4edc86a87acd3.tar.gz
focaccia-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