summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c6
-rw-r--r--apps/playlist.h1
-rw-r--r--apps/wps-display.c2
-rw-r--r--apps/wps.c2
4 files changed, 6 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 8483d70..1e5c12a 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -37,14 +37,14 @@
#include "lang.h"
-struct playlist_info playlist;
+static struct playlist_info playlist;
#define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR)
-unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE];
+static unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE];
static int playlist_end_pos = 0;
-char now_playing[MAX_PATH+1];
+static char now_playing[MAX_PATH+1];
void playlist_clear(void)
{
diff --git a/apps/playlist.h b/apps/playlist.h
index 9f66b7f4..24f9d7d 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -52,5 +52,6 @@ void empty_playlist(void);
void add_indices_to_playlist(void);
void playlist_clear(void);
int playlist_add(char *filename);
+int playlist_amount(void);
#endif /* __PLAYLIST_H__ */
diff --git a/apps/wps-display.c b/apps/wps-display.c
index b1a6788..2972fc0 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -313,7 +313,7 @@ static char* get_tag(struct mp3entry* id3,
return buf;
case 'e': /* Playlist Total Entries */
- snprintf(buf, buf_size, "%d", playlist.amount);
+ snprintf(buf, buf_size, "%d", playlist_amount());
return buf;
case 'c': /* Current Time in Song */
diff --git a/apps/wps.c b/apps/wps.c
index e501381..d2e89ad 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -220,7 +220,7 @@ static int browse_id3(void)
case 5:
lcd_puts(0, 0, str(LANG_ID3_PLAYLIST));
snprintf(scroll_text,sizeof(scroll_text), "%d/%d",
- id3->index + 1, playlist.amount);
+ id3->index + 1, playlist_amount());
lcd_puts_scroll(0, 1, scroll_text);
break;