Fri Nov 3 18:42:36 2017 UTC ()
Use c99 initializer for wsemul_ops


(maya)
diff -r1.16 -r1.17 src/sys/dev/wscons/wsemul_dumb.c
diff -r1.31 -r1.32 src/sys/dev/wscons/wsemul_sun.c
diff -r1.39 -r1.40 src/sys/dev/wscons/wsemul_vt100.c

cvs diff -r1.16 -r1.17 src/sys/dev/wscons/wsemul_dumb.c (expand / switch to unified diff)

--- src/sys/dev/wscons/wsemul_dumb.c 2017/05/19 19:22:33 1.16
+++ src/sys/dev/wscons/wsemul_dumb.c 2017/11/03 18:42:35 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: wsemul_dumb.c,v 1.16 2017/05/19 19:22:33 macallan Exp $ */ 1/* $NetBSD: wsemul_dumb.c,v 1.17 2017/11/03 18:42:35 maya Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. 4 * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 3. All advertising materials mentioning features or use of this software 14 * 3. All advertising materials mentioning features or use of this software
@@ -21,60 +21,60 @@ @@ -21,60 +21,60 @@
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33#include <sys/cdefs.h> 33#include <sys/cdefs.h>
34__KERNEL_RCSID(0, "$NetBSD: wsemul_dumb.c,v 1.16 2017/05/19 19:22:33 macallan Exp $"); 34__KERNEL_RCSID(0, "$NetBSD: wsemul_dumb.c,v 1.17 2017/11/03 18:42:35 maya Exp $");
35 35
36#include <sys/param.h> 36#include <sys/param.h>
37#include <sys/systm.h> 37#include <sys/systm.h>
38#include <sys/time.h> 38#include <sys/time.h>
39#include <sys/malloc.h> 39#include <sys/malloc.h>
40#include <sys/fcntl.h> 40#include <sys/fcntl.h>
41 41
42#include <dev/wscons/wsconsio.h> 42#include <dev/wscons/wsconsio.h>
43#include <dev/wscons/wsdisplayvar.h> 43#include <dev/wscons/wsdisplayvar.h>
44#include <dev/wscons/wsemulvar.h> 44#include <dev/wscons/wsemulvar.h>
45#include <dev/wscons/ascii.h> 45#include <dev/wscons/ascii.h>
46#include <dev/wscons/wsksymdef.h> 46#include <dev/wscons/wsksymdef.h>
47 47
48void *wsemul_dumb_cnattach(const struct wsscreen_descr *, void *, 48void *wsemul_dumb_cnattach(const struct wsscreen_descr *, void *,
49 int, int, long); 49 int, int, long);
50void *wsemul_dumb_attach(int console, const struct wsscreen_descr *, 50void *wsemul_dumb_attach(int console, const struct wsscreen_descr *,
51 void *, int, int, void *, long); 51 void *, int, int, void *, long);
52void wsemul_dumb_output(void *cookie, const u_char *data, u_int count, int); 52void wsemul_dumb_output(void *cookie, const u_char *data, u_int count, int);
53int wsemul_dumb_translate(void *cookie, keysym_t, const char **); 53int wsemul_dumb_translate(void *cookie, keysym_t, const char **);
54void wsemul_dumb_detach(void *cookie, u_int *crowp, u_int *ccolp); 54void wsemul_dumb_detach(void *cookie, u_int *crowp, u_int *ccolp);
55void wsemul_dumb_resetop(void *, enum wsemul_resetops); 55void wsemul_dumb_resetop(void *, enum wsemul_resetops);
56 56
57const struct wsemul_ops wsemul_dumb_ops = { 57const struct wsemul_ops wsemul_dumb_ops = {
58 "dumb", 58 .name = "dumb",
59 wsemul_dumb_cnattach, 59 .cnattach = wsemul_dumb_cnattach,
60 wsemul_dumb_attach, 60 .attach = wsemul_dumb_attach,
61 wsemul_dumb_output, 61 .output = wsemul_dumb_output,
62 wsemul_dumb_translate, 62 .translate = wsemul_dumb_translate,
63 wsemul_dumb_detach, 63 .detach = wsemul_dumb_detach,
64 wsemul_dumb_resetop, 64 .reset = wsemul_dumb_resetop,
65 NULL, /* getmsgattrs */ 65 .getmsgattrs = NULL,
66 NULL, /* setmsgattrs */ 66 .setmsgattrs = NULL,
67 NULL /* resize */ 67 .resize = NULL,
68}; 68};
69 69
70struct wsemul_dumb_emuldata { 70struct wsemul_dumb_emuldata {
71 const struct wsdisplay_emulops *emulops; 71 const struct wsdisplay_emulops *emulops;
72 void *emulcookie; 72 void *emulcookie;
73 void *cbcookie; 73 void *cbcookie;
74 u_int nrows, ncols, crow, ccol; 74 u_int nrows, ncols, crow, ccol;
75 long defattr; 75 long defattr;
76}; 76};
77 77
78struct wsemul_dumb_emuldata wsemul_dumb_console_emuldata; 78struct wsemul_dumb_emuldata wsemul_dumb_console_emuldata;
79 79
80void * 80void *

