diff options
author | David 'Digit' Turner <digit@android.com> | 2011-04-28 16:29:57 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-04-28 16:40:36 +0200 |
commit | a65e41529e4e3900372d54859f8c559cf79d953c (patch) | |
tree | 5aec32aed00978559ce08fd49ebd0025a58b0e8a /android/looper.h | |
parent | 011467bd501532c47595fa22a099ecf630e5de9f (diff) | |
download | external_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.h | 6 |
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); +} /********************************************************************** ********************************************************************** |