From a363035d9f23fe3f68e28bb8d32b339036576b0e Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 26 Jul 2004 23:30:30 +0000 Subject: Added default_event_handler() to the plugin API git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4953 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 1 + apps/plugin.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index 7e5f4866cf..413caf87a1 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 1ed2a9baef..74700879b4 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) */ -- cgit v1.2.3