diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:43:56 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:43:56 -0800 |
commit | 8b7334b3c2f891f516722851575fec43bd28b4cf (patch) | |
tree | 726d3efa74bb9e772b171db8831ca99c912f1940 /common.h | |
parent | 928d471ef2bfa359e16426cd993ba6f9b07ee16e (diff) | |
download | bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.zip bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.gz bootable_recovery-8b7334b3c2f891f516722851575fec43bd28b4cf.tar.bz2 |
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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, |