From 75d981b7bed30855c9eb62277d3bc2d6986a788a Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Tue, 29 May 2012 11:39:07 +0200 Subject: [PATCH] console: add kmscon_console_reset() dummy This dummy is supposed to hard-reset the console. As the console is far from finished, we keep it as dummy and implement this later. Signed-off-by: David Herrmann --- src/console.c | 8 ++++++++ src/console.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/console.c b/src/console.c index 14017e9..44d692a 100644 --- a/src/console.c +++ b/src/console.c @@ -1035,6 +1035,14 @@ unsigned int kmscon_console_get_height(struct kmscon_console *con) return con->cells->size_y; } +void kmscon_console_reset(struct kmscon_console *con) +{ + if (!con) + return; + + /* TODO: reset console */ +} + void kmscon_console_draw(struct kmscon_console *con, struct font_screen *fscr) { if (!con) diff --git a/src/console.h b/src/console.h index 0f19061..857d07c 100644 --- a/src/console.h +++ b/src/console.h @@ -52,6 +52,7 @@ unsigned int kmscon_console_get_width(struct kmscon_console *con); unsigned int kmscon_console_get_height(struct kmscon_console *con); int kmscon_console_resize(struct kmscon_console *con, unsigned int x, unsigned int y, unsigned int height); +void kmscon_console_reset(struct kmscon_console *con); void kmscon_console_draw(struct kmscon_console *con, struct font_screen *fscr);