summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-20 21:54:59 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-20 21:54:59 +0000
commitd85c3ec41020a6c56b0d5d95a9ed790f57d73c6e (patch)
tree2f51ed47fee689024ed8c145634044362c8ed7d5 /apps/plugin.c
parent774bacc692b4d5c7b769bb88d24e182db9e4656f (diff)
downloadrockbox-d85c3ec41020a6c56b0d5d95a9ed790f57d73c6e.tar.gz
rockbox-d85c3ec41020a6c56b0d5d95a9ed790f57d73c6e.zip
Convert lcd_activation callbacks to use the event system to allow for multiple parallel callbacks (for custom statusbar).
Increase maximum event count as we need more (I actually had a report about it during custom statusbar testing). Removed corresponding functions from the core and plugin api. Bump min version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23302 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 77fb925ba2..ae889d68fd 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -155,7 +155,6 @@ static const struct plugin_api rockbox_api = {
155 lcd_set_mode, 155 lcd_set_mode,
156#endif 156#endif
157#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) 157#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
158 lcd_activation_set_hook,
159 &button_queue, 158 &button_queue,
160#endif 159#endif
161 bidi_l2v, 160 bidi_l2v,
@@ -255,6 +254,7 @@ static const struct plugin_api rockbox_api = {
255 button_status, 254 button_status,
256#ifdef HAVE_BUTTON_DATA 255#ifdef HAVE_BUTTON_DATA
257 button_get_data, 256 button_get_data,
257 button_status_wdata,
258#endif 258#endif
259 button_clear_queue, 259 button_clear_queue,
260 button_queue_count, 260 button_queue_count,
@@ -376,6 +376,9 @@ static const struct plugin_api rockbox_api = {
376 __cyg_profile_func_enter, 376 __cyg_profile_func_enter,
377 __cyg_profile_func_exit, 377 __cyg_profile_func_exit,
378#endif 378#endif
379 add_event,
380 remove_event,
381 send_event,
379 382
380#ifdef SIMULATOR 383#ifdef SIMULATOR
381 /* special simulator hooks */ 384 /* special simulator hooks */
@@ -668,9 +671,6 @@ static const struct plugin_api rockbox_api = {
668 appsversion, 671 appsversion,
669 /* new stuff at the end, sort into place next time 672 /* new stuff at the end, sort into place next time
670 the API gets incompatible */ 673 the API gets incompatible */
671#ifdef HAVE_BUTTON_DATA
672 button_status_wdata,
673#endif
674}; 674};
675 675
676int plugin_load(const char* plugin, const void* parameter) 676int plugin_load(const char* plugin, const void* parameter)