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, 9 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 4db3f1e33f..a2182d6f9b 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -50,9 +50,11 @@
50#include "profile.h" 50#include "profile.h"
51#endif 51#endif
52#include "misc.h" 52#include "misc.h"
53#if (HWCODEC == SWCODEC) 53#if (CONFIG_CODEC == SWCODEC)
54#include "pcm_playback.h" 54#include "pcm_playback.h"
55#include "dsp.h" 55#include "dsp.h"
56#else
57#include "mas.h"
56#endif 58#endif
57#include "settings.h" 59#include "settings.h"
58#include "timer.h" 60#include "timer.h"
@@ -99,7 +101,7 @@
99#define PLUGIN_MAGIC 0x526F634B /* RocK */ 101#define PLUGIN_MAGIC 0x526F634B /* RocK */
100 102
101/* increase this every time the api struct changes */ 103/* increase this every time the api struct changes */
102#define PLUGIN_API_VERSION 15 104#define PLUGIN_API_VERSION 16
103 105
104/* update this to latest version if a change to the api struct breaks 106/* update this to latest version if a change to the api struct breaks
105 backwards compatibility (and please take the opportunity to sort in any 107 backwards compatibility (and please take the opportunity to sort in any
@@ -472,7 +474,11 @@ struct plugin_api {
472 the API gets incompatible */ 474 the API gets incompatible */
473 bool (*set_sound)(const unsigned char * string, 475 bool (*set_sound)(const unsigned char * string,
474 int* variable, int setting); 476 int* variable, int setting);
475 477#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR)
478 void (*i2c_begin)(void);
479 void (*i2c_end)(void);
480 int (*i2c_write)(int address, unsigned char* buf, int count );
481#endif
476}; 482};
477 483
478/* plugin header */ 484/* plugin header */