/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#if !defined(_LP_PRINTERS_H)
#define _LP_PRINTERS_H
/*
* Define the following to support administrator configurable
* streams modules:
*/
/**
** The disk copy of the printer files:
**/
/*
* There are 19 fields in the printer configuration file.
*/
# define PR_BAN 0
/**
**/
/**
** The internal copy of a printer as seen by the rest of the world:
**/
/*
* A (char **) list is an array of string pointers (char *) with
* a null pointer after the last item.
*/
typedef struct PRINTER {
#if defined(CAN_DO_MODULES)
#endif
#ifdef LP_USE_PAPI_ATTR
#endif
/*
* Adding new members to this structure? Check out
* cmd/lpadmin/do_printer.c, where we initialize
* each new printer structure.
*/
} PRINTER;
/*
* The following PCK_... bits are only set by the Spooler,
* when refusing a request.
*/
/*
* Flags set by "putprinter()" for things that go wrong.
*/
/*
* A comma separated list of STREAMS modules to be pushed on an
* opened port.
*/
/*
* For print wheels:
*/
typedef struct PWHEEL {
} PWHEEL;
extern unsigned long badprinter,
/*
* Set if ppd file information is from the user rather than
* the configuration file.
*/
extern int ppdopt;
/**
** Various routines.
**/
PRINTER * getprinter ( char * );
char * getdefault ( void );
int putprinter ( char *, PRINTER *);
int delprinter ( char * );
int putdefault ( char * );
int deldefault ( void );
int delpwheel ( char * );
unsigned long chkprinter (char *, char *, char *, char *, char *, char *);
void freeprinter ( PRINTER * );
void freepwheel ( PWHEEL * );
char * getpentry(char *, int);
/**
** Aliases (copies) of some important Terminfo caps.
**/
extern int ti_daisy;
#endif