diff options
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r-- | apps/wps-display.c | 6 |
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) |