summaryrefslogtreecommitdiff
path: root/console/display.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2003-06-03 21:19:00 +0000
committerMarcus Brinkmann <marcus@gnu.org>2003-06-03 21:19:00 +0000
commit3099f96171c69d65a1b7add77e9a7356b073d92b (patch)
treea10af735e92472be5ebe17a1fd9747b946427bb4 /console/display.h
parente1a049e27ae81f2eac0d59fbdd221710ec2d8ab5 (diff)
2003-04-29 Marco Gerards <metgerards@student.han.nl>
* 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.
Diffstat (limited to 'console/display.h')
-rw-r--r--console/display.h9
1 files changed, 6 insertions, 3 deletions
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);