diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-03-18 07:08:49 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-03-18 07:08:49 +0000 |
commit | d2e2c2ad96222a55a5005edbbdea3fe755c388a5 (patch) | |
tree | 6b8b52bf1b82502afe1f62f08d1f6359c735ac91 /apps/gui/skin_engine/skin_parser.c | |
parent | c3c928b29feb592ec9a4d9c93580611d129c991d (diff) | |
download | rockbox-d2e2c2ad96222a55a5005edbbdea3fe755c388a5.tar.gz rockbox-d2e2c2ad96222a55a5005edbbdea3fe755c388a5.zip |
2 new tags:
%pS - track is starting.
%pE - track is ending. both can optionally have a number straight after to change how long that tag should stay true for (e.g %pS10 will stay true for the first 10s of the track)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25239 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 7f73d36577..70ffe0b516 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -328,6 +328,8 @@ static const struct wps_tag all_tags[] = { | |||
328 | { WPS_TOKEN_TRACK_TIME_ELAPSED, "pc", WPS_REFRESH_DYNAMIC, NULL }, | 328 | { WPS_TOKEN_TRACK_TIME_ELAPSED, "pc", WPS_REFRESH_DYNAMIC, NULL }, |
329 | { WPS_TOKEN_TRACK_TIME_REMAINING, "pr", WPS_REFRESH_DYNAMIC, NULL }, | 329 | { WPS_TOKEN_TRACK_TIME_REMAINING, "pr", WPS_REFRESH_DYNAMIC, NULL }, |
330 | { WPS_TOKEN_TRACK_LENGTH, "pt", WPS_REFRESH_STATIC, NULL }, | 330 | { WPS_TOKEN_TRACK_LENGTH, "pt", WPS_REFRESH_STATIC, NULL }, |
331 | { WPS_TOKEN_TRACK_STARTING, "pS", WPS_REFRESH_DYNAMIC, parse_timeout }, | ||
332 | { WPS_TOKEN_TRACK_ENDING, "pE", WPS_REFRESH_DYNAMIC, parse_timeout }, | ||
331 | 333 | ||
332 | { WPS_TOKEN_PLAYLIST_POSITION, "pp", WPS_REFRESH_STATIC, NULL }, | 334 | { WPS_TOKEN_PLAYLIST_POSITION, "pp", WPS_REFRESH_STATIC, NULL }, |
333 | { WPS_TOKEN_PLAYLIST_ENTRIES, "pe", WPS_REFRESH_STATIC, NULL }, | 335 | { WPS_TOKEN_PLAYLIST_ENTRIES, "pe", WPS_REFRESH_STATIC, NULL }, |
@@ -1106,6 +1108,8 @@ static int parse_timeout(const char *wps_bufptr, | |||
1106 | case WPS_TOKEN_SUBLINE_TIMEOUT: | 1108 | case WPS_TOKEN_SUBLINE_TIMEOUT: |
1107 | return -1; | 1109 | return -1; |
1108 | case WPS_TOKEN_BUTTON_VOLUME: | 1110 | case WPS_TOKEN_BUTTON_VOLUME: |
1111 | case WPS_TOKEN_TRACK_STARTING: | ||
1112 | case WPS_TOKEN_TRACK_ENDING: | ||
1109 | val = 10; | 1113 | val = 10; |
1110 | break; | 1114 | break; |
1111 | } | 1115 | } |