]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/conf.h
Mirror 1.1.x changes.
[thirdparty/cups.git] / scheduler / conf.h
CommitLineData
a129ddbd 1/*
dcfcaeac 2 * "$Id: conf.h,v 1.36.2.13 2003/01/24 19:19:46 mike Exp $"
a129ddbd 3 *
fd8b1cf8 4 * Configuration file definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
a129ddbd 6 *
1d9595ab 7 * Copyright 1997-2003 by Easy Software Products, all rights reserved.
a129ddbd 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
8784b6a6 18 * 44141 Airport View Drive, Suite 204
a129ddbd 19 * Hollywood, Maryland 20636-3111 USA
20 *
21 * Voice: (301) 373-9603
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
a129ddbd 24 */
25
dcfcaeac 26
a129ddbd 27/*
fd8b1cf8 28 * Log levels...
29 */
30
58e8cf34 31#define L_PAGE -1 /* Used internally for page logging */
32#define L_NONE 0
0b50ddbc 33#define L_EMERG 1 /* Emergency issues */
34#define L_ALERT 2 /* Something bad happened that needs attention */
35#define L_CRIT 3 /* Critical error but server continues */
36#define L_ERROR 4 /* Error condition */
37#define L_WARN 5 /* Warning */
38#define L_NOTICE 6 /* Normal condition that needs logging */
39#define L_INFO 7 /* General information */
40#define L_DEBUG 8 /* General debugging */
41#define L_DEBUG2 9 /* Detailed debugging */
fd8b1cf8 42
43
7efb04c8 44/*
45 * Printcap formats...
46 */
47
48#define PRINTCAP_BSD 0 /* Berkeley LPD format */
49#define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */
50
51
fd8b1cf8 52/*
53 * Globals...
54 */
55
e09246c8 56VAR char ConfigurationFile[256] VALUE(CUPS_SERVERROOT "/cupsd.conf"),
fd8b1cf8 57 /* Configuration file to use */
5ff9dbae 58 ServerName[256] VALUE(""),
fd8b1cf8 59 /* FQDN for server */
5ff9dbae 60 ServerAdmin[256] VALUE(""),
fd8b1cf8 61 /* Administrator's email */
bd176c9c 62 ServerRoot[1024] VALUE(CUPS_SERVERROOT),
fd8b1cf8 63 /* Root directory for scheduler */
bd84e0d1 64 ServerBin[1024] VALUE(CUPS_SERVERBIN),
65 /* Root directory for binaries */
66 RequestRoot[1024] VALUE(CUPS_REQUESTS),
67 /* Directory for request files */
753453e4 68 DocumentRoot[1024] VALUE(CUPS_DOCROOT);
fd8b1cf8 69 /* Root directory for documents */
753453e4 70VAR int NumSystemGroups VALUE(0);
71 /* Number of system group names */
72VAR char SystemGroups[MAX_SYSTEM_GROUPS][32],
73 /* System group names */
e09246c8 74 AccessLog[1024] VALUE(CUPS_LOGDIR "/access_log"),
fd8b1cf8 75 /* Access log filename */
e09246c8 76 ErrorLog[1024] VALUE(CUPS_LOGDIR "/error_log"),
fd8b1cf8 77 /* Error log filename */
e09246c8 78 PageLog[1024] VALUE(CUPS_LOGDIR "/page_log"),
c7fa9d06 79 /* Page log filename */
df3f73ff 80 DataDir[1024] VALUE(CUPS_DATADIR),
81 /* Data file directory */
bd176c9c 82 DefaultLanguage[32] VALUE("C"),
fd8b1cf8 83 /* Default language encoding */
5ff9dbae 84 DefaultCharset[32] VALUE(DEFAULT_CHARSET),
a9de544f 85 /* Default charset */
d6e17267 86 RIPCache[32] VALUE("8m"),
7f0679f5 87 /* Amount of memory for RIPs */
082b40d2 88 TempDir[1024] VALUE(CUPS_REQUESTS "/tmp"),
7f0679f5 89 /* Temporary directory */
7517e57e 90 Printcap[1024] VALUE(""),
03081fd2 91 /* Printcap file */
9ae34eb7 92 PrintcapGUI[1024] VALUE("/usr/bin/glpoptions"),
93 /* GUI program to use for IRIX */
d74efa25 94 FontPath[1024] VALUE(CUPS_FONTPATH),
7517e57e 95 /* Font search path */
d11458ff 96 RemoteRoot[32] VALUE("remroot"),
d74efa25 97 /* Remote root user */
d11458ff 98 Classification[IPP_MAX_NAME] VALUE("");
99 /* Classification of system */
753453e4 100VAR int ClassifyOverride VALUE(0),
101 /* Allow overrides? */
415199da 102 ConfigFilePerm VALUE(0600),
103 /* Permissions for config files */
104 LogFilePerm VALUE(0644),
105 /* Permissions for log files */
753453e4 106 User VALUE(1),
fd8b1cf8 107 /* User ID for server */
d62e9bdd 108 Group VALUE(0),
fd8b1cf8 109 /* Group ID for server */
5ea8888e 110 LogLevel VALUE(L_ERROR),
fd8b1cf8 111 /* Log level */
997edb40 112 MaxClients VALUE(0),
113 /* Maximum number of clients */
1060c9b6 114 MaxClientsPerHost VALUE(0),
115 /* Maximum number of clients per host */
da956953 116 MaxCopies VALUE(100),
117 /* Maximum number of copies per job */
bd176c9c 118 MaxLogSize VALUE(1024 * 1024),
119 /* Maximum size of log files */
120 MaxRequestSize VALUE(0),
121 /* Maximum size of IPP requests */
5ff9dbae 122 HostNameLookups VALUE(FALSE),
fd8b1cf8 123 /* Do we do reverse lookups? */
5ff9dbae 124 Timeout VALUE(DEFAULT_TIMEOUT),
fd8b1cf8 125 /* Timeout during requests */
5ff9dbae 126 KeepAlive VALUE(TRUE),
fd8b1cf8 127 /* Support the Keep-Alive option? */
5ff9dbae 128 KeepAliveTimeout VALUE(DEFAULT_KEEPALIVE),
fd8b1cf8 129 /* Timeout between requests */
8239f206 130 ImplicitClasses VALUE(TRUE),
fd8b1cf8 131 /* Are classes implicitly created? */
753453e4 132 ImplicitAnyClasses VALUE(FALSE),
133 /* Create AnyPrinter classes? */
134 HideImplicitMembers VALUE(TRUE),
135 /* Hide implicit class members? */
f63a430f 136 FileDevice VALUE(FALSE),
137 /* Allow file: devices? */
8239f206 138 FilterLimit VALUE(0),
139 /* Max filter cost at any time */
89db771d 140 FilterLevel VALUE(0),
8239f206 141 /* Current filter level */
42ede8a2 142 FilterNice VALUE(0),
143 /* Nice value for filters */
d9e72533 144 RootCertDuration VALUE(300),
145 /* Root certificate update interval */
7efb04c8 146 RunAsUser VALUE(FALSE),
89db771d 147 /* Run as unpriviledged user? */
7efb04c8 148 PrintcapFormat VALUE(PRINTCAP_BSD);
149 /* Format of printcap file? */
5ff9dbae 150VAR FILE *AccessFile VALUE(NULL),
fd8b1cf8 151 /* Access log file */
c7fa9d06 152 *ErrorFile VALUE(NULL),
fd8b1cf8 153 /* Error log file */
c7fa9d06 154 *PageFile VALUE(NULL);
155 /* Page log file */
5ff9dbae 156VAR mime_t *MimeDatabase VALUE(NULL);
c7fa9d06 157 /* MIME type database */
753453e4 158VAR int NumMimeTypes VALUE(0);
159 /* Number of MIME types */
160VAR const char **MimeTypes VALUE(NULL);
161 /* Array of MIME types */
fd8b1cf8 162
bcf61448 163#ifdef HAVE_SSL
a75c006a 164VAR char ServerCertificate[1024] VALUE("ssl/server.crt"),
165 /* Server certificate file */
166 ServerKey[1024] VALUE("ssl/server.key");
167 /* Server key file */
bcf61448 168#endif /* HAVE_SSL */
dcfcaeac 169#ifdef HAVE_CDSASSL
170VAR CFArrayRef ServerCertificatesArray VALUE(NULL);
171 /* Array containing certificates */
172#endif /* HAVE_CDSASSL */
a75c006a 173
fd8b1cf8 174
175/*
176 * Prototypes...
a129ddbd 177 */
178
eaafe5e0 179extern char *GetDateTime(time_t t);
fd8b1cf8 180extern int ReadConfiguration(void);
6a0c519d 181extern int LogRequest(client_t *con, http_status_t code);
aa7e125a 182extern int LogMessage(int level, const char *message, ...)
183#ifdef __GNUC__
184__attribute__ ((__format__ (__printf__, 2, 3)))
185#endif /* __GNUC__ */
186;
ee3d3922 187extern int LogPage(job_t *job, const char *page);
a129ddbd 188
189
190/*
dcfcaeac 191 * End of "$Id: conf.h,v 1.36.2.13 2003/01/24 19:19:46 mike Exp $".
a129ddbd 192 */