From 3099f96171c69d65a1b7add77e9a7356b073d92b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 3 Jun 2003 21:19:00 +0000 Subject: 2003-04-29 Marco Gerards * display.c (display_create): Added arguments width, height and lines, variables with the same name were removed. * display.h (display_creat): Add missing arguments to prototype. * console.c (DEFAULT_WIDTH): New macro. (DEFAULT_HEIGHT): Likewise. (DEFAULT_LINES): Likewise. (STRX): Likewise. (STR): Likewise. (struct cons): New members lines, width and height. (vcons_lookup): Add missing arguments to display_create. (options): Add options width, height and lines. (parse_opt): Parse width, height and lines. (netfs_append_args): Append arguments width, height and lines. (netfs_append_args): Fix asprintf error checking. (main): Initialize cons with default width, height and lines. --- console/display.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'console/display.h') diff --git a/console/display.h b/console/display.h index 1fe6f6c0..d64cf69e 100644 --- a/console/display.h +++ b/console/display.h @@ -1,5 +1,5 @@ /* display.h - Interface to the display component of a virtual console. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. Written by Marcus Brinkmann. This file is part of the GNU Hurd. @@ -30,8 +30,11 @@ void display_init (void); /* Create a new virtual console display, with the system encoding being ENCODING and the default colors being FOREGROUND and BACKGROUND. */ -error_t display_create (display_t *r_display, const char *encoding, - conchar_attr_t attr); +error_t +display_create (display_t *r_display, const char *encoding, + conchar_attr_t def_attr, unsigned int lines, + unsigned int width, unsigned int height); + /* Destroy the display DISPLAY. */ void display_destroy (display_t display); -- cgit v1.2.3