forked from len0rd/rockbox
Added default_event_handler() to the plugin API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4953 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a6880a4f73
commit
a363035d9f
2 changed files with 3 additions and 1 deletions
|
@ -257,6 +257,7 @@ static const struct plugin_api rockbox_api = {
|
||||||
button_clear_queue,
|
button_clear_queue,
|
||||||
strncpy,
|
strncpy,
|
||||||
strcasecmp,
|
strcasecmp,
|
||||||
|
default_event_handler
|
||||||
};
|
};
|
||||||
|
|
||||||
int plugin_load(char* plugin, void* parameter)
|
int plugin_load(char* plugin, void* parameter)
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* increase this every time the api struct changes */
|
/* 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
|
/* update this to latest version if a change to the api struct breaks
|
||||||
backwards compatibility (and please take the opportunity to sort in any
|
backwards compatibility (and please take the opportunity to sort in any
|
||||||
|
@ -293,6 +293,7 @@ struct plugin_api {
|
||||||
void (*button_clear_queue)(void);
|
void (*button_clear_queue)(void);
|
||||||
char *(*strncpy)(char *dst, const char *src, size_t length);
|
char *(*strncpy)(char *dst, const char *src, size_t length);
|
||||||
int (*strcasecmp)(const char *, const char *);
|
int (*strcasecmp)(const char *, const char *);
|
||||||
|
int (*default_event_handler)(int event);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* defined by the plugin loader (plugin.c) */
|
/* defined by the plugin loader (plugin.c) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue