summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-12 11:44:09 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-12 11:44:09 +0000
commita5d8d215964b31c3257083846dab71af51eb1af2 (patch)
tree37adcb974089c139638dc8c86c4c78f36284372f /uisimulator
parent7b931f0a5a7dc90bc488c9f521ed5aeae42f8d73 (diff)
downloadrockbox-a5d8d215964b31c3257083846dab71af51eb1af2.tar.gz
rockbox-a5d8d215964b31c3257083846dab71af51eb1af2.tar.bz2
rockbox-a5d8d215964b31c3257083846dab71af51eb1af2.zip
fix the last of the reds, and make RDS tags actually work (and add them to the hardcoded radio skin)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25966 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/fmradio.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c
index 64bd7f1f91..cef9abf94e 100644
--- a/uisimulator/common/fmradio.c
+++ b/uisimulator/common/fmradio.c
@@ -19,6 +19,7 @@
*
****************************************************************************/
#include <stdbool.h>
+#include <stdlib.h>
#include "config.h"
#include "debug.h"
#include "tuner.h"
@@ -96,4 +97,22 @@ bool tuner_power(bool status)
return oldstatus;
}
+#ifdef HAVE_RDS_CAP
+char* tuner_get_rds_info(int setting)
+{
+ char *text = NULL;
+
+ switch(setting)
+ {
+ case RADIO_RDS_NAME:
+ text = "Rockbox Radio";
+ break;
+
+ case RADIO_RDS_TEXT:
+ text = "http://www.rockbox.org" ;
+ break;
+ }
+ return text;
+}
+#endif
#endif