diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-07-09 20:59:36 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-08-21 13:24:01 +0200 |
commit | d94bd0927eca50972da161343d71f3f615d0855e (patch) | |
tree | b1bd0160f92a33db16ec35eff68f58e7b7a0ad3b /monitor | |
parent | ffaee83bcb28913b8b854aeab78b1a1f2115712d (diff) | |
download | qemu-d94bd0927eca50972da161343d71f3f615d0855e.zip qemu-d94bd0927eca50972da161343d71f3f615d0855e.tar.gz qemu-d94bd0927eca50972da161343d71f3f615d0855e.tar.bz2 |
qdev: Collect HMP handlers command handlers in qdev-monitor.c
Move hmp_device_add(), hmp_device_del() from monitor/hmp-cmds.c to
qdev-monitor.c, where they are covered by MAINTAINERS section "QOM",
just like qapi/qdev.json. hmp_info_qtree() and hmp_info_qdm() are
already there.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190709185936.31335-1-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/hmp-cmds.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index e4d4043..b2551c1 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -25,7 +25,6 @@ #include "qemu/timer.h" #include "qemu/sockets.h" #include "monitor/monitor-internal.h" -#include "monitor/qdev.h" #include "qapi/error.h" #include "qapi/clone-visitor.h" #include "qapi/opts-visitor.h" @@ -35,7 +34,6 @@ #include "qapi/qapi-commands-migration.h" #include "qapi/qapi-commands-misc.h" #include "qapi/qapi-commands-net.h" -#include "qapi/qapi-commands-qdev.h" #include "qapi/qapi-commands-rocker.h" #include "qapi/qapi-commands-run-state.h" #include "qapi/qapi-commands-tpm.h" @@ -2167,23 +2165,6 @@ void hmp_migrate(Monitor *mon, const QDict *qdict) } } -void hmp_device_add(Monitor *mon, const QDict *qdict) -{ - Error *err = NULL; - - qmp_device_add((QDict *)qdict, NULL, &err); - hmp_handle_error(mon, &err); -} - -void hmp_device_del(Monitor *mon, const QDict *qdict) -{ - const char *id = qdict_get_str(qdict, "id"); - Error *err = NULL; - - qmp_device_del(id, &err); - hmp_handle_error(mon, &err); -} - void hmp_netdev_add(Monitor *mon, const QDict *qdict) { Error *err = NULL; |