summaryrefslogtreecommitdiffstats
path: root/minui/minui.h
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-30 20:59:45 +0200
committerDima Zavin <dima@android.com>2011-09-02 23:55:20 +0200
commitbc29063bf4e2312133d91e211dfe9c86ee811489 (patch)
tree7bc5a29a8f1201e3af7ab25846398722e8b05dc3 /minui/minui.h
parentminui: graphics: add interface for framebuffer blank/unblank (diff)
downloadandroid_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.tar
android_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.tar.gz
android_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.tar.bz2
android_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.tar.lz
android_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.tar.xz
android_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.tar.zst
android_bootable_recovery-bc29063bf4e2312133d91e211dfe9c86ee811489.zip
Diffstat (limited to '')
-rw-r--r--minui/minui.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/minui/minui.h b/minui/minui.h
index 2284a3374..5a4168c46 100644
--- a/minui/minui.h
+++ b/minui/minui.h
@@ -45,9 +45,20 @@ unsigned int gr_get_height(gr_surface surface);
// see http://www.mjmwired.net/kernel/Documentation/input/ for info.
struct input_event;
-int ev_init(void);
+typedef int (*ev_callback)(int fd, short revents, void *data);
+
+int ev_init(ev_callback input_cb, void *data);
void ev_exit(void);
-int ev_get(struct input_event *ev, unsigned dont_wait);
+
+/* timeout has the same semantics as for poll
+ * 0 : don't block
+ * < 0 : block forever
+ * > 0 : block for 'timeout' milliseconds
+ */
+int ev_wait(int timeout);
+
+int ev_get_input(int fd, short revents, struct input_event *ev);
+void ev_dispatch(void);
// Resources