summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c1
-rw-r--r--apps/plugin.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 7e5f486..413caf8 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -257,6 +257,7 @@ static const struct plugin_api rockbox_api = {
button_clear_queue,
strncpy,
strcasecmp,
+ default_event_handler
};
int plugin_load(char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 1ed2a9b..7470087 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -60,7 +60,7 @@
#endif
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 23
+#define PLUGIN_API_VERSION 24
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -293,6 +293,7 @@ struct plugin_api {
void (*button_clear_queue)(void);
char *(*strncpy)(char *dst, const char *src, size_t length);
int (*strcasecmp)(const char *, const char *);
+ int (*default_event_handler)(int event);
};
/* defined by the plugin loader (plugin.c) */