cvs diff -r1.31 -r1.32 src/sys/dev/wscons/wsemul_sun.c (expand / switch to unified diff)

--- src/sys/dev/wscons/wsemul_sun.c 2017/11/03 17:57:58 1.31
+++ src/sys/dev/wscons/wsemul_sun.c 2017/11/03 18:42:35 1.32
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: wsemul_sun.c,v 1.31 2017/11/03 17:57:58 maya Exp $ */ 1/* $NetBSD: wsemul_sun.c,v 1.32 2017/11/03 18:42:35 maya Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. 4 * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 3. All advertising materials mentioning features or use of this software 14 * 3. All advertising materials mentioning features or use of this software
@@ -23,61 +23,61 @@ @@ -23,61 +23,61 @@
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33/* XXX DESCRIPTION/SOURCE OF INFORMATION */ 33/* XXX DESCRIPTION/SOURCE OF INFORMATION */
34 34
35#include <sys/cdefs.h> 35#include <sys/cdefs.h>
36__KERNEL_RCSID(0, "$NetBSD: wsemul_sun.c,v 1.31 2017/11/03 17:57:58 maya Exp $"); 36__KERNEL_RCSID(0, "$NetBSD: wsemul_sun.c,v 1.32 2017/11/03 18:42:35 maya Exp $");
37 37
38#include <sys/param.h> 38#include <sys/param.h>
39#include <sys/systm.h> 39#include <sys/systm.h>
40#include <sys/time.h> 40#include <sys/time.h>
41#include <sys/malloc.h> 41#include <sys/malloc.h>
42#include <sys/fcntl.h> 42#include <sys/fcntl.h>
43 43
44#include <dev/wscons/wsconsio.h> 44#include <dev/wscons/wsconsio.h>
45#include <dev/wscons/wsdisplayvar.h> 45#include <dev/wscons/wsdisplayvar.h>
46#include <dev/wscons/wsemulvar.h> 46#include <dev/wscons/wsemulvar.h>
47#include <dev/wscons/wsksymdef.h> 47#include <dev/wscons/wsksymdef.h>
48#include <dev/wscons/ascii.h> 48#include <dev/wscons/ascii.h>
49 49
50void *wsemul_sun_cnattach(const struct wsscreen_descr *, void *, 50void *wsemul_sun_cnattach(const struct wsscreen_descr *, void *,
51 int, int, long); 51 int, int, long);
52void *wsemul_sun_attach(int console, const struct wsscreen_descr *, 52void *wsemul_sun_attach(int console, const struct wsscreen_descr *,
53 void *, int, int, void *, long); 53 void *, int, int, void *, long);
54void wsemul_sun_output(void *cookie, const u_char *data, u_int count, 54void wsemul_sun_output(void *cookie, const u_char *data, u_int count,
55 int); 55 int);
56int wsemul_sun_translate(void *cookie, keysym_t, const char **); 56int wsemul_sun_translate(void *cookie, keysym_t, const char **);
57void wsemul_sun_detach(void *cookie, u_int *crowp, u_int *ccolp); 57void wsemul_sun_detach(void *cookie, u_int *crowp, u_int *ccolp);
58void wsemul_sun_resetop(void *, enum wsemul_resetops); 58void wsemul_sun_resetop(void *, enum wsemul_resetops);
59 59
60const struct wsemul_ops wsemul_sun_ops = { 60const struct wsemul_ops wsemul_sun_ops = {
61 "sun", 61 .name = "sun",
62 wsemul_sun_cnattach, 62 .cnattach = wsemul_sun_cnattach,
63 wsemul_sun_attach, 63 .attach = wsemul_sun_attach,
64 wsemul_sun_output, 64 .output = wsemul_sun_output,
65 wsemul_sun_translate, 65 .translate = wsemul_sun_translate,
66 wsemul_sun_detach, 66 .detach = wsemul_sun_detach,
67 wsemul_sun_resetop, 67 .reset = wsemul_sun_resetop,
68 NULL, /* getmsgattrs */ 68 .getmsgattrs = NULL,
69 NULL, /* setmsgattrs */ 69 .setmsgattrs = NULL,
70 NULL /* resize */ 70 .resize = NULL,
71}; 71};
72 72
73#define SUN_EMUL_STATE_NORMAL 0 /* normal processing */ 73#define SUN_EMUL_STATE_NORMAL 0 /* normal processing */
74#define SUN_EMUL_STATE_HAVEESC 1 /* seen start of ctl seq */ 74#define SUN_EMUL_STATE_HAVEESC 1 /* seen start of ctl seq */
75#define SUN_EMUL_STATE_CONTROL 2 /* processing ctl seq */ 75#define SUN_EMUL_STATE_CONTROL 2 /* processing ctl seq */
76 76
77#define SUN_EMUL_NARGS 2 /* max # of args to a command */ 77#define SUN_EMUL_NARGS 2 /* max # of args to a command */
78 78
79struct wsemul_sun_emuldata { 79struct wsemul_sun_emuldata {
80 const struct wsdisplay_emulops *emulops; 80 const struct wsdisplay_emulops *emulops;
81 void *emulcookie; 81 void *emulcookie;
82 void *cbcookie; 82 void *cbcookie;
83 int scrcapabilities; 83 int scrcapabilities;

cvs diff -r1.39 -r1.40 src/sys/dev/wscons/wsemul_vt100.c (expand / switch to unified diff)

--- src/sys/dev/wscons/wsemul_vt100.c 2017/11/03 17:57:58 1.39
+++ src/sys/dev/wscons/wsemul_vt100.c 2017/11/03 18:42:35 1.40
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: wsemul_vt100.c,v 1.39 2017/11/03 17:57:58 maya Exp $ */ 1/* $NetBSD: wsemul_vt100.c,v 1.40 2017/11/03 18:42:35 maya Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 4 * Copyright (c) 1998
5 * Matthias Drochner. All rights reserved. 5 * Matthias Drochner. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 * 26 *
27 */ 27 */
28 28
29#include <sys/cdefs.h> 29#include <sys/cdefs.h>
30__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100.c,v 1.39 2017/11/03 17:57:58 maya Exp $"); 30__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100.c,v 1.40 2017/11/03 18:42:35 maya Exp $");
31 31
32#ifdef _KERNEL_OPT 32#ifdef _KERNEL_OPT
33#include "opt_wsmsgattrs.h" 33#include "opt_wsmsgattrs.h"
34#endif 34#endif
35 35
36#include <sys/param.h> 36#include <sys/param.h>
37#include <sys/systm.h> 37#include <sys/systm.h>
38#include <sys/time.h> 38#include <sys/time.h>
39#include <sys/malloc.h> 39#include <sys/malloc.h>
40#include <sys/fcntl.h> 40#include <sys/fcntl.h>
41 41
42#include <dev/wscons/wsconsio.h> 42#include <dev/wscons/wsconsio.h>
43#include <dev/wscons/wsdisplayvar.h> 43#include <dev/wscons/wsdisplayvar.h>
@@ -50,39 +50,39 @@ void *wsemul_vt100_cnattach(const struct @@ -50,39 +50,39 @@ void *wsemul_vt100_cnattach(const struct
50void *wsemul_vt100_attach(int console, const struct wsscreen_descr *, 50void *wsemul_vt100_attach(int console, const struct wsscreen_descr *,
51 void *, int, int, void *, long); 51 void *, int, int, void *, long);
52void wsemul_vt100_output(void *cookie, const u_char *data, u_int count, int); 52void wsemul_vt100_output(void *cookie, const u_char *data, u_int count, int);
53void wsemul_vt100_detach(void *cookie, u_int *crowp, u_int *ccolp); 53void wsemul_vt100_detach(void *cookie, u_int *crowp, u_int *ccolp);
54void wsemul_vt100_resetop(void *, enum wsemul_resetops); 54void wsemul_vt100_resetop(void *, enum wsemul_resetops);
55#ifdef WSDISPLAY_CUSTOM_OUTPUT 55#ifdef WSDISPLAY_CUSTOM_OUTPUT
56static void wsemul_vt100_getmsgattrs(void *, struct wsdisplay_msgattrs *); 56static void wsemul_vt100_getmsgattrs(void *, struct wsdisplay_msgattrs *);
57static void wsemul_vt100_setmsgattrs(void *, const struct wsscreen_descr *, 57static void wsemul_vt100_setmsgattrs(void *, const struct wsscreen_descr *,
58 const struct wsdisplay_msgattrs *); 58 const struct wsdisplay_msgattrs *);
59#endif /* WSDISPLAY_CUSTOM_OUTPUT */ 59#endif /* WSDISPLAY_CUSTOM_OUTPUT */
60static void wsemul_vt100_resize(void *, const struct wsscreen_descr *); 60static void wsemul_vt100_resize(void *, const struct wsscreen_descr *);
61 61
62const struct wsemul_ops wsemul_vt100_ops = { 62const struct wsemul_ops wsemul_vt100_ops = {
63 "vt100", 63 .name = "vt100",
64 wsemul_vt100_cnattach, 64 .cnattach = wsemul_vt100_cnattach,
65 wsemul_vt100_attach, 65 .attach = wsemul_vt100_attach,
66 wsemul_vt100_output, 66 .output = wsemul_vt100_output,
67 wsemul_vt100_translate, 67 .translate = wsemul_vt100_translate,
68 wsemul_vt100_detach, 68 .detach = wsemul_vt100_detach,
69 wsemul_vt100_resetop, 69 .reset = wsemul_vt100_resetop,
70#ifdef WSDISPLAY_CUSTOM_OUTPUT 70#ifdef WSDISPLAY_CUSTOM_OUTPUT
71 wsemul_vt100_getmsgattrs, 71 .getmsgattrs = wsemul_vt100_getmsgattrs,
72 wsemul_vt100_setmsgattrs, 72 .setmsgattrs = wsemul_vt100_setmsgattrs,
73#else 73#else
74 NULL, 74 .getmsgattrs = NULL,
75 NULL, 75 .setmsgattrs = NULL,
76#endif 76#endif
77 .resize = wsemul_vt100_resize 77 .resize = wsemul_vt100_resize
78}; 78};
79 79
80struct wsemul_vt100_emuldata wsemul_vt100_console_emuldata; 80struct wsemul_vt100_emuldata wsemul_vt100_console_emuldata;
81 81
82static void wsemul_vt100_init(struct wsemul_vt100_emuldata *, 82static void wsemul_vt100_init(struct wsemul_vt100_emuldata *,
83 const struct wsscreen_descr *, 83 const struct wsscreen_descr *,
84 void *, int, int, long); 84 void *, int, int, long);
85 85
86static void wsemul_vt100_output_normal(struct wsemul_vt100_emuldata *, 86static void wsemul_vt100_output_normal(struct wsemul_vt100_emuldata *,
87 u_char, int); 87 u_char, int);
88static void wsemul_vt100_output_c0c1(struct wsemul_vt100_emuldata *, 88static void wsemul_vt100_output_c0c1(struct wsemul_vt100_emuldata *,