diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 69a2a79ba8..157831bf19 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -44,6 +44,9 @@ | |||
44 | #include "mpeg.h" | 44 | #include "mpeg.h" |
45 | #include "audio.h" | 45 | #include "audio.h" |
46 | #include "mp3_playback.h" | 46 | #include "mp3_playback.h" |
47 | #ifdef RB_PROFILE | ||
48 | #include "profile.h" | ||
49 | #endif | ||
47 | #include "misc.h" | 50 | #include "misc.h" |
48 | #if (HWCODEC == SWCODEC) | 51 | #if (HWCODEC == SWCODEC) |
49 | #include "pcm_playback.h" | 52 | #include "pcm_playback.h" |
@@ -93,7 +96,7 @@ | |||
93 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 96 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
94 | 97 | ||
95 | /* increase this every time the api struct changes */ | 98 | /* increase this every time the api struct changes */ |
96 | #define PLUGIN_API_VERSION 1 | 99 | #define PLUGIN_API_VERSION 2 |
97 | 100 | ||
98 | /* update this to latest version if a change to the api struct breaks | 101 | /* update this to latest version if a change to the api struct breaks |
99 | backwards compatibility (and please take the opportunity to sort in any | 102 | backwards compatibility (and please take the opportunity to sort in any |
@@ -424,6 +427,12 @@ struct plugin_api { | |||
424 | 427 | ||
425 | /* new stuff at the end, sort into place next time | 428 | /* new stuff at the end, sort into place next time |
426 | the API gets incompatible */ | 429 | the API gets incompatible */ |
430 | #ifdef RB_PROFILE | ||
431 | void (*profile_thread)(void); | ||
432 | void (*profstop)(void); | ||
433 | void (*profile_func_enter)(void *this_fn, void *call_site); | ||
434 | void (*profile_func_exit)(void *this_fn, void *call_site); | ||
435 | #endif | ||
427 | 436 | ||
428 | }; | 437 | }; |
429 | 438 | ||