add xRegisterPairingClient request and reply
authorPeter Hutterer <peter@cs.unisa.edu.au>
Tue, 20 Feb 2007 23:33:24 +0000 (10:03 +1030)
committerPeter Hutterer <whot@hyena.localdomain>
Tue, 20 Feb 2007 23:33:24 +0000 (10:03 +1030)
XI.h
XInput.h
XIproto.h

diff --git a/XI.h b/XI.h
index 52f8c4d..11a1416 100644 (file)
--- 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"
 
index 96696ba..a954ab1 100644 (file)
--- 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
 
index ad61c0e..7a18c2b 100644 (file)
--- 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