summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-12-25 14:01:47 +0000
committerJens Arnold <amiconn@rockbox.org>2006-12-25 14:01:47 +0000
commit2597a1349772fe505d27cb94392eb4d8a3c3b35d (patch)
tree185a4809430f9dded488bb1b058d3f97345058a3 /apps/recorder/radio.c
parent37aeb12cc99cc22f62c44d5b0adcae35d0c471d8 (diff)
downloadrockbox-2597a1349772fe505d27cb94392eb4d8a3c3b35d.tar.gz
rockbox-2597a1349772fe505d27cb94392eb4d8a3c3b35d.zip
Next round of static'ing and related fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 7a0cc6543e..51e206fc4f 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -127,13 +127,13 @@ static int preset_menu; /* The menu index of the preset list */
127static struct menu_item preset_menu_items[MAX_PRESETS]; 127static struct menu_item preset_menu_items[MAX_PRESETS];
128static int num_presets = 0; /* The number of presets in the preset list */ 128static int num_presets = 0; /* The number of presets in the preset list */
129 129
130void radio_save_presets(void); 130static void radio_save_presets(void);
131bool handle_radio_presets(void); 131static bool handle_radio_presets(void);
132bool radio_menu(void); 132static bool radio_menu(void);
133bool radio_add_preset(void); 133static bool radio_add_preset(void);
134bool save_preset_list(void); 134static bool save_preset_list(void);
135bool load_preset_list(void); 135static bool load_preset_list(void);
136bool clear_preset_list(void); 136static bool clear_preset_list(void);
137 137
138static bool scan_presets(void); 138static bool scan_presets(void);
139 139
@@ -148,14 +148,14 @@ int radio_get(int setting);
148#define radio_set philips_set 148#define radio_set philips_set
149#define radio_get philips_get 149#define radio_get philips_get
150#elif CONFIG_TUNER == (S1A0903X01 | TEA5767) /* OndioFM */ 150#elif CONFIG_TUNER == (S1A0903X01 | TEA5767) /* OndioFM */
151void (*radio_set)(int setting, int value); 151static void (*radio_set)(int setting, int value);
152int (*radio_get)(int setting); 152static int (*radio_get)(int setting);
153#endif 153#endif
154#endif 154#endif
155 155
156/* Function to manipulate all yesno dialogues. 156/* Function to manipulate all yesno dialogues.
157 This function needs the output text as an argument. */ 157 This function needs the output text as an argument. */
158bool yesno_pop(char* text) 158static bool yesno_pop(char* text)
159{ 159{
160 int i; 160 int i;
161 char *lines[]={text}; 161 char *lines[]={text};
@@ -338,7 +338,7 @@ static void remember_frequency(void)
338 settings_save(); 338 settings_save();
339} 339}
340 340
341void next_preset(int direction) 341static void next_preset(int direction)
342{ 342{
343 if (num_presets < 1) 343 if (num_presets < 1)
344 return; 344 return;
@@ -967,7 +967,7 @@ bool radio_screen(void)
967 return have_recorded; 967 return have_recorded;
968} /* radio_screen */ 968} /* radio_screen */
969 969
970void radio_save_presets(void) 970static void radio_save_presets(void)
971{ 971{
972 int fd; 972 int fd;
973 int i; 973 int i;
@@ -1064,7 +1064,7 @@ static void rebuild_preset_menu(void)
1064 } 1064 }
1065} 1065}
1066 1066
1067bool radio_add_preset(void) 1067static bool radio_add_preset(void)
1068{ 1068{
1069 char buf[MAX_FMPRESET_LEN]; 1069 char buf[MAX_FMPRESET_LEN];
1070 1070
@@ -1129,7 +1129,7 @@ static bool radio_edit_preset(void)
1129 return true; 1129 return true;
1130} 1130}
1131 1131
1132bool radio_delete_preset(void) 1132static bool radio_delete_preset(void)
1133{ 1133{
1134 int pos = menu_cursor(preset_menu); 1134 int pos = menu_cursor(preset_menu);
1135 int i; 1135 int i;
@@ -1157,12 +1157,12 @@ bool radio_delete_preset(void)
1157 return true; /* Make the menu return immediately */ 1157 return true; /* Make the menu return immediately */
1158} 1158}
1159 1159
1160bool load_preset_list(void) 1160static bool load_preset_list(void)
1161{ 1161{
1162 return !rockbox_browse(FMPRESET_PATH, SHOW_FMR); 1162 return !rockbox_browse(FMPRESET_PATH, SHOW_FMR);
1163} 1163}
1164 1164
1165bool save_preset_list(void) 1165static bool save_preset_list(void)
1166{ 1166{
1167 if(num_presets != 0) 1167 if(num_presets != 0)
1168 { 1168 {
@@ -1215,7 +1215,7 @@ bool save_preset_list(void)
1215 return true; 1215 return true;
1216} 1216}
1217 1217
1218bool clear_preset_list(void) 1218static bool clear_preset_list(void)
1219{ 1219{
1220 int i; 1220 int i;
1221 1221
@@ -1236,7 +1236,7 @@ bool clear_preset_list(void)
1236} 1236}
1237 1237
1238/* little menu on what to do with a preset entry */ 1238/* little menu on what to do with a preset entry */
1239bool handle_radio_presets_menu(void) 1239static bool handle_radio_presets_menu(void)
1240{ 1240{
1241 static const struct menu_item preset_menu_items[] = { 1241 static const struct menu_item preset_menu_items[] = {
1242 { ID2P(LANG_FM_EDIT_PRESET), radio_edit_preset }, 1242 { ID2P(LANG_FM_EDIT_PRESET), radio_edit_preset },
@@ -1254,7 +1254,7 @@ bool handle_radio_presets_menu(void)
1254} 1254}
1255 1255
1256/* button preprocessor for list of preset stations menu */ 1256/* button preprocessor for list of preset stations menu */
1257int handle_radio_presets_cb(int key, int m) 1257static int handle_radio_presets_cb(int key, int m)
1258{ 1258{
1259 (void)m; 1259 (void)m;
1260 1260
@@ -1292,7 +1292,7 @@ int handle_radio_presets_cb(int key, int m)
1292} 1292}
1293 1293
1294/* present a list of preset stations */ 1294/* present a list of preset stations */
1295bool handle_radio_presets(void) 1295static bool handle_radio_presets(void)
1296{ 1296{
1297 int result; 1297 int result;
1298 bool reload_dir = false; 1298 bool reload_dir = false;
@@ -1328,7 +1328,7 @@ bool handle_radio_presets(void)
1328 return reload_dir; 1328 return reload_dir;
1329} 1329}
1330 1330
1331char monomode_menu_string[32]; 1331static char monomode_menu_string[32];
1332 1332
1333static void create_monomode_menu(void) 1333static void create_monomode_menu(void)
1334{ 1334{
@@ -1347,7 +1347,7 @@ static bool toggle_mono_mode(void)
1347 return false; 1347 return false;
1348} 1348}
1349 1349
1350char region_menu_string[32]; 1350static char region_menu_string[32];
1351static void create_region_menu(void) 1351static void create_region_menu(void)
1352{ 1352{
1353 snprintf(region_menu_string, sizeof(region_menu_string), 1353 snprintf(region_menu_string, sizeof(region_menu_string),
@@ -1381,7 +1381,7 @@ static bool toggle_region_mode(void)
1381} 1381}
1382 1382
1383#ifndef FM_MODE 1383#ifndef FM_MODE
1384char radiomode_menu_string[32]; 1384static char radiomode_menu_string[32];
1385 1385
1386static void create_radiomode_menu(void) 1386static void create_radiomode_menu(void)
1387{ 1387{
@@ -1471,7 +1471,7 @@ static bool scan_presets(void)
1471} 1471}
1472 1472
1473/* button preprocessor for the main menu */ 1473/* button preprocessor for the main menu */
1474int radio_menu_cb(int key, int m) 1474static int radio_menu_cb(int key, int m)
1475{ 1475{
1476 (void)m; 1476 (void)m;
1477#if 0 /* this screen needs fixing! */ 1477#if 0 /* this screen needs fixing! */
@@ -1548,7 +1548,7 @@ static bool fm_recording_settings(void)
1548 1548
1549 1549
1550/* main menu of the radio screen */ 1550/* main menu of the radio screen */
1551bool radio_menu(void) 1551static bool radio_menu(void)
1552{ 1552{
1553 int m; 1553 int m;
1554 bool result; 1554 bool result;