]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
8ca02f3c | 2 | * "$Id: conf.h 5696 2006-06-26 18:34:20Z 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 | { | |
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 */ | |
36 | CUPSD_LOG_NONE, | |
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 */ | |
46 | } cupsd_loglevel_t; | |
47 | ||
48 | ||
49 | /* | |
50 | * Printcap formats... | |
51 | */ | |
52 | ||
53 | #define PRINTCAP_BSD 0 /* Berkeley LPD format */ | |
54 | #define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */ | |
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 */ | |
114 | VAR uid_t User VALUE(1); | |
115 | /* User ID for server */ | |
116 | VAR gid_t Group VALUE(0); | |
117 | /* Group ID for server */ | |
118 | VAR int ClassifyOverride VALUE(0), | |
119 | /* Allow overrides? */ | |
120 | ConfigFilePerm VALUE(0640), | |
121 | /* Permissions for config files */ | |
122 | LogFilePerm VALUE(0644), | |
123 | /* Permissions for log files */ | |
124 | LogLevel VALUE(CUPSD_LOG_ERROR), | |
125 | /* Log level */ | |
126 | MaxClients VALUE(0), | |
127 | /* Maximum number of clients */ | |
128 | MaxClientsPerHost VALUE(0), | |
129 | /* Maximum number of clients per host */ | |
130 | MaxCopies VALUE(100), | |
131 | /* Maximum number of copies per job */ | |
132 | MaxLogSize VALUE(1024 * 1024), | |
133 | /* Maximum size of log files */ | |
134 | MaxPrinterHistory VALUE(10), | |
135 | /* Maximum printer state history */ | |
136 | MaxRequestSize VALUE(0), | |
137 | /* Maximum size of IPP requests */ | |
138 | HostNameLookups VALUE(FALSE), | |
139 | /* Do we do reverse lookups? */ | |
140 | Timeout VALUE(DEFAULT_TIMEOUT), | |
141 | /* Timeout during requests */ | |
142 | KeepAlive VALUE(TRUE), | |
143 | /* Support the Keep-Alive option? */ | |
144 | KeepAliveTimeout VALUE(DEFAULT_KEEPALIVE), | |
145 | /* Timeout between requests */ | |
146 | ImplicitClasses VALUE(TRUE), | |
147 | /* Are classes implicitly created? */ | |
148 | ImplicitAnyClasses VALUE(FALSE), | |
149 | /* Create AnyPrinter classes? */ | |
150 | HideImplicitMembers VALUE(TRUE), | |
151 | /* Hide implicit class members? */ | |
152 | FileDevice VALUE(FALSE), | |
153 | /* Allow file: devices? */ | |
154 | FilterLimit VALUE(0), | |
155 | /* Max filter cost at any time */ | |
156 | FilterLevel VALUE(0), | |
157 | /* Current filter level */ | |
158 | FilterNice VALUE(0), | |
159 | /* Nice value for filters */ | |
160 | ReloadTimeout VALUE(0), | |
161 | /* Timeout before reload from SIGHUP */ | |
162 | RootCertDuration VALUE(300), | |
163 | /* Root certificate update interval */ | |
ef416fc2 | 164 | RunUser, /* User to run as, used for files */ |
fa73b229 | 165 | PrintcapFormat VALUE(PRINTCAP_BSD), |
ef416fc2 | 166 | /* Format of printcap file? */ |
fa73b229 | 167 | DefaultShared VALUE(TRUE); |
168 | /* Share printers by default? */ | |
ef416fc2 | 169 | VAR cups_file_t *AccessFile VALUE(NULL), |
170 | /* Access log file */ | |
171 | *ErrorFile VALUE(NULL), | |
172 | /* Error log file */ | |
173 | *PageFile VALUE(NULL); | |
174 | /* Page log file */ | |
175 | VAR mime_t *MimeDatabase VALUE(NULL); | |
176 | /* MIME type database */ | |
177 | VAR int NumMimeTypes VALUE(0); | |
178 | /* Number of MIME types */ | |
179 | VAR const char **MimeTypes VALUE(NULL); | |
180 | /* Array of MIME types */ | |
181 | ||
182 | #ifdef HAVE_SSL | |
183 | VAR char *ServerCertificate VALUE(NULL); | |
184 | /* Server certificate file */ | |
185 | # if defined(HAVE_LIBSSL) || defined(HAVE_GNUTLS) | |
186 | VAR char *ServerKey VALUE(NULL); | |
187 | /* Server key file */ | |
ef416fc2 | 188 | # endif /* HAVE_LIBSSL || HAVE_GNUTLS */ |
189 | #endif /* HAVE_SSL */ | |
190 | ||
a4d04587 | 191 | #ifdef HAVE_LAUNCHD |
192 | VAR int LaunchdTimeout VALUE(DEFAULT_TIMEOUT); | |
193 | /* Time after which an idle cupsd will exit */ | |
194 | VAR char *LaunchdConf VALUE(NULL); | |
195 | /* launchd(8) configuration file */ | |
196 | #endif /* HAVE_LAUNCHD */ | |
ef416fc2 | 197 | |
198 | /* | |
199 | * Prototypes... | |
200 | */ | |
201 | ||
202 | extern char *cupsdGetDateTime(time_t t); | |
203 | extern int cupsdReadConfiguration(void); | |
204 | extern int cupsdLogRequest(cupsd_client_t *con, http_status_t code); | |
205 | extern int cupsdLogMessage(int level, const char *message, ...) | |
206 | #ifdef __GNUC__ | |
207 | __attribute__ ((__format__ (__printf__, 2, 3))) | |
208 | #endif /* __GNUC__ */ | |
209 | ; | |
210 | extern int cupsdLogPage(cupsd_job_t *job, const char *page); | |
211 | ||
212 | ||
213 | /* | |
8ca02f3c | 214 | * End of "$Id: conf.h 5696 2006-06-26 18:34:20Z mike $". |
ef416fc2 | 215 | */ |