]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/Xprint/DiPrint.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / programs / Xserver / Xprint / DiPrint.h
1 /* $XConsortium: DiPrint.h /main/1 1996/09/28 16:57:42 rws $ */
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
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:
17
18 The above copyright notice and this permission notice shall be included in
19 all copies or substantial portions of the Software.
20
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.
27
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
31 copyright 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 typedef struct _diListEntry {
42     char *name;
43     char *description;
44     char *localeName;
45     unsigned long rootWinId;
46 } XpDiListEntry;
47
48 extern void XpDiFreePrinterList(XpDiListEntry **list);
49
50 extern XpDiListEntry **XpDiGetPrinterList(
51     int nameLen,
52     char *name,
53     int localeLen,
54     char *locale);