Drivers are now being loaded as modules.

This commit is contained in:
robijn
2002-02-21 22:50:12 +00:00
parent ca5f3d1f37
commit dba163c4a4
61 changed files with 702 additions and 2270 deletions
+1 -32
View File
@@ -82,7 +82,7 @@ MODULE_EXPORT char *symbol_prefix = "text_";
//////////////////////////////////////////////////////////////////////////
int
MODULE_EXPORT int
text_init (Driver *drvthis, char *args)
{
// Set display sizes
@@ -102,37 +102,6 @@ text_init (Driver *drvthis, char *args)
framebuf = (unsigned char *) malloc (width * height);
memset (framebuf, ' ', width * height);
// Set variables for server
drvthis->api_version = api_version;
drvthis->stay_in_foreground = &stay_in_foreground;
drvthis->supports_multiple = &supports_multiple;
// Set the functions the driver supports
drvthis->init = text_init;
drvthis->close = text_close;
drvthis->width = text_width;
drvthis->height = text_height;
drvthis->clear = text_clear;
drvthis->flush = text_flush;
drvthis->string = text_string;
drvthis->chr = text_chr;
drvthis->vbar = text_vbar;
//drvthis->init_vbar = NULL;
drvthis->hbar = text_hbar;
//drvthis->init_hbar = NULL;
drvthis->num = text_num;
//drvthis->init_num = NULL;
drvthis->set_contrast = text_set_contrast;
drvthis->backlight = text_backlight;
//drvthis->set_char = NULL;
//drvthis->icon = NULL;
//drvthis->get_key = NULL;
return 0;
}