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-qemu.c | |
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-qemu.c')
-rw-r--r-- | android/looper-qemu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/looper-qemu.c b/android/looper-qemu.c index cce0bfa..5526f5b 100644 --- a/android/looper-qemu.c +++ b/android/looper-qemu.c @@ -254,11 +254,19 @@ qloopio_free(void* impl) qemu_free(io); } +static unsigned +qloopio_poll(void* impl) +{ + QLoopIo* io = impl; + return io->ready; +} + static const LoopIoClass qlooper_io_class = { qloopio_wantRead, qloopio_wantWrite, qloopio_dontWantRead, qloopio_dontWantWrite, + qloopio_poll, qloopio_free }; |