From 720aabcbbf0eb7533127eec3c322223de9a48ee9 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 24 Sep 2010 13:13:32 +0200 Subject: [PATCH] Add xGESendEventReq. This request is a variant of xSendEventReq, meant for GenericEvents Signed-off-by: Carlos Garnacho --- ge.h | 5 +++-- geproto.h | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ge.h b/ge.h index aca1d8a..f52821b 100644 --- a/ge.h +++ b/ge.h @@ -29,7 +29,7 @@ #define GE_NAME "Generic Event Extension" #define GE_MAJOR 1 -#define GE_MINOR 0 +#define GE_MINOR 1 /********************************************************* * @@ -38,8 +38,9 @@ */ #define X_GEQueryVersion 0 +#define X_GESendEvent 1 -#define GENumberRequests (X_GEQueryVersion + 1) +#define GENumberRequests (X_GESendEvent + 1) /********************************************************* * diff --git a/geproto.h b/geproto.h index c8860dd..0c70e5f 100644 --- a/geproto.h +++ b/geproto.h @@ -81,5 +81,18 @@ typedef struct { #define sz_xGEQueryVersionReply 32 +typedef struct { + CARD8 reqType; + CARD8 ReqType; + CARD16 length B16; + CARD8 propagate; + CARD8 pad1; + CARD16 pad2; + CARD32 destination B32; + CARD32 eventMask B32; +} xGESendEventReq; + +#define sz_xGESendEventReq 16 + #endif /* _GEPROTO_H_ */ -- 1.7.0.4