summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-13 22:18:57 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-13 22:18:57 +0200
commiteab12de70efb649ab33f7971e948251895d613fe (patch)
tree9c50497f0d82bb99eed807a84715b827a7d07a73 /ui.h
parentMerge "Treat KEY_ENTER the same as KEY_POWER in the pager." (diff)
parentRemove unnecessary globals. (diff)
downloadandroid_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.tar
android_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.tar.gz
android_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.tar.bz2
android_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.tar.lz
android_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.tar.xz
android_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.tar.zst
android_bootable_recovery-eab12de70efb649ab33f7971e948251895d613fe.zip
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/ui.h b/ui.h
index c5c65c247..4dcaa0f8d 100644
--- a/ui.h
+++ b/ui.h
@@ -147,14 +147,15 @@ private:
int count;
};
- pthread_t input_t;
+ pthread_t input_thread_;
void OnKeyDetected(int key_code);
- static void* input_thread(void* cookie);
- static int input_callback(int fd, uint32_t epevents, void* data);
- void process_key(int key_code, int updown);
- bool usb_connected();
+ static int InputCallback(int fd, uint32_t epevents, void* data);
+ int OnInputEvent(int fd, uint32_t epevents);
+ void ProcessKey(int key_code, int updown);
+
+ bool IsUsbConnected();
static void* time_key_helper(void* cookie);
void time_key(int key_code, int count);