summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h12
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) */