summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-15 20:58:14 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-15 20:58:14 +0000
commitbda8a963ad0ce49f67cb6641bb3b966f770366f3 (patch)
treefba921269db2805edb4e837bf204e033874ff9fa /apps/playlist.c
parent160d9f69086140b058726069b36ccdb98685c863 (diff)
downloadrockbox-bda8a963ad0ce49f67cb6641bb3b966f770366f3.tar.gz
rockbox-bda8a963ad0ce49f67cb6641bb3b966f770366f3.zip
Add conditionals for functions only needed on SWCODEC targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31296 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 4588548d54..117d657ed1 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1068,6 +1068,7 @@ static int calculate_step_count(const struct playlist_info *playlist, int steps)
1068 return steps; 1068 return steps;
1069} 1069}
1070 1070
1071#if CONFIG_CODEC == SWCODEC
1071/* Marks the index of the track to be skipped that is "steps" away from 1072/* Marks the index of the track to be skipped that is "steps" away from
1072 * current playing track. 1073 * current playing track.
1073 */ 1074 */
@@ -1089,6 +1090,7 @@ void playlist_skip_entry(struct playlist_info *playlist, int steps)
1089 1090
1090 playlist->indices[index] |= PLAYLIST_SKIPPED; 1091 playlist->indices[index] |= PLAYLIST_SKIPPED;
1091} 1092}
1093#endif /* CONFIG_CODEC == SWCODEC */
1092 1094
1093/* 1095/*
1094 * returns the index of the track that is "steps" away from current playing 1096 * returns the index of the track that is "steps" away from current playing
@@ -2638,6 +2640,7 @@ int playlist_next(int steps)
2638 return index; 2640 return index;
2639} 2641}
2640 2642
2643#if CONFIG_CODEC == SWCODEC
2641/* try playing next or previous folder */ 2644/* try playing next or previous folder */
2642bool playlist_next_dir(int direction) 2645bool playlist_next_dir(int direction)
2643{ 2646{
@@ -2647,6 +2650,7 @@ bool playlist_next_dir(int direction)
2647 2650
2648 return create_and_play_dir(direction, false) >= 0; 2651 return create_and_play_dir(direction, false) >= 0;
2649} 2652}
2653#endif /* CONFIG_CODEC == SWCODEC */
2650 2654
2651/* Get resume info for current playing song. If return value is -1 then 2655/* Get resume info for current playing song. If return value is -1 then
2652 settings shouldn't be saved. */ 2656 settings shouldn't be saved. */