qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 9/9] monitor: Convert do_closefd() to QObject


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 9/9] monitor: Convert do_closefd() to QObject
Date: Fri, 16 Oct 2009 12:23:51 -0300

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c       |    2 +-
 qemu-monitor.hx |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/monitor.c b/monitor.c
index f35b55f..3d82ab8 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 cc4487e..bb01c14 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
-- 
1.6.5.rc3.8.g8ba5e





reply via email to

[Prev in Thread] Current Thread [Next in Thread]