summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c59
1 files changed, 29 insertions, 30 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index b4a3d5c5c0..90b64efa66 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -136,6 +136,7 @@ static const struct plugin_api rockbox_api = {
136 backlight_set_timeout, 136 backlight_set_timeout,
137 splash, 137 splash,
138#ifdef HAVE_REMOTE_LCD 138#ifdef HAVE_REMOTE_LCD
139 /* remote lcd */
139 lcd_remote_clear_display, 140 lcd_remote_clear_display,
140 lcd_remote_puts, 141 lcd_remote_puts,
141 lcd_remote_puts_scroll, 142 lcd_remote_puts_scroll,
@@ -158,9 +159,7 @@ static const struct plugin_api rockbox_api = {
158 lcd_remote_getstringsize, 159 lcd_remote_getstringsize,
159 lcd_remote_update, 160 lcd_remote_update,
160 lcd_remote_update_rect, 161 lcd_remote_update_rect,
161 //id (*scrollbar)(int x, int y, int width, int height, int items, 162
162 // int min_shown, int max_shown, int orientation);
163 //void (*remote_checkbox)(int x, int y, int width, int height, bool checked);
164 lcd_remote_backlight_on, 163 lcd_remote_backlight_on,
165 lcd_remote_backlight_off, 164 lcd_remote_backlight_off,
166 &lcd_remote_framebuffer[0][0], 165 &lcd_remote_framebuffer[0][0],
@@ -170,6 +169,9 @@ static const struct plugin_api rockbox_api = {
170 button_get_w_tmo, 169 button_get_w_tmo,
171 button_status, 170 button_status,
172 button_clear_queue, 171 button_clear_queue,
172#if CONFIG_KEYPAD == IRIVER_H100_PAD
173 button_hold,
174#endif
173 175
174 /* file */ 176 /* file */
175 (open_func)PREFIX(open), 177 (open_func)PREFIX(open),
@@ -193,6 +195,7 @@ static const struct plugin_api rockbox_api = {
193 PREFIX(opendir), 195 PREFIX(opendir),
194 PREFIX(closedir), 196 PREFIX(closedir),
195 PREFIX(readdir), 197 PREFIX(readdir),
198 PREFIX(mkdir),
196 199
197 /* kernel/ system */ 200 /* kernel/ system */
198 PREFIX(sleep), 201 PREFIX(sleep),
@@ -205,6 +208,10 @@ static const struct plugin_api rockbox_api = {
205 reset_poweroff_timer, 208 reset_poweroff_timer,
206#ifndef SIMULATOR 209#ifndef SIMULATOR
207 system_memory_guard, 210 system_memory_guard,
211 &cpu_frequency,
212#ifdef HAVE_ADJUSTABLE_CPU_FREQ
213 cpu_boost,
214#endif
208#endif 215#endif
209 216
210 /* strings and memory */ 217 /* strings and memory */
@@ -223,6 +230,7 @@ static const struct plugin_api rockbox_api = {
223 strchr, 230 strchr,
224 strcat, 231 strcat,
225 memcmp, 232 memcmp,
233 strcasestr,
226 234
227 /* sound */ 235 /* sound */
228 sound_set, 236 sound_set,
@@ -234,8 +242,15 @@ static const struct plugin_api rockbox_api = {
234#if CONFIG_HWCODEC != MASNONE 242#if CONFIG_HWCODEC != MASNONE
235 bitswap, 243 bitswap,
236#endif 244#endif
245#if CONFIG_HWCODEC == MASNONE
246 pcm_play_data,
247 pcm_play_stop,
248 pcm_set_frequency,
249 pcm_is_playing,
250 pcm_play_pause,
251#endif
237#endif 252#endif
238 253
239 /* playback control */ 254 /* playback control */
240 PREFIX(audio_play), 255 PREFIX(audio_play),
241 audio_stop, 256 audio_stop,
@@ -270,6 +285,12 @@ static const struct plugin_api rockbox_api = {
270#endif 285#endif
271#endif /* !simulator and HWCODEC != MASNONE */ 286#endif /* !simulator and HWCODEC != MASNONE */
272 287
288 /* tag database */
289 &tagdbheader,
290 &tagdb_fd,
291 &tagdb_initialized,
292 tagdb_init,
293
273 /* misc */ 294 /* misc */
274 srand, 295 srand,
275 rand, 296 rand,
@@ -299,35 +320,13 @@ static const struct plugin_api rockbox_api = {
299 peak_meter_set_use_dbfs, 320 peak_meter_set_use_dbfs,
300 peak_meter_get_use_dbfs, 321 peak_meter_get_use_dbfs,
301#endif 322#endif
302
303 /* new stuff at the end, sort into place next time
304 the API gets incompatible */
305#ifndef SIMULATOR
306 &cpu_frequency,
307#ifdef HAVE_ADJUSTABLE_CPU_FREQ
308 cpu_boost,
309#endif
310#endif
311 PREFIX(mkdir),
312#if CONFIG_KEYPAD == IRIVER_H100_PAD
313 button_hold,
314#endif
315#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR)
316 pcm_play_data,
317 pcm_play_stop,
318 pcm_set_frequency,
319 pcm_is_playing,
320 pcm_set_volume,
321 pcm_play_pause,
322#endif
323#ifdef HAVE_LCD_BITMAP 323#ifdef HAVE_LCD_BITMAP
324 read_bmp_file, 324 read_bmp_file,
325#endif 325#endif
326 &tagdbheader, 326
327 &tagdb_fd, 327 /* new stuff at the end, sort into place next time
328 &tagdb_initialized, 328 the API gets incompatible */
329 tagdb_init, 329
330 strcasestr,
331}; 330};
332 331
333#if CONFIG_HWCODEC == MASNONE 332#if CONFIG_HWCODEC == MASNONE