diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-10-16 12:23:50 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:58 -0500 |
commit | f0d6000a9e78833a6c25e6830b0a9ece1797c70a (patch) | |
tree | 0374914ff604dd4815bc9864865f517949dc538a | |
parent | e1c923a62ac75b13ff9028d240279f951030fca3 (diff) |
monitor: Convert do_getfd() to QObject
Note that errors are not being converted yet.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | monitor.c | 2 | ||||
-rw-r--r-- | qemu-monitor.hx | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1848,7 +1848,7 @@ static void do_inject_mce(Monitor *mon, const QDict *qdict) } #endif -static void do_getfd(Monitor *mon, const QDict *qdict) +static void do_getfd(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *fdname = qdict_get_str(qdict, "fdname"); mon_fd_t *monfd; diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 05b4534c7d..cc4487e3d1 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -1013,7 +1013,8 @@ ETEXI .args_type = "fdname:s", .params = "getfd name", .help = "receive a file descriptor via SCM rights and assign it a name", - .mhandler.cmd = do_getfd, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_getfd, }, STEXI |