aboutsummaryrefslogtreecommitdiff
path: root/qemu-sockets.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-29 15:23:16 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-30 09:18:44 +0100
commit462016d2da393b743ba97552521378e7de2a4c7f (patch)
tree8875f4ff8d378bff8c7674897ed0e793cd2baad7 /qemu-sockets.c
parent0100fbbe73f1455ac66ec172627ff251a1f25302 (diff)
iohandler: add weak alias in qemu-sockets.c, for qemu-ga
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-sockets.c')
-rw-r--r--qemu-sockets.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/qemu-sockets.c b/qemu-sockets.c
index 225cd0c162..f2a637165b 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);