]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/cupsd.h
Y2k copyright changes.
[thirdparty/cups.git] / scheduler / cupsd.h
CommitLineData
43e2fc22 1/*
71fe22b7 2 * "$Id: cupsd.h,v 1.18 2000/01/04 13:46:09 mike Exp $"
43e2fc22 3 *
fd8b1cf8 4 * Main header file for the Common UNIX Printing System (CUPS) scheduler.
43e2fc22 5 *
71fe22b7 6 * Copyright 1997-2000 by Easy Software Products, all rights reserved.
43e2fc22 7 *
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
8784b6a6 17 * 44141 Airport View Drive, Suite 204
43e2fc22 18 * Hollywood, Maryland 20636-3111 USA
19 *
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
43e2fc22 23 */
24
25/*
26 * Include necessary headers.
27 */
28
fd8b1cf8 29#include <stdio.h>
30#include <stdlib.h>
31#include <ctype.h>
32#include <limits.h>
fd8b1cf8 33#include <errno.h>
34#include <time.h>
35#include <signal.h>
fd8b1cf8 36#include <fcntl.h>
fd8b1cf8 37#include <sys/types.h>
38#include <sys/time.h>
39#include <sys/stat.h>
40#include <sys/wait.h>
41
a74b005d 42#if defined(WIN32) || defined(__EMX__)
43# include <direct.h>
fd8b1cf8 44#else
a74b005d 45# include <unistd.h>
46#endif /* WIN32 || __EMX__ */
47
48#include <cups/cups.h>
49#include <cups/string.h>
50#include <cups/mime.h>
51#include <cups/http.h>
52#include <cups/ipp.h>
53#include <cups/language.h>
6abc7437 54#include <cups/debug.h>
fd8b1cf8 55
56
57/*
58 * Common constants.
59 */
60
61#ifndef FALSE
62# define FALSE 0
63# define TRUE (!FALSE)
64#endif /* !FALSE */
65
66
67/*
68 * Implementation limits...
69 */
70
fd8b1cf8 71#define MAX_BROWSERS 10 /* Maximum number of browse addresses */
72#define MAX_LISTENERS 10 /* Maximum number of listener sockets */
a74b005d 73#define MAX_USERPASS 16 /* Maximum size of username/password */
6abc7437 74#define MAX_FILTERS 20 /* Maximum number of filters */
fd8b1cf8 75
bd84e0d1 76
fd8b1cf8 77/*
78 * Defaults...
79 */
80
bd84e0d1 81#define DEFAULT_HISTORY 1 /* Preserve job history? */
82#define DEFAULT_FILES 0 /* Preserve job files? */
fd8b1cf8 83#define DEFAULT_TIMEOUT 300 /* Timeout during requests/updates */
bd176c9c 84#define DEFAULT_KEEPALIVE 60 /* Timeout between requests */
fd8b1cf8 85#define DEFAULT_INTERVAL 30 /* Interval between browse updates */
c16a5249 86#ifdef WIN32 /* Fix for broken Linux setlocale() */
87# define DEFAULT_LANGUAGE setlocale(LC_ALL,"")
bd176c9c 88 /* Default language encoding */
c16a5249 89#else
90# define DEFAULT_LANGUAGE getenv("LANG")
91 /* Default language encoding */
92#endif /* !WIN32 */
bd176c9c 93#define DEFAULT_CHARSET "iso-8859-1"
94 /* Default charset */
472ce1dc 95
fd8b1cf8 96/*
97 * Global variable macros...
98 */
99
100#ifdef _MAIN_C_
101# define VAR
102# define VALUE(x) =x
103#else
104# define VAR extern
105# define VALUE(x)
106#endif /* _MAIN_C */
107
108
109/*
110 * Other stuff for the scheduler...
111 */
112
d2122fde 113#include "cert.h"
a74b005d 114#include "client.h"
fd8b1cf8 115#include "auth.h"
fd8b1cf8 116#include "dirsvc.h"
117#include "printers.h"
a9de544f 118#include "classes.h"
119#include "job.h"
c7fa9d06 120#include "conf.h"
fd8b1cf8 121
122
123/*
124 * Globals...
125 */
126
127VAR fd_set InputSet, /* Input files for select() */
128 OutputSet; /* Output files for select() */
129
a74b005d 130VAR time_t StartTime; /* Time server was started */
fd8b1cf8 131VAR int NeedReload VALUE(TRUE);
a74b005d 132 /* Need to load configuration? */
05e63c18 133VAR char TZ[1024] VALUE("TZ=GMT");
134 /* Timezone configuration */
fd8b1cf8 135
bd84e0d1 136VAR ipp_t *Devices VALUE(NULL),
137 /* Available devices */
138 *PPDs VALUE(NULL);
139 /* Available PPDs */
140
fd8b1cf8 141
142/*
143 * Prototypes...
144 */
43e2fc22 145
146
147/*
71fe22b7 148 * End of "$Id: cupsd.h,v 1.18 2000/01/04 13:46:09 mike Exp $".
43e2fc22 149 */