diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 3c512cd82f..091a8bb1b0 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -111,6 +111,20 @@ int playlist_first_index(void) | |||
111 | return playlist.first_index; | 111 | return playlist.first_index; |
112 | } | 112 | } |
113 | 113 | ||
114 | void playlist_name(char *name, int name_size) | ||
115 | { | ||
116 | char buf[MAX_PATH+1]; | ||
117 | int i = 0; | ||
118 | |||
119 | snprintf(buf, "%s", playlist.filename+playlist.dirlen); | ||
120 | while((buf[i] != '.') && (buf[i] != 0)) | ||
121 | i++; | ||
122 | buf[i] = 0; | ||
123 | |||
124 | snprintf(name, name_size, "%s", buf); | ||
125 | return; | ||
126 | } | ||
127 | |||
114 | int playlist_next(int steps) | 128 | int playlist_next(int steps) |
115 | { | 129 | { |
116 | playlist.index = get_next_index(steps); | 130 | playlist.index = get_next_index(steps); |