aboutsummaryrefslogtreecommitdiffstats
path: root/android/async-socket-connector.h
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-04-05 16:22:55 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2012-04-06 14:33:17 -0700
commitc8aa2c570d30098da59f1967d5158024ed28570d (patch)
tree894bf051d609573a856e9ec27c50b5b2247e94da /android/async-socket-connector.h
parent0f719d093468913f6af7455a7d2d5d7f04edd961 (diff)
downloadexternal_qemu-c8aa2c570d30098da59f1967d5158024ed28570d.zip
external_qemu-c8aa2c570d30098da59f1967d5158024ed28570d.tar.gz
external_qemu-c8aa2c570d30098da59f1967d5158024ed28570d.tar.bz2
Implements SDKCtlSocket that implements communication protocol wih SdkController
In addition, this CL contains some minor tweaks to async-socket, and async-socket-connector that improve tracebility. Change-Id: Ib1309b19dcd02e96379155fea7015019d93160e7
Diffstat (limited to 'android/async-socket-connector.h')
-rw-r--r--android/async-socket-connector.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/async-socket-connector.h b/android/async-socket-connector.h
index 0769f56..bedc2df 100644
--- a/android/async-socket-connector.h
+++ b/android/async-socket-connector.h
@@ -89,6 +89,8 @@ typedef AsyncIOAction (*asc_event_cb)(void* opaque,
* retry_to - Timeout to retry a failed connection attempt in milliseconds.
* cb, cb_opaque - Callback to invoke on connection events. This callback is
* required, and must not be NULL.
+ * looper - An optional (can be NULL) I/O looper to use for connection I/O. If
+ * this parameter is NULL, the connector will create its own looper.
* Return:
* Initialized AsyncSocketConnector instance. Note that AsyncSocketConnector
* instance returned from this routine will be destroyed by the connector itself,
@@ -99,7 +101,8 @@ typedef AsyncIOAction (*asc_event_cb)(void* opaque,
extern AsyncSocketConnector* async_socket_connector_new(const SockAddress* address,
int retry_to,
asc_event_cb cb,
- void* cb_opaque);
+ void* cb_opaque,
+ Looper* looper);
/* References AsyncSocketConnector object.
* Param: