1 |
|
---|
2 | #ifdef HAVE_DIX_CONFIG_H
|
---|
3 | #include <dix-config.h>
|
---|
4 | #endif
|
---|
5 |
|
---|
6 | #ifndef SPOOLER_H
|
---|
7 | #define SPOOLER_H 1
|
---|
8 |
|
---|
9 | /* $Xorg: spooler.h,v 1.1 2003/09/14 1:19:56 gisburn Exp $ */
|
---|
10 | /*
|
---|
11 | Copyright (c) 2003-2004 Roland Mainz <[email protected]>
|
---|
12 |
|
---|
13 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
---|
14 | of this software and associated documentation files (the "Software"), to deal
|
---|
15 | in the Software without restriction, including without limitation the rights
|
---|
16 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
17 | copies of the Software, and to permit persons to whom the Software is
|
---|
18 | furnished to do so, subject to the following conditions:
|
---|
19 |
|
---|
20 | The above copyright notice and this permission notice shall be included in
|
---|
21 | all copies or substantial portions of the Software.
|
---|
22 |
|
---|
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
26 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
---|
27 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
28 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
29 |
|
---|
30 | Except as contained in this notice, the names of the copyright holders shall
|
---|
31 | not be used in advertising or otherwise to promote the sale, use or other
|
---|
32 | dealings in this Software without prior written authorization from said
|
---|
33 | copyright holders.
|
---|
34 | */
|
---|
35 |
|
---|
36 | /*
|
---|
37 | * Define platform-specific default spooler type
|
---|
38 | */
|
---|
39 | #if defined(sun)
|
---|
40 | #define XPDEFAULTSPOOLERNAMELIST "solaris"
|
---|
41 | #elif defined(AIXV4)
|
---|
42 | #define XPDEFAULTSPOOLERNAMELIST "aix4"
|
---|
43 | #elif defined(hpux)
|
---|
44 | #define XPDEFAULTSPOOLERNAMELIST "hpux"
|
---|
45 | #elif defined(__osf__)
|
---|
46 | #define XPDEFAULTSPOOLERNAMELIST "osf"
|
---|
47 | #elif defined(__uxp__)
|
---|
48 | #define XPDEFAULTSPOOLERNAMELIST "uxp"
|
---|
49 | #elif defined(CSRG_BASED) || defined(linux)
|
---|
50 | /* ToDo: This should be "cups:bsd" in the future, but for now
|
---|
51 | * the search order first-bsd-then-cups is better for backwards
|
---|
52 | * compatibility.
|
---|
53 | */
|
---|
54 | #define XPDEFAULTSPOOLERNAMELIST "bsd:cups"
|
---|
55 | #else
|
---|
56 | #define XPDEFAULTSPOOLERNAMELIST "other"
|
---|
57 | #endif
|
---|
58 |
|
---|
59 | typedef struct
|
---|
60 | {
|
---|
61 | const char *name;
|
---|
62 | const char *list_queues_command;
|
---|
63 | const char *spool_command;
|
---|
64 | } XpSpoolerType, *XpSpoolerTypePtr;
|
---|
65 |
|
---|
66 | /* prototypes */
|
---|
67 | extern XpSpoolerTypePtr XpSpoolerNameToXpSpoolerType(char *name);
|
---|
68 | extern void XpSetSpoolerTypeNameList(char *namelist);
|
---|
69 | extern char *XpGetSpoolerTypeNameList(void);
|
---|
70 |
|
---|
71 | /* global vars */
|
---|
72 | extern XpSpoolerTypePtr spooler_type;
|
---|
73 | extern XpSpoolerType xpstm[];
|
---|
74 |
|
---|
75 | #endif /* !SPOOLER_H */
|
---|
76 |
|
---|