diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:09:41 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:09:41 +0000 |
| commit | 2287dd9daaf62e8624755c41f2a0571c5b9d3357 (patch) | |
| tree | 4cc9346e7430a667cb8521b8d2ee285470efff73 /apps/plugin.h | |
| parent | 3b75c86d74937a6bffcb371bb08bdfb182db9d2b (diff) | |
| download | rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.zip rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.gz rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.bz2 rockbox-2287dd9daaf62e8624755c41f2a0571c5b9d3357.tar.xz | |
Remove find_albumart() from the plugin API as it doesn't exist for them.
Remove lcd_set_viewport() too, and replace the calls with the appropriate multi-screen api calls as calling lcd_* functions should be avoided in favor of the api.
Bump API version and sort a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22140 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index d2130f4..9413a38 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -133,12 +133,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 165 +#define PLUGIN_API_VERSION 166 /* 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 164 +#define PLUGIN_MIN_API_VERSION 166 /* plugin return codes */ enum plugin_status { @@ -491,6 +491,9 @@ struct plugin_api { #endif /* CONFIG_CODEC == SWCODEC */ void (*usb_acknowledge)(long id); +#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) + void (*usb_hid_send)(usage_page_t usage_page, int id); +#endif #ifdef RB_PROFILE void (*profile_thread)(void); void (*profstop)(void); @@ -818,7 +821,6 @@ struct plugin_api { #endif #ifdef HAVE_ALBUMART - bool (*find_albumart)(const struct mp3entry *id3, char *buf, int buflen); bool (*search_albumart_files)(const struct mp3entry *id3, const char *size_string, char *buf, int buflen); #endif @@ -832,12 +834,6 @@ struct plugin_api { const char *appsversion; /* new stuff at the end, sort into place next time the API gets incompatible */ - -#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) - void (*usb_hid_send)(usage_page_t usage_page, int id); -#endif - - void (*lcd_set_viewport)(struct viewport* vp); }; /* plugin header */ |