aboutsummaryrefslogtreecommitdiffstats
path: root/android/looper.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-04-28 16:29:57 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-04-28 16:40:36 +0200
commita65e41529e4e3900372d54859f8c559cf79d953c (patch)
tree5aec32aed00978559ce08fd49ebd0025a58b0e8a /android/looper.h
parent011467bd501532c47595fa22a099ecf630e5de9f (diff)
downloadexternal_qemu-a65e41529e4e3900372d54859f8c559cf79d953c.zip
external_qemu-a65e41529e4e3900372d54859f8c559cf79d953c.tar.gz
external_qemu-a65e41529e4e3900372d54859f8c559cf79d953c.tar.bz2
Add loopIo_poll() function.
This will be used later by the goldfish network pipe implementation. Change-Id: I70c770efba15b2fd5ef7cc52450aa07163fa21f5
Diffstat (limited to 'android/looper.h')
-rw-r--r--android/looper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/looper.h b/android/looper.h
index d67fdad..923ef09 100644
--- a/android/looper.h
+++ b/android/looper.h
@@ -215,6 +215,7 @@ struct LoopIoClass {
void (*wantWrite)(void* impl);
void (*dontWantRead)(void* impl);
void (*dontWantWrite)(void* impl);
+ unsigned (*poll)(void* impl);
void (*done)(void* impl);
};
@@ -255,6 +256,11 @@ loopIo_dontWantWrite(LoopIo* io)
{
io->clazz->dontWantWrite(io->impl);
}
+AINLINED unsigned
+loopIo_poll(LoopIo* io)
+{
+ return io->clazz->poll(io->impl);
+}
/**********************************************************************
**********************************************************************