summaryrefslogtreecommitdiffstats
path: root/minui/minui.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 23:05:52 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-10 23:05:52 +0200
commit87835abd977faea04a6926a26eed300a2dbb12b3 (patch)
tree7e8d33676678e2240d5368fca8465712b24285cd /minui/minui.h
parentam c22f5774: am 6b0dd1d7: Merge "Move "Mount /system" to the main menu." (diff)
parentam 5d1630a9: Merge "Fix ScreenRecoveryUI to handle devices without power/up/down." (diff)
downloadandroid_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.gz
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.bz2
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.lz
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.xz
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.tar.zst
android_bootable_recovery-87835abd977faea04a6926a26eed300a2dbb12b3.zip
Diffstat (limited to 'minui/minui.h')
-rw-r--r--minui/minui.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/minui/minui.h b/minui/minui.h
index 8f2ff1139..82abb8a63 100644
--- a/minui/minui.h
+++ b/minui/minui.h
@@ -68,13 +68,11 @@ struct input_event;
typedef int (*ev_callback)(int fd, uint32_t epevents, void* data);
typedef int (*ev_set_key_callback)(int code, int value, void* data);
-typedef void (*ev_key_callback)(int code, void* data);
int ev_init(ev_callback input_cb, void* data);
void ev_exit(void);
int ev_add_fd(int fd, ev_callback cb, void* data);
int ev_sync_key_state(ev_set_key_callback set_key_cb, void* data);
-void ev_iterate_available_keys(ev_key_callback cb, void* data);
// 'timeout' has the same semantics as poll(2).
// 0 : don't block
@@ -130,4 +128,11 @@ void res_free_surface(gr_surface surface);
}
#endif
+#ifdef __cplusplus
+
+#include <functional>
+void ev_iterate_available_keys(std::function<void(int)> f);
+
+#endif
+
#endif