From b301b089be6e59da46216ce33451063a81e54206 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Wed, 15 Jun 2011 15:45:12 +0200 Subject: Encapsulate the display (6) Let's create some ops to be registered by the pm blocks to the display. Signed-off-by: Daniel Lezcano --- display.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'display.h') diff --git a/display.h b/display.h index 9c0e38a..1222b44 100644 --- a/display.h +++ b/display.h @@ -13,8 +13,13 @@ * - initial API and implementation *******************************************************************************/ -extern int display_init(int wdefault); +struct display_ops { + int (*display)(void); + int (*select)(void); +}; +extern int display_init(int wdefault); +extern int display_register(int win, struct display_ops *ops); extern int display_next_panel(void); extern int display_prev_panel(void); extern int display_next_line(void); -- cgit v1.2.3