]> arthur.barton.de Git - netatalk.git/blob - etc/papd/printer.h
CVS id tags, define fixes, code beautification
[netatalk.git] / etc / papd / printer.h
1 /*
2  * $Id: printer.h,v 1.5 2001-06-25 20:13:45 rufustfirefly Exp $
3  *
4  * Copyright (c) 1990,1995 Regents of The University of Michigan.
5  * All Rights Reserved.  See COPYRIGHT.
6  */
7
8 struct printer {
9     char                *p_name;
10     char                *p_type;
11     char                *p_zone;
12 #ifdef notdef
13     char                *p_fonts;
14     char                *p_psetdir;
15 #endif /* notdef */
16     char                *p_ppdfile;
17     char                *p_authprintdir;
18     int                 p_flags;
19     struct at_addr      p_addr;
20     union {
21         struct {
22             char                *pr_printer;
23             char                *pr_operator;
24             char                *pr_spool;
25 #ifdef ABS_PRINT
26             char                *pr_role;
27             double              pr_balance;
28             int                 pr_srvid;
29 #endif /* ABS_PRINT */
30             int                 pr_pagecost;
31             char                *pr_pagecost_msg;
32             char                *pr_lock;
33         } pu_pr;
34         char            *pu_cmd;
35     } p_un;
36     ATP                 p_atp;
37     struct printer      *p_next;
38 };
39 #define p_cmd           p_un.pu_cmd
40 #define p_printer       p_un.pu_pr.pr_printer
41 #define p_operator      p_un.pu_pr.pr_operator
42 #define p_spool         p_un.pu_pr.pr_spool
43 #ifdef ABS_PRINT
44 #define p_role          p_un.pu_pr.pr_role
45 #define p_balance       p_un.pu_pr.pr_balance
46 #define p_srvid         p_un.pu_pr.pr_srvid
47 #endif /* ABS_PRINT */
48 #define p_pagecost      p_un.pu_pr.pr_pagecost
49 #define p_pagecost_msg  p_un.pu_pr.pr_pagecost_msg
50 #define p_lock          p_un.pu_pr.pr_lock
51
52 #define P_PIPED         (1<<0)
53 #define P_SPOOLED       (1<<1)
54 #define P_REGISTERED    (1<<2)
55 #define P_ACCOUNT       (1<<3)
56 #define P_KRB           (1<<4)
57 #define P_AUTH          (1<<5)
58 #define P_AUTH_PSSP     (1<<6)
59 #define P_AUTH_CAP      (1<<7)
60
61 extern struct printer   *printer;