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 --- firmware/export/lcd.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'firmware/export/lcd.h') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 91217ff76c..89f39437a0 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -25,6 +25,7 @@ #include #include "cpu.h" #include "config.h" +#include "events.h" #define VP_FLAG_ALIGN_RIGHT 0x01 #define VP_FLAG_ALIGN_CENTER 0x02 @@ -426,13 +427,16 @@ extern void lcd_sleep(void); * framebuffer data is synchronized */ /* Sansa Clip has these function in it's lcd driver, since it's the only * 1-bit display featuring lcd_active, so far */ + +enum { + LCD_EVENT_ACTIVATION = (EVENT_CLASS_LCD|1), +}; + extern bool lcd_active(void); -extern void lcd_activation_set_hook(void (*enable_hook)(void)); -extern void lcd_activation_call_hook(void); #endif #ifdef HAVE_LCD_SHUTDOWN -void lcd_shutdown(void); +extern void lcd_shutdown(void); #endif /* Bitmap formats */ -- cgit v1.2.3