File indexing completed on 2025-01-18 10:14:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #ifndef _MULTIBUFPROTO_H_
0026 #define _MULTIBUFPROTO_H_
0027
0028 #include <X11/extensions/multibufconst.h>
0029
0030
0031
0032
0033
0034 #define Window CARD32
0035 #define Drawable CARD32
0036 #define VisualID CARD32
0037 #define Multibuffer CARD32
0038
0039 #define X_MbufGetBufferVersion 0
0040 #define X_MbufCreateImageBuffers 1
0041 #define X_MbufDestroyImageBuffers 2
0042 #define X_MbufDisplayImageBuffers 3
0043 #define X_MbufSetMBufferAttributes 4
0044 #define X_MbufGetMBufferAttributes 5
0045 #define X_MbufSetBufferAttributes 6
0046 #define X_MbufGetBufferAttributes 7
0047 #define X_MbufGetBufferInfo 8
0048 #define X_MbufCreateStereoWindow 9
0049 #define X_MbufClearImageBufferArea 10
0050
0051
0052 typedef struct xMbufBufferInfo {
0053 CARD32 visualID B32;
0054 CARD16 maxBuffers B16;
0055 CARD8 depth;
0056 CARD8 unused;
0057 } xMbufBufferInfo;
0058 #define sz_xMbufBufferInfo 8
0059
0060 typedef struct {
0061 BYTE type;
0062 BYTE unused;
0063 CARD16 sequenceNumber B16;
0064 CARD32 buffer B32;
0065 BYTE state;
0066 CARD8 unused1;
0067 CARD16 unused2 B16;
0068 CARD32 unused3 B32;
0069 CARD32 unused4 B32;
0070 CARD32 unused5 B32;
0071 CARD32 unused6 B32;
0072 CARD32 unused7 B32;
0073 } xMbufClobberNotifyEvent;
0074
0075 typedef struct {
0076 BYTE type;
0077 BYTE unused;
0078 CARD16 sequenceNumber B16;
0079 CARD32 buffer B32;
0080 CARD32 timeStamp B32;
0081 CARD32 unused1 B32;
0082 CARD32 unused2 B32;
0083 CARD32 unused3 B32;
0084 CARD32 unused4 B32;
0085 CARD32 unused5 B32;
0086 CARD32 unused6 B32;
0087 } xMbufUpdateNotifyEvent;
0088
0089 typedef struct {
0090 CARD8 reqType;
0091 CARD8 mbufReqType;
0092 CARD16 length B16;
0093 } xMbufGetBufferVersionReq;
0094 #define sz_xMbufGetBufferVersionReq 4
0095
0096 typedef struct {
0097 BYTE type;
0098 CARD8 unused;
0099 CARD16 sequenceNumber B16;
0100 CARD32 length B32;
0101 CARD8 majorVersion;
0102 CARD8 minorVersion;
0103 CARD16 pad1 B16;
0104 CARD32 pad2 B32;
0105 CARD32 pad3 B32;
0106 CARD32 pad4 B32;
0107 CARD32 pad5 B32;
0108 CARD32 pad6 B32;
0109 } xMbufGetBufferVersionReply;
0110 #define sz_xMbufGetBufferVersionReply 32
0111
0112 typedef struct {
0113 CARD8 reqType;
0114 CARD8 mbufReqType;
0115 CARD16 length B16;
0116 CARD32 window B32;
0117 CARD8 updateAction;
0118 CARD8 updateHint;
0119 CARD16 unused;
0120 } xMbufCreateImageBuffersReq;
0121 #define sz_xMbufCreateImageBuffersReq 12
0122
0123 typedef struct {
0124 BYTE type;
0125 CARD8 unused;
0126 CARD16 sequenceNumber B16;
0127 CARD32 length B32;
0128 CARD16 numberBuffer B16;
0129 CARD16 unused1 B16;
0130 CARD32 unused2 B32;
0131 CARD32 unused3 B32;
0132 CARD32 unused4 B32;
0133 CARD32 unused5 B32;
0134 CARD32 unused6 B32;
0135 } xMbufCreateImageBuffersReply;
0136 #define sz_xMbufCreateImageBuffersReply 32
0137
0138 typedef struct {
0139 CARD8 reqType;
0140 CARD8 mbufReqType;
0141 CARD16 length B16;
0142 CARD32 window B32;
0143 } xMbufDestroyImageBuffersReq;
0144 #define sz_xMbufDestroyImageBuffersReq 8
0145
0146 typedef struct {
0147 CARD8 reqType;
0148 CARD8 mbufReqType;
0149 CARD16 length B16;
0150 CARD16 minDelay B16;
0151 CARD16 maxDelay B16;
0152 } xMbufDisplayImageBuffersReq;
0153 #define sz_xMbufDisplayImageBuffersReq 8
0154
0155 typedef struct {
0156 CARD8 reqType;
0157 CARD8 mbufReqType;
0158 CARD16 length B16;
0159 CARD32 window B32;
0160 CARD32 valueMask B32;
0161 } xMbufSetMBufferAttributesReq;
0162 #define sz_xMbufSetMBufferAttributesReq 12
0163
0164 typedef struct {
0165 CARD8 reqType;
0166 CARD8 mbufReqType;
0167 CARD16 length B16;
0168 CARD32 window B32;
0169 } xMbufGetMBufferAttributesReq;
0170 #define sz_xMbufGetMBufferAttributesReq 8
0171
0172 typedef struct {
0173 BYTE type;
0174 CARD8 unused;
0175 CARD16 sequenceNumber B16;
0176 CARD32 length B32;
0177 CARD16 displayedBuffer B16;
0178 CARD8 updateAction;
0179 CARD8 updateHint;
0180 CARD8 windowMode;
0181 CARD8 unused0;
0182 CARD16 unused1 B16;
0183 CARD32 unused2 B32;
0184 CARD32 unused3 B32;
0185 CARD32 unused4 B32;
0186 CARD32 unused5 B32;
0187 } xMbufGetMBufferAttributesReply;
0188 #define sz_xMbufGetMBufferAttributesReply 32
0189
0190 typedef struct {
0191 CARD8 reqType;
0192 CARD8 mbufReqType;
0193 CARD16 length B16;
0194 CARD32 buffer B32;
0195 CARD32 valueMask B32;
0196 } xMbufSetBufferAttributesReq;
0197 #define sz_xMbufSetBufferAttributesReq 12
0198
0199 typedef struct {
0200 CARD8 reqType;
0201 CARD8 mbufReqType;
0202 CARD16 length B16;
0203 CARD32 buffer B32;
0204 } xMbufGetBufferAttributesReq;
0205 #define sz_xMbufGetBufferAttributesReq 8
0206
0207 typedef struct {
0208 BYTE type;
0209 CARD8 unused;
0210 CARD16 sequenceNumber B16;
0211 CARD32 length B32;
0212 CARD32 window B32;
0213 CARD32 eventMask B32;
0214 CARD16 bufferIndex B16;
0215 CARD8 side;
0216 CARD8 unused0;
0217 CARD32 unused1 B32;
0218 CARD32 unused2 B32;
0219 CARD32 unused3 B32;
0220 } xMbufGetBufferAttributesReply;
0221 #define sz_xMbufGetBufferAttributesReply 32
0222
0223 typedef struct {
0224 CARD8 reqType;
0225 CARD8 mbufReqType;
0226 CARD16 length B16;
0227 Drawable drawable B32;
0228 } xMbufGetBufferInfoReq;
0229 #define sz_xMbufGetBufferInfoReq 8
0230
0231 typedef struct {
0232 BYTE type;
0233 CARD8 unused;
0234 CARD16 sequenceNumber B16;
0235 CARD32 length B32;
0236 CARD16 normalInfo B16;
0237 CARD16 stereoInfo B16;
0238 CARD32 unused1 B32;
0239 CARD32 unused2 B32;
0240 CARD32 unused3 B32;
0241 CARD32 unused4 B32;
0242 CARD32 unused5 B32;
0243 } xMbufGetBufferInfoReply;
0244 #define sz_xMbufGetBufferInfoReply 32
0245
0246
0247 typedef struct {
0248 CARD8 reqType;
0249 CARD8 mbufReqType;
0250 CARD16 length B16;
0251 CARD8 unused0;
0252 CARD8 unused1;
0253 CARD8 unused2;
0254 CARD8 depth;
0255 Window wid B32;
0256 Window parent B32;
0257 Multibuffer left B32;
0258 Multibuffer right B32;
0259 INT16 x B16;
0260 INT16 y B16;
0261 CARD16 width B16;
0262 CARD16 height B16;
0263 CARD16 borderWidth B16;
0264 #if defined(__cplusplus) || defined(c_plusplus)
0265 CARD16 c_class B16;
0266 #else
0267 CARD16 class B16;
0268 #endif
0269 VisualID visual B32;
0270 CARD32 mask B32;
0271 } xMbufCreateStereoWindowReq;
0272 #define sz_xMbufCreateStereoWindowReq 44
0273
0274 typedef struct {
0275 CARD8 reqType;
0276 CARD8 mbufReqType;
0277 CARD16 length B16;
0278 Multibuffer buffer B32;
0279 INT16 x B16;
0280 INT16 y B16;
0281 CARD16 width B16;
0282 CARD16 height B16;
0283 CARD8 unused0;
0284 CARD8 unused1;
0285 CARD8 unused2;
0286 BOOL exposures;
0287 } xMbufClearImageBufferAreaReq;
0288 #define sz_xMbufClearImageBufferAreaReq 20
0289
0290 #undef Window
0291 #undef Drawable
0292 #undef VisualID
0293 #undef Multibuffer
0294
0295 #endif