lp.h (31492) | lp.h (46110) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * From: @(#)lp.h 8.2 (Berkeley) 4/28/95 | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * From: @(#)lp.h 8.2 (Berkeley) 4/28/95 |
34 * $Id$ | 34 * $Id: lp.h,v 1.7 1997/12/02 20:45:21 wollman Exp $ |
35 */ 36 37#include <sys/queue.h> 38 39/* 40 * All this information used to be in global static variables shared 41 * mysteriously by various parts of the lpr/lpd suite. 42 * This structure attempts to centralize all these declarations in the 43 * hope that they can later be made more dynamic. 44 */ 45enum lpd_filters { LPF_CIFPLOT, LPF_DVI, LPF_GRAPH, LPF_INPUT, 46 LPF_DITROFF, LPF_OUTPUT, LPF_FORTRAN, LPF_TROFF, 47 LPF_RASTER, LPF_COUNT }; 48/* NB: there is a table in common.c giving the mapping from capability names */ 49 50struct printer { 51 char *printer; /* printer name */ 52 int remote; /* true if RM points to a remote host */ | 35 */ 36 37#include <sys/queue.h> 38 39/* 40 * All this information used to be in global static variables shared 41 * mysteriously by various parts of the lpr/lpd suite. 42 * This structure attempts to centralize all these declarations in the 43 * hope that they can later be made more dynamic. 44 */ 45enum lpd_filters { LPF_CIFPLOT, LPF_DVI, LPF_GRAPH, LPF_INPUT, 46 LPF_DITROFF, LPF_OUTPUT, LPF_FORTRAN, LPF_TROFF, 47 LPF_RASTER, LPF_COUNT }; 48/* NB: there is a table in common.c giving the mapping from capability names */ 49 50struct printer { 51 char *printer; /* printer name */ 52 int remote; /* true if RM points to a remote host */ |
53 int rp_matches_local; /* true if rp has same name as us */ |
|
53 int tof; /* true if we are at top-of-form */ 54 /* ------------------------------------------------------ */ 55 char *acct_file; /* AF: accounting file */ 56 long baud_rate; /* BR: baud rate if lp is a tty */ 57 char *filters[LPF_COUNT]; /* CF, DF, GF, IF, NF, OF, RF, TF, VF */ 58 long conn_timeout; /* CT: TCP connection timeout */ 59 long daemon_user; /* DU: daemon user id -- XXX belongs ???? */ 60 char *form_feed; /* FF: form feed */ --- 173 unchanged lines hidden --- | 54 int tof; /* true if we are at top-of-form */ 55 /* ------------------------------------------------------ */ 56 char *acct_file; /* AF: accounting file */ 57 long baud_rate; /* BR: baud rate if lp is a tty */ 58 char *filters[LPF_COUNT]; /* CF, DF, GF, IF, NF, OF, RF, TF, VF */ 59 long conn_timeout; /* CT: TCP connection timeout */ 60 long daemon_user; /* DU: daemon user id -- XXX belongs ???? */ 61 char *form_feed; /* FF: form feed */ --- 173 unchanged lines hidden --- |