b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $Xorg: DiPrint.h,v 1.3 2000/08/17 19:48:04 cpqbld Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 Hewlett-Packard Company
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 International Business Machines Corp.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 Sun Microsystems, Inc.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 Novell, Inc.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 Digital Equipment Corp.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 Fujitsu Limited
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync(c) Copyright 1996 Hitachi, Ltd.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncPermission is hereby granted, free of charge, to any person obtaining a copy
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncof this software and associated documentation files (the "Software"), to deal
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncin the Software without restriction, including without limitation the rights
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncto use, copy, modify, merge, publish, distribute, sublicense, and/or sell
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynccopies of the Software, and to permit persons to whom the Software is
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncfurnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncThe above copyright notice and this permission notice shall be included in
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncall copies or substantial portions of the Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncExcept as contained in this notice, the names of the copyright holders shall
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncnot be used in advertising or otherwise to promote the sale, use or other
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncdealings in this Software without prior written authorization from said
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynccopyright holders.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The XpDiListEntry struct is the type of each element of the array
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * handed back to the extension code to handle a GetPrinterList request.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * We don't use the printerDb directly because of the desire to handle
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * multiple locales. Creating this new array for each GetPrinterList
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * request will allow us to build it with the description in the locale of
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the requesting client.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct _diListEntry {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long rootWinId;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void XpDiFreePrinterList(XpDiListEntry **list);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern char * XpDiGetDriverName(int index, char *printerName);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int PrinterOptions(int argc, char **argv, int i);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void PrinterUseMsg(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void PrinterInitGlobals(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void _XpVoidNoop(void);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* _XpDiPrint_H_ */