summary refs log tree commit diff stats
path: root/include/qemu/sockets.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2014-10-08 07:11:56 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2014-10-09 15:36:15 +0200
commit5179502918d0c230afb50d8b95247de440fccdd5 (patch)
treea13f4148a4400cdbe43e8ccfbd0808393aa74385 /include/qemu/sockets.h
parent5748e4c2be4f5c24c691f91328be02a9c4cb3063 (diff)
downloadfocaccia-qemu-5179502918d0c230afb50d8b95247de440fccdd5.tar.gz
focaccia-qemu-5179502918d0c230afb50d8b95247de440fccdd5.zip
qemu-sockets: Add error to non-blocking connect handler
An error value here would be quite handy and more consistent
with the rest of the code.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
[Make sure SO_ERROR value is passed to error_setg_errno. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/sockets.h')
-rw-r--r--include/qemu/sockets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h
index fdbb196787..f47dae614a 100644
--- a/include/qemu/sockets.h
+++ b/include/qemu/sockets.h
@@ -47,7 +47,7 @@ int recv_all(int fd, void *buf, int len1, bool single_read);
 /* callback function for nonblocking connect
  * valid fd on success, negative error code on failure
  */
-typedef void NonBlockingConnectHandler(int fd, void *opaque);
+typedef void NonBlockingConnectHandler(int fd, Error *errp, void *opaque);
 
 InetSocketAddress *inet_parse(const char *str, Error **errp);
 int inet_listen_opts(QemuOpts *opts, int port_offset, Error **errp);