]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
f7deaa1a | 2 | * "$Id: conf.h 6291 2007-02-19 21:54:27Z mike $" |
ef416fc2 | 3 | * |
4 | * Configuration file definitions for the Common UNIX Printing System (CUPS) | |
5 | * scheduler. | |
6 | * | |
bd7854cb | 7 | * Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | * |
9 | * These coded instructions, statements, and computer programs are the | |
10 | * property of Easy Software Products and are protected by Federal | |
11 | * copyright law. Distribution and use rights are outlined in the file | |
12 | * "LICENSE.txt" which should have been included with this file. If this | |
13 | * file is missing or damaged please contact Easy Software Products | |
14 | * at: | |
15 | * | |
16 | * Attn: CUPS Licensing Information | |
17 | * Easy Software Products | |
18 | * 44141 Airport View Drive, Suite 204 | |
19 | * Hollywood, Maryland 20636 USA | |
20 | * | |
21 | * Voice: (301) 373-9600 | |
22 | * EMail: cups-info@cups.org | |
23 | * WWW: http://www.cups.org | |
24 | */ | |
25 | ||
26 | ||
27 | /* | |
28 | * Log levels... | |
29 | */ | |
30 | ||
31 | typedef enum | |
32 | { | |
f7deaa1a | 33 | CUPSD_LOG_ATTR = -3, /* Used internally for attributes */ |
34 | CUPSD_LOG_STATE, /* Used internally for state-reasons */ | |
35 | CUPSD_LOG_PAGE, /* Used internally for page logging */ | |
ef416fc2 | 36 | CUPSD_LOG_NONE, |
f7deaa1a | 37 | CUPSD_LOG_EMERG, /* Emergency issues */ |
38 | CUPSD_LOG_ALERT, /* Something bad happened that needs attention */ | |
39 | CUPSD_LOG_CRIT, /* Critical error but server continues */ | |
40 | CUPSD_LOG_ERROR, /* Error condition */ | |
41 | CUPSD_LOG_WARN, /* Warning */ | |
42 | CUPSD_LOG_NOTICE, /* Normal condition that needs logging */ | |
43 | CUPSD_LOG_INFO, /* General information */ | |
44 | CUPSD_LOG_DEBUG, /* General debugging */ | |
45 | CUPSD_LOG_DEBUG2 /* Detailed debugging */ | |
ef416fc2 | 46 | } cupsd_loglevel_t; |
47 | ||
48 | ||
49 | /* | |
50 | * Printcap formats... | |
51 | */ | |
52 | ||
f7deaa1a | 53 | #define PRINTCAP_BSD 0 /* Berkeley LPD format */ |
54 | #define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */ | |
ef416fc2 | 55 | |
56 | ||
57 | /* | |
58 | * Globals... | |
59 | */ | |
60 | ||
61 | VAR char *ConfigurationFile VALUE(NULL), | |
62 | /* Configuration file to use */ | |
63 | *ServerName VALUE(NULL), | |
64 | /* FQDN for server */ | |
65 | *ServerAdmin VALUE(NULL), | |
66 | /* Administrator's email */ | |
67 | *ServerRoot VALUE(NULL), | |
68 | /* Root directory for scheduler */ | |
69 | *ServerBin VALUE(NULL), | |
70 | /* Root directory for binaries */ | |
71 | *StateDir VALUE(NULL), | |
72 | /* Root directory for state data */ | |
73 | *RequestRoot VALUE(NULL), | |
74 | /* Directory for request files */ | |
75 | *DocumentRoot VALUE(NULL); | |
76 | /* Root directory for documents */ | |
8ca02f3c | 77 | VAR int ServerNameIsIP VALUE(0); |
ef416fc2 | 78 | VAR int NumSystemGroups VALUE(0); |
79 | /* Number of system group names */ | |
80 | VAR char *SystemGroups[MAX_SYSTEM_GROUPS]; | |
81 | /* System group names */ | |
bd7854cb | 82 | VAR gid_t SystemGroupIDs[MAX_SYSTEM_GROUPS]; |
ef416fc2 | 83 | /* System group IDs */ |
84 | VAR char *AccessLog VALUE(NULL), | |
85 | /* Access log filename */ | |
86 | *ErrorLog VALUE(NULL), | |
87 | /* Error log filename */ | |
88 | *PageLog VALUE(NULL), | |
89 | /* Page log filename */ | |
90 | *CacheDir VALUE(NULL), | |
91 | /* Cache file directory */ | |
92 | *DataDir VALUE(NULL), | |
93 | /* Data file directory */ | |
94 | *DefaultLanguage VALUE(NULL), | |
95 | /* Default language encoding */ | |
96 | *DefaultCharset VALUE(NULL), | |
97 | /* Default charset */ | |
98 | *DefaultLocale VALUE(NULL), | |
99 | /* Default locale */ | |
100 | *RIPCache VALUE(NULL), | |
101 | /* Amount of memory for RIPs */ | |
102 | *TempDir VALUE(NULL), | |
103 | /* Temporary directory */ | |
104 | *Printcap VALUE(NULL), | |
105 | /* Printcap file */ | |
106 | *PrintcapGUI VALUE(NULL), | |
107 | /* GUI program to use for IRIX */ | |
108 | *FontPath VALUE(NULL), | |
109 | /* Font search path */ | |
110 | *RemoteRoot VALUE(NULL), | |
111 | /* Remote root user */ | |
112 | *Classification VALUE(NULL); | |
113 | /* Classification of system */ | |
f7deaa1a | 114 | #ifdef HAVE_GSSAPI |
115 | VAR char *GSSServiceName VALUE(NULL); | |
116 | /* GSS service name */ | |
117 | VAR char *Krb5Keytab VALUE(NULL); | |
118 | /* Kerberos Keytab */ | |
119 | #endif /* HAVE_GSSAPI */ | |
ef416fc2 | 120 | VAR uid_t User VALUE(1); |
121 | /* User ID for server */ | |
122 | VAR gid_t Group VALUE(0); | |
123 | /* Group ID for server */ | |
124 | VAR int ClassifyOverride VALUE(0), | |
125 | /* Allow overrides? */ | |
126 | ConfigFilePerm VALUE(0640), | |
127 | /* Permissions for config files */ | |
128 | LogFilePerm VALUE(0644), | |
129 | /* Permissions for log files */ | |
130 | LogLevel VALUE(CUPSD_LOG_ERROR), | |
131 | /* Log level */ | |
132 | MaxClients VALUE(0), | |
133 | /* Maximum number of clients */ | |
134 | MaxClientsPerHost VALUE(0), | |
135 | /* Maximum number of clients per host */ | |
f7deaa1a | 136 | MaxCopies VALUE(CUPS_DEFAULT_MAX_COPIES), |
ef416fc2 | 137 | /* Maximum number of copies per job */ |
138 | MaxLogSize VALUE(1024 * 1024), | |
139 | /* Maximum size of log files */ | |
140 | MaxPrinterHistory VALUE(10), | |
141 | /* Maximum printer state history */ | |
142 | MaxRequestSize VALUE(0), | |
143 | /* Maximum size of IPP requests */ | |
144 | HostNameLookups VALUE(FALSE), | |
145 | /* Do we do reverse lookups? */ | |
146 | Timeout VALUE(DEFAULT_TIMEOUT), | |
147 | /* Timeout during requests */ | |
148 | KeepAlive VALUE(TRUE), | |
149 | /* Support the Keep-Alive option? */ | |
150 | KeepAliveTimeout VALUE(DEFAULT_KEEPALIVE), | |
151 | /* Timeout between requests */ | |
152 | ImplicitClasses VALUE(TRUE), | |
153 | /* Are classes implicitly created? */ | |
154 | ImplicitAnyClasses VALUE(FALSE), | |
155 | /* Create AnyPrinter classes? */ | |
156 | HideImplicitMembers VALUE(TRUE), | |
157 | /* Hide implicit class members? */ | |
158 | FileDevice VALUE(FALSE), | |
159 | /* Allow file: devices? */ | |
160 | FilterLimit VALUE(0), | |
161 | /* Max filter cost at any time */ | |
162 | FilterLevel VALUE(0), | |
163 | /* Current filter level */ | |
164 | FilterNice VALUE(0), | |
165 | /* Nice value for filters */ | |
166 | ReloadTimeout VALUE(0), | |
167 | /* Timeout before reload from SIGHUP */ | |
168 | RootCertDuration VALUE(300), | |
169 | /* Root certificate update interval */ | |
ef416fc2 | 170 | RunUser, /* User to run as, used for files */ |
fa73b229 | 171 | PrintcapFormat VALUE(PRINTCAP_BSD), |
ef416fc2 | 172 | /* Format of printcap file? */ |
fa73b229 | 173 | DefaultShared VALUE(TRUE); |
174 | /* Share printers by default? */ | |
ef416fc2 | 175 | VAR cups_file_t *AccessFile VALUE(NULL), |
176 | /* Access log file */ | |
177 | *ErrorFile VALUE(NULL), | |
178 | /* Error log file */ | |
179 | *PageFile VALUE(NULL); | |
180 | /* Page log file */ | |
181 | VAR mime_t *MimeDatabase VALUE(NULL); | |
182 | /* MIME type database */ | |
183 | VAR int NumMimeTypes VALUE(0); | |
184 | /* Number of MIME types */ | |
185 | VAR const char **MimeTypes VALUE(NULL); | |
186 | /* Array of MIME types */ | |
187 | ||
188 | #ifdef HAVE_SSL | |
189 | VAR char *ServerCertificate VALUE(NULL); | |
190 | /* Server certificate file */ | |
191 | # if defined(HAVE_LIBSSL) || defined(HAVE_GNUTLS) | |
192 | VAR char *ServerKey VALUE(NULL); | |
193 | /* Server key file */ | |
ef416fc2 | 194 | # endif /* HAVE_LIBSSL || HAVE_GNUTLS */ |
195 | #endif /* HAVE_SSL */ | |
196 | ||
a4d04587 | 197 | #ifdef HAVE_LAUNCHD |
198 | VAR int LaunchdTimeout VALUE(DEFAULT_TIMEOUT); | |
199 | /* Time after which an idle cupsd will exit */ | |
200 | VAR char *LaunchdConf VALUE(NULL); | |
201 | /* launchd(8) configuration file */ | |
202 | #endif /* HAVE_LAUNCHD */ | |
ef416fc2 | 203 | |
f7deaa1a | 204 | #ifdef HAVE_AUTHORIZATION_H |
205 | VAR char *SystemGroupAuthKey VALUE(NULL); | |
206 | /* System group auth key */ | |
207 | #endif /* HAVE_AUTHORIZATION_H */ | |
208 | ||
209 | ||
ef416fc2 | 210 | /* |
211 | * Prototypes... | |
212 | */ | |
213 | ||
214 | extern char *cupsdGetDateTime(time_t t); | |
215 | extern int cupsdReadConfiguration(void); | |
f7deaa1a | 216 | #ifdef HAVE_GSSAPI |
217 | extern int cupsdLogGSSMessage(int level, int major_status, | |
218 | int minor_status, | |
219 | const char *message, ...); | |
220 | #endif /* HAVE_GSSAPI */ | |
ef416fc2 | 221 | extern int cupsdLogMessage(int level, const char *message, ...) |
222 | #ifdef __GNUC__ | |
223 | __attribute__ ((__format__ (__printf__, 2, 3))) | |
224 | #endif /* __GNUC__ */ | |
225 | ; | |
226 | extern int cupsdLogPage(cupsd_job_t *job, const char *page); | |
f7deaa1a | 227 | extern int cupsdLogRequest(cupsd_client_t *con, http_status_t code); |
ef416fc2 | 228 | |
229 | ||
230 | /* | |
f7deaa1a | 231 | * End of "$Id: conf.h 6291 2007-02-19 21:54:27Z mike $". |
ef416fc2 | 232 | */ |