summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
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 /firmware/export/lcd.h
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 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h10
1 files changed, 7 insertions, 3 deletions
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 @@
25#include <stdbool.h> 25#include <stdbool.h>
26#include "cpu.h" 26#include "cpu.h"
27#include "config.h" 27#include "config.h"
28#include "events.h"
28 29
29#define VP_FLAG_ALIGN_RIGHT 0x01 30#define VP_FLAG_ALIGN_RIGHT 0x01
30#define VP_FLAG_ALIGN_CENTER 0x02 31#define VP_FLAG_ALIGN_CENTER 0x02
@@ -426,13 +427,16 @@ extern void lcd_sleep(void);
426 * framebuffer data is synchronized */ 427 * framebuffer data is synchronized */
427/* Sansa Clip has these function in it's lcd driver, since it's the only 428/* Sansa Clip has these function in it's lcd driver, since it's the only
428 * 1-bit display featuring lcd_active, so far */ 429 * 1-bit display featuring lcd_active, so far */
430
431enum {
432 LCD_EVENT_ACTIVATION = (EVENT_CLASS_LCD|1),
433};
434
429extern bool lcd_active(void); 435extern bool lcd_active(void);
430extern void lcd_activation_set_hook(void (*enable_hook)(void));
431extern void lcd_activation_call_hook(void);
432#endif 436#endif
433 437
434#ifdef HAVE_LCD_SHUTDOWN 438#ifdef HAVE_LCD_SHUTDOWN
435void lcd_shutdown(void); 439extern void lcd_shutdown(void);
436#endif 440#endif
437 441
438/* Bitmap formats */ 442/* Bitmap formats */