1 /* $XConsortium: XLbx.h /main/21 1996/12/15 21:23:54 rws $ */
3 * Copyright 1992 Network Computing Devices
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.
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.
27 #include <X11/Xfuncproto.h>
30 * NOTE: any changes or additions to the opcodes needs to be reflected
31 * in the lbxCacheable array in Xserver/lbx/lbxmain.c
34 #define X_LbxQueryVersion 0
35 #define X_LbxStartProxy 1
36 #define X_LbxStopProxy 2
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
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
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
67 #define X_LbxQueryExtension 32
68 #define X_LbxPutImage 33
69 #define X_LbxGetImage 34
71 #define X_LbxBeginLargeRequest 35
72 #define X_LbxLargeRequestData 36
73 #define X_LbxEndLargeRequest 37
75 #define X_LbxInternAtoms 38
76 #define X_LbxGetWinAttrAndGeom 39
78 #define X_LbxGrabCmap 40
79 #define X_LbxReleaseCmap 41
80 #define X_LbxAllocColor 42
84 #define LbxNumberReqs 44
88 #define LbxQuickMotionDeltaEvent 1
89 #define LbxNumberEvents 2
91 /* This is always the master client */
92 #define LbxMasterClientIndex 0
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
107 * Lbx image compression methods
109 * No compression is always assigned the value of 0.
111 * The rest of the compression method opcodes are assigned dynamically
112 * at option negotiation time.
115 #define LbxImageCompressNone 0
118 #define BadLbxClient 0
119 #define LbxNumberErrors (BadLbxClient + 1)
121 /* tagged data types */
122 #define LbxTagTypeModmap 1
123 #define LbxTagTypeKeymap 2
124 #define LbxTagTypeProperty 3
125 #define LbxTagTypeFont 4
126 #define LbxTagTypeConnInfo 5
128 #ifndef _XLBX_SERVER_
132 Bool XLbxQueryVersion(
133 #if NeedFunctionPrototypes
135 int* /* majorVersion */,
136 int* /* minorVersion */