diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-06-01 14:41:49 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-06-01 14:41:49 +0000 |
commit | b58d3656d79e5f9752a22d55c139294412084e4f (patch) | |
tree | bd98c9d2ab0db1e0df432814bb398cdb49739fe1 /apps/misc.h | |
parent | c54f4b34400ea96bd3e2d86ba919a0ae509a56a9 (diff) | |
download | rockbox-b58d3656d79e5f9752a22d55c139294412084e4f.tar.gz rockbox-b58d3656d79e5f9752a22d55c139294412084e4f.zip |
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
Diffstat (limited to 'apps/misc.h')
-rw-r--r-- | apps/misc.h | 20 |
1 files changed, 20 insertions, 0 deletions
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); | |||
100 | #endif | 100 | #endif |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | enum current_activity { | ||
104 | ACTIVITY_UNKNOWN = 0, | ||
105 | ACTIVITY_MAINMENU, | ||
106 | ACTIVITY_WPS, | ||
107 | ACTIVITY_RECORDING, | ||
108 | ACTIVITY_FM, | ||
109 | ACTIVITY_PLAYLISTVIEWER, | ||
110 | ACTIVITY_SETTINGS, | ||
111 | ACTIVITY_FILEBROWSER, | ||
112 | ACTIVITY_DATABASEBROWSER, | ||
113 | ACTIVITY_PLUGINBROWSER, | ||
114 | ACTIVITY_QUICKSCREEN, | ||
115 | ACTIVITY_PITCHSCREEN, | ||
116 | ACTIVITY_OPTIONSELECT | ||
117 | }; | ||
118 | void push_current_activity(enum current_activity screen); | ||
119 | void pop_current_activity(void); | ||
120 | enum current_activity get_current_activity(void); | ||
121 | |||
122 | |||
103 | #endif /* MISC_H */ | 123 | #endif /* MISC_H */ |