VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/DiPrint.h

最後變更 在這個檔案是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.8 KB
 
1/* $Xorg: DiPrint.h,v 1.3 2000/08/17 19:48:04 cpqbld Exp $ */
2/*
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.
10
11Permission is hereby granted, free of charge, to any person obtaining a copy
12of this software and associated documentation files (the "Software"), to deal
13in the Software without restriction, including without limitation the rights
14to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15copies of the Software, and to permit persons to whom the Software is
16furnished to do so, subject to the following conditions:
17
18The above copyright notice and this permission notice shall be included in
19all copies or substantial portions of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
25IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28Except as contained in this notice, the names of the copyright holders shall
29not be used in advertising or otherwise to promote the sale, use or other
30dealings in this Software without prior written authorization from said
31copyright holders.
32*/
33/*
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.
40 */
41#ifdef HAVE_DIX_CONFIG_H
42#include <dix-config.h>
43#endif
44
45#ifndef _XpDiPrint_H_
46#define _XpDiPrint_H_ 1
47
48#include "scrnintstr.h"
49
50typedef struct _diListEntry {
51 char *name;
52 char *description;
53 char *localeName;
54 unsigned long rootWinId;
55} XpDiListEntry;
56
57extern void XpDiFreePrinterList(XpDiListEntry **list);
58
59extern XpDiListEntry **XpDiGetPrinterList(
60 int nameLen,
61 char *name,
62 int localeLen,
63 char *locale);
64
65extern char * XpDiGetDriverName(int index, char *printerName);
66
67extern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen);
68
69extern int PrinterOptions(int argc, char **argv, int i);
70
71extern void PrinterUseMsg(void);
72
73extern void PrinterInitGlobals(void);
74
75extern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv);
76
77extern void _XpVoidNoop(void);
78
79extern Bool _XpBoolNoop(void);
80
81#endif /* _XpDiPrint_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette