1
/* $Xorg: DiPrint.h,v 1.3 2000/08/17 19:48:04 cpqbld Exp $ */
3
(c) Copyright 1996 Hewlett-Packard Company
4
(c) Copyright 1996 International Business Machines Corp.
5
(c) Copyright 1996 Sun Microsystems, Inc.
6
(c) Copyright 1996 Novell, Inc.
7
(c) Copyright 1996 Digital Equipment Corp.
8
(c) Copyright 1996 Fujitsu Limited
9
(c) Copyright 1996 Hitachi, Ltd.
11
Permission is hereby granted, free of charge, to any person obtaining a copy
12
of this software and associated documentation files (the "Software"), to deal
13
in the Software without restriction, including without limitation the rights
14
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
copies of the Software, and to permit persons to whom the Software is
16
furnished to do so, subject to the following conditions:
18
The above copyright notice and this permission notice shall be included in
19
all copies or substantial portions of the Software.
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
25
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
Except as contained in this notice, the names of the copyright holders shall
29
not be used in advertising or otherwise to promote the sale, use or other
30
dealings in this Software without prior written authorization from said
34
* The XpDiListEntry struct is the type of each element of the array
35
* handed back to the extension code to handle a GetPrinterList request.
36
* We don't use the printerDb directly because of the desire to handle
37
* multiple locales. Creating this new array for each GetPrinterList
38
* request will allow us to build it with the description in the locale of
39
* the requesting client.
41
#ifdef HAVE_DIX_CONFIG_H
42
#include <dix-config.h>
46
#define _XpDiPrint_H_ 1
48
#include "scrnintstr.h"
50
typedef struct _diListEntry {
54
unsigned long rootWinId;
57
extern void XpDiFreePrinterList(XpDiListEntry **list);
59
extern XpDiListEntry **XpDiGetPrinterList(
65
extern char * XpDiGetDriverName(int index, char *printerName);
67
extern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen);
69
extern int PrinterOptions(int argc, char **argv, int i);
71
extern void PrinterUseMsg(void);
73
extern void PrinterInitGlobals(void);
75
extern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv);
77
extern void _XpVoidNoop(void);
79
extern Bool _XpBoolNoop(void);
81
#endif /* _XpDiPrint_H_ */