]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/cupsd.h
2 * "$Id: cupsd.h,v 1.28.2.1 2001/12/26 16:52:52 mike Exp $"
4 * Main header file for the Common UNIX Printing System (CUPS) scheduler.
6 * Copyright 1997-2001 by Easy Software Products, all rights reserved.
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
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636-3111 USA
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
26 * Include necessary headers.
37 #include <sys/types.h>
42 #if defined(WIN32) || defined(__EMX__)
46 #endif /* WIN32 || __EMX__ */
48 #include <cups/cups.h>
49 #include <cups/string.h>
51 #include <cups/http.h>
53 #include <cups/language.h>
54 #include <cups/debug.h>
63 # define TRUE (!FALSE)
68 * Implementation limits...
71 #define MAX_BROWSERS 10 /* Maximum number of browse addresses */
72 #define MAX_LISTENERS 10 /* Maximum number of listener sockets */
73 #define MAX_USERPASS 33 /* Maximum size of username/password */
74 #define MAX_FILTERS 20 /* Maximum number of filters */
75 #define MAX_SYSTEM_GROUPS 32 /* Maximum number of system groups */
82 #define DEFAULT_HISTORY 1 /* Preserve job history? */
83 #define DEFAULT_FILES 0 /* Preserve job files? */
84 #define DEFAULT_TIMEOUT 300 /* Timeout during requests/updates */
85 #define DEFAULT_KEEPALIVE 60 /* Timeout between requests */
86 #define DEFAULT_INTERVAL 30 /* Interval between browse updates */
87 #define DEFAULT_LANGUAGE setlocale(LC_ALL,"")
88 /* Default language encoding */
89 #define DEFAULT_CHARSET "utf-8" /* Default charset */
93 * Global variable macros...
106 * Other stuff for the scheduler...
112 #include "printers.h"
121 * Directory handling functions...
126 typedef struct dirent DIRENT
;
127 # define NAMLEN(dirent) strlen((dirent)->d_name)
130 # include <sys/ndir.h>
133 # include <sys/dir.h>
138 typedef struct direct DIRENT
;
139 # define NAMLEN(dirent) (dirent)->d_namlen
147 VAR
int MaxFDs
; /* Maximum number of files */
148 VAR fd_set InputSet
, /* Input files for select() */
149 OutputSet
; /* Output files for select() */
151 VAR
int NeedReload
VALUE(TRUE
);
152 /* Need to load configuration? */
153 VAR
char TZ
[1024] VALUE("TZ=GMT");
154 /* Timezone configuration */
156 VAR ipp_t
*Devices
VALUE(NULL
),
157 /* Available devices */
166 extern void CatchChildSignals(void);
167 extern void IgnoreChildSignals(void);
168 extern void LoadDevices(const char *d
);
169 extern void LoadPPDs(const char *d
);
170 extern void StartServer(void);
171 extern void StopServer(void);
175 * End of "$Id: cupsd.h,v 1.28.2.1 2001/12/26 16:52:52 mike Exp $".