From: Luiz Capitulino Date: Fri, 16 Oct 2009 15:23:51 +0000 (-0300) Subject: monitor: Convert do_closefd() to QObject X-Git-Tag: v0.12.0-rc0~490 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18f3a5151cfdc659459faf70cd09d5c887f7addc;p=thirdparty%2Fqemu.git monitor: Convert do_closefd() to QObject Note that errors are not being converted yet. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- diff --git a/monitor.c b/monitor.c index eee4b80758c..109ff5c4486 100644 --- a/monitor.c +++ b/monitor.c @@ -1889,7 +1889,7 @@ static void do_getfd(Monitor *mon, const QDict *qdict, QObject **ret_data) QLIST_INSERT_HEAD(&mon->fds, monfd, next); } -static void do_closefd(Monitor *mon, const QDict *qdict) +static void do_closefd(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 cc4487e3d11..bb01c14714f 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -1029,7 +1029,8 @@ ETEXI .args_type = "fdname:s", .params = "closefd name", .help = "close a file descriptor previously passed via SCM rights", - .mhandler.cmd = do_closefd, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_closefd, }, STEXI