From 6e0b5358fbe20cd14b2728d3d0a688d1c84fd8a6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 6 Oct 2024 16:44:33 +0200 Subject: [BOX32][WRAPPING] Added 32bits wrapped libXi (with new wrapperhelper) --- src/libtools/my_x11_defs.h | 36 +++++++++++++++++++++++++++++++++++- src/libtools/my_x11_defs_32.h | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) (limited to 'src/libtools') 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 -- cgit 1.4.1