summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-11 00:43:56 +0100
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-11 00:43:56 +0100
commit8b7334b3c2f891f516722851575fec43bd28b4cf (patch)
tree726d3efa74bb9e772b171db8831ca99c912f1940 /common.h
parentauto import from //branches/cupcake/...@125939 (diff)
downloadandroid_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar
android_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.gz
android_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.bz2
android_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.lz
android_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.xz
android_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.zst
android_bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.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,