summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 23:30:30 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 23:30:30 +0000
commita363035d9f23fe3f68e28bb8d32b339036576b0e (patch)
treeb9b78633c11d54b6a476abac92538a171278e4b1 /apps
parenta6880a4f7337fa24b782f31119f0399715995109 (diff)
downloadrockbox-a363035d9f23fe3f68e28bb8d32b339036576b0e.tar.gz
rockbox-a363035d9f23fe3f68e28bb8d32b339036576b0e.zip
Added default_event_handler() to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4953 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 7e5f4866cf..413caf87a1 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -257,6 +257,7 @@ static const struct plugin_api rockbox_api = {
257 button_clear_queue, 257 button_clear_queue,
258 strncpy, 258 strncpy,
259 strcasecmp, 259 strcasecmp,
260 default_event_handler
260}; 261};
261 262
262int plugin_load(char* plugin, void* parameter) 263int 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 @@
60#endif 60#endif
61 61
62/* increase this every time the api struct changes */ 62/* increase this every time the api struct changes */
63#define PLUGIN_API_VERSION 23 63#define PLUGIN_API_VERSION 24
64 64
65/* update this to latest version if a change to the api struct breaks 65/* update this to latest version if a change to the api struct breaks
66 backwards compatibility (and please take the opportunity to sort in any 66 backwards compatibility (and please take the opportunity to sort in any
@@ -293,6 +293,7 @@ struct plugin_api {
293 void (*button_clear_queue)(void); 293 void (*button_clear_queue)(void);
294 char *(*strncpy)(char *dst, const char *src, size_t length); 294 char *(*strncpy)(char *dst, const char *src, size_t length);
295 int (*strcasecmp)(const char *, const char *); 295 int (*strcasecmp)(const char *, const char *);
296 int (*default_event_handler)(int event);
296}; 297};
297 298
298/* defined by the plugin loader (plugin.c) */ 299/* defined by the plugin loader (plugin.c) */