Patchwork [06/11] iohandler: add weak alias in qemu-sockets.c, for qemu-ga

login
register
mail settings
Submitter Paolo Bonzini
Date Oct. 29, 2012, 6:07 p.m.
Message ID <1351534038-15503-7-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/195127/
State New
Headers show

Comments

Paolo Bonzini - Oct. 29, 2012, 6:07 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 qemu-sockets.c | 11 +++++++++++
 1 file modificato, 11 inserzioni(+)

Patch

diff --git a/qemu-sockets.c b/qemu-sockets.c
index 225cd0c..f2a6371 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -974,3 +974,14 @@  static int default_monitor_get_fd(Monitor *mon, const char *name, Error **errp)
     return -1;
 }
 QEMU_WEAK_ALIAS(monitor_get_fd, default_monitor_get_fd);
+
+static int default_qemu_set_fd_handler2(int fd,
+                                        IOCanReadHandler *fd_read_poll,
+                                        IOHandler *fd_read,
+                                        IOHandler *fd_write,
+                                        void *opaque)
+
+{
+    abort();
+}
+QEMU_WEAK_ALIAS(qemu_set_fd_handler2, default_qemu_set_fd_handler2);