From b58d3656d79e5f9752a22d55c139294412084e4f Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 1 Jun 2011 14:41:49 +0000 Subject: FS#11925 - Add a proper system to keep track of the current screen/activity to make %cs far more useful git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29944 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'apps/misc.h') diff --git a/apps/misc.h b/apps/misc.h index 1022af4e93..0fd408b941 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -100,4 +100,24 @@ int clamp_value_wrap(int value, int max, int min); #endif #endif +enum current_activity { + ACTIVITY_UNKNOWN = 0, + ACTIVITY_MAINMENU, + ACTIVITY_WPS, + ACTIVITY_RECORDING, + ACTIVITY_FM, + ACTIVITY_PLAYLISTVIEWER, + ACTIVITY_SETTINGS, + ACTIVITY_FILEBROWSER, + ACTIVITY_DATABASEBROWSER, + ACTIVITY_PLUGINBROWSER, + ACTIVITY_QUICKSCREEN, + ACTIVITY_PITCHSCREEN, + ACTIVITY_OPTIONSELECT +}; +void push_current_activity(enum current_activity screen); +void pop_current_activity(void); +enum current_activity get_current_activity(void); + + #endif /* MISC_H */ -- cgit v1.2.3