summaryrefslogtreecommitdiffstats
path: root/minui/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-12 22:47:33 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-03-12 22:47:33 +0100
commit28e7cca4cb40622d6847b5dda654af02dcfa004f (patch)
treee6b68cacdddeb22e5f2d33909d1db0d01c75d961 /minui/include
parentMerge "minui: Fix the wrong move of the callback." am: aefc9e3ba9 am: ea37122996 (diff)
parentMerge "minui: Managed FDs with smart pointers." am: fc7a0dc3a2 (diff)
downloadandroid_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.tar
android_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.tar.gz
android_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.tar.bz2
android_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.tar.lz
android_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.tar.xz
android_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.tar.zst
android_bootable_recovery-28e7cca4cb40622d6847b5dda654af02dcfa004f.zip
Diffstat (limited to 'minui/include')
-rw-r--r--minui/include/minui/minui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h
index e49c6ac97..36bdcf103 100644
--- a/minui/include/minui/minui.h
+++ b/minui/include/minui/minui.h
@@ -26,6 +26,7 @@
#include <vector>
#include <android-base/macros.h>
+#include <android-base/unique_fd.h>
//
// Graphics.
@@ -153,7 +154,7 @@ using ev_set_key_callback = std::function<int(int code, int value)>;
int ev_init(ev_callback input_cb, bool allow_touch_inputs = false);
void ev_exit();
-int ev_add_fd(int fd, ev_callback cb);
+int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb);
void ev_iterate_available_keys(const std::function<void(int)>& f);
void ev_iterate_touch_inputs(const std::function<void(int)>& action);
int ev_sync_key_state(const ev_set_key_callback& set_key_cb);