diff options
Diffstat (limited to 'src/libtools')
| -rw-r--r-- | src/libtools/my_x11_defs.h | 60 | ||||
| -rw-r--r-- | src/libtools/my_x11_defs_32.h | 59 |
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 |