summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index cd53ac6574..4b11ac31e9 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -149,12 +149,12 @@ void* plugin_get_buffer(size_t *buffer_size);
149#define PLUGIN_MAGIC 0x526F634B /* RocK */ 149#define PLUGIN_MAGIC 0x526F634B /* RocK */
150 150
151/* increase this every time the api struct changes */ 151/* increase this every time the api struct changes */
152#define PLUGIN_API_VERSION 197 152#define PLUGIN_API_VERSION 198
153 153
154/* update this to latest version if a change to the api struct breaks 154/* update this to latest version if a change to the api struct breaks
155 backwards compatibility (and please take the opportunity to sort in any 155 backwards compatibility (and please take the opportunity to sort in any
156 new function which are "waiting" at the end of the function table) */ 156 new function which are "waiting" at the end of the function table) */
157#define PLUGIN_MIN_API_VERSION 196 157#define PLUGIN_MIN_API_VERSION 198
158 158
159/* plugin return codes */ 159/* plugin return codes */
160/* internal returns start at 0x100 to make exit(1..255) work */ 160/* internal returns start at 0x100 to make exit(1..255) work */
@@ -448,6 +448,9 @@ struct plugin_api {
448 char* (*strip_extension)(char* buffer, int buffer_size, const char *filename); 448 char* (*strip_extension)(char* buffer, int buffer_size, const char *filename);
449 unsigned (*crc_32)(const void *src, unsigned len, unsigned crc32); 449 unsigned (*crc_32)(const void *src, unsigned len, unsigned crc32);
450 450
451 int (*filetype_get_attr)(const char* file);
452
453
451 454
452 /* dir */ 455 /* dir */
453 DIR* (*opendir)(const char* name); 456 DIR* (*opendir)(const char* name);
@@ -458,6 +461,13 @@ struct plugin_api {
458 bool (*dir_exists)(const char *path); 461 bool (*dir_exists)(const char *path);
459 struct dirinfo (*dir_get_info)(DIR* parent, struct dirent *entry); 462 struct dirinfo (*dir_get_info)(DIR* parent, struct dirent *entry);
460 463
464 /* browsing */
465 void (*browse_context_init)(struct browse_context *browse,
466 int dirfilter, unsigned flags,
467 char *title, enum themable_icons icon,
468 const char *root, const char *selected);
469 int (*rockbox_browse)(struct browse_context *browse);
470
461 /* kernel/ system */ 471 /* kernel/ system */
462#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE 472#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
463 void (*__div0)(void); 473 void (*__div0)(void);
@@ -901,12 +911,6 @@ struct plugin_api {
901 911
902 /* new stuff at the end, sort into place next time 912 /* new stuff at the end, sort into place next time
903 the API gets incompatible */ 913 the API gets incompatible */
904 int (*filetype_get_attr)(const char* file);
905 void (*browse_context_init)(struct browse_context *browse,
906 int dirfilter, unsigned flags,
907 char *title, enum themable_icons icon,
908 const char *root, const char *selected);
909 int (*rockbox_browse)(struct browse_context *browse);
910}; 914};
911 915
912/* plugin header */ 916/* plugin header */