summaryrefslogtreecommitdiff
path: root/apps/wps-display.c
diff options
context:
space:
mode:
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[] = {
95 "Duet", "Punk Rock", "Drum Solo", "A capella", "Euro-House", "Dance Hall" 95 "Duet", "Punk Rock", "Drum Solo", "A capella", "Euro-House", "Dance Hall"
96}; 96};
97 97
98char* wps_get_genre(unsigned int genre)
99{
100 if (genre < sizeof(genres)/sizeof(char*))
101 return (char*)genres[genre];
102 return NULL;
103}
98 104
99/* Set format string to use for WPS, splitting it into lines */ 105/* Set format string to use for WPS, splitting it into lines */
100static void wps_format(char* fmt) 106static void wps_format(char* fmt)