]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/XLbx.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / include / extensions / XLbx.h
1 /* $XConsortium: XLbx.h /main/21 1996/12/15 21:23:54 rws $ */
2 /*
3  * Copyright 1992 Network Computing Devices
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and its
6  * documentation for any purpose is hereby granted without fee, provided that
7  * the above copyright notice appear in all copies and that both that
8  * copyright notice and this permission notice appear in supporting
9  * documentation, and that the name of NCD. not be used in advertising or
10  * publicity pertaining to distribution of the software without specific,
11  * written prior permission.  NCD. makes no representations about the
12  * suitability of this software for any purpose.  It is provided "as is"
13  * without express or implied warranty.
14  *
15  * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
17  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
19  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
20  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  *
22  */
23  
24 #ifndef _XLBX_H_
25 #define _XLBX_H_
26
27 #include <X11/Xfuncproto.h>
28
29 /*
30  * NOTE:  any changes or additions to the opcodes needs to be reflected
31  * in the lbxCacheable array in Xserver/lbx/lbxmain.c
32  */
33  
34 #define X_LbxQueryVersion               0
35 #define X_LbxStartProxy                 1
36 #define X_LbxStopProxy                  2
37 #define X_LbxSwitch                     3
38 #define X_LbxNewClient                  4
39 #define X_LbxCloseClient                5
40 #define X_LbxModifySequence             6
41 #define X_LbxAllowMotion                7
42 #define X_LbxIncrementPixel             8
43 #define X_LbxDelta                      9
44 #define X_LbxGetModifierMapping         10
45 #define X_LbxInvalidateTag              12
46 #define X_LbxPolyPoint                  13
47 #define X_LbxPolyLine                   14
48 #define X_LbxPolySegment                15
49 #define X_LbxPolyRectangle              16
50 #define X_LbxPolyArc                    17
51 #define X_LbxFillPoly                   18
52 #define X_LbxPolyFillRectangle          19
53 #define X_LbxPolyFillArc                20
54 #define X_LbxGetKeyboardMapping         21
55 #define X_LbxQueryFont                  22
56 #define X_LbxChangeProperty             23
57 #define X_LbxGetProperty                24
58 #define X_LbxTagData                    25
59
60 #define X_LbxCopyArea                   26
61 #define X_LbxCopyPlane                  27
62 #define X_LbxPolyText8                  28
63 #define X_LbxPolyText16                 29
64 #define X_LbxImageText8                 30
65 #define X_LbxImageText16                31
66
67 #define X_LbxQueryExtension             32
68 #define X_LbxPutImage                   33
69 #define X_LbxGetImage                   34
70
71 #define X_LbxBeginLargeRequest          35
72 #define X_LbxLargeRequestData           36
73 #define X_LbxEndLargeRequest            37
74
75 #define X_LbxInternAtoms                38
76 #define X_LbxGetWinAttrAndGeom          39
77
78 #define X_LbxGrabCmap                   40
79 #define X_LbxReleaseCmap                41
80 #define X_LbxAllocColor                 42
81
82 #define X_LbxSync                       43
83
84 #define LbxNumberReqs                   44
85
86
87 #define LbxEvent                        0
88 #define LbxQuickMotionDeltaEvent        1
89 #define LbxNumberEvents                 2
90
91 /* This is always the master client */
92 #define LbxMasterClientIndex            0
93
94 /* LbxEvent lbxType sub-fields */
95 #define LbxSwitchEvent                  0
96 #define LbxCloseEvent                   1
97 #define LbxDeltaEvent                   2
98 #define LbxInvalidateTagEvent           3
99 #define LbxSendTagDataEvent             4
100 #define LbxListenToOne                  5
101 #define LbxListenToAll                  6
102 #define LbxMotionDeltaEvent             7
103 #define LbxReleaseCmapEvent             8
104 #define LbxFreeCellsEvent               9
105
106 /*
107  * Lbx image compression methods
108  *
109  * No compression is always assigned the value of 0.
110  *
111  * The rest of the compression method opcodes are assigned dynamically
112  * at option negotiation time.
113  */
114
115 #define LbxImageCompressNone            0
116
117
118 #define BadLbxClient                    0
119 #define LbxNumberErrors                 (BadLbxClient + 1)
120
121 /* tagged data types */
122 #define LbxTagTypeModmap                1
123 #define LbxTagTypeKeymap                2
124 #define LbxTagTypeProperty              3
125 #define LbxTagTypeFont                  4
126 #define LbxTagTypeConnInfo              5
127
128 #ifndef _XLBX_SERVER_
129
130 _XFUNCPROTOBEGIN
131
132 Bool XLbxQueryVersion(
133 #if NeedFunctionPrototypes
134     Display*            /* dpy */,
135     int*                /* majorVersion */,
136     int*                /* minorVersion */
137 #endif
138 );
139
140 _XFUNCPROTOEND
141
142 #endif
143
144 #endif