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