summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpeg_misc.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-12-22 11:20:07 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-12-22 11:20:07 +0000
commit9b4522bacec8cf1eb8ff69684cf959c0bb732c0d (patch)
treea939f4cd549f7def0feed75d9d5728a213bd5c22 /apps/plugins/mpegplayer/mpeg_misc.h
parent303aefc406a99cb47f41ed39283a3881f4c7f401 (diff)
MPEGPlayer: Some UI tweaking and bugfixing
* Allow skip-to-beginning in single-play mode; there is no 3-second delay in that case. * Properly handle and keep track of pauses caused by headphone removal. * Improve skipping over bad files - search in skip direction and allow it to be ended with the stop key. * Add the system message processing done elsewhere to all button queue waits. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28875 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_misc.h')
-rw-r--r--apps/plugins/mpegplayer/mpeg_misc.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_misc.h b/apps/plugins/mpegplayer/mpeg_misc.h
index c36f4faddc..6996f27987 100644
--- a/apps/plugins/mpegplayer/mpeg_misc.h
+++ b/apps/plugins/mpegplayer/mpeg_misc.h
@@ -228,4 +228,30 @@ void list_enum_items(void **list,
list_enum_callback_t callback,
intptr_t data);
+
+/** System events **/
+
+/* Clear event */
+void mpeg_sysevent_clear(void);
+
+/* Set to ACTION_STD_CANCEL */
+void mpeg_sysevent_set(void);
+
+/* Get event code */
+long mpeg_sysevent(void);
+
+/* Call with a system event code and used as menu callback */
+int mpeg_sysevent_callback(int btn, const struct menu_item_ex *menu);
+
+/* Handle recorded event */
+void mpeg_sysevent_handle(void);
+
+
+/** Buttons **/
+
+/* Get button codes while remembering important events for later
+ * processing; return of ACTION_STD_CANCEL means plugin should
+ * abort and handle the event */
+int mpeg_button_get(int timeout);
+
#endif /* MPEG_MISC_H */