summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-03-19 00:57:16 +0100
committerJean-Baptiste Queru <jbq@google.com>2009-03-19 00:57:16 +0100
commitc5c389f8f2b43a640667aa53ee3e369033c55569 (patch)
tree7df23711566b358047301d8413ee399105546e8b /common.h
parentRemove obsolete OTA tools (diff)
parentauto import from //depot/cupcake/@135843 (diff)
downloadandroid_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.tar
android_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.tar.gz
android_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.tar.bz2
android_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.tar.lz
android_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.tar.xz
android_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.tar.zst
android_bootable_recovery-c5c389f8f2b43a640667aa53ee3e369033c55569.zip
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common.h b/common.h
index 76d5747bd..e17f76a46 100644
--- a/common.h
+++ b/common.h
@@ -26,12 +26,24 @@ void ui_init();
int ui_wait_key(); // waits for a key/button press, returns the code
int ui_key_pressed(int key); // returns >0 if the code is currently pressed
int ui_text_visible(); // returns >0 if text log is currently visible
+void ui_clear_key_queue();
// Write a message to the on-screen log shown with Alt-L (also to stderr).
// The screen is small, and users may need to report these messages to support,
// so keep the output short and not too cryptic.
void ui_print(const char *fmt, ...);
+// Display some header text followed by a menu of items, which appears
+// at the top of the screen (in place of any scrolling ui_print()
+// output, if necessary).
+void ui_start_menu(char** headers, char** items);
+// Set the menu highlight to the given index, and return it (capped to
+// the range [0..numitems).
+int ui_menu_select(int sel);
+// End menu mode, resetting the text overlay so that ui_print()
+// statements will be displayed.
+void ui_end_menu();
+
// Set the icon (normally the only thing visible besides the progress bar).
enum {
BACKGROUND_ICON_NONE,