]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/conf.h
Copyright update...
[thirdparty/cups.git] / scheduler / conf.h
1 /*
2 * "$Id: conf.h,v 1.41 2002/01/02 17:59:14 mike Exp $"
3 *
4 * Configuration file definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
6 *
7 * Copyright 1997-2002 by Easy Software Products, all rights reserved.
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-3111 USA
20 *
21 * Voice: (301) 373-9603
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26 /*
27 * Log levels...
28 */
29
30 #define L_PAGE -1 /* Used internally for page logging */
31 #define L_NONE 0
32 #define L_EMERG 1 /* Emergency issues */
33 #define L_ALERT 2 /* Something bad happened that needs attention */
34 #define L_CRIT 3 /* Critical error but server continues */
35 #define L_ERROR 4 /* Error condition */
36 #define L_WARN 5 /* Warning */
37 #define L_NOTICE 6 /* Normal condition that needs logging */
38 #define L_INFO 7 /* General information */
39 #define L_DEBUG 8 /* General debugging */
40 #define L_DEBUG2 9 /* Detailed debugging */
41
42
43 /*
44 * Printcap formats...
45 */
46
47 #define PRINTCAP_BSD 0 /* Berkeley LPD format */
48 #define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */
49
50
51 /*
52 * Globals...
53 */
54
55 VAR char ConfigurationFile[256] VALUE(CUPS_SERVERROOT "/cupsd.conf"),
56 /* Configuration file to use */
57 ServerName[256] VALUE(""),
58 /* FQDN for server */
59 ServerAdmin[256] VALUE(""),
60 /* Administrator's email */
61 ServerRoot[1024] VALUE(CUPS_SERVERROOT),
62 /* Root directory for scheduler */
63 ServerBin[1024] VALUE(CUPS_SERVERBIN),
64 /* Root directory for binaries */
65 RequestRoot[1024] VALUE(CUPS_REQUESTS),
66 /* Directory for request files */
67 DocumentRoot[1024] VALUE(CUPS_DOCROOT);
68 /* Root directory for documents */
69 VAR int NumSystemGroups VALUE(0);
70 /* Number of system group names */
71 VAR char SystemGroups[MAX_SYSTEM_GROUPS][32],
72 /* System group names */
73 AccessLog[1024] VALUE(CUPS_LOGDIR "/access_log"),
74 /* Access log filename */
75 ErrorLog[1024] VALUE(CUPS_LOGDIR "/error_log"),
76 /* Error log filename */
77 PageLog[1024] VALUE(CUPS_LOGDIR "/page_log"),
78 /* Page log filename */
79 DataDir[1024] VALUE(CUPS_DATADIR),
80 /* Data file directory */
81 DefaultLanguage[32] VALUE("C"),
82 /* Default language encoding */
83 DefaultCharset[32] VALUE(DEFAULT_CHARSET),
84 /* Default charset */
85 RIPCache[32] VALUE("8m"),
86 /* Amount of memory for RIPs */
87 TempDir[1024] VALUE(CUPS_REQUESTS "/tmp"),
88 /* Temporary directory */
89 Printcap[1024] VALUE(""),
90 /* Printcap file */
91 FontPath[1024] VALUE(CUPS_FONTPATH),
92 /* Font search path */
93 RemoteRoot[32] VALUE("remroot"),
94 /* Remote root user */
95 Classification[IPP_MAX_NAME] VALUE("");
96 /* Classification of system */
97 VAR int ClassifyOverride VALUE(0),
98 /* Allow overrides? */
99 User VALUE(1),
100 /* User ID for server */
101 Group VALUE(0),
102 /* Group ID for server */
103 LogLevel VALUE(L_ERROR),
104 /* Log level */
105 MaxClients VALUE(0),
106 /* Maximum number of clients */
107 MaxLogSize VALUE(1024 * 1024),
108 /* Maximum size of log files */
109 MaxRequestSize VALUE(0),
110 /* Maximum size of IPP requests */
111 HostNameLookups VALUE(FALSE),
112 /* Do we do reverse lookups? */
113 Timeout VALUE(DEFAULT_TIMEOUT),
114 /* Timeout during requests */
115 KeepAlive VALUE(TRUE),
116 /* Support the Keep-Alive option? */
117 KeepAliveTimeout VALUE(DEFAULT_KEEPALIVE),
118 /* Timeout between requests */
119 ImplicitClasses VALUE(TRUE),
120 /* Are classes implicitly created? */
121 ImplicitAnyClasses VALUE(FALSE),
122 /* Create AnyPrinter classes? */
123 HideImplicitMembers VALUE(TRUE),
124 /* Hide implicit class members? */
125 FilterLimit VALUE(0),
126 /* Max filter cost at any time */
127 FilterLevel VALUE(0),
128 /* Current filter level */
129 RunAsUser VALUE(FALSE),
130 /* Run as unpriviledged user? */
131 PrintcapFormat VALUE(PRINTCAP_BSD);
132 /* Format of printcap file? */
133 VAR FILE *AccessFile VALUE(NULL),
134 /* Access log file */
135 *ErrorFile VALUE(NULL),
136 /* Error log file */
137 *PageFile VALUE(NULL);
138 /* Page log file */
139 VAR mime_t *MimeDatabase VALUE(NULL);
140 /* MIME type database */
141 VAR int NumMimeTypes VALUE(0);
142 /* Number of MIME types */
143 VAR const char **MimeTypes VALUE(NULL);
144 /* Array of MIME types */
145
146 #ifdef HAVE_LIBSSL
147 VAR char ServerCertificate[1024] VALUE("ssl/server.crt"),
148 /* Server certificate file */
149 ServerKey[1024] VALUE("ssl/server.key");
150 /* Server key file */
151 #endif /* HAVE_LIBSSL */
152
153
154 /*
155 * Prototypes...
156 */
157
158 extern char *GetDateTime(time_t t);
159 extern int ReadConfiguration(void);
160 extern int LogRequest(client_t *con, http_status_t code);
161 extern int LogMessage(int level, const char *message, ...);
162 extern int LogPage(job_t *job, const char *page);
163
164
165 /*
166 * End of "$Id: conf.h,v 1.41 2002/01/02 17:59:14 mike Exp $".
167 */