netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
printer.h
Go to the documentation of this file.
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 char *p_u_name;
11#ifdef notdef
12 char *p_fonts;
13 char *p_psetdir;
14#endif /* notdef */
15 char *p_ppdfile;
16 char p_status[255];
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#ifdef HAVE_CUPS
38 char *p_cupsoptions;
39#endif
40 struct printer *p_next;
41};
42#define p_cmd p_un.pu_cmd
43#define p_printer p_un.pu_pr.pr_printer
44#define p_operator p_un.pu_pr.pr_operator
45#define p_spool p_un.pu_pr.pr_spool
46#ifdef ABS_PRINT
47#define p_role p_un.pu_pr.pr_role
48#define p_balance p_un.pu_pr.pr_balance
49#define p_srvid p_un.pu_pr.pr_srvid
50#endif /* ABS_PRINT */
51#define p_pagecost p_un.pu_pr.pr_pagecost
52#define p_pagecost_msg p_un.pu_pr.pr_pagecost_msg
53#define p_lock p_un.pu_pr.pr_lock
54
55#define P_PIPED (1<<0)
56#define P_SPOOLED (1<<1)
57#define P_REGISTERED (1<<2)
58#define P_ACCOUNT (1<<3)
59#define P_KRB (1<<4)
60#define P_AUTH (1<<5)
61#define P_AUTH_PSSP (1<<6)
62#define P_AUTH_CAP (1<<7)
63#define P_CUPS (1<<8)
64#define P_CUPS_PPD (1<<9)
65#define P_CUPS_AUTOADDED (1<<10)
66#define P_FOOMATIC_HACK (1<<11)
67
68 extern struct printer *printer;
ATP
struct atp_handle * ATP
Definition atp.h:121
at_addr
Definition at.h:68
printer
Definition printer.h:6
printer::p_un
union printer::@126272107031051037156033210046314150145172251120 p_un
printer::p_zone
char * p_zone
Definition printer.h:9
printer::p_type
char * p_type
Definition printer.h:8
printer::p_name
char * p_name
Definition printer.h:7
printer::pr_pagecost_msg
char * pr_pagecost_msg
Definition printer.h:31
printer::p_ppdfile
char * p_ppdfile
Definition printer.h:15
printer::pr_operator
char * pr_operator
Definition printer.h:23
printer::p_u_name
char * p_u_name
Definition printer.h:10
printer::p_cupsoptions
char * p_cupsoptions
Definition printer.h:38
printer::p_status
char p_status[255]
Definition printer.h:16
printer::p_addr
struct at_addr p_addr
Definition printer.h:19
printer::p_next
struct printer * p_next
Definition printer.h:40
printer::pu_cmd
char * pu_cmd
Definition printer.h:34
printer::p_authprintdir
char * p_authprintdir
Definition printer.h:17
printer::pr_lock
char * pr_lock
Definition printer.h:32
printer::pr_printer
char * pr_printer
Definition printer.h:22
printer::pr_pagecost
int pr_pagecost
Definition printer.h:30
printer::p_atp
ATP p_atp
Definition printer.h:36
printer::pr_spool
char * pr_spool
Definition printer.h:24
printer::p_flags
int p_flags
Definition printer.h:18