diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-12-25 14:01:47 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-12-25 14:01:47 +0000 |
commit | 2597a1349772fe505d27cb94392eb4d8a3c3b35d (patch) | |
tree | 185a4809430f9dded488bb1b058d3f97345058a3 /apps/recorder/radio.c | |
parent | 37aeb12cc99cc22f62c44d5b0adcae35d0c471d8 (diff) | |
download | rockbox-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.c | 50 |
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 */ | |||
127 | static struct menu_item preset_menu_items[MAX_PRESETS]; | 127 | static struct menu_item preset_menu_items[MAX_PRESETS]; |
128 | static int num_presets = 0; /* The number of presets in the preset list */ | 128 | static int num_presets = 0; /* The number of presets in the preset list */ |
129 | 129 | ||
130 | void radio_save_presets(void); | 130 | static void radio_save_presets(void); |
131 | bool handle_radio_presets(void); | 131 | static bool handle_radio_presets(void); |
132 | bool radio_menu(void); | 132 | static bool radio_menu(void); |
133 | bool radio_add_preset(void); | 133 | static bool radio_add_preset(void); |
134 | bool save_preset_list(void); | 134 | static bool save_preset_list(void); |
135 | bool load_preset_list(void); | 135 | static bool load_preset_list(void); |
136 | bool clear_preset_list(void); | 136 | static bool clear_preset_list(void); |
137 | 137 | ||
138 | static bool scan_presets(void); | 138 | static 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 */ |
151 | void (*radio_set)(int setting, int value); | 151 | static void (*radio_set)(int setting, int value); |
152 | int (*radio_get)(int setting); | 152 | static 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. */ |
158 | bool yesno_pop(char* text) | 158 | static 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 | ||
341 | void next_preset(int direction) | 341 | static 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 | ||
970 | void radio_save_presets(void) | 970 | static 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 | ||
1067 | bool radio_add_preset(void) | 1067 | static 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 | ||
1132 | bool radio_delete_preset(void) | 1132 | static 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 | ||
1160 | bool load_preset_list(void) | 1160 | static 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 | ||
1165 | bool save_preset_list(void) | 1165 | static 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 | ||
1218 | bool clear_preset_list(void) | 1218 | static 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 */ |
1239 | bool handle_radio_presets_menu(void) | 1239 | static 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 */ |
1257 | int handle_radio_presets_cb(int key, int m) | 1257 | static 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 */ |
1295 | bool handle_radio_presets(void) | 1295 | static 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 | ||
1331 | char monomode_menu_string[32]; | 1331 | static char monomode_menu_string[32]; |
1332 | 1332 | ||
1333 | static void create_monomode_menu(void) | 1333 | static 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 | ||
1350 | char region_menu_string[32]; | 1350 | static char region_menu_string[32]; |
1351 | static void create_region_menu(void) | 1351 | static 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 |
1384 | char radiomode_menu_string[32]; | 1384 | static char radiomode_menu_string[32]; |
1385 | 1385 | ||
1386 | static void create_radiomode_menu(void) | 1386 | static 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 */ |
1474 | int radio_menu_cb(int key, int m) | 1474 | static 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 */ |
1551 | bool radio_menu(void) | 1551 | static bool radio_menu(void) |
1552 | { | 1552 | { |
1553 | int m; | 1553 | int m; |
1554 | bool result; | 1554 | bool result; |