diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 5 | ||||
-rw-r--r-- | apps/plugin.h | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index e4c95cd337..a3c868514b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include "mp3data.h" | 44 | #include "mp3data.h" |
45 | #include "powermgmt.h" | 45 | #include "powermgmt.h" |
46 | #include "system.h" | 46 | #include "system.h" |
47 | #include "pcm_playback.h" | ||
47 | 48 | ||
48 | #ifdef HAVE_LCD_BITMAP | 49 | #ifdef HAVE_LCD_BITMAP |
49 | #include "peakmeter.h" | 50 | #include "peakmeter.h" |
@@ -268,7 +269,9 @@ static const struct plugin_api rockbox_api = { | |||
268 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 269 | #if CONFIG_KEYPAD == IRIVER_H100_PAD |
269 | button_hold, | 270 | button_hold, |
270 | #endif | 271 | #endif |
271 | 272 | pcm_play_data, | |
273 | pcm_play_stop, | ||
274 | pcm_is_playing, | ||
272 | }; | 275 | }; |
273 | 276 | ||
274 | int plugin_load(const char* plugin, void* parameter) | 277 | int plugin_load(const char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index 1cdbd61d65..496a69a01e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -69,7 +69,7 @@ | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* increase this every time the api struct changes */ | 71 | /* increase this every time the api struct changes */ |
72 | #define PLUGIN_API_VERSION 36 | 72 | #define PLUGIN_API_VERSION 37 |
73 | 73 | ||
74 | /* update this to latest version if a change to the api struct breaks | 74 | /* update this to latest version if a change to the api struct breaks |
75 | backwards compatibility (and please take the opportunity to sort in any | 75 | backwards compatibility (and please take the opportunity to sort in any |
@@ -317,6 +317,10 @@ struct plugin_api { | |||
317 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 317 | #if CONFIG_KEYPAD == IRIVER_H100_PAD |
318 | bool (*button_hold)(void); | 318 | bool (*button_hold)(void); |
319 | #endif | 319 | #endif |
320 | void (*pcm_play_data)(const unsigned char *start, int size, | ||
321 | void (*get_more)(unsigned char** start, long*size)); | ||
322 | void (*pcm_play_stop)(void); | ||
323 | bool (*pcm_is_playing)(void); | ||
320 | }; | 324 | }; |
321 | 325 | ||
322 | /* defined by the plugin loader (plugin.c) */ | 326 | /* defined by the plugin loader (plugin.c) */ |