summaryrefslogtreecommitdiff
path: root/apps/wps-display.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-02-11 15:03:28 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-02-11 15:03:28 +0000
commit39f7b66ca40e8f0a147a43a903121153b84a890e (patch)
tree830919ce13cdf02c38bc6ab6959a8786cb6d0427 /apps/wps-display.c
parent5b1644336c790d7a6b171f95302a7e09c396fd00 (diff)
Added Genre+Year to ID3 viewer, and added the viewer to the main menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3234 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r--apps/wps-display.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 263c0a78b6..5c43d510e1 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -95,6 +95,12 @@ static const char* const genres[] = {
"Duet", "Punk Rock", "Drum Solo", "A capella", "Euro-House", "Dance Hall"
};
+char* wps_get_genre(unsigned int genre)
+{
+ if (genre < sizeof(genres)/sizeof(char*))
+ return (char*)genres[genre];
+ return NULL;
+}
/* Set format string to use for WPS, splitting it into lines */
static void wps_format(char* fmt)