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 /* EMACS_MODES: !fill, lnumb, !overwrite, !nodelete, !picture */ 30 31 #include "sys/types.h" 32 33 #include "lp.h" 34 #include "printers.h" 35 36 struct { 37 char *v; 38 short len, 39 okremote; 40 } prtrheadings[PR_MAX] = { 41 42 #define ENTRY(X) X, sizeof(X)-1 43 44 ENTRY("Banner:"), 0, /* PR_BAN */ 45 ENTRY("CPI:"), 0, /* PR_CPI */ 46 ENTRY("Character sets:"), 1, /* PR_CS */ 47 ENTRY("Content types:"), 1, /* PR_ITYPES */ 48 ENTRY("Device:"), 0, /* PR_DEV */ 49 ENTRY("Dial:"), 0, /* PR_DIAL */ 50 ENTRY("Fault:"), 0, /* PR_RECOV */ 51 ENTRY("Interface:"), 0, /* PR_INTFC */ 52 ENTRY("LPI:"), 0, /* PR_LPI */ 53 ENTRY("Length:"), 0, /* PR_LEN */ 54 ENTRY("Login:"), 0, /* PR_LOGIN */ 55 ENTRY("Printer type:"), 1, /* PR_PTYPE */ 56 ENTRY("Remote:"), 1, /* PR_REMOTE */ 57 ENTRY("Speed:"), 0, /* PR_SPEED */ 58 ENTRY("Stty:"), 0, /* PR_STTY */ 59 ENTRY("Width:"), 0, /* PR_WIDTH */ 60 #if defined(CAN_DO_MODULES) 61 ENTRY("Modules:"), 0, /* PR_MODULES */ 62 #endif 63 ENTRY("Options:"), 1, /* PR_OPTIONS */ 64 ENTRY("PPD:"), 0, /* PR_PPD */ 65 66 #undef ENTRY 67 68 }; 69