From: Peter Hutterer Date: Tue, 20 Feb 2007 23:33:24 +0000 (+1030) Subject: add xRegisterPairingClient request and reply X-Git-Tag: inputproto-1.9.99.1~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb5c144c53fcb03c56b247b439915d72ad284856;p=platform%2Fupstream%2Finputproto.git add xRegisterPairingClient request and reply --- diff --git a/XI.h b/XI.h index 52f8c4d..11a1416 100644 --- a/XI.h +++ b/XI.h @@ -115,6 +115,8 @@ SOFTWARE. #define sz_xWarpDevicePointerReq 28 #define sz_xChangeDeviceCursorReq 16 #define sz_xChangePointerKeyboardPairingReq 8 +#define sz_xRegisterPairingClientReq 8 +#define sz_xRegisterPairingClientReply 32 #define INAME "XInputExtension" diff --git a/XInput.h b/XInput.h index 96696ba..a954ab1 100644 --- a/XInput.h +++ b/XInput.h @@ -1301,6 +1301,13 @@ extern Status XChangePointerKeyboardPairing( XDevice* /* keyboard*/ ); +extern Bool XRegisterPairingClient( + Display* /* display */ +); + +extern Bool XUnregisterPairingClient( + Display* /* display */ +); _XFUNCPROTOEND diff --git a/XIproto.h b/XIproto.h index ad61c0e..7a18c2b 100644 --- a/XIproto.h +++ b/XIproto.h @@ -163,6 +163,7 @@ struct tmask #define X_WarpDevicePointer 37 #define X_ChangeDeviceCursor 38 #define X_ChangePointerKeyboardPairing 39 +#define X_RegisterPairingClient 40 /********************************************************* * @@ -1512,6 +1513,36 @@ typedef struct { /********************************************************** * + * ChangePointerKeyboardPairing. + * + */ + +typedef struct { + CARD8 reqType; /* input extension major code */ + CARD8 ReqType; /* always X_RegisterPairingClient */ + CARD16 length B16; + CARD8 disable; /* True to disable registration */ + CARD8 pad0; + CARD16 pad1; +} xRegisterPairingClientReq; + +typedef struct { + CARD8 repType; /* input extension major code */ + CARD8 RepType; /* always X_RegisterPairingClient */ + CARD16 sequenceNumber B16; + CARD32 length B16; /* 0 */ + CARD8 success; /* True on success, false otherwise */ + CARD8 pad0; + CARD16 pad1 B16; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xRegisterPairingClientReply; + +/********************************************************** + * * Input extension events. * * DeviceValuator