diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index bb74d73334..35b2105c17 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | #include <string.h> | 39 | #include <string.h> |
40 | 40 | ||
41 | char* strncpy(char *, const char *, size_t); | ||
41 | void* plugin_get_buffer(size_t *buffer_size); | 42 | void* plugin_get_buffer(size_t *buffer_size); |
42 | 43 | ||
43 | #ifndef __PCTOOL__ | 44 | #ifndef __PCTOOL__ |
@@ -128,12 +129,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
128 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 129 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
129 | 130 | ||
130 | /* increase this every time the api struct changes */ | 131 | /* increase this every time the api struct changes */ |
131 | #define PLUGIN_API_VERSION 160 | 132 | #define PLUGIN_API_VERSION 161 |
132 | 133 | ||
133 | /* update this to latest version if a change to the api struct breaks | 134 | /* update this to latest version if a change to the api struct breaks |
134 | backwards compatibility (and please take the opportunity to sort in any | 135 | backwards compatibility (and please take the opportunity to sort in any |
135 | new function which are "waiting" at the end of the function table) */ | 136 | new function which are "waiting" at the end of the function table) */ |
136 | #define PLUGIN_MIN_API_VERSION 160 | 137 | #define PLUGIN_MIN_API_VERSION 161 |
137 | 138 | ||
138 | /* plugin return codes */ | 139 | /* plugin return codes */ |
139 | enum plugin_status { | 140 | enum plugin_status { |
@@ -505,7 +506,7 @@ struct plugin_api { | |||
505 | ATTRIBUTE_PRINTF(3, 4); | 506 | ATTRIBUTE_PRINTF(3, 4); |
506 | int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap); | 507 | int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap); |
507 | char* (*strcpy)(char *dst, const char *src); | 508 | char* (*strcpy)(char *dst, const char *src); |
508 | char* (*strncpy)(char *dst, const char *src, size_t length); | 509 | size_t (*strlcpy)(char *dst, const char *src, size_t length); |
509 | size_t (*strlen)(const char *str); | 510 | size_t (*strlen)(const char *str); |
510 | char * (*strrchr)(const char *s, int c); | 511 | char * (*strrchr)(const char *s, int c); |
511 | int (*strcmp)(const char *, const char *); | 512 | int (*strcmp)(const char *, const char *); |