summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index bf71aa11e3..ae698c3432 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -101,6 +101,7 @@ static const struct plugin_api rockbox_api = {
101#else 101#else
102 lcd_putsxy, 102 lcd_putsxy,
103 lcd_puts_style, 103 lcd_puts_style,
104 lcd_puts_scroll_style,
104 lcd_bitmap, 105 lcd_bitmap,
105 lcd_drawline, 106 lcd_drawline,
106 lcd_clearline, 107 lcd_clearline,
@@ -125,6 +126,7 @@ static const struct plugin_api rockbox_api = {
125#endif 126#endif
126 backlight_on, 127 backlight_on,
127 backlight_off, 128 backlight_off,
129 backlight_set_timeout,
128 splash, 130 splash,
129 131
130 /* button */ 132 /* button */
@@ -156,15 +158,18 @@ static const struct plugin_api rockbox_api = {
156 PREFIX(closedir), 158 PREFIX(closedir),
157 PREFIX(readdir), 159 PREFIX(readdir),
158 160
159 /* kernel */ 161 /* kernel/ system */
160 PREFIX(sleep), 162 PREFIX(sleep),
161 yield, 163 yield,
162 usb_screen,
163 &current_tick, 164 &current_tick,
164 default_event_handler, 165 default_event_handler,
166 default_event_handler_ex,
165 create_thread, 167 create_thread,
166 remove_thread, 168 remove_thread,
167 reset_poweroff_timer, 169 reset_poweroff_timer,
170#ifndef SIMULATOR
171 system_memory_guard,
172#endif
168 173
169 /* strings and memory */ 174 /* strings and memory */
170 snprintf, 175 snprintf,
@@ -174,6 +179,7 @@ static const struct plugin_api rockbox_api = {
174 strrchr, 179 strrchr,
175 strcmp, 180 strcmp,
176 strcasecmp, 181 strcasecmp,
182 strncasecmp,
177 memset, 183 memset,
178 memcpy, 184 memcpy,
179#ifndef SIMULATOR 185#ifndef SIMULATOR
@@ -204,6 +210,12 @@ static const struct plugin_api rockbox_api = {
204 mpeg_status, 210 mpeg_status,
205 mpeg_has_changed_track, 211 mpeg_has_changed_track,
206 mpeg_current_track, 212 mpeg_current_track,
213 mpeg_flush_and_reload_tracks,
214 mpeg_get_file_pos,
215 mpeg_get_last_header,
216#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
217 mpeg_set_pitch,
218#endif
207 219
208 /* MAS communication */ 220 /* MAS communication */
209#ifndef SIMULATOR 221#ifndef SIMULATOR
@@ -235,34 +247,21 @@ static const struct plugin_api rockbox_api = {
235 debugf, 247 debugf,
236#endif 248#endif
237 &global_settings, 249 &global_settings,
238 backlight_set_timeout,
239 mp3info, 250 mp3info,
240 count_mp3_frames, 251 count_mp3_frames,
241 create_xing_header, 252 create_xing_header,
253 find_next_frame,
242 battery_level, 254 battery_level,
243 255 battery_level_safe,
244 /* new stuff at the end, sort into place next time
245 the API gets incompatible */
246
247#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 256#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
248 mpeg_set_pitch,
249
250 peak_meter_scale_value, 257 peak_meter_scale_value,
251 peak_meter_set_use_dbfs, 258 peak_meter_set_use_dbfs,
252 peak_meter_get_use_dbfs, 259 peak_meter_get_use_dbfs,
253#endif 260#endif
254#ifdef HAVE_LCD_BITMAP 261
255 lcd_puts_scroll_style, 262 /* new stuff at the end, sort into place next time
256#endif 263 the API gets incompatible */
257 mpeg_flush_and_reload_tracks, 264
258 strncasecmp,
259 mpeg_get_file_pos,
260 find_next_frame,
261 mpeg_get_last_header,
262#ifndef SIMULATOR
263 system_memory_guard,
264#endif
265 default_event_handler_ex,
266}; 265};
267 266
268int plugin_load(const char* plugin, void* parameter) 267int plugin_load(const char* plugin, void* parameter)