]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/conf.h
2 * "$Id: conf.h 6365 2007-03-19 20:56:57Z mike $"
4 * Configuration file definitions for the Common UNIX Printing System (CUPS)
7 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
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
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
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 */
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 */
53 #define PRINTCAP_BSD 0 /* Berkeley LPD format */
54 #define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */
61 VAR
char *ConfigurationFile
VALUE(NULL
),
62 /* Configuration file to use */
63 *ServerName
VALUE(NULL
),
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 */
77 VAR
int ServerNameIsIP
VALUE(0);
78 VAR
int NumSystemGroups
VALUE(0);
79 /* Number of system group names */
80 VAR
char *SystemGroups
[MAX_SYSTEM_GROUPS
];
81 /* System group names */
82 VAR gid_t SystemGroupIDs
[MAX_SYSTEM_GROUPS
];
83 /* System group IDs */
84 VAR
char *AccessLog
VALUE(NULL
),
85 /* Access log filename */
86 *ErrorLog
VALUE(NULL
),
87 /* Error log filename */
89 /* Page log filename */
90 *CacheDir
VALUE(NULL
),
91 /* Cache file directory */
93 /* Data file directory */
94 *DefaultLanguage
VALUE(NULL
),
95 /* Default language encoding */
96 *DefaultCharset
VALUE(NULL
),
98 *DefaultLocale
VALUE(NULL
),
100 *RIPCache
VALUE(NULL
),
101 /* Amount of memory for RIPs */
102 *TempDir
VALUE(NULL
),
103 /* Temporary directory */
104 *Printcap
VALUE(NULL
),
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 */
115 VAR
char *GSSServiceName
VALUE(NULL
);
116 /* GSS service name */
117 VAR
char *Krb5Keytab
VALUE(NULL
);
118 /* Kerberos Keytab */
119 #endif /* HAVE_GSSAPI */
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
),
133 /* Maximum number of clients */
134 MaxClientsPerHost
VALUE(0),
135 /* Maximum number of clients per host */
136 MaxCopies
VALUE(CUPS_DEFAULT_MAX_COPIES
),
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 */
165 /* Nice value for filters */
166 ReloadTimeout
VALUE(0),
167 /* Timeout before reload from SIGHUP */
168 RootCertDuration
VALUE(300),
169 /* Root certificate update interval */
170 RunUser
, /* User to run as, used for files */
171 PrintcapFormat
VALUE(PRINTCAP_BSD
),
172 /* Format of printcap file? */
173 DefaultShared
VALUE(TRUE
);
174 /* Share printers by default? */
175 VAR cups_file_t
*AccessFile
VALUE(NULL
),
176 /* Access log file */
177 *ErrorFile
VALUE(NULL
),
179 *PageFile
VALUE(NULL
);
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 */
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 */
194 # endif /* HAVE_LIBSSL || HAVE_GNUTLS */
195 #endif /* HAVE_SSL */
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 */
205 VAR
int AppleQuotas
VALUE(TRUE
);
206 /* Use Apple PrintService Quotas instead of CUPS quotas */
207 #endif /* __APPLE__ */
209 #ifdef HAVE_AUTHORIZATION_H
210 VAR
char *SystemGroupAuthKey
VALUE(NULL
);
211 /* System group auth key */
212 #endif /* HAVE_AUTHORIZATION_H */
219 extern char *cupsdGetDateTime(time_t t
);
220 extern int cupsdReadConfiguration(void);
222 extern int cupsdLogGSSMessage(int level
, int major_status
,
224 const char *message
, ...);
225 #endif /* HAVE_GSSAPI */
226 extern int cupsdLogMessage(int level
, const char *message
, ...)
228 __attribute__ ((__format__ (__printf__
, 2, 3)))
229 #endif /* __GNUC__ */
231 extern int cupsdLogPage(cupsd_job_t
*job
, const char *page
);
232 extern int cupsdLogRequest(cupsd_client_t
*con
, http_status_t code
);
236 * End of "$Id: conf.h 6365 2007-03-19 20:56:57Z mike $".