about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-24 16:50:18 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-24 16:50:18 +0200
commitc25fc8cc24bfcd67772971bbe467d0e7c6250d54 (patch)
tree8735add22d08dbb5ca6ca9f5da22a0af2e65f9ab /src/libtools
parentbddeac4b456ad4707beb469ddee1652d53b97f59 (diff)
downloadbox64-c25fc8cc24bfcd67772971bbe467d0e7c6250d54.tar.gz
box64-c25fc8cc24bfcd67772971bbe467d0e7c6250d54.zip
[BOX32][WRAPPER] Added a few 32bits function to libxrandr
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/my_x11_defs.h60
-rw-r--r--src/libtools/my_x11_defs_32.h59
2 files changed, 119 insertions, 0 deletions
diff --git a/src/libtools/my_x11_defs.h b/src/libtools/my_x11_defs.h
index b1f4a1d6..1c935a31 100644
--- a/src/libtools/my_x11_defs.h
+++ b/src/libtools/my_x11_defs.h
@@ -760,5 +760,65 @@ typedef struct my_XWMHints_s {
 #define XWMHint_WindowGroupHint         (1L << 6)
 #define XWMHint_XUrgencyHint            (1L << 8)
 
+typedef struct my_XRRModeInfo_s {
+    XID                 id;
+    unsigned int        width;
+    unsigned int        height;
+    unsigned long       dotClock;
+    unsigned int        hSyncStart;
+    unsigned int        hSyncEnd;
+    unsigned int        hTotal;
+    unsigned int        hSkew;
+    unsigned int        vSyncStart;
+    unsigned int        vSyncEnd;
+    unsigned int        vTotal;
+    char                *name;
+    unsigned int        nameLength;
+    unsigned long       modeFlags;
+} my_XRRModeInfo_t;
+
+
+typedef struct my_XRRScreenResources_s {
+    unsigned long   timestamp;
+    unsigned long   configTimestamp;
+    int             ncrtc;
+    XID             *crtcs;
+    int             noutput;
+    XID             *outputs;
+    int             nmode;
+    my_XRRModeInfo_t *modes;
+} my_XRRScreenResources_t;
+
+typedef struct my_XRRCrtcInfo_s {
+    unsigned long   timestamp;
+    int             x, y;
+    unsigned int    width, height;
+    XID             mode;
+    uint16_t        rotation;
+    int             noutput;
+    XID             *outputs;
+    uint16_t        rotations;
+    int             npossible;
+    XID             *possible;
+} my_XRRCrtcInfo_t;
+
+typedef struct my_XRROutputInfo_s {
+    unsigned long   timestamp;
+    XID             crtc;
+    char            *name;
+    int             nameLen;
+    unsigned long   mm_width;
+    unsigned long   mm_height;
+    uint16_t        connection;
+    uint16_t        subpixel_order;
+    int             ncrtc;
+    XID             *crtcs;
+    int             nclone;
+    XID             *clones;
+    int             nmode;
+    int             npreferred;
+    XID             *modes;
+} my_XRROutputInfo_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 0dd9c07d..c0fda3f6 100644
--- a/src/libtools/my_x11_defs_32.h
+++ b/src/libtools/my_x11_defs_32.h
@@ -695,5 +695,64 @@ typedef struct my_XWMHints_32_s {
     XID_32 window_group;
 } my_XWMHints_32_t;
 
+typedef struct my_XRRModeInfo_32_s {
+    XID_32              id;
+    unsigned int        width;
+    unsigned int        height;
+    ulong_t             dotClock;
+    unsigned int        hSyncStart;
+    unsigned int        hSyncEnd;
+    unsigned int        hTotal;
+    unsigned int        hSkew;
+    unsigned int        vSyncStart;
+    unsigned int        vSyncEnd;
+    unsigned int        vTotal;
+    ptr_t               name;   //char*
+    unsigned int        nameLength;
+    ulong_t             modeFlags;
+} my_XRRModeInfo_32_t;
+
+
+typedef struct my_XRRScreenResources_32_s {
+    ulong_t     timestamp;
+    ulong_t     configTimestamp;
+    int         ncrtc;
+    ptr_t       crtcs;  //XID_32*
+    int         noutput;
+    ptr_t       outputs;    //XID_32*
+    int         nmode;
+    ptr_t       modes;  //my_XRRModeInfo_32_t *
+} my_XRRScreenResources_32_t;
+
+typedef struct my_XRRCrtcInfo_32_s {
+    ulong_t         timestamp;
+    int             x, y;
+    unsigned int    width, height;
+    XID_32          mode;
+    uint16_t        rotation;
+    int             noutput;
+    ptr_t           outputs;    //XID_32*
+    uint16_t        rotations;
+    int             npossible;
+    ptr_t           possible;   //XID_32*
+} my_XRRCrtcInfo_32_t;
+
+typedef struct my_XRROutputInfo_32_s {
+    ulong_t         timestamp;
+    XID_32          crtc;
+    ptr_t           name;   //char*
+    int             nameLen;
+    ulong_t         mm_width;
+    ulong_t         mm_height;
+    uint16_t        connection;
+    uint16_t        subpixel_order;
+    int             ncrtc;
+    ptr_t           crtcs; //XID_32*
+    int             nclone;
+    ptr_t           clones; //XID_32*
+    int             nmode;
+    int             npreferred;
+    ptr_t           modes; //XID_32*
+} my_XRROutputInfo_32_t;
 
 #endif//MY_X11_DEFS_32
\ No newline at end of file