From: Luiz Capitulino Date: Fri, 16 Oct 2009 15:23:50 +0000 (-0300) Subject: monitor: Convert do_getfd() to QObject X-Git-Tag: TizenStudio_2.0_p2.3~6866 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d13452e92f5c4b9519b4874452fae5747e542baf;p=sdk%2Femulator%2Fqemu.git monitor: Convert do_getfd() 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 739dd50..eee4b80 100644 --- a/monitor.c +++ b/monitor.c @@ -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 05b4534..cc4487e 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