]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/conf.h
Y2k copyright changes.
[thirdparty/cups.git] / scheduler / conf.h
1 /*
2 * "$Id: conf.h,v 1.19 2000/01/04 13:46:09 mike Exp $"
3 *
4 * Configuration file definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
6 *
7 * Copyright 1997-2000 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 LOG_PAGE -1 /* Used internally for page logging */
31 #define LOG_NONE 0
32 #define LOG_ERROR 1
33 #define LOG_WARN 2
34 #define LOG_INFO 3
35 #define LOG_DEBUG 4
36
37
38 /*
39 * Globals...
40 */
41
42 VAR char ConfigurationFile[256] VALUE(CUPS_SERVERROOT "/cupsd.conf"),
43 /* Configuration file to use */
44 ServerName[256] VALUE(""),
45 /* FQDN for server */
46 ServerAdmin[256] VALUE(""),
47 /* Administrator's email */
48 ServerRoot[1024] VALUE(CUPS_SERVERROOT),
49 /* Root directory for scheduler */
50 ServerBin[1024] VALUE(CUPS_SERVERBIN),
51 /* Root directory for binaries */
52 RequestRoot[1024] VALUE(CUPS_REQUESTS),
53 /* Directory for request files */
54 DocumentRoot[1024] VALUE(CUPS_DOCROOT),
55 /* Root directory for documents */
56 SystemGroup[32],
57 /* System group name */
58 AccessLog[1024] VALUE(CUPS_LOGDIR "/access_log"),
59 /* Access log filename */
60 ErrorLog[1024] VALUE(CUPS_LOGDIR "/error_log"),
61 /* Error log filename */
62 PageLog[1024] VALUE(CUPS_LOGDIR "/page_log"),
63 /* Page log filename */
64 DefaultLanguage[32] VALUE("C"),
65 /* Default language encoding */
66 DefaultCharset[32] VALUE(DEFAULT_CHARSET),
67 /* Default charset */
68 RIPCache[32] VALUE("8m"),
69 /* Amount of memory for RIPs */
70 TempDir[32] VALUE("/var/tmp");
71 /* Temporary directory */
72 VAR int User VALUE(1),
73 /* User ID for server */
74 Group VALUE(0),
75 /* Group ID for server */
76 LogLevel VALUE(LOG_ERROR),
77 /* Log level */
78 MaxClients VALUE(0),
79 /* Maximum number of clients */
80 MaxLogSize VALUE(1024 * 1024),
81 /* Maximum size of log files */
82 MaxRequestSize VALUE(0),
83 /* Maximum size of IPP requests */
84 HostNameLookups VALUE(FALSE),
85 /* Do we do reverse lookups? */
86 Timeout VALUE(DEFAULT_TIMEOUT),
87 /* Timeout during requests */
88 KeepAlive VALUE(TRUE),
89 /* Support the Keep-Alive option? */
90 KeepAliveTimeout VALUE(DEFAULT_KEEPALIVE),
91 /* Timeout between requests */
92 ImplicitClasses VALUE(TRUE);
93 /* Are classes implicitly created? */
94 VAR FILE *AccessFile VALUE(NULL),
95 /* Access log file */
96 *ErrorFile VALUE(NULL),
97 /* Error log file */
98 *PageFile VALUE(NULL);
99 /* Page log file */
100 VAR mime_t *MimeDatabase VALUE(NULL);
101 /* MIME type database */
102
103
104 /*
105 * Prototypes...
106 */
107
108 extern int ReadConfiguration(void);
109 extern int LogRequest(client_t *con, http_status_t code);
110 extern int LogMessage(int level, char *message, ...);
111 extern int LogPage(job_t *job, char *page);
112
113
114 /*
115 * End of "$Id: conf.h,v 1.19 2000/01/04 13:46:09 mike Exp $".
116 */