diff options
author | Dave Chapman <dave@dchapman.com> | 2005-06-18 19:19:12 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-06-18 19:19:12 +0000 |
commit | 33001cb4f00a52c0d8ea9ba695f7d310eefd9901 (patch) | |
tree | 2d2fec112c59904a81e9e6e69bd0eea4910a8ee2 /apps/plugin.h | |
parent | 961c9a3e4103e766f52ff1d7c2af2db6119c72ec (diff) | |
download | rockbox-33001cb4f00a52c0d8ea9ba695f7d310eefd9901.tar.gz rockbox-33001cb4f00a52c0d8ea9ba695f7d310eefd9901.zip |
Add logf to the plugin interface (use the LOGF macro)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6749 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 3990ffeed4..dbfdca516e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -60,6 +60,7 @@ | |||
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #ifdef PLUGIN | 62 | #ifdef PLUGIN |
63 | |||
63 | #if defined(DEBUG) || defined(SIMULATOR) | 64 | #if defined(DEBUG) || defined(SIMULATOR) |
64 | #undef DEBUGF | 65 | #undef DEBUGF |
65 | #define DEBUGF rb->debugf | 66 | #define DEBUGF rb->debugf |
@@ -69,6 +70,14 @@ | |||
69 | #define DEBUGF(...) | 70 | #define DEBUGF(...) |
70 | #define LDEBUGF(...) | 71 | #define LDEBUGF(...) |
71 | #endif | 72 | #endif |
73 | |||
74 | #ifdef ROCKBOX_HAS_LOGF | ||
75 | #undef LOGF | ||
76 | #define LOGF rb->logf | ||
77 | #else | ||
78 | #define LOGF(...) | ||
79 | #endif | ||
80 | |||
72 | #endif | 81 | #endif |
73 | 82 | ||
74 | #ifdef SIMULATOR | 83 | #ifdef SIMULATOR |
@@ -381,6 +390,9 @@ struct plugin_api { | |||
381 | /* new stuff at the end, sort into place next time | 390 | /* new stuff at the end, sort into place next time |
382 | the API gets incompatible */ | 391 | the API gets incompatible */ |
383 | 392 | ||
393 | #ifdef ROCKBOX_HAS_LOGF | ||
394 | void (*logf)(const char *fmt, ...); | ||
395 | #endif | ||
384 | }; | 396 | }; |
385 | 397 | ||
386 | /* defined by the plugin loader (plugin.c) */ | 398 | /* defined by the plugin loader (plugin.c) */ |