about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-06 16:44:33 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-10-06 16:44:33 +0200
commit6e0b5358fbe20cd14b2728d3d0a688d1c84fd8a6 (patch)
treecc8b37ee6aeb9a5affbc830c5c42dcebbf3190ef /src/libtools
parente783e3c794ac60aa662985c079b3148ae8c41a2b (diff)
downloadbox64-6e0b5358fbe20cd14b2728d3d0a688d1c84fd8a6.tar.gz
box64-6e0b5358fbe20cd14b2728d3d0a688d1c84fd8a6.zip
[BOX32][WRAPPING] Added 32bits wrapped libXi (with new wrapperhelper)
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/my_x11_defs.h36
-rw-r--r--src/libtools/my_x11_defs_32.h34
2 files changed, 69 insertions, 1 deletions
diff --git a/src/libtools/my_x11_defs.h b/src/libtools/my_x11_defs.h
index bb1f719e..2e8ede07 100644
--- a/src/libtools/my_x11_defs.h
+++ b/src/libtools/my_x11_defs.h
@@ -626,7 +626,7 @@ typedef struct my_XErrorEvent_s
 {
     int type;
     my_XDisplay_t *display;
-    XID resourceid;
+    XID           resourceid;
     unsigned long serial;
     unsigned char error_code;
     unsigned char request_code;
@@ -920,4 +920,38 @@ typedef struct my_XRRProviderResources_t {
     XID*            providers;
 } my_XRRProviderResources_t;
 
+typedef struct my_XIAnyClassInfo_s
+{
+    int         type;
+    int         sourceid;
+} my_XIAnyClassInfo_t;
+
+typedef struct my_XIDeviceInfo_s
+{
+    int                     deviceid;
+    char*                   name;
+    int                     use;
+    int                     attachment;
+    int                     enabled;
+    int                     num_classes;
+    my_XIAnyClassInfo_t**   classes;
+} my_XIDeviceInfo_t;
+
+typedef struct my_XIEventMask_s {
+    int deviceid;
+    int mask_len;
+    unsigned char* mask;
+} my_XIEventMask_t;
+
+typedef struct my_XInputClassInfo_s {
+     unsigned char input_class;
+     unsigned char event_type_base;
+} my_XInputClassInfo_t;
+
+typedef struct my_XDevice_s {
+     XID                    device_id;
+     int                    num_classes;
+     my_XInputClassInfo_t*  classes;
+} my_XDevice_t;
+
 #endif//MY_X11_DEFS
\ No newline at end of file
diff --git a/src/libtools/my_x11_defs_32.h b/src/libtools/my_x11_defs_32.h
index 115648ce..322ebd2d 100644
--- a/src/libtools/my_x11_defs_32.h
+++ b/src/libtools/my_x11_defs_32.h
@@ -853,4 +853,38 @@ typedef struct __attribute__((packed, aligned(4))) my_XRRProviderResources_32_t
     ptr_t     providers;    //XID*
 } my_XRRProviderResources_32_t;
 
+typedef struct __attribute__((packed, aligned(4))) my_XIAnyClassInfo_32_s
+{
+    int         type;
+    int         sourceid;
+} my_XIAnyClassInfo_32_t;
+
+typedef struct __attribute__((packed, aligned(4))) my_XIDeviceInfo_32_s
+{
+    int        deviceid;
+    ptr_t      name;   //char*
+    int        use;
+    int        attachment;
+    int        enabled;
+    int        num_classes;
+    ptr_t      classes;    //my_XIAnyClassInfo_t**
+} my_XIDeviceInfo_32_t;
+
+typedef struct __attribute__((packed, aligned(4))) my_XIEventMask_32_s {
+    int deviceid;
+    int mask_len;
+    ptr_t mask; //unsigned char*
+} my_XIEventMask_32_t;
+
+typedef struct __attribute__((packed, aligned(4))) my_XInputClassInfo_32_s {
+     unsigned char input_class;
+     unsigned char event_type_base;
+} my_XInputClassInfo_32_t;
+
+typedef struct __attribute__((packed, aligned(4))) my_XDevice_32_s {
+     XID_32 device_id;
+     int    num_classes;
+     ptr_t  classes;    //my_XInputClassInfo_t*
+} my_XDevice_32_t;
+
 #endif//MY_X11_DEFS_32
\ No newline at end of file