]>
Commit | Line | Data |
---|---|---|
a129ddbd | 1 | /* |
aa7e125a | 2 | * "$Id: conf.h,v 1.36.2.5 2002/05/15 01:57:02 mike Exp $" |
a129ddbd | 3 | * |
fd8b1cf8 | 4 | * Configuration file definitions for the Common UNIX Printing System (CUPS) |
5 | * scheduler. | |
a129ddbd | 6 | * |
839c43aa | 7 | * Copyright 1997-2002 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 | ||
26 | /* | |
fd8b1cf8 | 27 | * Log levels... |
28 | */ | |
29 | ||
58e8cf34 | 30 | #define L_PAGE -1 /* Used internally for page logging */ |
31 | #define L_NONE 0 | |
0b50ddbc | 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 */ | |
fd8b1cf8 | 41 | |
42 | ||
7efb04c8 | 43 | /* |
44 | * Printcap formats... | |
45 | */ | |
46 | ||
47 | #define PRINTCAP_BSD 0 /* Berkeley LPD format */ | |
48 | #define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */ | |
49 | ||
50 | ||
fd8b1cf8 | 51 | /* |
52 | * Globals... | |
53 | */ | |
54 | ||
e09246c8 | 55 | VAR char ConfigurationFile[256] VALUE(CUPS_SERVERROOT "/cupsd.conf"), |
fd8b1cf8 | 56 | /* Configuration file to use */ |
5ff9dbae | 57 | ServerName[256] VALUE(""), |
fd8b1cf8 | 58 | /* FQDN for server */ |
5ff9dbae | 59 | ServerAdmin[256] VALUE(""), |
fd8b1cf8 | 60 | /* Administrator's email */ |
bd176c9c | 61 | ServerRoot[1024] VALUE(CUPS_SERVERROOT), |
fd8b1cf8 | 62 | /* Root directory for scheduler */ |
bd84e0d1 | 63 | ServerBin[1024] VALUE(CUPS_SERVERBIN), |
64 | /* Root directory for binaries */ | |
65 | RequestRoot[1024] VALUE(CUPS_REQUESTS), | |
66 | /* Directory for request files */ | |
753453e4 | 67 | DocumentRoot[1024] VALUE(CUPS_DOCROOT); |
fd8b1cf8 | 68 | /* Root directory for documents */ |
753453e4 | 69 | VAR int NumSystemGroups VALUE(0); |
70 | /* Number of system group names */ | |
71 | VAR char SystemGroups[MAX_SYSTEM_GROUPS][32], | |
72 | /* System group names */ | |
e09246c8 | 73 | AccessLog[1024] VALUE(CUPS_LOGDIR "/access_log"), |
fd8b1cf8 | 74 | /* Access log filename */ |
e09246c8 | 75 | ErrorLog[1024] VALUE(CUPS_LOGDIR "/error_log"), |
fd8b1cf8 | 76 | /* Error log filename */ |
e09246c8 | 77 | PageLog[1024] VALUE(CUPS_LOGDIR "/page_log"), |
c7fa9d06 | 78 | /* Page log filename */ |
df3f73ff | 79 | DataDir[1024] VALUE(CUPS_DATADIR), |
80 | /* Data file directory */ | |
bd176c9c | 81 | DefaultLanguage[32] VALUE("C"), |
fd8b1cf8 | 82 | /* Default language encoding */ |
5ff9dbae | 83 | DefaultCharset[32] VALUE(DEFAULT_CHARSET), |
a9de544f | 84 | /* Default charset */ |
d6e17267 | 85 | RIPCache[32] VALUE("8m"), |
7f0679f5 | 86 | /* Amount of memory for RIPs */ |
082b40d2 | 87 | TempDir[1024] VALUE(CUPS_REQUESTS "/tmp"), |
7f0679f5 | 88 | /* Temporary directory */ |
7517e57e | 89 | Printcap[1024] VALUE(""), |
03081fd2 | 90 | /* Printcap file */ |
9ae34eb7 | 91 | PrintcapGUI[1024] VALUE("/usr/bin/glpoptions"), |
92 | /* GUI program to use for IRIX */ | |
d74efa25 | 93 | FontPath[1024] VALUE(CUPS_FONTPATH), |
7517e57e | 94 | /* Font search path */ |
d11458ff | 95 | RemoteRoot[32] VALUE("remroot"), |
d74efa25 | 96 | /* Remote root user */ |
d11458ff | 97 | Classification[IPP_MAX_NAME] VALUE(""); |
98 | /* Classification of system */ | |
753453e4 | 99 | VAR int ClassifyOverride VALUE(0), |
100 | /* Allow overrides? */ | |
415199da | 101 | ConfigFilePerm VALUE(0600), |
102 | /* Permissions for config files */ | |
103 | LogFilePerm VALUE(0644), | |
104 | /* Permissions for log files */ | |
753453e4 | 105 | User VALUE(1), |
fd8b1cf8 | 106 | /* User ID for server */ |
d62e9bdd | 107 | Group VALUE(0), |
fd8b1cf8 | 108 | /* Group ID for server */ |
5ea8888e | 109 | LogLevel VALUE(L_ERROR), |
fd8b1cf8 | 110 | /* Log level */ |
997edb40 | 111 | MaxClients VALUE(0), |
112 | /* Maximum number of clients */ | |
bd176c9c | 113 | MaxLogSize VALUE(1024 * 1024), |
114 | /* Maximum size of log files */ | |
115 | MaxRequestSize VALUE(0), | |
116 | /* Maximum size of IPP requests */ | |
5ff9dbae | 117 | HostNameLookups VALUE(FALSE), |
fd8b1cf8 | 118 | /* Do we do reverse lookups? */ |
5ff9dbae | 119 | Timeout VALUE(DEFAULT_TIMEOUT), |
fd8b1cf8 | 120 | /* Timeout during requests */ |
5ff9dbae | 121 | KeepAlive VALUE(TRUE), |
fd8b1cf8 | 122 | /* Support the Keep-Alive option? */ |
5ff9dbae | 123 | KeepAliveTimeout VALUE(DEFAULT_KEEPALIVE), |
fd8b1cf8 | 124 | /* Timeout between requests */ |
8239f206 | 125 | ImplicitClasses VALUE(TRUE), |
fd8b1cf8 | 126 | /* Are classes implicitly created? */ |
753453e4 | 127 | ImplicitAnyClasses VALUE(FALSE), |
128 | /* Create AnyPrinter classes? */ | |
129 | HideImplicitMembers VALUE(TRUE), | |
130 | /* Hide implicit class members? */ | |
8239f206 | 131 | FilterLimit VALUE(0), |
132 | /* Max filter cost at any time */ | |
89db771d | 133 | FilterLevel VALUE(0), |
8239f206 | 134 | /* Current filter level */ |
7efb04c8 | 135 | RunAsUser VALUE(FALSE), |
89db771d | 136 | /* Run as unpriviledged user? */ |
7efb04c8 | 137 | PrintcapFormat VALUE(PRINTCAP_BSD); |
138 | /* Format of printcap file? */ | |
5ff9dbae | 139 | VAR FILE *AccessFile VALUE(NULL), |
fd8b1cf8 | 140 | /* Access log file */ |
c7fa9d06 | 141 | *ErrorFile VALUE(NULL), |
fd8b1cf8 | 142 | /* Error log file */ |
c7fa9d06 | 143 | *PageFile VALUE(NULL); |
144 | /* Page log file */ | |
5ff9dbae | 145 | VAR mime_t *MimeDatabase VALUE(NULL); |
c7fa9d06 | 146 | /* MIME type database */ |
753453e4 | 147 | VAR int NumMimeTypes VALUE(0); |
148 | /* Number of MIME types */ | |
149 | VAR const char **MimeTypes VALUE(NULL); | |
150 | /* Array of MIME types */ | |
fd8b1cf8 | 151 | |
a75c006a | 152 | #ifdef HAVE_LIBSSL |
153 | VAR char ServerCertificate[1024] VALUE("ssl/server.crt"), | |
154 | /* Server certificate file */ | |
155 | ServerKey[1024] VALUE("ssl/server.key"); | |
156 | /* Server key file */ | |
157 | #endif /* HAVE_LIBSSL */ | |
158 | ||
fd8b1cf8 | 159 | |
160 | /* | |
161 | * Prototypes... | |
a129ddbd | 162 | */ |
163 | ||
eaafe5e0 | 164 | extern char *GetDateTime(time_t t); |
fd8b1cf8 | 165 | extern int ReadConfiguration(void); |
6a0c519d | 166 | extern int LogRequest(client_t *con, http_status_t code); |
aa7e125a | 167 | extern int LogMessage(int level, const char *message, ...) |
168 | #ifdef __GNUC__ | |
169 | __attribute__ ((__format__ (__printf__, 2, 3))) | |
170 | #endif /* __GNUC__ */ | |
171 | ; | |
ee3d3922 | 172 | extern int LogPage(job_t *job, const char *page); |
a129ddbd | 173 | |
174 | ||
175 | /* | |
aa7e125a | 176 | * End of "$Id: conf.h,v 1.36.2.5 2002/05/15 01:57:02 mike Exp $". |
a129ddbd | 177 | */ |