1
/* $Xorg: XLbx.h,v 1.3 2000/08/18 04:05:45 coskrey Exp $ */
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.
23
/* $XFree86: xc/include/extensions/XLbx.h,v 1.3 2002/10/16 01:59:55 dawes Exp $ */
28
#include <X11/Xfuncproto.h>
31
* NOTE: any changes or additions to the opcodes needs to be reflected
32
* in the lbxCacheable array in Xserver/lbx/lbxmain.c
35
#define X_LbxQueryVersion 0
36
#define X_LbxStartProxy 1
37
#define X_LbxStopProxy 2
39
#define X_LbxNewClient 4
40
#define X_LbxCloseClient 5
41
#define X_LbxModifySequence 6
42
#define X_LbxAllowMotion 7
43
#define X_LbxIncrementPixel 8
45
#define X_LbxGetModifierMapping 10
46
#define X_LbxInvalidateTag 12
47
#define X_LbxPolyPoint 13
48
#define X_LbxPolyLine 14
49
#define X_LbxPolySegment 15
50
#define X_LbxPolyRectangle 16
51
#define X_LbxPolyArc 17
52
#define X_LbxFillPoly 18
53
#define X_LbxPolyFillRectangle 19
54
#define X_LbxPolyFillArc 20
55
#define X_LbxGetKeyboardMapping 21
56
#define X_LbxQueryFont 22
57
#define X_LbxChangeProperty 23
58
#define X_LbxGetProperty 24
59
#define X_LbxTagData 25
61
#define X_LbxCopyArea 26
62
#define X_LbxCopyPlane 27
63
#define X_LbxPolyText8 28
64
#define X_LbxPolyText16 29
65
#define X_LbxImageText8 30
66
#define X_LbxImageText16 31
68
#define X_LbxQueryExtension 32
69
#define X_LbxPutImage 33
70
#define X_LbxGetImage 34
72
#define X_LbxBeginLargeRequest 35
73
#define X_LbxLargeRequestData 36
74
#define X_LbxEndLargeRequest 37
76
#define X_LbxInternAtoms 38
77
#define X_LbxGetWinAttrAndGeom 39
79
#define X_LbxGrabCmap 40
80
#define X_LbxReleaseCmap 41
81
#define X_LbxAllocColor 42
85
#define LbxNumberReqs 44
89
#define LbxQuickMotionDeltaEvent 1
90
#define LbxNumberEvents 2
92
/* This is always the master client */
93
#define LbxMasterClientIndex 0
95
/* LbxEvent lbxType sub-fields */
96
#define LbxSwitchEvent 0
97
#define LbxCloseEvent 1
98
#define LbxDeltaEvent 2
99
#define LbxInvalidateTagEvent 3
100
#define LbxSendTagDataEvent 4
101
#define LbxListenToOne 5
102
#define LbxListenToAll 6
103
#define LbxMotionDeltaEvent 7
104
#define LbxReleaseCmapEvent 8
105
#define LbxFreeCellsEvent 9
108
* Lbx image compression methods
110
* No compression is always assigned the value of 0.
112
* The rest of the compression method opcodes are assigned dynamically
113
* at option negotiation time.
116
#define LbxImageCompressNone 0
119
#define BadLbxClient 0
120
#define LbxNumberErrors (BadLbxClient + 1)
122
/* tagged data types */
123
#define LbxTagTypeModmap 1
124
#define LbxTagTypeKeymap 2
125
#define LbxTagTypeProperty 3
126
#define LbxTagTypeFont 4
127
#define LbxTagTypeConnInfo 5
129
#ifndef _XLBX_SERVER_
131
#include <X11/Xdefs.h>
132
#include <X11/Xlib.h>
136
Bool XLbxQueryExtension(
139
int* /* event_basep */,
140
int* /* error_basep */
143
Bool XLbxQueryVersion(
145
int* /* majorVersion */,
146
int* /* minorVersion */
149
int XLbxGetEventBase(Display *dpy);