summaryrefslogtreecommitdiff
path: root/apps/codecs.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs.h')
-rw-r--r--apps/codecs.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index 320431f3bf..70799f790e 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -43,6 +43,9 @@
43#include "mpeg.h" 43#include "mpeg.h"
44#include "audio.h" 44#include "audio.h"
45#include "mp3_playback.h" 45#include "mp3_playback.h"
46#ifdef RB_PROFILE
47#include "profile.h"
48#endif
46#if (CONFIG_CODEC == SWCODEC) 49#if (CONFIG_CODEC == SWCODEC)
47#include "dsp.h" 50#include "dsp.h"
48#include "pcm_playback.h" 51#include "pcm_playback.h"
@@ -83,7 +86,7 @@
83#define CODEC_MAGIC 0x52434F44 /* RCOD */ 86#define CODEC_MAGIC 0x52434F44 /* RCOD */
84 87
85/* increase this every time the api struct changes */ 88/* increase this every time the api struct changes */
86#define CODEC_API_VERSION 1 89#define CODEC_API_VERSION 2
87 90
88/* update this to latest version if a change to the api struct breaks 91/* update this to latest version if a change to the api struct breaks
89 backwards compatibility (and please take the opportunity to sort in any 92 backwards compatibility (and please take the opportunity to sort in any
@@ -289,6 +292,12 @@ struct codec_api {
289 292
290 /* new stuff at the end, sort into place next time 293 /* new stuff at the end, sort into place next time
291 the API gets incompatible */ 294 the API gets incompatible */
295#ifdef RB_PROFILE
296 void (*profile_thread)(void);
297 void (*profstop)(void);
298 void (*profile_func_enter)(void *this_fn, void *call_site);
299 void (*profile_func_exit)(void *this_fn, void *call_site);
300#endif
292 301
293}; 302};
294 303