summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-03-28 15:44:01 +0000
committerDave Chapman <dave@dchapman.com>2006-03-28 15:44:01 +0000
commit47f4a458d636a889e955e68f896708f1276febc0 (patch)
tree99f770c02ef606f0abbdcd332ac39e69830d8007 /apps/plugin.h
parentfff7d6157d56f233cad5c2003475e47a5ff809a7 (diff)
downloadrockbox-47f4a458d636a889e955e68f896708f1276febc0.tar.gz
rockbox-47f4a458d636a889e955e68f896708f1276febc0.zip
Patch #2969 - Doom! Currently only working on the H300.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9312 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index a2182d6f9b..f9cca6ffc3 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -29,6 +29,7 @@
29#define MEM 2 29#define MEM 2
30#endif 30#endif
31 31
32#include <stdarg.h>
32#include <stdbool.h> 33#include <stdbool.h>
33#include <stdio.h> 34#include <stdio.h>
34#include <stdlib.h> 35#include <stdlib.h>
@@ -101,7 +102,7 @@
101#define PLUGIN_MAGIC 0x526F634B /* RocK */ 102#define PLUGIN_MAGIC 0x526F634B /* RocK */
102 103
103/* increase this every time the api struct changes */ 104/* increase this every time the api struct changes */
104#define PLUGIN_API_VERSION 16 105#define PLUGIN_API_VERSION 17
105 106
106/* update this to latest version if a change to the api struct breaks 107/* update this to latest version if a change to the api struct breaks
107 backwards compatibility (and please take the opportunity to sort in any 108 backwards compatibility (and please take the opportunity to sort in any
@@ -479,6 +480,10 @@ struct plugin_api {
479 void (*i2c_end)(void); 480 void (*i2c_end)(void);
480 int (*i2c_write)(int address, unsigned char* buf, int count ); 481 int (*i2c_write)(int address, unsigned char* buf, int count );
481#endif 482#endif
483
484 int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap);
485 void *(*memchr)(const void *s1, int c, size_t n);
486 bool (*load_main_backdrop)(char* filename);
482}; 487};
483 488
484/* plugin header */ 489/* plugin header */