summaryrefslogtreecommitdiffstats
path: root/apps/hosted/android/yesno.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-07-21 06:51:55 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-07-21 06:51:55 +0000
commit22332e8c0a463ae228c21a626e232887af9d5b79 (patch)
tree2eb3d28b17e8b080a356e26258f7b54cccd2cf87 /apps/hosted/android/yesno.c
parentd1fd4f08f56f6dd46b26b1f41baff425ca71d498 (diff)
downloadrockbox-22332e8c0a463ae228c21a626e232887af9d5b79.tar.gz
rockbox-22332e8c0a463ae228c21a626e232887af9d5b79.tar.bz2
rockbox-22332e8c0a463ae228c21a626e232887af9d5b79.zip
Copy yesno_pop to hosted/yesno,c which is mildly annoying, maybe do a better fix later
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/hosted/android/yesno.c')
-rw-r--r--apps/hosted/android/yesno.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/hosted/android/yesno.c b/apps/hosted/android/yesno.c
index f08e7b2dfb..105f4af688 100644
--- a/apps/hosted/android/yesno.c
+++ b/apps/hosted/android/yesno.c
@@ -118,3 +118,16 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
}
#endif
+
+/* Function to manipulate all yesno dialogues.
+ This function needs the output text as an argument. */
+bool yesno_pop(const char* text)
+{
+ int i;
+ const char *lines[]={text};
+ const struct text_message message={lines, 1};
+ bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES);
+ FOR_NB_SCREENS(i)
+ screens[i].clear_viewport();
+ return ret;
+}