From f5a934c950327bea8f2e41a215b3cea754565c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 12 Feb 2005 03:48:54 +0000 Subject: [PATCH] Added console_module_info structure to be used by console modules like frame buffer console and VGA text. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11351 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/console.h | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/headers/private/kernel/console.h b/headers/private/kernel/console.h index 0e39c396d1..49e007a950 100755 --- a/headers/private/kernel/console.h +++ b/headers/private/kernel/console.h @@ -1,15 +1,33 @@ -/* -** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ +/* + * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + * + * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. + * Distributed under the terms of the NewOS License. + */ #ifndef _KERNEL_CONSOLE_H #define _KERNEL_CONSOLE_H + +#include #include struct kernel_args; -int con_init(struct kernel_args *ka); + +typedef struct { + module_info info; + + status_t (*get_size)(int32 *_width, int32 *_height); + void (*move_cursor)(int32 x, int32 y); + void (*put_glyph)(int32 x, int32 y, uint8 glyph, uint8 attr); + void (*fill_glyph)(int32 x, int32 y, int32 width, int32 height, uint8 glyph, uint8 attr); + void (*blit)(int32 srcx, int32 srcy, int32 width, int32 height, int32 destx, int32 desty); + void (*clear)(uint8 attr); +} console_module_info; + + +int con_init(struct kernel_args *args); void kprintf(const char *fmt, ...) __PRINTFLIKE(1,2); void kprintf_xy(int x, int y, const char *fmt, ...) __PRINTFLIKE(3,4);