summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c52
1 files changed, 25 insertions, 27 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index e5a496c567..dc7351de5a 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -124,6 +124,7 @@ static const struct plugin_api rockbox_api = {
124#endif 124#endif
125 backlight_on, 125 backlight_on,
126 backlight_off, 126 backlight_off,
127 splash,
127 128
128 /* button */ 129 /* button */
129 button_get, 130 button_get,
@@ -145,6 +146,9 @@ static const struct plugin_api rockbox_api = {
145 fprintf, 146 fprintf,
146 read_line, 147 read_line,
147 settings_parseline, 148 settings_parseline,
149#ifndef SIMULATOR
150 ata_sleep,
151#endif
148 152
149 /* dir */ 153 /* dir */
150 PREFIX(opendir), 154 PREFIX(opendir),
@@ -159,6 +163,7 @@ static const struct plugin_api rockbox_api = {
159 default_event_handler, 163 default_event_handler,
160 create_thread, 164 create_thread,
161 remove_thread, 165 remove_thread,
166 reset_poweroff_timer,
162 167
163 /* strings and memory */ 168 /* strings and memory */
164 snprintf, 169 snprintf,
@@ -173,6 +178,7 @@ static const struct plugin_api rockbox_api = {
173#ifndef SIMULATOR 178#ifndef SIMULATOR
174 _ctype_, 179 _ctype_,
175#endif 180#endif
181 atoi,
176 182
177 /* sound */ 183 /* sound */
178 mpeg_sound_set, 184 mpeg_sound_set,
@@ -182,9 +188,6 @@ static const struct plugin_api rockbox_api = {
182 mp3_play_stop, 188 mp3_play_stop,
183 mp3_is_playing, 189 mp3_is_playing,
184 bitswap, 190 bitswap,
185#ifdef HAVE_MAS3587F
186 mas_codec_readreg,
187#endif
188#endif 191#endif
189 192
190 /* playback control */ 193 /* playback control */
@@ -199,16 +202,27 @@ static const struct plugin_api rockbox_api = {
199 playlist_amount, 202 playlist_amount,
200 mpeg_status, 203 mpeg_status,
201 mpeg_has_changed_track, 204 mpeg_has_changed_track,
205 mpeg_current_track,
206
207 /* MAS communication */
208#ifndef SIMULATOR
209 mas_readmem,
210 mas_writemem,
211 mas_readreg,
212 mas_writereg,
213#ifdef HAVE_MAS3587F
214 mas_codec_writereg,
215 mas_codec_readreg,
216#endif
217#endif
202 218
203 /* misc */ 219 /* misc */
204 srand, 220 srand,
205 rand, 221 rand,
206 splash,
207 (qsort_func)qsort, 222 (qsort_func)qsort,
208 kbd_input, 223 kbd_input,
209 mpeg_current_track,
210 atoi,
211 get_time, 224 get_time,
225 set_time,
212 plugin_get_buffer, 226 plugin_get_buffer,
213 plugin_get_mp3_buffer, 227 plugin_get_mp3_buffer,
214#ifndef SIMULATOR 228#ifndef SIMULATOR
@@ -216,34 +230,18 @@ static const struct plugin_api rockbox_api = {
216 plugin_unregister_timer, 230 plugin_unregister_timer,
217#endif 231#endif
218 plugin_tsr, 232 plugin_tsr,
219
220 /* new stuff at the end, sort into place next time the API gets incompatible */
221
222
223 &global_settings,
224 backlight_set_timeout,
225#ifndef SIMULATOR
226 ata_sleep,
227#endif
228#if defined(DEBUG) || defined(SIMULATOR) 233#if defined(DEBUG) || defined(SIMULATOR)
229 debugf, 234 debugf,
230#endif 235#endif
236 &global_settings,
237 backlight_set_timeout,
231 mp3info, 238 mp3info,
232 count_mp3_frames, 239 count_mp3_frames,
233 create_xing_header, 240 create_xing_header,
234
235#ifndef SIMULATOR
236 mas_readmem,
237 mas_writemem,
238 mas_readreg,
239 mas_writereg,
240#ifdef HAVE_MAS3587F
241 mas_codec_writereg,
242#endif
243#endif
244 battery_level, 241 battery_level,
245 set_time, 242
246 reset_poweroff_timer, 243 /* new stuff at the end, sort into place next time
244 the API gets incompatible */
247 245
248}; 246};
249 247