From d85c3ec41020a6c56b0d5d95a9ed790f57d73c6e Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 20 Oct 2009 21:54:59 +0000 Subject: 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 --- apps/plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugin.c') 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 = { lcd_set_mode, #endif #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) - lcd_activation_set_hook, &button_queue, #endif bidi_l2v, @@ -255,6 +254,7 @@ static const struct plugin_api rockbox_api = { button_status, #ifdef HAVE_BUTTON_DATA button_get_data, + button_status_wdata, #endif button_clear_queue, button_queue_count, @@ -376,6 +376,9 @@ static const struct plugin_api rockbox_api = { __cyg_profile_func_enter, __cyg_profile_func_exit, #endif + add_event, + remove_event, + send_event, #ifdef SIMULATOR /* special simulator hooks */ @@ -668,9 +671,6 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ -#ifdef HAVE_BUTTON_DATA - button_status_wdata, -#endif }; int plugin_load(const char* plugin, const void* parameter) -- cgit v1.2.3