aboutsummaryrefslogtreecommitdiffstats
path: root/android/async-io-common.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-io-common.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-io-common.h')
-rw-r--r--android/async-io-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/async-io-common.h b/android/async-io-common.h
index 02714a7..02b2c96 100644
--- a/android/async-io-common.h
+++ b/android/async-io-common.h
@@ -44,6 +44,12 @@ typedef enum AsyncIOState {
/* Asynchronous I/O has been cancelled (due to disconnect, for
* instance). (7) */
ASIO_STATE_CANCELLED,
+ /* Asynchronous I/O is finished and is about to be discarder. This state is
+ * useful in case there is an association between an I/O and some client's
+ * component, that holds a reference associated with this I/O. When callback
+ * is invoked with this state, it means that it's safe to drop that extra
+ * reference associated with the I/O (8) */
+ ASIO_STATE_FINISHED,
} AsyncIOState;
/* Enumerates actions to perform with an I/O on state transition.