diff mbox

[2/6] monitor: Introduce qemu_get_fd()

Message ID 1328902266-25308-3-git-send-email-lcapitulino@redhat.com
State New
Headers show

Commit Message

Luiz Capitulino Feb. 10, 2012, 7:31 p.m. UTC
Get the file-descriptor from 'cur_mon', will be used by the QAPI
converted migration command.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 monitor.c |    5 +++++
 monitor.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

Comments

Juan Quintela Feb. 15, 2012, 1:11 p.m. UTC | #1
Luiz Capitulino <lcapitulino@redhat.com> wrote:
> Get the file-descriptor from 'cur_mon', will be used by the QAPI
> converted migration command.
>
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>

Reviewed-by: Juan Quintela <quintela@redhat.com>
diff mbox

Patch

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)