xref: /titanic_41/usr/src/cmd/lp/lib/printers/p_head.c (revision e11c3f44f531fdff80941ce57c065d2ae861cefc)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
27 /*	  All Rights Reserved  	*/
28 
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 /* EMACS_MODES: !fill, lnumb, !overwrite, !nodelete, !picture */
33 
34 #include "sys/types.h"
35 
36 #include "lp.h"
37 #include "printers.h"
38 
39 struct {
40 	char			*v;
41 	short			len,
42 				okremote;
43 }			prtrheadings[PR_MAX] = {
44 
45 #define	ENTRY(X)	X, sizeof(X)-1
46 
47 	ENTRY("Banner:"),	   0,	/* PR_BAN */
48 	ENTRY("CPI:"),		   0,	/* PR_CPI */
49 	ENTRY("Character sets:"),  1,	/* PR_CS */
50 	ENTRY("Content types:"),   1,	/* PR_ITYPES */
51 	ENTRY("Device:"),	   0,	/* PR_DEV */
52 	ENTRY("Dial:"),		   0,	/* PR_DIAL */
53 	ENTRY("Fault:"),	   0,	/* PR_RECOV */
54 	ENTRY("Interface:"),	   0,	/* PR_INTFC */
55 	ENTRY("LPI:"),		   0,	/* PR_LPI */
56 	ENTRY("Length:"),	   0,	/* PR_LEN */
57 	ENTRY("Login:"),	   0,	/* PR_LOGIN */
58 	ENTRY("Printer type:"),    1,	/* PR_PTYPE */
59 	ENTRY("Remote:"),	   1,	/* PR_REMOTE */
60 	ENTRY("Speed:"),	   0,	/* PR_SPEED */
61 	ENTRY("Stty:"),		   0,	/* PR_STTY */
62 	ENTRY("Width:"),	   0,	/* PR_WIDTH */
63 #if	defined(CAN_DO_MODULES)
64 	ENTRY("Modules:"),	   0,	/* PR_MODULES */
65 #endif
66 	ENTRY("Options:"),		1, /* PR_OPTIONS */
67 	ENTRY("PPD:"),		   0,	/* PR_PPD */
68 
69 #undef	ENTRY
70 
71 };
72