diff options
Diffstat (limited to 'apps/codecs.h')
-rw-r--r-- | apps/codecs.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index dca655da2f..527c59ac9c 100644 --- a/apps/codecs.h +++ b/apps/codecs.h | |||
@@ -44,7 +44,6 @@ | |||
44 | #endif | 44 | #endif |
45 | #include "dsp.h" | 45 | #include "dsp.h" |
46 | #endif | 46 | #endif |
47 | #include "settings.h" | ||
48 | 47 | ||
49 | #include "gcc_extensions.h" | 48 | #include "gcc_extensions.h" |
50 | #include "load_code.h" | 49 | #include "load_code.h" |
@@ -75,12 +74,12 @@ | |||
75 | #define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ | 74 | #define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ |
76 | 75 | ||
77 | /* increase this every time the api struct changes */ | 76 | /* increase this every time the api struct changes */ |
78 | #define CODEC_API_VERSION 42 | 77 | #define CODEC_API_VERSION 43 |
79 | 78 | ||
80 | /* update this to latest version if a change to the api struct breaks | 79 | /* update this to latest version if a change to the api struct breaks |
81 | backwards compatibility (and please take the opportunity to sort in any | 80 | backwards compatibility (and please take the opportunity to sort in any |
82 | new function which are "waiting" at the end of the function table) */ | 81 | new function which are "waiting" at the end of the function table) */ |
83 | #define CODEC_MIN_API_VERSION 42 | 82 | #define CODEC_MIN_API_VERSION 43 |
84 | 83 | ||
85 | /* reasons for calling codec main entrypoint */ | 84 | /* reasons for calling codec main entrypoint */ |
86 | enum codec_entry_call_reason { | 85 | enum codec_entry_call_reason { |
@@ -145,6 +144,8 @@ struct codec_api { | |||
145 | void (*configure)(int setting, intptr_t value); | 144 | void (*configure)(int setting, intptr_t value); |
146 | /* Obtain command action on what to do next */ | 145 | /* Obtain command action on what to do next */ |
147 | enum codec_command_action (*get_command)(intptr_t *param); | 146 | enum codec_command_action (*get_command)(intptr_t *param); |
147 | /* Determine whether the track should be looped, if applicable. */ | ||
148 | bool (*loop_track)(void); | ||
148 | 149 | ||
149 | /* kernel/ system */ | 150 | /* kernel/ system */ |
150 | #if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE | 151 | #if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE |
@@ -180,7 +181,6 @@ struct codec_api { | |||
180 | void* (*memmove)(void *out, const void *in, size_t n); | 181 | void* (*memmove)(void *out, const void *in, size_t n); |
181 | int (*memcmp)(const void *s1, const void *s2, size_t n); | 182 | int (*memcmp)(const void *s1, const void *s2, size_t n); |
182 | void *(*memchr)(const void *s1, int c, size_t n); | 183 | void *(*memchr)(const void *s1, int c, size_t n); |
183 | char *(*strcasestr) (const char* phaystack, const char* pneedle); | ||
184 | 184 | ||
185 | #if defined(DEBUG) || defined(SIMULATOR) | 185 | #if defined(DEBUG) || defined(SIMULATOR) |
186 | void (*debugf)(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2); | 186 | void (*debugf)(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2); |
@@ -193,9 +193,6 @@ struct codec_api { | |||
193 | void (*qsort)(void *base, size_t nmemb, size_t size, | 193 | void (*qsort)(void *base, size_t nmemb, size_t size, |
194 | int(*compar)(const void *, const void *)); | 194 | int(*compar)(const void *, const void *)); |
195 | 195 | ||
196 | /* The ADX codec accesses global_settings to test for REPEAT_ONE mode */ | ||
197 | struct user_settings* global_settings; | ||
198 | |||
199 | #ifdef RB_PROFILE | 196 | #ifdef RB_PROFILE |
200 | void (*profile_thread)(void); | 197 | void (*profile_thread)(void); |
201 | void (*profstop)(void); | 198 | void (*profstop)(void); |