summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index c0e04a2068..e3c086ef5e 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -205,7 +205,7 @@ struct plugin_api {
205 void (*backlight_on)(void); 205 void (*backlight_on)(void);
206 void (*backlight_off)(void); 206 void (*backlight_off)(void);
207 void (*backlight_set_timeout)(int index); 207 void (*backlight_set_timeout)(int index);
208 void (*splash)(int ticks, const unsigned char *fmt, ...); 208 void (*splash)(int ticks, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3);
209 209
210#ifdef HAVE_REMOTE_LCD 210#ifdef HAVE_REMOTE_LCD
211 /* remote lcd */ 211 /* remote lcd */
@@ -296,7 +296,7 @@ struct plugin_api {
296 int (*PREFIX(rename))(const char* path, const char* newname); 296 int (*PREFIX(rename))(const char* path, const char* newname);
297 int (*PREFIX(ftruncate))(int fd, off_t length); 297 int (*PREFIX(ftruncate))(int fd, off_t length);
298 off_t (*PREFIX(filesize))(int fd); 298 off_t (*PREFIX(filesize))(int fd);
299 int (*fdprintf)(int fd, const char *fmt, ...); 299 int (*fdprintf)(int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3);
300 int (*read_line)(int fd, char* buffer, int buffer_size); 300 int (*read_line)(int fd, char* buffer, int buffer_size);
301 bool (*settings_parseline)(char* line, char** name, char** value); 301 bool (*settings_parseline)(char* line, char** name, char** value);
302#ifndef SIMULATOR 302#ifndef SIMULATOR
@@ -369,7 +369,8 @@ struct plugin_api {
369#endif 369#endif
370 370
371 /* strings and memory */ 371 /* strings and memory */
372 int (*snprintf)(char *buf, size_t size, const char *fmt, ...); 372 int (*snprintf)(char *buf, size_t size, const char *fmt, ...)
373 ATTRIBUTE_PRINTF(3, 4);
373 int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap); 374 int (*vsnprintf)(char *buf, int size, const char *fmt, va_list ap);
374 char* (*strcpy)(char *dst, const char *src); 375 char* (*strcpy)(char *dst, const char *src);
375 char* (*strncpy)(char *dst, const char *src, size_t length); 376 char* (*strncpy)(char *dst, const char *src, size_t length);
@@ -519,10 +520,10 @@ struct plugin_api {
519 void* (*plugin_get_audio_buffer)(int* buffer_size); 520 void* (*plugin_get_audio_buffer)(int* buffer_size);
520 void (*plugin_tsr)(bool (*exit_callback)(bool reenter)); 521 void (*plugin_tsr)(bool (*exit_callback)(bool reenter));
521#if defined(DEBUG) || defined(SIMULATOR) 522#if defined(DEBUG) || defined(SIMULATOR)
522 void (*debugf)(const char *fmt, ...); 523 void (*debugf)(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2);
523#endif 524#endif
524#ifdef ROCKBOX_HAS_LOGF 525#ifdef ROCKBOX_HAS_LOGF
525 void (*logf)(const char *fmt, ...); 526 void (*logf)(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2);
526#endif 527#endif
527 struct user_settings* global_settings; 528 struct user_settings* global_settings;
528 bool (*mp3info)(struct mp3entry *entry, const char *filename, bool v1first); 529 bool (*mp3info)(struct mp3entry *entry, const char *filename, bool v1first);