diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-15 15:45:12 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-15 15:45:12 +0200 |
commit | b301b089be6e59da46216ce33451063a81e54206 (patch) | |
tree | d63c2406897efd9077b5713a6cf9728bf6328498 /display.h | |
parent | aff647aaca077370451785c8c68b2af3926a7a3d (diff) | |
download | powerdebug-b301b089be6e59da46216ce33451063a81e54206.tar.gz |
Encapsulate the display (6)
Let's create some ops to be registered by the pm blocks to the display.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |