diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index aa4db39d0b..c0ae6c69d1 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -52,6 +52,7 @@ | |||
52 | #include "misc.h" | 52 | #include "misc.h" |
53 | #if (HWCODEC == SWCODEC) | 53 | #if (HWCODEC == SWCODEC) |
54 | #include "pcm_playback.h" | 54 | #include "pcm_playback.h" |
55 | #include "dsp.h" | ||
55 | #endif | 56 | #endif |
56 | #include "settings.h" | 57 | #include "settings.h" |
57 | #include "timer.h" | 58 | #include "timer.h" |
@@ -98,12 +99,12 @@ | |||
98 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 99 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
99 | 100 | ||
100 | /* increase this every time the api struct changes */ | 101 | /* increase this every time the api struct changes */ |
101 | #define PLUGIN_API_VERSION 9 | 102 | #define PLUGIN_API_VERSION 10 |
102 | 103 | ||
103 | /* update this to latest version if a change to the api struct breaks | 104 | /* update this to latest version if a change to the api struct breaks |
104 | backwards compatibility (and please take the opportunity to sort in any | 105 | backwards compatibility (and please take the opportunity to sort in any |
105 | new function which are "waiting" at the end of the function table) */ | 106 | new function which are "waiting" at the end of the function table) */ |
106 | #define PLUGIN_MIN_API_VERSION 7 | 107 | #define PLUGIN_MIN_API_VERSION 8 |
107 | 108 | ||
108 | /* plugin return codes */ | 109 | /* plugin return codes */ |
109 | enum plugin_status { | 110 | enum plugin_status { |
@@ -167,7 +168,7 @@ struct plugin_api { | |||
167 | void (*lcd_bitmap_transparent_part)(const fb_data *src, | 168 | void (*lcd_bitmap_transparent_part)(const fb_data *src, |
168 | int src_x, int src_y, int stride, | 169 | int src_x, int src_y, int stride, |
169 | int x, int y, int width, int height); | 170 | int x, int y, int width, int height); |
170 | void (*lcd_bitmap_transparent)(const fb_data *src, int x, int y, | 171 | void (*lcd_bitmap_transparent)(const fb_data *src, int x, int y, |
171 | int width, int height); | 172 | int width, int height); |
172 | #endif | 173 | #endif |
173 | void (*lcd_putsxy)(int x, int y, const unsigned char *string); | 174 | void (*lcd_putsxy)(int x, int y, const unsigned char *string); |
@@ -364,9 +365,8 @@ struct plugin_api { | |||
364 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | 365 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
365 | unsigned long (*mpeg_get_last_header)(void); | 366 | unsigned long (*mpeg_get_last_header)(void); |
366 | #endif | 367 | #endif |
367 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | 368 | |
368 | void (*sound_set_pitch)(int pitch); | 369 | void (*sound_set_pitch)(int pitch); |
369 | #endif | ||
370 | 370 | ||
371 | /* MAS communication */ | 371 | /* MAS communication */ |
372 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | 372 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) |
@@ -418,7 +418,7 @@ struct plugin_api { | |||
418 | bool (*charger_inserted)(void); | 418 | bool (*charger_inserted)(void); |
419 | # ifdef HAVE_CHARGE_STATE | 419 | # ifdef HAVE_CHARGE_STATE |
420 | bool (*charging_state)(void); | 420 | bool (*charging_state)(void); |
421 | # endif | 421 | # endif |
422 | #endif | 422 | #endif |
423 | #ifdef HAVE_USB_POWER | 423 | #ifdef HAVE_USB_POWER |
424 | bool (*usb_powered)(void); | 424 | bool (*usb_powered)(void); |
@@ -465,15 +465,19 @@ struct plugin_api { | |||
465 | #endif | 465 | #endif |
466 | int (*show_logo)(void); | 466 | int (*show_logo)(void); |
467 | 467 | ||
468 | /* new stuff at the end, sort into place next time | ||
469 | the API gets incompatible */ | ||
470 | |||
471 | struct tree_context* (*tree_get_context)(void); | 468 | struct tree_context* (*tree_get_context)(void); |
472 | #if defined(SIMULATOR) && defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8 | 469 | #if defined(SIMULATOR) && defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8 |
473 | void (*sim_lcd_ex_init)(int shades, unsigned long (*getpixel)(int, int)); | 470 | void (*sim_lcd_ex_init)(int shades, unsigned long (*getpixel)(int, int)); |
474 | void (*sim_lcd_ex_update_rect)(int x, int y, int width, int height); | 471 | void (*sim_lcd_ex_update_rect)(int x, int y, int width, int height); |
475 | #endif | 472 | #endif |
476 | 473 | ||
474 | #if (CONFIG_CODEC == SWCODEC) | ||
475 | void (*pcm_calculate_peaks)(int *left, int *right); | ||
476 | #endif | ||
477 | |||
478 | /* new stuff at the end, sort into place next time | ||
479 | the API gets incompatible */ | ||
480 | |||
477 | }; | 481 | }; |
478 | 482 | ||
479 | /* plugin header */ | 483 | /* plugin header */ |