virtproxy: integration, fixup connection checks
[qemu/mdroth.git] / virtproxy-builtin.c
blob71fc5bcce01cbaf30377bec49275c1e0849a0c77
1 /*
2 * virt-proxy - host/guest communication layer builtin definitions
4 * Copyright IBM Corp. 2010
6 * Authors:
7 * Adam Litke <aglitke@linux.vnet.ibm.com>
8 * Michael Roth <mdroth@linux.vnet.ibm.com>
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
15 /* the following are functions we define in terms of qemu when linked
16 * against qemu/vl.c. these will be added on an as-needed basis
19 #include "qemu-char.h"
20 #include "qemu_socket.h"
21 #include "virtproxy.h"
23 int vp_set_fd_handler(int fd,
24 IOHandler *fd_read,
25 IOHandler *fd_write,
26 void *opaque)
28 return qemu_set_fd_handler(fd, fd_read, fd_write, opaque);
31 int vp_send_all(int fd, const void *buf, int len)
33 return send_all(fd, buf, len);
36 void vp_chr_read(CharDriverState *s, uint8_t *buf, int len) {
37 return qemu_chr_read(s, buf, len);