summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 1562fe640f..87b129319a 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -120,12 +120,12 @@
120#define PLUGIN_MAGIC 0x526F634B /* RocK */ 120#define PLUGIN_MAGIC 0x526F634B /* RocK */
121 121
122/* increase this every time the api struct changes */ 122/* increase this every time the api struct changes */
123#define PLUGIN_API_VERSION 111 123#define PLUGIN_API_VERSION 112
124 124
125/* update this to latest version if a change to the api struct breaks 125/* update this to latest version if a change to the api struct breaks
126 backwards compatibility (and please take the opportunity to sort in any 126 backwards compatibility (and please take the opportunity to sort in any
127 new function which are "waiting" at the end of the function table) */ 127 new function which are "waiting" at the end of the function table) */
128#define PLUGIN_MIN_API_VERSION 108 128#define PLUGIN_MIN_API_VERSION 112
129 129
130/* plugin return codes */ 130/* plugin return codes */
131enum plugin_status { 131enum plugin_status {
@@ -291,7 +291,7 @@ struct plugin_api {
291 void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen); 291 void (*viewport_set_defaults)(struct viewport *vp, enum screen_type screen);
292 /* list */ 292 /* list */
293 void (*gui_synclist_init)(struct gui_synclist * lists, 293 void (*gui_synclist_init)(struct gui_synclist * lists,
294 list_get_name callback_get_item_name,void * data, 294 list_get_name callback_get_item_name, void * data,
295 bool scroll_all,int selected_size, 295 bool scroll_all,int selected_size,
296 struct viewport parent[NB_SCREENS]); 296 struct viewport parent[NB_SCREENS]);
297 void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items); 297 void (*gui_synclist_set_nb_items)(struct gui_synclist * lists, int nb_items);
@@ -754,7 +754,7 @@ struct plugin_header {
754 unsigned short api_version; 754 unsigned short api_version;
755 unsigned char *load_addr; 755 unsigned char *load_addr;
756 unsigned char *end_addr; 756 unsigned char *end_addr;
757 enum plugin_status(*entry_point)(struct plugin_api*, void*); 757 enum plugin_status(*entry_point)(const struct plugin_api*, const void*);
758}; 758};
759 759
760#ifdef PLUGIN 760#ifdef PLUGIN
@@ -792,7 +792,7 @@ extern unsigned char plugin_end_addr[];
792#endif /* PLUGIN_USE_IRAM */ 792#endif /* PLUGIN_USE_IRAM */
793#endif /* PLUGIN */ 793#endif /* PLUGIN */
794 794
795int plugin_load(const char* plugin, void* parameter); 795int plugin_load(const char* plugin, const void* parameter);
796void* plugin_get_buffer(size_t *buffer_size); 796void* plugin_get_buffer(size_t *buffer_size);
797void* plugin_get_audio_buffer(size_t *buffer_size); 797void* plugin_get_audio_buffer(size_t *buffer_size);
798#ifdef PLUGIN_USE_IRAM 798#ifdef PLUGIN_USE_IRAM
@@ -806,7 +806,7 @@ void plugin_iram_init(char *iramstart, char *iramcopy, size_t iram_size,
806void plugin_tsr(bool (*exit_callback)(bool reenter)); 806void plugin_tsr(bool (*exit_callback)(bool reenter));
807 807
808/* defined by the plugin */ 808/* defined by the plugin */
809enum plugin_status plugin_start(struct plugin_api* rockbox, void* parameter) 809enum plugin_status plugin_start(const struct plugin_api* rockbox, const void* parameter)
810 NO_PROF_ATTR; 810 NO_PROF_ATTR;
811 811
812/* Use this macro in plugins where gcc tries to optimize by calling 812/* Use this macro in plugins where gcc tries to optimize by calling