diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/buffering.h | 3 | ||||
-rw-r--r-- | apps/codec_thread.h | 3 | ||||
-rw-r--r-- | apps/filetypes.h | 3 | ||||
-rw-r--r-- | apps/gui/statusbar.h | 1 | ||||
-rw-r--r-- | apps/gui/wps.h | 1 | ||||
-rw-r--r-- | apps/misc.h | 2 | ||||
-rw-r--r-- | apps/playlist.h | 1 | ||||
-rw-r--r-- | apps/radio/radio.h | 1 | ||||
-rw-r--r-- | apps/recorder/pcm_record.h | 4 | ||||
-rw-r--r-- | apps/settings.h | 2 | ||||
-rw-r--r-- | apps/tagcache.h | 1 | ||||
-rw-r--r-- | apps/tagtree.h | 1 | ||||
-rw-r--r-- | apps/tree.h | 1 | ||||
-rw-r--r-- | apps/voice_thread.h | 4 |
14 files changed, 21 insertions, 7 deletions
diff --git a/apps/buffering.h b/apps/buffering.h index ee3e7c9053..6d52794233 100644 --- a/apps/buffering.h +++ b/apps/buffering.h | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <sys/types.h> | 25 | #include <sys/types.h> |
26 | #include <stdbool.h> | 26 | #include <stdbool.h> |
27 | #include "config.h" | ||
27 | #include "appevents.h" | 28 | #include "appevents.h" |
28 | 29 | ||
29 | 30 | ||
@@ -47,7 +48,7 @@ enum data_type { | |||
47 | 48 | ||
48 | 49 | ||
49 | /* Initialise the buffering subsystem */ | 50 | /* Initialise the buffering subsystem */ |
50 | void buffering_init(void); | 51 | void buffering_init(void) INIT_ATTR; |
51 | 52 | ||
52 | /* Reset the buffering system */ | 53 | /* Reset the buffering system */ |
53 | bool buffering_reset(char *buf, size_t buflen); | 54 | bool buffering_reset(char *buf, size_t buflen); |
diff --git a/apps/codec_thread.h b/apps/codec_thread.h index 65f64c377e..c33284e141 100644 --- a/apps/codec_thread.h +++ b/apps/codec_thread.h | |||
@@ -23,12 +23,13 @@ | |||
23 | #define _CODEC_THREAD_H | 23 | #define _CODEC_THREAD_H |
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | ||
26 | 27 | ||
27 | /* codec identity */ | 28 | /* codec identity */ |
28 | const char *get_codec_filename(int cod_spec); | 29 | const char *get_codec_filename(int cod_spec); |
29 | 30 | ||
30 | /* codec thread */ | 31 | /* codec thread */ |
31 | void codec_thread_init(void); | 32 | void codec_thread_init(void) INIT_ATTR; |
32 | 33 | ||
33 | /* Audio MUST be stopped before requesting callback! */ | 34 | /* Audio MUST be stopped before requesting callback! */ |
34 | void codec_thread_do_callback(void (*fn)(void), | 35 | void codec_thread_do_callback(void (*fn)(void), |
diff --git a/apps/filetypes.h b/apps/filetypes.h index dd8993e262..8c9e9a5d93 100644 --- a/apps/filetypes.h +++ b/apps/filetypes.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define _FILEHANDLE_H_ | 22 | #define _FILEHANDLE_H_ |
23 | 23 | ||
24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
25 | #include "config.h" | ||
25 | #include <tree.h> | 26 | #include <tree.h> |
26 | 27 | ||
27 | /* using attribute bits not used by FAT (FAT uses lower 7) */ | 28 | /* using attribute bits not used by FAT (FAT uses lower 7) */ |
@@ -54,7 +55,7 @@ struct filetype { | |||
54 | enum themable_icons icon; | 55 | enum themable_icons icon; |
55 | int voiceclip; | 56 | int voiceclip; |
56 | }; | 57 | }; |
57 | void tree_get_filetypes(const struct filetype**, int*); | 58 | void tree_get_filetypes(const struct filetype**, int*) INIT_ATTR; |
58 | 59 | ||
59 | /* init the filetypes structs. | 60 | /* init the filetypes structs. |
60 | uses audio buffer for storage, so call early in init... */ | 61 | uses audio buffer for storage, so call early in init... */ |
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h index 281cf3f5b9..7ad07d0c78 100644 --- a/apps/gui/statusbar.h +++ b/apps/gui/statusbar.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #ifndef _GUI_STATUSBAR_H_ | 22 | #ifndef _GUI_STATUSBAR_H_ |
23 | #define _GUI_STATUSBAR_H_ | 23 | #define _GUI_STATUSBAR_H_ |
24 | 24 | ||
25 | #include "config.h" | ||
25 | #include "status.h" | 26 | #include "status.h" |
26 | #include "screen_access.h" | 27 | #include "screen_access.h" |
27 | #include "events.h" | 28 | #include "events.h" |
diff --git a/apps/gui/wps.h b/apps/gui/wps.h index f1ec74659f..a463b0e9bb 100644 --- a/apps/gui/wps.h +++ b/apps/gui/wps.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #ifndef _WPS_H_ | 21 | #ifndef _WPS_H_ |
22 | #define _WPS_H_ | 22 | #define _WPS_H_ |
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "config.h" | ||
24 | #include "screen_access.h" | 25 | #include "screen_access.h" |
25 | 26 | ||
26 | long gui_wps_show(void); | 27 | long gui_wps_show(void); |
diff --git a/apps/misc.h b/apps/misc.h index 4647898889..6305bcad62 100644 --- a/apps/misc.h +++ b/apps/misc.h | |||
@@ -63,7 +63,7 @@ bool settings_parseline(char* line, char** name, char** value); | |||
63 | long default_event_handler_ex(long event, void (*callback)(void *), void *parameter); | 63 | long default_event_handler_ex(long event, void (*callback)(void *), void *parameter); |
64 | long default_event_handler(long event); | 64 | long default_event_handler(long event); |
65 | bool list_stop_handler(void); | 65 | bool list_stop_handler(void); |
66 | void car_adapter_mode_init(void); | 66 | void car_adapter_mode_init(void) INIT_ATTR; |
67 | extern int show_logo(void); | 67 | extern int show_logo(void); |
68 | 68 | ||
69 | int open_utf8(const char* pathname, int flags); | 69 | int open_utf8(const char* pathname, int flags); |
diff --git a/apps/playlist.h b/apps/playlist.h index 4722be11c0..d19d9a792a 100644 --- a/apps/playlist.h +++ b/apps/playlist.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #define __PLAYLIST_H__ | 23 | #define __PLAYLIST_H__ |
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | ||
26 | #include "file.h" | 27 | #include "file.h" |
27 | #include "kernel.h" | 28 | #include "kernel.h" |
28 | #include "metadata.h" | 29 | #include "metadata.h" |
diff --git a/apps/radio/radio.h b/apps/radio/radio.h index d243cb67a5..8c4b394137 100644 --- a/apps/radio/radio.h +++ b/apps/radio/radio.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #ifndef RADIO_H | 21 | #ifndef RADIO_H |
22 | #define RADIO_H | 22 | #define RADIO_H |
23 | 23 | ||
24 | #include "config.h" | ||
24 | #ifndef FMRADIO_H | 25 | #ifndef FMRADIO_H |
25 | #include "fmradio.h" | 26 | #include "fmradio.h" |
26 | #endif | 27 | #endif |
diff --git a/apps/recorder/pcm_record.h b/apps/recorder/pcm_record.h index 3d9bb4c379..1ac6faefb2 100644 --- a/apps/recorder/pcm_record.h +++ b/apps/recorder/pcm_record.h | |||
@@ -22,6 +22,8 @@ | |||
22 | #ifndef PCM_RECORD_H | 22 | #ifndef PCM_RECORD_H |
23 | #define PCM_RECORD_H | 23 | #define PCM_RECORD_H |
24 | 24 | ||
25 | #include "config.h" | ||
26 | |||
25 | /** Warnings **/ | 27 | /** Warnings **/ |
26 | /* pcm (dma) buffer has overflowed */ | 28 | /* pcm (dma) buffer has overflowed */ |
27 | #define PCMREC_W_PCM_BUFFER_OVF 0x00000001 | 29 | #define PCMREC_W_PCM_BUFFER_OVF 0x00000001 |
@@ -49,7 +51,7 @@ void pcm_rec_error_clear(void); | |||
49 | results for consistency with the hardware codec version */ | 51 | results for consistency with the hardware codec version */ |
50 | unsigned long pcm_rec_status(void); | 52 | unsigned long pcm_rec_status(void); |
51 | unsigned long pcm_rec_get_warnings(void); | 53 | unsigned long pcm_rec_get_warnings(void); |
52 | void pcm_rec_init(void); | 54 | void pcm_rec_init(void) INIT_ATTR; |
53 | int pcm_rec_current_bitrate(void); | 55 | int pcm_rec_current_bitrate(void); |
54 | int pcm_rec_encoder_afmt(void); /* AFMT_* value, AFMT_UNKNOWN if none */ | 56 | int pcm_rec_encoder_afmt(void); /* AFMT_* value, AFMT_UNKNOWN if none */ |
55 | int pcm_rec_rec_format(void); /* Format index or -1 otherwise */ | 57 | int pcm_rec_rec_format(void); /* Format index or -1 otherwise */ |
diff --git a/apps/settings.h b/apps/settings.h index 2524dcc909..7047b93709 100644 --- a/apps/settings.h +++ b/apps/settings.h | |||
@@ -193,7 +193,7 @@ enum { ALARM_START_WPS = 0, | |||
193 | #define SETTINGS_RTC (BIT_N(0)) /* only the settings from the RTC nonvolatile RAM */ | 193 | #define SETTINGS_RTC (BIT_N(0)) /* only the settings from the RTC nonvolatile RAM */ |
194 | #define SETTINGS_HD (BIT_N(1)) /* only the settings from the disk sector */ | 194 | #define SETTINGS_HD (BIT_N(1)) /* only the settings from the disk sector */ |
195 | #define SETTINGS_ALL (SETTINGS_RTC|SETTINGS_HD) /* both */ | 195 | #define SETTINGS_ALL (SETTINGS_RTC|SETTINGS_HD) /* both */ |
196 | void settings_load(int which); | 196 | void settings_load(int which) INIT_ATTR; |
197 | bool settings_load_config(const char* file, bool apply); | 197 | bool settings_load_config(const char* file, bool apply); |
198 | 198 | ||
199 | void status_save(void); | 199 | void status_save(void); |
diff --git a/apps/tagcache.h b/apps/tagcache.h index 604e93bce9..44161cf22c 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #ifndef _TAGCACHE_H | 22 | #ifndef _TAGCACHE_H |
23 | #define _TAGCACHE_H | 23 | #define _TAGCACHE_H |
24 | 24 | ||
25 | #include "config.h" | ||
25 | #include "system.h" | 26 | #include "system.h" |
26 | #include "metadata.h" | 27 | #include "metadata.h" |
27 | 28 | ||
diff --git a/apps/tagtree.h b/apps/tagtree.h index 26952b40b7..8369020371 100644 --- a/apps/tagtree.h +++ b/apps/tagtree.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #ifndef _TAGTREE_H | 22 | #ifndef _TAGTREE_H |
23 | #define _TAGTREE_H | 23 | #define _TAGTREE_H |
24 | 24 | ||
25 | #include "config.h" | ||
25 | #include "tagcache.h" | 26 | #include "tagcache.h" |
26 | #include "tree.h" | 27 | #include "tree.h" |
27 | 28 | ||
diff --git a/apps/tree.h b/apps/tree.h index d3a128b87a..70494f8a88 100644 --- a/apps/tree.h +++ b/apps/tree.h | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
25 | #include <applimits.h> | 25 | #include <applimits.h> |
26 | #include <file.h> | 26 | #include <file.h> |
27 | #include "config.h" | ||
27 | #include "icon.h" | 28 | #include "icon.h" |
28 | 29 | ||
29 | /* keep this struct compatible (total size and name member) | 30 | /* keep this struct compatible (total size and name member) |
diff --git a/apps/voice_thread.h b/apps/voice_thread.h index 5f6547fb76..49b2f3f930 100644 --- a/apps/voice_thread.h +++ b/apps/voice_thread.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #ifndef VOICE_THREAD_H | 21 | #ifndef VOICE_THREAD_H |
22 | #define VOICE_THREAD_H | 22 | #define VOICE_THREAD_H |
23 | 23 | ||
24 | #include "config.h" | ||
25 | |||
24 | void mp3_play_data(const unsigned char* start, int size, | 26 | void mp3_play_data(const unsigned char* start, int size, |
25 | void (*get_more)(unsigned char** start, size_t* size)); | 27 | void (*get_more)(unsigned char** start, size_t* size)); |
26 | void mp3_play_stop(void); | 28 | void mp3_play_stop(void); |
@@ -30,7 +32,7 @@ bool mp3_is_playing(void); | |||
30 | void voice_wait(void); | 32 | void voice_wait(void); |
31 | void voice_stop(void); | 33 | void voice_stop(void); |
32 | 34 | ||
33 | void voice_thread_init(void); | 35 | void voice_thread_init(void) INIT_ATTR; |
34 | #ifdef HAVE_PRIORITY_SCHEDULING | 36 | #ifdef HAVE_PRIORITY_SCHEDULING |
35 | void voice_thread_set_priority(int priority); | 37 | void voice_thread_set_priority(int priority); |
36 | #endif | 38 | #endif |