aboutsummaryrefslogtreecommitdiff
path: root/hmp.h
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.h
parentf7bdc41acc0f9e3f35562ff6a2c37d1a09b79b7b (diff)
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.h')
-rw-r--r--hmp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hmp.h b/hmp.h
index ed58f0ea41..2f2c059e00 100644
--- a/hmp.h
+++ b/hmp.h
@@ -15,6 +15,7 @@
#define HMP_H
#include "qemu-common.h"
+#include "qemu/readline.h"
#include "qapi-types.h"
#include "qapi/qmp/qdict.h"
@@ -92,5 +93,7 @@ void hmp_qemu_io(Monitor *mon, const QDict *qdict);
void hmp_cpu_add(Monitor *mon, const QDict *qdict);
void hmp_object_add(Monitor *mon, const QDict *qdict);
void hmp_object_del(Monitor *mon, const QDict *qdict);
+void object_add_completion(ReadLineState *rs, int nb_args, const char *str);
+void object_del_completion(ReadLineState *rs, int nb_args, const char *str);
#endif