From: Luiz Capitulino Date: Fri, 16 Oct 2009 15:23:49 +0000 (-0300) Subject: monitor: Convert do_eject() to QObject X-Git-Tag: TizenStudio_2.0_p2.3~6867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a270ee3620ccef5b2937c513e2b1ffc350e2efb2;p=sdk%2Femulator%2Fqemu.git monitor: Convert do_eject() 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 8b31730..739dd50 100644 --- a/monitor.c +++ b/monitor.c @@ -570,7 +570,7 @@ static int eject_device(Monitor *mon, BlockDriverState *bs, int force) return 0; } -static void do_eject(Monitor *mon, const QDict *qdict) +static void do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data) { BlockDriverState *bs; int force = qdict_get_int(qdict, "force"); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 4610ad4..05b4534 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -133,7 +133,8 @@ ETEXI .args_type = "force:-f,filename:B", .params = "[-f] device", .help = "eject a removable medium (use -f to force it)", - .mhandler.cmd = do_eject, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_eject, }, STEXI