diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index f539c3ef3a..c67f49ebda 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -45,6 +45,16 @@ | |||
45 | #include "settings.h" | 45 | #include "settings.h" |
46 | #include "thread.h" | 46 | #include "thread.h" |
47 | 47 | ||
48 | #ifdef PLUGIN | ||
49 | #if defined(DEBUG) || defined(SIMULATOR) | ||
50 | #define DEBUGF rb->debugf | ||
51 | #define LDEBUGF rb->debugf | ||
52 | #else | ||
53 | #define DEBUGF(...) | ||
54 | #define LDEBUGF(...) | ||
55 | #endif | ||
56 | #endif | ||
57 | |||
48 | /* increase this every time the api struct changes */ | 58 | /* increase this every time the api struct changes */ |
49 | #define PLUGIN_API_VERSION 14 | 59 | #define PLUGIN_API_VERSION 14 |
50 | 60 | ||
@@ -235,6 +245,16 @@ struct plugin_api { | |||
235 | #ifdef HAVE_LCD_BITMAP | 245 | #ifdef HAVE_LCD_BITMAP |
236 | struct font* (*font_get)(int font); | 246 | struct font* (*font_get)(int font); |
237 | #endif | 247 | #endif |
248 | #if defined(DEBUG) || defined(SIMULATOR) | ||
249 | void (*debugf)(char *fmt, ...); | ||
250 | #endif | ||
251 | bool (*mp3info)(struct mp3entry *entry, char *filename) ; | ||
252 | int (*count_mp3_frames)(int fd, int startpos, int filesize, | ||
253 | void (*progressfunc)(int)); | ||
254 | int (*create_xing_header)(int fd, int startpos, int filesize, | ||
255 | unsigned char *buf, int num_frames, | ||
256 | unsigned long header_template, | ||
257 | void (*progressfunc)(int), bool generate_toc); | ||
238 | }; | 258 | }; |
239 | 259 | ||
240 | /* defined by the plugin loader (plugin.c) */ | 260 | /* defined by the plugin loader (plugin.c) */ |