summaryrefslogtreecommitdiff
path: root/qemu-tool.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-23 21:31:53 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-23 22:39:16 +0200
commit101f9cbc2b73340197ec610c095fd69f0b1413ed (patch)
tree5ffa7e8959764f61de599980164328289ce83c89 /qemu-tool.c
parent0ef3dd6c2de1fa4f80c5aa71fb5fdada0f35cc9a (diff)
qemu-sockets: add socket_listen, socket_connect, socket_parse
These are QAPI-friendly versions of the qemu-sockets functions. They support IP sockets, Unix sockets, and named file descriptors, using a QAPI union to dispatch to the correct function. Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-tool.c')
-rw-r--r--qemu-tool.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu-tool.c b/qemu-tool.c
index f2f98138ce..da4c05aaf7 100644
--- a/qemu-tool.c
+++ b/qemu-tool.c
@@ -38,6 +38,12 @@ const char *qemu_get_vm_name(void)
Monitor *cur_mon;
+int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
+{
+ error_setg(errp, "only QEMU supports file descriptor passing");
+ return -1;
+}
+
void vm_stop(RunState state)
{
abort();