diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-03-26 16:00:05 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-03-26 16:00:05 -0400 |
commit | b515bee843d5ab91fc0fe30b8eb13aadd69b5131 (patch) | |
tree | 31d2566bd95ac6530d313e757d27bce52fbc25b7 | |
parent | d2c2ffde8f3762af30ea6953d8a10b487f78733e (diff) |
Add reemitDrawableInfo protocol.dri2proto-1.0.0
Also, remove the screen number where it's redundant and rename
drmDrawable in the create drawable request to just 'handle' now that
we don't rely on drm drawables.
-rw-r--r-- | dri2proto.h | 53 |
1 files changed, 37 insertions, 16 deletions
diff --git a/dri2proto.h b/dri2proto.h index 997cdf5..3e1727d 100644 --- a/dri2proto.h +++ b/dri2proto.h @@ -33,19 +33,20 @@ #ifndef _DRI2_PROTO_H_ #define _DRI2_PROTO_H_ -#define DRI2_NAME "DRI2" -#define DRI2_MAJOR 1 -#define DRI2_MINOR 0 +#define DRI2_NAME "DRI2" +#define DRI2_MAJOR 1 +#define DRI2_MINOR 0 -#define DRI2NumberErrors 0 -#define DRI2NumberEvents 0 -#define DRI2NumberRequests 6 +#define DRI2NumberErrors 0 +#define DRI2NumberEvents 0 +#define DRI2NumberRequests 6 -#define X_DRI2QueryVersion 0 -#define X_DRI2Connect 1 -#define X_DRI2AuthConnection 2 -#define X_DRI2CreateDrawable 3 -#define X_DRI2DestroyDrawable 4 +#define X_DRI2QueryVersion 0 +#define X_DRI2Connect 1 +#define X_DRI2AuthConnection 2 +#define X_DRI2CreateDrawable 3 +#define X_DRI2DestroyDrawable 4 +#define X_DRI2ReemitDrawableInfo 5 typedef struct { CARD8 reqType; @@ -119,17 +120,16 @@ typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length B16; - CARD32 screen B32; CARD32 drawable B32; } xDRI2CreateDrawableReq; -#define sz_xDRI2CreateDrawableReq 12 +#define sz_xDRI2CreateDrawableReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber B16; CARD32 length B32; - CARD32 drmDrawable B32; + CARD32 handle B32; CARD32 head B32; CARD32 pad2 B32; CARD32 pad3 B32; @@ -142,9 +142,30 @@ typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length B16; - CARD32 screen B32; CARD32 drawable B32; } xDRI2DestroyDrawableReq; -#define sz_xDRI2DestroyDrawableReq 12 +#define sz_xDRI2DestroyDrawableReq 8 + +typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; +} xDRI2ReemitDrawableInfoReq; +#define sz_xDRI2ReemitDrawableInfoReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 head B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xDRI2ReemitDrawableInfoReply; +#define sz_xDRI2ReemitDrawableInfoReply 32 #endif |