qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 2/6] monitor: Introduce qemu_get_fd()


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 2/6] monitor: Introduce qemu_get_fd()
Date: Fri, 10 Feb 2012 17:31:02 -0200

Get the file-descriptor from 'cur_mon', will be used by the QAPI
converted migration command.

Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c |    5 +++++
 monitor.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/monitor.c b/monitor.c
index aadbdcb..11639b1 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2250,6 +2250,11 @@ static void do_loadvm(Monitor *mon, const QDict *qdict)
     }
 }
 
+int qemu_get_fd(const char *fdname)
+{
+    return monitor_get_fd(cur_mon, fdname);
+}
+
 int monitor_get_fd(Monitor *mon, const char *fdname)
 {
     mon_fd_t *monfd;
diff --git a/monitor.h b/monitor.h
index b72ea07..58109af 100644
--- a/monitor.h
+++ b/monitor.h
@@ -56,6 +56,7 @@ int monitor_read_block_device_key(Monitor *mon, const char 
*device,
                                   BlockDriverCompletionFunc *completion_cb,
                                   void *opaque);
 
+int qemu_get_fd(const char *fdname);
 int monitor_get_fd(Monitor *mon, const char *fdname);
 
 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
-- 
1.7.9.111.gf3fb0.dirty




reply via email to

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