summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index e2a821bb57..62d8371e7d 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -157,12 +157,12 @@ int plugin_open(const char *plugin, const char *parameter);
157#define PLUGIN_MAGIC 0x526F634B /* RocK */ 157#define PLUGIN_MAGIC 0x526F634B /* RocK */
158 158
159/* increase this every time the api struct changes */ 159/* increase this every time the api struct changes */
160#define PLUGIN_API_VERSION 256 160#define PLUGIN_API_VERSION 257
161 161
162/* update this to latest version if a change to the api struct breaks 162/* update this to latest version if a change to the api struct breaks
163 backwards compatibility (and please take the opportunity to sort in any 163 backwards compatibility (and please take the opportunity to sort in any
164 new function which are "waiting" at the end of the function table) */ 164 new function which are "waiting" at the end of the function table) */
165#define PLUGIN_MIN_API_VERSION 255 165#define PLUGIN_MIN_API_VERSION 257
166 166
167/* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */ 167/* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */
168 168
@@ -766,10 +766,13 @@ struct plugin_api {
766 int tag, char *buf, long size); 766 int tag, char *buf, long size);
767 void (*tagcache_search_finish)(struct tagcache_search *tcs); 767 void (*tagcache_search_finish)(struct tagcache_search *tcs);
768 long (*tagcache_get_numeric)(const struct tagcache_search *tcs, int tag); 768 long (*tagcache_get_numeric)(const struct tagcache_search *tcs, int tag);
769#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) 769 struct tagcache_stat* (*tagcache_get_stat)(void);
770#if defined(HAVE_TC_RAMCACHE)
771 bool (*tagcache_is_in_ram)(void);
772#if defined(HAVE_DIRCACHE)
770 bool (*tagcache_fill_tags)(struct mp3entry *id3, const char *filename); 773 bool (*tagcache_fill_tags)(struct mp3entry *id3, const char *filename);
771#endif 774#endif
772 struct tagcache_stat* (*tagcache_get_stat)(void); 775#endif
773#endif /* HAVE_TAGCACHE */ 776#endif /* HAVE_TAGCACHE */
774 777
775#ifdef HAVE_ALBUMART 778#ifdef HAVE_ALBUMART
@@ -824,7 +827,7 @@ struct plugin_api {
824 827
825 /* options */ 828 /* options */
826 const struct settings_list* (*get_settings_list)(int*count); 829 const struct settings_list* (*get_settings_list)(int*count);
827 const struct settings_list* (*find_setting)(const void* variable, int *id); 830 const struct settings_list* (*find_setting)(const void* variable);
828 int (*settings_save)(void); 831 int (*settings_save)(void);
829 bool (*option_screen)(const struct settings_list *setting, 832 bool (*option_screen)(const struct settings_list *setting,
830 struct viewport parent[NB_SCREENS], 833 struct viewport parent[NB_SCREENS],
@@ -946,11 +949,6 @@ struct plugin_api {
946#endif 949#endif
947 /* new stuff at the end, sort into place next time 950 /* new stuff at the end, sort into place next time
948 the API gets incompatible */ 951 the API gets incompatible */
949#ifdef HAVE_TAGCACHE
950#ifdef HAVE_TC_RAMCACHE
951 bool (*tagcache_is_in_ram)(void);
952#endif
953#endif
954}; 952};
955 953
956/* plugin header */ 954/* plugin header */