From a6142ab7ab58f69a3f1a034db4bdf1eff24d3dd6 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 10 Jun 2004 13:29:52 +0000 Subject: Finally, the archos directory sandbox works in the same way for both X11 and win32 simulators. Unfortunately, this breaks the VC++ compatibility. Also, the plugin API now supports DEBUGF. Last, but not least, we have a new plugin, vbrfix.rock. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4726 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index f539c3e..c67f49e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -45,6 +45,16 @@ #include "settings.h" #include "thread.h" +#ifdef PLUGIN +#if defined(DEBUG) || defined(SIMULATOR) +#define DEBUGF rb->debugf +#define LDEBUGF rb->debugf +#else +#define DEBUGF(...) +#define LDEBUGF(...) +#endif +#endif + /* increase this every time the api struct changes */ #define PLUGIN_API_VERSION 14 @@ -235,6 +245,16 @@ struct plugin_api { #ifdef HAVE_LCD_BITMAP struct font* (*font_get)(int font); #endif +#if defined(DEBUG) || defined(SIMULATOR) + void (*debugf)(char *fmt, ...); +#endif + bool (*mp3info)(struct mp3entry *entry, char *filename) ; + int (*count_mp3_frames)(int fd, int startpos, int filesize, + void (*progressfunc)(int)); + int (*create_xing_header)(int fd, int startpos, int filesize, + unsigned char *buf, int num_frames, + unsigned long header_template, + void (*progressfunc)(int), bool generate_toc); }; /* defined by the plugin loader (plugin.c) */ -- cgit v1.1