diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-20 17:11:23 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-20 17:11:23 +0000 |
| commit | 2da0f9bcfdf056255b298c0e61f0f4f0f950f869 (patch) | |
| tree | 4bb8e4de0f500f73b6e81ce347c0b36ab763e4bf /apps/plugin.h | |
| parent | 5f52f6ee01fdd060fab9b72736daf06b3dbda212 (diff) | |
| download | rockbox-2da0f9bcfdf056255b298c0e61f0f4f0f950f869.zip rockbox-2da0f9bcfdf056255b298c0e61f0f4f0f950f869.tar.gz rockbox-2da0f9bcfdf056255b298c0e61f0f4f0f950f869.tar.bz2 rockbox-2da0f9bcfdf056255b298c0e61f0f4f0f950f869.tar.xz | |
Fuze v2: Do button reading more efficiently by mapping button codes directly to the GPIO pin states where possible (all but 'home' and hold). This makes plugins incompatible; up the min version and sort things.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29097 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index cd53ac6..4b11ac3 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -149,12 +149,12 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 197 +#define PLUGIN_API_VERSION 198 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 196 +#define PLUGIN_MIN_API_VERSION 198 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -448,6 +448,9 @@ struct plugin_api { char* (*strip_extension)(char* buffer, int buffer_size, const char *filename); unsigned (*crc_32)(const void *src, unsigned len, unsigned crc32); + int (*filetype_get_attr)(const char* file); + + /* dir */ DIR* (*opendir)(const char* name); @@ -458,6 +461,13 @@ struct plugin_api { bool (*dir_exists)(const char *path); struct dirinfo (*dir_get_info)(DIR* parent, struct dirent *entry); + /* browsing */ + void (*browse_context_init)(struct browse_context *browse, + int dirfilter, unsigned flags, + char *title, enum themable_icons icon, + const char *root, const char *selected); + int (*rockbox_browse)(struct browse_context *browse); + /* kernel/ system */ #if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE void (*__div0)(void); @@ -901,12 +911,6 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ - int (*filetype_get_attr)(const char* file); - void (*browse_context_init)(struct browse_context *browse, - int dirfilter, unsigned flags, - char *title, enum themable_icons icon, - const char *root, const char *selected); - int (*rockbox_browse)(struct browse_context *browse); }; /* plugin header */ |