aboutsummaryrefslogtreecommitdiff
path: root/depends/libxcb/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-08-19 23:50:04 +0200
committerdec05eba <dec05eba@protonmail.com>2023-08-19 23:50:04 +0200
commit80ab0233688c9df9fd48265b6f9e7ab7cd589dbc (patch)
treef02de812a0450b99af41678245b008cf065d8c16 /depends/libxcb/include
Initial commit
Diffstat (limited to 'depends/libxcb/include')
-rw-r--r--depends/libxcb/include/xcb/bigreq.h109
-rw-r--r--depends/libxcb/include/xcb/composite.h504
-rw-r--r--depends/libxcb/include/xcb/damage.h368
-rw-r--r--depends/libxcb/include/xcb/dpms.h511
-rw-r--r--depends/libxcb/include/xcb/dri2.h1305
-rw-r--r--depends/libxcb/include/xcb/dri3.h884
-rw-r--r--depends/libxcb/include/xcb/ge.h117
-rw-r--r--depends/libxcb/include/xcb/glx.h8657
-rw-r--r--depends/libxcb/include/xcb/present.h644
-rw-r--r--depends/libxcb/include/xcb/randr.h4588
-rw-r--r--depends/libxcb/include/xcb/record.h935
-rw-r--r--depends/libxcb/include/xcb/render.h3277
-rw-r--r--depends/libxcb/include/xcb/res.h864
-rw-r--r--depends/libxcb/include/xcb/screensaver.h517
-rw-r--r--depends/libxcb/include/xcb/shape.h752
-rw-r--r--depends/libxcb/include/xcb/shm.h648
-rw-r--r--depends/libxcb/include/xcb/sync.h1628
-rw-r--r--depends/libxcb/include/xcb/xc_misc.h281
-rw-r--r--depends/libxcb/include/xcb/xcb.h644
-rw-r--r--depends/libxcb/include/xcb/xcb_windefs.h45
-rw-r--r--depends/libxcb/include/xcb/xcbext.h322
-rw-r--r--depends/libxcb/include/xcb/xcbint.h241
-rw-r--r--depends/libxcb/include/xcb/xevie.h473
-rw-r--r--depends/libxcb/include/xcb/xf86dri.h988
-rw-r--r--depends/libxcb/include/xcb/xfixes.h2128
-rw-r--r--depends/libxcb/include/xcb/xinerama.h557
-rw-r--r--depends/libxcb/include/xcb/xinput.h9732
-rw-r--r--depends/libxcb/include/xcb/xkb.h7106
-rw-r--r--depends/libxcb/include/xcb/xprint.h1895
-rw-r--r--depends/libxcb/include/xcb/xproto.h12696
-rw-r--r--depends/libxcb/include/xcb/xselinux.h1889
-rw-r--r--depends/libxcb/include/xcb/xtest.h303
-rw-r--r--depends/libxcb/include/xcb/xv.h2096
-rw-r--r--depends/libxcb/include/xcb/xvmc.h868
34 files changed, 68572 insertions, 0 deletions
diff --git a/depends/libxcb/include/xcb/bigreq.h b/depends/libxcb/include/xcb/bigreq.h
new file mode 100644
index 0000000..bfb9527
--- /dev/null
+++ b/depends/libxcb/include/xcb/bigreq.h
@@ -0,0 +1,109 @@
+/*
+ * This file generated automatically from bigreq.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_BigRequests_API XCB BigRequests API
+ * @brief BigRequests XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __BIGREQ_H
+#define __BIGREQ_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_BIGREQUESTS_MAJOR_VERSION 0
+#define XCB_BIGREQUESTS_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_big_requests_id;
+
+/**
+ * @brief xcb_big_requests_enable_cookie_t
+ **/
+typedef struct xcb_big_requests_enable_cookie_t {
+ unsigned int sequence;
+} xcb_big_requests_enable_cookie_t;
+
+/** Opcode for xcb_big_requests_enable. */
+#define XCB_BIG_REQUESTS_ENABLE 0
+
+/**
+ * @brief xcb_big_requests_enable_request_t
+ **/
+typedef struct xcb_big_requests_enable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_big_requests_enable_request_t;
+
+/**
+ * @brief xcb_big_requests_enable_reply_t
+ **/
+typedef struct xcb_big_requests_enable_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t maximum_request_length;
+} xcb_big_requests_enable_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_big_requests_enable_cookie_t
+xcb_big_requests_enable (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_big_requests_enable_cookie_t
+xcb_big_requests_enable_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_big_requests_enable_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_big_requests_enable_reply_t *
+xcb_big_requests_enable_reply (xcb_connection_t *c,
+ xcb_big_requests_enable_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/composite.h b/depends/libxcb/include/xcb/composite.h
new file mode 100644
index 0000000..6daddea
--- /dev/null
+++ b/depends/libxcb/include/xcb/composite.h
@@ -0,0 +1,504 @@
+/*
+ * This file generated automatically from composite.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Composite_API XCB Composite API
+ * @brief Composite XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __COMPOSITE_H
+#define __COMPOSITE_H
+
+#include "xcb.h"
+#include "xproto.h"
+#include "xfixes.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_COMPOSITE_MAJOR_VERSION 0
+#define XCB_COMPOSITE_MINOR_VERSION 4
+
+extern xcb_extension_t xcb_composite_id;
+
+typedef enum xcb_composite_redirect_t {
+ XCB_COMPOSITE_REDIRECT_AUTOMATIC = 0,
+ XCB_COMPOSITE_REDIRECT_MANUAL = 1
+} xcb_composite_redirect_t;
+
+/**
+ * @brief xcb_composite_query_version_cookie_t
+ **/
+typedef struct xcb_composite_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_composite_query_version_cookie_t;
+
+/** Opcode for xcb_composite_query_version. */
+#define XCB_COMPOSITE_QUERY_VERSION 0
+
+/**
+ * @brief xcb_composite_query_version_request_t
+ **/
+typedef struct xcb_composite_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t client_major_version;
+ uint32_t client_minor_version;
+} xcb_composite_query_version_request_t;
+
+/**
+ * @brief xcb_composite_query_version_reply_t
+ **/
+typedef struct xcb_composite_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint8_t pad1[16];
+} xcb_composite_query_version_reply_t;
+
+/** Opcode for xcb_composite_redirect_window. */
+#define XCB_COMPOSITE_REDIRECT_WINDOW 1
+
+/**
+ * @brief xcb_composite_redirect_window_request_t
+ **/
+typedef struct xcb_composite_redirect_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint8_t update;
+ uint8_t pad0[3];
+} xcb_composite_redirect_window_request_t;
+
+/** Opcode for xcb_composite_redirect_subwindows. */
+#define XCB_COMPOSITE_REDIRECT_SUBWINDOWS 2
+
+/**
+ * @brief xcb_composite_redirect_subwindows_request_t
+ **/
+typedef struct xcb_composite_redirect_subwindows_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint8_t update;
+ uint8_t pad0[3];
+} xcb_composite_redirect_subwindows_request_t;
+
+/** Opcode for xcb_composite_unredirect_window. */
+#define XCB_COMPOSITE_UNREDIRECT_WINDOW 3
+
+/**
+ * @brief xcb_composite_unredirect_window_request_t
+ **/
+typedef struct xcb_composite_unredirect_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint8_t update;
+ uint8_t pad0[3];
+} xcb_composite_unredirect_window_request_t;
+
+/** Opcode for xcb_composite_unredirect_subwindows. */
+#define XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS 4
+
+/**
+ * @brief xcb_composite_unredirect_subwindows_request_t
+ **/
+typedef struct xcb_composite_unredirect_subwindows_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint8_t update;
+ uint8_t pad0[3];
+} xcb_composite_unredirect_subwindows_request_t;
+
+/** Opcode for xcb_composite_create_region_from_border_clip. */
+#define XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP 5
+
+/**
+ * @brief xcb_composite_create_region_from_border_clip_request_t
+ **/
+typedef struct xcb_composite_create_region_from_border_clip_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+ xcb_window_t window;
+} xcb_composite_create_region_from_border_clip_request_t;
+
+/** Opcode for xcb_composite_name_window_pixmap. */
+#define XCB_COMPOSITE_NAME_WINDOW_PIXMAP 6
+
+/**
+ * @brief xcb_composite_name_window_pixmap_request_t
+ **/
+typedef struct xcb_composite_name_window_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_pixmap_t pixmap;
+} xcb_composite_name_window_pixmap_request_t;
+
+/**
+ * @brief xcb_composite_get_overlay_window_cookie_t
+ **/
+typedef struct xcb_composite_get_overlay_window_cookie_t {
+ unsigned int sequence;
+} xcb_composite_get_overlay_window_cookie_t;
+
+/** Opcode for xcb_composite_get_overlay_window. */
+#define XCB_COMPOSITE_GET_OVERLAY_WINDOW 7
+
+/**
+ * @brief xcb_composite_get_overlay_window_request_t
+ **/
+typedef struct xcb_composite_get_overlay_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_composite_get_overlay_window_request_t;
+
+/**
+ * @brief xcb_composite_get_overlay_window_reply_t
+ **/
+typedef struct xcb_composite_get_overlay_window_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t overlay_win;
+ uint8_t pad1[20];
+} xcb_composite_get_overlay_window_reply_t;
+
+/** Opcode for xcb_composite_release_overlay_window. */
+#define XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW 8
+
+/**
+ * @brief xcb_composite_release_overlay_window_request_t
+ **/
+typedef struct xcb_composite_release_overlay_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_composite_release_overlay_window_request_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_composite_query_version_cookie_t
+xcb_composite_query_version (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_composite_query_version_cookie_t
+xcb_composite_query_version_unchecked (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_composite_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_composite_query_version_reply_t *
+xcb_composite_query_version_reply (xcb_connection_t *c,
+ xcb_composite_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_redirect_window_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_redirect_window (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_redirect_subwindows_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_redirect_subwindows (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_unredirect_window_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_unredirect_window (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_unredirect_subwindows (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t update);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_create_region_from_border_clip_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_create_region_from_border_clip (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_name_window_pixmap_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_pixmap_t pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_name_window_pixmap (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_pixmap_t pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_composite_get_overlay_window_cookie_t
+xcb_composite_get_overlay_window (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_composite_get_overlay_window_cookie_t
+xcb_composite_get_overlay_window_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_composite_get_overlay_window_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_composite_get_overlay_window_reply_t *
+xcb_composite_get_overlay_window_reply (xcb_connection_t *c,
+ xcb_composite_get_overlay_window_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_composite_release_overlay_window_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_composite_release_overlay_window (xcb_connection_t *c,
+ xcb_window_t window);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/damage.h b/depends/libxcb/include/xcb/damage.h
new file mode 100644
index 0000000..ff99ccb
--- /dev/null
+++ b/depends/libxcb/include/xcb/damage.h
@@ -0,0 +1,368 @@
+/*
+ * This file generated automatically from damage.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Damage_API XCB Damage API
+ * @brief Damage XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __DAMAGE_H
+#define __DAMAGE_H
+
+#include "xcb.h"
+#include "xproto.h"
+#include "xfixes.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_DAMAGE_MAJOR_VERSION 1
+#define XCB_DAMAGE_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_damage_id;
+
+typedef uint32_t xcb_damage_damage_t;
+
+/**
+ * @brief xcb_damage_damage_iterator_t
+ **/
+typedef struct xcb_damage_damage_iterator_t {
+ xcb_damage_damage_t *data;
+ int rem;
+ int index;
+} xcb_damage_damage_iterator_t;
+
+typedef enum xcb_damage_report_level_t {
+ XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES = 0,
+ XCB_DAMAGE_REPORT_LEVEL_DELTA_RECTANGLES = 1,
+ XCB_DAMAGE_REPORT_LEVEL_BOUNDING_BOX = 2,
+ XCB_DAMAGE_REPORT_LEVEL_NON_EMPTY = 3
+} xcb_damage_report_level_t;
+
+/** Opcode for xcb_damage_bad_damage. */
+#define XCB_DAMAGE_BAD_DAMAGE 0
+
+/**
+ * @brief xcb_damage_bad_damage_error_t
+ **/
+typedef struct xcb_damage_bad_damage_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_damage_bad_damage_error_t;
+
+/**
+ * @brief xcb_damage_query_version_cookie_t
+ **/
+typedef struct xcb_damage_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_damage_query_version_cookie_t;
+
+/** Opcode for xcb_damage_query_version. */
+#define XCB_DAMAGE_QUERY_VERSION 0
+
+/**
+ * @brief xcb_damage_query_version_request_t
+ **/
+typedef struct xcb_damage_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t client_major_version;
+ uint32_t client_minor_version;
+} xcb_damage_query_version_request_t;
+
+/**
+ * @brief xcb_damage_query_version_reply_t
+ **/
+typedef struct xcb_damage_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint8_t pad1[16];
+} xcb_damage_query_version_reply_t;
+
+/** Opcode for xcb_damage_create. */
+#define XCB_DAMAGE_CREATE 1
+
+/**
+ * @brief xcb_damage_create_request_t
+ **/
+typedef struct xcb_damage_create_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_damage_damage_t damage;
+ xcb_drawable_t drawable;
+ uint8_t level;
+ uint8_t pad0[3];
+} xcb_damage_create_request_t;
+
+/** Opcode for xcb_damage_destroy. */
+#define XCB_DAMAGE_DESTROY 2
+
+/**
+ * @brief xcb_damage_destroy_request_t
+ **/
+typedef struct xcb_damage_destroy_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_damage_damage_t damage;
+} xcb_damage_destroy_request_t;
+
+/** Opcode for xcb_damage_subtract. */
+#define XCB_DAMAGE_SUBTRACT 3
+
+/**
+ * @brief xcb_damage_subtract_request_t
+ **/
+typedef struct xcb_damage_subtract_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_damage_damage_t damage;
+ xcb_xfixes_region_t repair;
+ xcb_xfixes_region_t parts;
+} xcb_damage_subtract_request_t;
+
+/** Opcode for xcb_damage_add. */
+#define XCB_DAMAGE_ADD 4
+
+/**
+ * @brief xcb_damage_add_request_t
+ **/
+typedef struct xcb_damage_add_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_xfixes_region_t region;
+} xcb_damage_add_request_t;
+
+/** Opcode for xcb_damage_notify. */
+#define XCB_DAMAGE_NOTIFY 0
+
+/**
+ * @brief xcb_damage_notify_event_t
+ **/
+typedef struct xcb_damage_notify_event_t {
+ uint8_t response_type;
+ uint8_t level;
+ uint16_t sequence;
+ xcb_drawable_t drawable;
+ xcb_damage_damage_t damage;
+ xcb_timestamp_t timestamp;
+ xcb_rectangle_t area;
+ xcb_rectangle_t geometry;
+} xcb_damage_notify_event_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_damage_damage_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_damage_damage_t)
+ */
+void
+xcb_damage_damage_next (xcb_damage_damage_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_damage_damage_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_damage_damage_end (xcb_damage_damage_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_damage_query_version_cookie_t
+xcb_damage_query_version (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_damage_query_version_cookie_t
+xcb_damage_query_version_unchecked (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_damage_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_damage_query_version_reply_t *
+xcb_damage_query_version_reply (xcb_connection_t *c,
+ xcb_damage_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_damage_create_checked (xcb_connection_t *c,
+ xcb_damage_damage_t damage,
+ xcb_drawable_t drawable,
+ uint8_t level);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_damage_create (xcb_connection_t *c,
+ xcb_damage_damage_t damage,
+ xcb_drawable_t drawable,
+ uint8_t level);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_damage_destroy_checked (xcb_connection_t *c,
+ xcb_damage_damage_t damage);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_damage_destroy (xcb_connection_t *c,
+ xcb_damage_damage_t damage);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_damage_subtract_checked (xcb_connection_t *c,
+ xcb_damage_damage_t damage,
+ xcb_xfixes_region_t repair,
+ xcb_xfixes_region_t parts);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_damage_subtract (xcb_connection_t *c,
+ xcb_damage_damage_t damage,
+ xcb_xfixes_region_t repair,
+ xcb_xfixes_region_t parts);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_damage_add_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_xfixes_region_t region);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_damage_add (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_xfixes_region_t region);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/dpms.h b/depends/libxcb/include/xcb/dpms.h
new file mode 100644
index 0000000..95aa91d
--- /dev/null
+++ b/depends/libxcb/include/xcb/dpms.h
@@ -0,0 +1,511 @@
+/*
+ * This file generated automatically from dpms.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_DPMS_API XCB DPMS API
+ * @brief DPMS XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __DPMS_H
+#define __DPMS_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_DPMS_MAJOR_VERSION 0
+#define XCB_DPMS_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_dpms_id;
+
+/**
+ * @brief xcb_dpms_get_version_cookie_t
+ **/
+typedef struct xcb_dpms_get_version_cookie_t {
+ unsigned int sequence;
+} xcb_dpms_get_version_cookie_t;
+
+/** Opcode for xcb_dpms_get_version. */
+#define XCB_DPMS_GET_VERSION 0
+
+/**
+ * @brief xcb_dpms_get_version_request_t
+ **/
+typedef struct xcb_dpms_get_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t client_major_version;
+ uint16_t client_minor_version;
+} xcb_dpms_get_version_request_t;
+
+/**
+ * @brief xcb_dpms_get_version_reply_t
+ **/
+typedef struct xcb_dpms_get_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major_version;
+ uint16_t server_minor_version;
+} xcb_dpms_get_version_reply_t;
+
+/**
+ * @brief xcb_dpms_capable_cookie_t
+ **/
+typedef struct xcb_dpms_capable_cookie_t {
+ unsigned int sequence;
+} xcb_dpms_capable_cookie_t;
+
+/** Opcode for xcb_dpms_capable. */
+#define XCB_DPMS_CAPABLE 1
+
+/**
+ * @brief xcb_dpms_capable_request_t
+ **/
+typedef struct xcb_dpms_capable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_dpms_capable_request_t;
+
+/**
+ * @brief xcb_dpms_capable_reply_t
+ **/
+typedef struct xcb_dpms_capable_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t capable;
+ uint8_t pad1[23];
+} xcb_dpms_capable_reply_t;
+
+/**
+ * @brief xcb_dpms_get_timeouts_cookie_t
+ **/
+typedef struct xcb_dpms_get_timeouts_cookie_t {
+ unsigned int sequence;
+} xcb_dpms_get_timeouts_cookie_t;
+
+/** Opcode for xcb_dpms_get_timeouts. */
+#define XCB_DPMS_GET_TIMEOUTS 2
+
+/**
+ * @brief xcb_dpms_get_timeouts_request_t
+ **/
+typedef struct xcb_dpms_get_timeouts_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_dpms_get_timeouts_request_t;
+
+/**
+ * @brief xcb_dpms_get_timeouts_reply_t
+ **/
+typedef struct xcb_dpms_get_timeouts_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t standby_timeout;
+ uint16_t suspend_timeout;
+ uint16_t off_timeout;
+ uint8_t pad1[18];
+} xcb_dpms_get_timeouts_reply_t;
+
+/** Opcode for xcb_dpms_set_timeouts. */
+#define XCB_DPMS_SET_TIMEOUTS 3
+
+/**
+ * @brief xcb_dpms_set_timeouts_request_t
+ **/
+typedef struct xcb_dpms_set_timeouts_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t standby_timeout;
+ uint16_t suspend_timeout;
+ uint16_t off_timeout;
+} xcb_dpms_set_timeouts_request_t;
+
+/** Opcode for xcb_dpms_enable. */
+#define XCB_DPMS_ENABLE 4
+
+/**
+ * @brief xcb_dpms_enable_request_t
+ **/
+typedef struct xcb_dpms_enable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_dpms_enable_request_t;
+
+/** Opcode for xcb_dpms_disable. */
+#define XCB_DPMS_DISABLE 5
+
+/**
+ * @brief xcb_dpms_disable_request_t
+ **/
+typedef struct xcb_dpms_disable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_dpms_disable_request_t;
+
+typedef enum xcb_dpms_dpms_mode_t {
+ XCB_DPMS_DPMS_MODE_ON = 0,
+ XCB_DPMS_DPMS_MODE_STANDBY = 1,
+ XCB_DPMS_DPMS_MODE_SUSPEND = 2,
+ XCB_DPMS_DPMS_MODE_OFF = 3
+} xcb_dpms_dpms_mode_t;
+
+/** Opcode for xcb_dpms_force_level. */
+#define XCB_DPMS_FORCE_LEVEL 6
+
+/**
+ * @brief xcb_dpms_force_level_request_t
+ **/
+typedef struct xcb_dpms_force_level_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t power_level;
+} xcb_dpms_force_level_request_t;
+
+/**
+ * @brief xcb_dpms_info_cookie_t
+ **/
+typedef struct xcb_dpms_info_cookie_t {
+ unsigned int sequence;
+} xcb_dpms_info_cookie_t;
+
+/** Opcode for xcb_dpms_info. */
+#define XCB_DPMS_INFO 7
+
+/**
+ * @brief xcb_dpms_info_request_t
+ **/
+typedef struct xcb_dpms_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_dpms_info_request_t;
+
+/**
+ * @brief xcb_dpms_info_reply_t
+ **/
+typedef struct xcb_dpms_info_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t power_level;
+ uint8_t state;
+ uint8_t pad1[21];
+} xcb_dpms_info_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dpms_get_version_cookie_t
+xcb_dpms_get_version (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dpms_get_version_cookie_t
+xcb_dpms_get_version_unchecked (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dpms_get_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dpms_get_version_reply_t *
+xcb_dpms_get_version_reply (xcb_connection_t *c,
+ xcb_dpms_get_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dpms_capable_cookie_t
+xcb_dpms_capable (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dpms_capable_cookie_t
+xcb_dpms_capable_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dpms_capable_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dpms_capable_reply_t *
+xcb_dpms_capable_reply (xcb_connection_t *c,
+ xcb_dpms_capable_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dpms_get_timeouts_cookie_t
+xcb_dpms_get_timeouts (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dpms_get_timeouts_cookie_t
+xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dpms_get_timeouts_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dpms_get_timeouts_reply_t *
+xcb_dpms_get_timeouts_reply (xcb_connection_t *c,
+ xcb_dpms_get_timeouts_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dpms_set_timeouts_checked (xcb_connection_t *c,
+ uint16_t standby_timeout,
+ uint16_t suspend_timeout,
+ uint16_t off_timeout);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dpms_set_timeouts (xcb_connection_t *c,
+ uint16_t standby_timeout,
+ uint16_t suspend_timeout,
+ uint16_t off_timeout);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dpms_enable_checked (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dpms_enable (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dpms_disable_checked (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dpms_disable (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dpms_force_level_checked (xcb_connection_t *c,
+ uint16_t power_level);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dpms_force_level (xcb_connection_t *c,
+ uint16_t power_level);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dpms_info_cookie_t
+xcb_dpms_info (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dpms_info_cookie_t
+xcb_dpms_info_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dpms_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dpms_info_reply_t *
+xcb_dpms_info_reply (xcb_connection_t *c,
+ xcb_dpms_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/dri2.h b/depends/libxcb/include/xcb/dri2.h
new file mode 100644
index 0000000..4ec2f40
--- /dev/null
+++ b/depends/libxcb/include/xcb/dri2.h
@@ -0,0 +1,1305 @@
+/*
+ * This file generated automatically from dri2.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_DRI2_API XCB DRI2 API
+ * @brief DRI2 XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __DRI2_H
+#define __DRI2_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_DRI2_MAJOR_VERSION 1
+#define XCB_DRI2_MINOR_VERSION 4
+
+extern xcb_extension_t xcb_dri2_id;
+
+typedef enum xcb_dri2_attachment_t {
+ XCB_DRI2_ATTACHMENT_BUFFER_FRONT_LEFT = 0,
+ XCB_DRI2_ATTACHMENT_BUFFER_BACK_LEFT = 1,
+ XCB_DRI2_ATTACHMENT_BUFFER_FRONT_RIGHT = 2,
+ XCB_DRI2_ATTACHMENT_BUFFER_BACK_RIGHT = 3,
+ XCB_DRI2_ATTACHMENT_BUFFER_DEPTH = 4,
+ XCB_DRI2_ATTACHMENT_BUFFER_STENCIL = 5,
+ XCB_DRI2_ATTACHMENT_BUFFER_ACCUM = 6,
+ XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_LEFT = 7,
+ XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_RIGHT = 8,
+ XCB_DRI2_ATTACHMENT_BUFFER_DEPTH_STENCIL = 9,
+ XCB_DRI2_ATTACHMENT_BUFFER_HIZ = 10
+} xcb_dri2_attachment_t;
+
+typedef enum xcb_dri2_driver_type_t {
+ XCB_DRI2_DRIVER_TYPE_DRI = 0,
+ XCB_DRI2_DRIVER_TYPE_VDPAU = 1
+} xcb_dri2_driver_type_t;
+
+typedef enum xcb_dri2_event_type_t {
+ XCB_DRI2_EVENT_TYPE_EXCHANGE_COMPLETE = 1,
+ XCB_DRI2_EVENT_TYPE_BLIT_COMPLETE = 2,
+ XCB_DRI2_EVENT_TYPE_FLIP_COMPLETE = 3
+} xcb_dri2_event_type_t;
+
+/**
+ * @brief xcb_dri2_dri2_buffer_t
+ **/
+typedef struct xcb_dri2_dri2_buffer_t {
+ uint32_t attachment;
+ uint32_t name;
+ uint32_t pitch;
+ uint32_t cpp;
+ uint32_t flags;
+} xcb_dri2_dri2_buffer_t;
+
+/**
+ * @brief xcb_dri2_dri2_buffer_iterator_t
+ **/
+typedef struct xcb_dri2_dri2_buffer_iterator_t {
+ xcb_dri2_dri2_buffer_t *data;
+ int rem;
+ int index;
+} xcb_dri2_dri2_buffer_iterator_t;
+
+/**
+ * @brief xcb_dri2_attach_format_t
+ **/
+typedef struct xcb_dri2_attach_format_t {
+ uint32_t attachment;
+ uint32_t format;
+} xcb_dri2_attach_format_t;
+
+/**
+ * @brief xcb_dri2_attach_format_iterator_t
+ **/
+typedef struct xcb_dri2_attach_format_iterator_t {
+ xcb_dri2_attach_format_t *data;
+ int rem;
+ int index;
+} xcb_dri2_attach_format_iterator_t;
+
+/**
+ * @brief xcb_dri2_query_version_cookie_t
+ **/
+typedef struct xcb_dri2_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_query_version_cookie_t;
+
+/** Opcode for xcb_dri2_query_version. */
+#define XCB_DRI2_QUERY_VERSION 0
+
+/**
+ * @brief xcb_dri2_query_version_request_t
+ **/
+typedef struct xcb_dri2_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_dri2_query_version_request_t;
+
+/**
+ * @brief xcb_dri2_query_version_reply_t
+ **/
+typedef struct xcb_dri2_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_dri2_query_version_reply_t;
+
+/**
+ * @brief xcb_dri2_connect_cookie_t
+ **/
+typedef struct xcb_dri2_connect_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_connect_cookie_t;
+
+/** Opcode for xcb_dri2_connect. */
+#define XCB_DRI2_CONNECT 1
+
+/**
+ * @brief xcb_dri2_connect_request_t
+ **/
+typedef struct xcb_dri2_connect_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t driver_type;
+} xcb_dri2_connect_request_t;
+
+/**
+ * @brief xcb_dri2_connect_reply_t
+ **/
+typedef struct xcb_dri2_connect_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t driver_name_length;
+ uint32_t device_name_length;
+ uint8_t pad1[16];
+} xcb_dri2_connect_reply_t;
+
+/**
+ * @brief xcb_dri2_authenticate_cookie_t
+ **/
+typedef struct xcb_dri2_authenticate_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_authenticate_cookie_t;
+
+/** Opcode for xcb_dri2_authenticate. */
+#define XCB_DRI2_AUTHENTICATE 2
+
+/**
+ * @brief xcb_dri2_authenticate_request_t
+ **/
+typedef struct xcb_dri2_authenticate_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t magic;
+} xcb_dri2_authenticate_request_t;
+
+/**
+ * @brief xcb_dri2_authenticate_reply_t
+ **/
+typedef struct xcb_dri2_authenticate_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t authenticated;
+} xcb_dri2_authenticate_reply_t;
+
+/** Opcode for xcb_dri2_create_drawable. */
+#define XCB_DRI2_CREATE_DRAWABLE 3
+
+/**
+ * @brief xcb_dri2_create_drawable_request_t
+ **/
+typedef struct xcb_dri2_create_drawable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_dri2_create_drawable_request_t;
+
+/** Opcode for xcb_dri2_destroy_drawable. */
+#define XCB_DRI2_DESTROY_DRAWABLE 4
+
+/**
+ * @brief xcb_dri2_destroy_drawable_request_t
+ **/
+typedef struct xcb_dri2_destroy_drawable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_dri2_destroy_drawable_request_t;
+
+/**
+ * @brief xcb_dri2_get_buffers_cookie_t
+ **/
+typedef struct xcb_dri2_get_buffers_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_get_buffers_cookie_t;
+
+/** Opcode for xcb_dri2_get_buffers. */
+#define XCB_DRI2_GET_BUFFERS 5
+
+/**
+ * @brief xcb_dri2_get_buffers_request_t
+ **/
+typedef struct xcb_dri2_get_buffers_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t count;
+} xcb_dri2_get_buffers_request_t;
+
+/**
+ * @brief xcb_dri2_get_buffers_reply_t
+ **/
+typedef struct xcb_dri2_get_buffers_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t width;
+ uint32_t height;
+ uint32_t count;
+ uint8_t pad1[12];
+} xcb_dri2_get_buffers_reply_t;
+
+/**
+ * @brief xcb_dri2_copy_region_cookie_t
+ **/
+typedef struct xcb_dri2_copy_region_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_copy_region_cookie_t;
+
+/** Opcode for xcb_dri2_copy_region. */
+#define XCB_DRI2_COPY_REGION 6
+
+/**
+ * @brief xcb_dri2_copy_region_request_t
+ **/
+typedef struct xcb_dri2_copy_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t region;
+ uint32_t dest;
+ uint32_t src;
+} xcb_dri2_copy_region_request_t;
+
+/**
+ * @brief xcb_dri2_copy_region_reply_t
+ **/
+typedef struct xcb_dri2_copy_region_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_dri2_copy_region_reply_t;
+
+/**
+ * @brief xcb_dri2_get_buffers_with_format_cookie_t
+ **/
+typedef struct xcb_dri2_get_buffers_with_format_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_get_buffers_with_format_cookie_t;
+
+/** Opcode for xcb_dri2_get_buffers_with_format. */
+#define XCB_DRI2_GET_BUFFERS_WITH_FORMAT 7
+
+/**
+ * @brief xcb_dri2_get_buffers_with_format_request_t
+ **/
+typedef struct xcb_dri2_get_buffers_with_format_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t count;
+} xcb_dri2_get_buffers_with_format_request_t;
+
+/**
+ * @brief xcb_dri2_get_buffers_with_format_reply_t
+ **/
+typedef struct xcb_dri2_get_buffers_with_format_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t width;
+ uint32_t height;
+ uint32_t count;
+ uint8_t pad1[12];
+} xcb_dri2_get_buffers_with_format_reply_t;
+
+/**
+ * @brief xcb_dri2_swap_buffers_cookie_t
+ **/
+typedef struct xcb_dri2_swap_buffers_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_swap_buffers_cookie_t;
+
+/** Opcode for xcb_dri2_swap_buffers. */
+#define XCB_DRI2_SWAP_BUFFERS 8
+
+/**
+ * @brief xcb_dri2_swap_buffers_request_t
+ **/
+typedef struct xcb_dri2_swap_buffers_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t target_msc_hi;
+ uint32_t target_msc_lo;
+ uint32_t divisor_hi;
+ uint32_t divisor_lo;
+ uint32_t remainder_hi;
+ uint32_t remainder_lo;
+} xcb_dri2_swap_buffers_request_t;
+
+/**
+ * @brief xcb_dri2_swap_buffers_reply_t
+ **/
+typedef struct xcb_dri2_swap_buffers_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t swap_hi;
+ uint32_t swap_lo;
+} xcb_dri2_swap_buffers_reply_t;
+
+/**
+ * @brief xcb_dri2_get_msc_cookie_t
+ **/
+typedef struct xcb_dri2_get_msc_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_get_msc_cookie_t;
+
+/** Opcode for xcb_dri2_get_msc. */
+#define XCB_DRI2_GET_MSC 9
+
+/**
+ * @brief xcb_dri2_get_msc_request_t
+ **/
+typedef struct xcb_dri2_get_msc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_dri2_get_msc_request_t;
+
+/**
+ * @brief xcb_dri2_get_msc_reply_t
+ **/
+typedef struct xcb_dri2_get_msc_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t ust_hi;
+ uint32_t ust_lo;
+ uint32_t msc_hi;
+ uint32_t msc_lo;
+ uint32_t sbc_hi;
+ uint32_t sbc_lo;
+} xcb_dri2_get_msc_reply_t;
+
+/**
+ * @brief xcb_dri2_wait_msc_cookie_t
+ **/
+typedef struct xcb_dri2_wait_msc_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_wait_msc_cookie_t;
+
+/** Opcode for xcb_dri2_wait_msc. */
+#define XCB_DRI2_WAIT_MSC 10
+
+/**
+ * @brief xcb_dri2_wait_msc_request_t
+ **/
+typedef struct xcb_dri2_wait_msc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t target_msc_hi;
+ uint32_t target_msc_lo;
+ uint32_t divisor_hi;
+ uint32_t divisor_lo;
+ uint32_t remainder_hi;
+ uint32_t remainder_lo;
+} xcb_dri2_wait_msc_request_t;
+
+/**
+ * @brief xcb_dri2_wait_msc_reply_t
+ **/
+typedef struct xcb_dri2_wait_msc_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t ust_hi;
+ uint32_t ust_lo;
+ uint32_t msc_hi;
+ uint32_t msc_lo;
+ uint32_t sbc_hi;
+ uint32_t sbc_lo;
+} xcb_dri2_wait_msc_reply_t;
+
+/**
+ * @brief xcb_dri2_wait_sbc_cookie_t
+ **/
+typedef struct xcb_dri2_wait_sbc_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_wait_sbc_cookie_t;
+
+/** Opcode for xcb_dri2_wait_sbc. */
+#define XCB_DRI2_WAIT_SBC 11
+
+/**
+ * @brief xcb_dri2_wait_sbc_request_t
+ **/
+typedef struct xcb_dri2_wait_sbc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t target_sbc_hi;
+ uint32_t target_sbc_lo;
+} xcb_dri2_wait_sbc_request_t;
+
+/**
+ * @brief xcb_dri2_wait_sbc_reply_t
+ **/
+typedef struct xcb_dri2_wait_sbc_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t ust_hi;
+ uint32_t ust_lo;
+ uint32_t msc_hi;
+ uint32_t msc_lo;
+ uint32_t sbc_hi;
+ uint32_t sbc_lo;
+} xcb_dri2_wait_sbc_reply_t;
+
+/** Opcode for xcb_dri2_swap_interval. */
+#define XCB_DRI2_SWAP_INTERVAL 12
+
+/**
+ * @brief xcb_dri2_swap_interval_request_t
+ **/
+typedef struct xcb_dri2_swap_interval_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t interval;
+} xcb_dri2_swap_interval_request_t;
+
+/**
+ * @brief xcb_dri2_get_param_cookie_t
+ **/
+typedef struct xcb_dri2_get_param_cookie_t {
+ unsigned int sequence;
+} xcb_dri2_get_param_cookie_t;
+
+/** Opcode for xcb_dri2_get_param. */
+#define XCB_DRI2_GET_PARAM 13
+
+/**
+ * @brief xcb_dri2_get_param_request_t
+ **/
+typedef struct xcb_dri2_get_param_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t param;
+} xcb_dri2_get_param_request_t;
+
+/**
+ * @brief xcb_dri2_get_param_reply_t
+ **/
+typedef struct xcb_dri2_get_param_reply_t {
+ uint8_t response_type;
+ uint8_t is_param_recognized;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t value_hi;
+ uint32_t value_lo;
+} xcb_dri2_get_param_reply_t;
+
+/** Opcode for xcb_dri2_buffer_swap_complete. */
+#define XCB_DRI2_BUFFER_SWAP_COMPLETE 0
+
+/**
+ * @brief xcb_dri2_buffer_swap_complete_event_t
+ **/
+typedef struct xcb_dri2_buffer_swap_complete_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint16_t event_type;
+ uint8_t pad1[2];
+ xcb_drawable_t drawable;
+ uint32_t ust_hi;
+ uint32_t ust_lo;
+ uint32_t msc_hi;
+ uint32_t msc_lo;
+ uint32_t sbc;
+} xcb_dri2_buffer_swap_complete_event_t;
+
+/** Opcode for xcb_dri2_invalidate_buffers. */
+#define XCB_DRI2_INVALIDATE_BUFFERS 1
+
+/**
+ * @brief xcb_dri2_invalidate_buffers_event_t
+ **/
+typedef struct xcb_dri2_invalidate_buffers_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_drawable_t drawable;
+} xcb_dri2_invalidate_buffers_event_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_dri2_dri2_buffer_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_dri2_dri2_buffer_t)
+ */
+void
+xcb_dri2_dri2_buffer_next (xcb_dri2_dri2_buffer_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_dri2_dri2_buffer_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_dri2_dri2_buffer_end (xcb_dri2_dri2_buffer_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_dri2_attach_format_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_dri2_attach_format_t)
+ */
+void
+xcb_dri2_attach_format_next (xcb_dri2_attach_format_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_dri2_attach_format_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_dri2_attach_format_end (xcb_dri2_attach_format_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_query_version_cookie_t
+xcb_dri2_query_version (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_query_version_cookie_t
+xcb_dri2_query_version_unchecked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_query_version_reply_t *
+xcb_dri2_query_version_reply (xcb_connection_t *c,
+ xcb_dri2_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_dri2_connect_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_connect_cookie_t
+xcb_dri2_connect (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t driver_type);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_connect_cookie_t
+xcb_dri2_connect_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t driver_type);
+
+char *
+xcb_dri2_connect_driver_name (const xcb_dri2_connect_reply_t *R);
+
+int
+xcb_dri2_connect_driver_name_length (const xcb_dri2_connect_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri2_connect_driver_name_end (const xcb_dri2_connect_reply_t *R);
+
+void *
+xcb_dri2_connect_alignment_pad (const xcb_dri2_connect_reply_t *R);
+
+int
+xcb_dri2_connect_alignment_pad_length (const xcb_dri2_connect_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri2_connect_alignment_pad_end (const xcb_dri2_connect_reply_t *R);
+
+char *
+xcb_dri2_connect_device_name (const xcb_dri2_connect_reply_t *R);
+
+int
+xcb_dri2_connect_device_name_length (const xcb_dri2_connect_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri2_connect_device_name_end (const xcb_dri2_connect_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_connect_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_connect_reply_t *
+xcb_dri2_connect_reply (xcb_connection_t *c,
+ xcb_dri2_connect_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_authenticate_cookie_t
+xcb_dri2_authenticate (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t magic);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_authenticate_cookie_t
+xcb_dri2_authenticate_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t magic);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_authenticate_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_authenticate_reply_t *
+xcb_dri2_authenticate_reply (xcb_connection_t *c,
+ xcb_dri2_authenticate_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri2_create_drawable_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri2_create_drawable (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri2_destroy_drawable_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri2_destroy_drawable (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+int
+xcb_dri2_get_buffers_sizeof (const void *_buffer,
+ uint32_t attachments_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_get_buffers_cookie_t
+xcb_dri2_get_buffers (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t count,
+ uint32_t attachments_len,
+ const uint32_t *attachments);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_get_buffers_cookie_t
+xcb_dri2_get_buffers_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t count,
+ uint32_t attachments_len,
+ const uint32_t *attachments);
+
+xcb_dri2_dri2_buffer_t *
+xcb_dri2_get_buffers_buffers (const xcb_dri2_get_buffers_reply_t *R);
+
+int
+xcb_dri2_get_buffers_buffers_length (const xcb_dri2_get_buffers_reply_t *R);
+
+xcb_dri2_dri2_buffer_iterator_t
+xcb_dri2_get_buffers_buffers_iterator (const xcb_dri2_get_buffers_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_get_buffers_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_get_buffers_reply_t *
+xcb_dri2_get_buffers_reply (xcb_connection_t *c,
+ xcb_dri2_get_buffers_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_copy_region_cookie_t
+xcb_dri2_copy_region (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t region,
+ uint32_t dest,
+ uint32_t src);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_copy_region_cookie_t
+xcb_dri2_copy_region_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t region,
+ uint32_t dest,
+ uint32_t src);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_copy_region_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_copy_region_reply_t *
+xcb_dri2_copy_region_reply (xcb_connection_t *c,
+ xcb_dri2_copy_region_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_dri2_get_buffers_with_format_sizeof (const void *_buffer,
+ uint32_t attachments_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_get_buffers_with_format_cookie_t
+xcb_dri2_get_buffers_with_format (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t count,
+ uint32_t attachments_len,
+ const xcb_dri2_attach_format_t *attachments);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_get_buffers_with_format_cookie_t
+xcb_dri2_get_buffers_with_format_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t count,
+ uint32_t attachments_len,
+ const xcb_dri2_attach_format_t *attachments);
+
+xcb_dri2_dri2_buffer_t *
+xcb_dri2_get_buffers_with_format_buffers (const xcb_dri2_get_buffers_with_format_reply_t *R);
+
+int
+xcb_dri2_get_buffers_with_format_buffers_length (const xcb_dri2_get_buffers_with_format_reply_t *R);
+
+xcb_dri2_dri2_buffer_iterator_t
+xcb_dri2_get_buffers_with_format_buffers_iterator (const xcb_dri2_get_buffers_with_format_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_get_buffers_with_format_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_get_buffers_with_format_reply_t *
+xcb_dri2_get_buffers_with_format_reply (xcb_connection_t *c,
+ xcb_dri2_get_buffers_with_format_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_swap_buffers_cookie_t
+xcb_dri2_swap_buffers (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t target_msc_hi,
+ uint32_t target_msc_lo,
+ uint32_t divisor_hi,
+ uint32_t divisor_lo,
+ uint32_t remainder_hi,
+ uint32_t remainder_lo);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_swap_buffers_cookie_t
+xcb_dri2_swap_buffers_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t target_msc_hi,
+ uint32_t target_msc_lo,
+ uint32_t divisor_hi,
+ uint32_t divisor_lo,
+ uint32_t remainder_hi,
+ uint32_t remainder_lo);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_swap_buffers_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_swap_buffers_reply_t *
+xcb_dri2_swap_buffers_reply (xcb_connection_t *c,
+ xcb_dri2_swap_buffers_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_get_msc_cookie_t
+xcb_dri2_get_msc (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_get_msc_cookie_t
+xcb_dri2_get_msc_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_get_msc_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_get_msc_reply_t *
+xcb_dri2_get_msc_reply (xcb_connection_t *c,
+ xcb_dri2_get_msc_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_wait_msc_cookie_t
+xcb_dri2_wait_msc (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t target_msc_hi,
+ uint32_t target_msc_lo,
+ uint32_t divisor_hi,
+ uint32_t divisor_lo,
+ uint32_t remainder_hi,
+ uint32_t remainder_lo);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_wait_msc_cookie_t
+xcb_dri2_wait_msc_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t target_msc_hi,
+ uint32_t target_msc_lo,
+ uint32_t divisor_hi,
+ uint32_t divisor_lo,
+ uint32_t remainder_hi,
+ uint32_t remainder_lo);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_wait_msc_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_wait_msc_reply_t *
+xcb_dri2_wait_msc_reply (xcb_connection_t *c,
+ xcb_dri2_wait_msc_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_wait_sbc_cookie_t
+xcb_dri2_wait_sbc (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t target_sbc_hi,
+ uint32_t target_sbc_lo);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_wait_sbc_cookie_t
+xcb_dri2_wait_sbc_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t target_sbc_hi,
+ uint32_t target_sbc_lo);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_wait_sbc_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_wait_sbc_reply_t *
+xcb_dri2_wait_sbc_reply (xcb_connection_t *c,
+ xcb_dri2_wait_sbc_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri2_swap_interval_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t interval);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri2_swap_interval (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t interval);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri2_get_param_cookie_t
+xcb_dri2_get_param (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t param);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri2_get_param_cookie_t
+xcb_dri2_get_param_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t param);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri2_get_param_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri2_get_param_reply_t *
+xcb_dri2_get_param_reply (xcb_connection_t *c,
+ xcb_dri2_get_param_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/dri3.h b/depends/libxcb/include/xcb/dri3.h
new file mode 100644
index 0000000..a4038f6
--- /dev/null
+++ b/depends/libxcb/include/xcb/dri3.h
@@ -0,0 +1,884 @@
+/*
+ * This file generated automatically from dri3.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_DRI3_API XCB DRI3 API
+ * @brief DRI3 XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __DRI3_H
+#define __DRI3_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_DRI3_MAJOR_VERSION 1
+#define XCB_DRI3_MINOR_VERSION 3
+
+extern xcb_extension_t xcb_dri3_id;
+
+/**
+ * @brief xcb_dri3_query_version_cookie_t
+ **/
+typedef struct xcb_dri3_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_dri3_query_version_cookie_t;
+
+/** Opcode for xcb_dri3_query_version. */
+#define XCB_DRI3_QUERY_VERSION 0
+
+/**
+ * @brief xcb_dri3_query_version_request_t
+ **/
+typedef struct xcb_dri3_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_dri3_query_version_request_t;
+
+/**
+ * @brief xcb_dri3_query_version_reply_t
+ **/
+typedef struct xcb_dri3_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_dri3_query_version_reply_t;
+
+/**
+ * @brief xcb_dri3_open_cookie_t
+ **/
+typedef struct xcb_dri3_open_cookie_t {
+ unsigned int sequence;
+} xcb_dri3_open_cookie_t;
+
+/** Opcode for xcb_dri3_open. */
+#define XCB_DRI3_OPEN 1
+
+/**
+ * @brief xcb_dri3_open_request_t
+ **/
+typedef struct xcb_dri3_open_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t provider;
+} xcb_dri3_open_request_t;
+
+/**
+ * @brief xcb_dri3_open_reply_t
+ **/
+typedef struct xcb_dri3_open_reply_t {
+ uint8_t response_type;
+ uint8_t nfd;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_dri3_open_reply_t;
+
+/** Opcode for xcb_dri3_pixmap_from_buffer. */
+#define XCB_DRI3_PIXMAP_FROM_BUFFER 2
+
+/**
+ * @brief xcb_dri3_pixmap_from_buffer_request_t
+ **/
+typedef struct xcb_dri3_pixmap_from_buffer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_pixmap_t pixmap;
+ xcb_drawable_t drawable;
+ uint32_t size;
+ uint16_t width;
+ uint16_t height;
+ uint16_t stride;
+ uint8_t depth;
+ uint8_t bpp;
+} xcb_dri3_pixmap_from_buffer_request_t;
+
+/**
+ * @brief xcb_dri3_buffer_from_pixmap_cookie_t
+ **/
+typedef struct xcb_dri3_buffer_from_pixmap_cookie_t {
+ unsigned int sequence;
+} xcb_dri3_buffer_from_pixmap_cookie_t;
+
+/** Opcode for xcb_dri3_buffer_from_pixmap. */
+#define XCB_DRI3_BUFFER_FROM_PIXMAP 3
+
+/**
+ * @brief xcb_dri3_buffer_from_pixmap_request_t
+ **/
+typedef struct xcb_dri3_buffer_from_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_pixmap_t pixmap;
+} xcb_dri3_buffer_from_pixmap_request_t;
+
+/**
+ * @brief xcb_dri3_buffer_from_pixmap_reply_t
+ **/
+typedef struct xcb_dri3_buffer_from_pixmap_reply_t {
+ uint8_t response_type;
+ uint8_t nfd;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t size;
+ uint16_t width;
+ uint16_t height;
+ uint16_t stride;
+ uint8_t depth;
+ uint8_t bpp;
+ uint8_t pad0[12];
+} xcb_dri3_buffer_from_pixmap_reply_t;
+
+/** Opcode for xcb_dri3_fence_from_fd. */
+#define XCB_DRI3_FENCE_FROM_FD 4
+
+/**
+ * @brief xcb_dri3_fence_from_fd_request_t
+ **/
+typedef struct xcb_dri3_fence_from_fd_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t fence;
+ uint8_t initially_triggered;
+ uint8_t pad0[3];
+} xcb_dri3_fence_from_fd_request_t;
+
+/**
+ * @brief xcb_dri3_fd_from_fence_cookie_t
+ **/
+typedef struct xcb_dri3_fd_from_fence_cookie_t {
+ unsigned int sequence;
+} xcb_dri3_fd_from_fence_cookie_t;
+
+/** Opcode for xcb_dri3_fd_from_fence. */
+#define XCB_DRI3_FD_FROM_FENCE 5
+
+/**
+ * @brief xcb_dri3_fd_from_fence_request_t
+ **/
+typedef struct xcb_dri3_fd_from_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t fence;
+} xcb_dri3_fd_from_fence_request_t;
+
+/**
+ * @brief xcb_dri3_fd_from_fence_reply_t
+ **/
+typedef struct xcb_dri3_fd_from_fence_reply_t {
+ uint8_t response_type;
+ uint8_t nfd;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_dri3_fd_from_fence_reply_t;
+
+/**
+ * @brief xcb_dri3_get_supported_modifiers_cookie_t
+ **/
+typedef struct xcb_dri3_get_supported_modifiers_cookie_t {
+ unsigned int sequence;
+} xcb_dri3_get_supported_modifiers_cookie_t;
+
+/** Opcode for xcb_dri3_get_supported_modifiers. */
+#define XCB_DRI3_GET_SUPPORTED_MODIFIERS 6
+
+/**
+ * @brief xcb_dri3_get_supported_modifiers_request_t
+ **/
+typedef struct xcb_dri3_get_supported_modifiers_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t window;
+ uint8_t depth;
+ uint8_t bpp;
+ uint8_t pad0[2];
+} xcb_dri3_get_supported_modifiers_request_t;
+
+/**
+ * @brief xcb_dri3_get_supported_modifiers_reply_t
+ **/
+typedef struct xcb_dri3_get_supported_modifiers_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_window_modifiers;
+ uint32_t num_screen_modifiers;
+ uint8_t pad1[16];
+} xcb_dri3_get_supported_modifiers_reply_t;
+
+/** Opcode for xcb_dri3_pixmap_from_buffers. */
+#define XCB_DRI3_PIXMAP_FROM_BUFFERS 7
+
+/**
+ * @brief xcb_dri3_pixmap_from_buffers_request_t
+ **/
+typedef struct xcb_dri3_pixmap_from_buffers_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_pixmap_t pixmap;
+ xcb_window_t window;
+ uint8_t num_buffers;
+ uint8_t pad0[3];
+ uint16_t width;
+ uint16_t height;
+ uint32_t stride0;
+ uint32_t offset0;
+ uint32_t stride1;
+ uint32_t offset1;
+ uint32_t stride2;
+ uint32_t offset2;
+ uint32_t stride3;
+ uint32_t offset3;
+ uint8_t depth;
+ uint8_t bpp;
+ uint8_t pad1[2];
+ uint64_t modifier;
+} xcb_dri3_pixmap_from_buffers_request_t;
+
+/**
+ * @brief xcb_dri3_buffers_from_pixmap_cookie_t
+ **/
+typedef struct xcb_dri3_buffers_from_pixmap_cookie_t {
+ unsigned int sequence;
+} xcb_dri3_buffers_from_pixmap_cookie_t;
+
+/** Opcode for xcb_dri3_buffers_from_pixmap. */
+#define XCB_DRI3_BUFFERS_FROM_PIXMAP 8
+
+/**
+ * @brief xcb_dri3_buffers_from_pixmap_request_t
+ **/
+typedef struct xcb_dri3_buffers_from_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_pixmap_t pixmap;
+} xcb_dri3_buffers_from_pixmap_request_t;
+
+/**
+ * @brief xcb_dri3_buffers_from_pixmap_reply_t
+ **/
+typedef struct xcb_dri3_buffers_from_pixmap_reply_t {
+ uint8_t response_type;
+ uint8_t nfd;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t width;
+ uint16_t height;
+ uint8_t pad0[4];
+ uint64_t modifier;
+ uint8_t depth;
+ uint8_t bpp;
+ uint8_t pad1[6];
+} xcb_dri3_buffers_from_pixmap_reply_t;
+
+/** Opcode for xcb_dri3_set_drm_device_in_use. */
+#define XCB_DRI3_SET_DRM_DEVICE_IN_USE 9
+
+/**
+ * @brief xcb_dri3_set_drm_device_in_use_request_t
+ **/
+typedef struct xcb_dri3_set_drm_device_in_use_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t drmMajor;
+ uint32_t drmMinor;
+} xcb_dri3_set_drm_device_in_use_request_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri3_query_version_cookie_t
+xcb_dri3_query_version (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri3_query_version_cookie_t
+xcb_dri3_query_version_unchecked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri3_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri3_query_version_reply_t *
+xcb_dri3_query_version_reply (xcb_connection_t *c,
+ xcb_dri3_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri3_open_cookie_t
+xcb_dri3_open (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t provider);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri3_open_cookie_t
+xcb_dri3_open_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t provider);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri3_open_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri3_open_reply_t *
+xcb_dri3_open_reply (xcb_connection_t *c,
+ xcb_dri3_open_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Return the reply fds
+ * @param c The connection
+ * @param reply The reply
+ *
+ * Returns a pointer to the array of reply fds of the reply.
+ *
+ * The returned value points into the reply and must not be free().
+ * The fds are not managed by xcb. You must close() them before freeing the reply.
+ */
+int *
+xcb_dri3_open_reply_fds (xcb_connection_t *c /**< */,
+ xcb_dri3_open_reply_t *reply);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri3_pixmap_from_buffer_checked (xcb_connection_t *c,
+ xcb_pixmap_t pixmap,
+ xcb_drawable_t drawable,
+ uint32_t size,
+ uint16_t width,
+ uint16_t height,
+ uint16_t stride,
+ uint8_t depth,
+ uint8_t bpp,
+ int32_t pixmap_fd);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri3_pixmap_from_buffer (xcb_connection_t *c,
+ xcb_pixmap_t pixmap,
+ xcb_drawable_t drawable,
+ uint32_t size,
+ uint16_t width,
+ uint16_t height,
+ uint16_t stride,
+ uint8_t depth,
+ uint8_t bpp,
+ int32_t pixmap_fd);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri3_buffer_from_pixmap_cookie_t
+xcb_dri3_buffer_from_pixmap (xcb_connection_t *c,
+ xcb_pixmap_t pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri3_buffer_from_pixmap_cookie_t
+xcb_dri3_buffer_from_pixmap_unchecked (xcb_connection_t *c,
+ xcb_pixmap_t pixmap);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri3_buffer_from_pixmap_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri3_buffer_from_pixmap_reply_t *
+xcb_dri3_buffer_from_pixmap_reply (xcb_connection_t *c,
+ xcb_dri3_buffer_from_pixmap_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Return the reply fds
+ * @param c The connection
+ * @param reply The reply
+ *
+ * Returns a pointer to the array of reply fds of the reply.
+ *
+ * The returned value points into the reply and must not be free().
+ * The fds are not managed by xcb. You must close() them before freeing the reply.
+ */
+int *
+xcb_dri3_buffer_from_pixmap_reply_fds (xcb_connection_t *c /**< */,
+ xcb_dri3_buffer_from_pixmap_reply_t *reply);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri3_fence_from_fd_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t fence,
+ uint8_t initially_triggered,
+ int32_t fence_fd);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri3_fence_from_fd (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t fence,
+ uint8_t initially_triggered,
+ int32_t fence_fd);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri3_fd_from_fence_cookie_t
+xcb_dri3_fd_from_fence (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri3_fd_from_fence_cookie_t
+xcb_dri3_fd_from_fence_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t fence);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri3_fd_from_fence_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri3_fd_from_fence_reply_t *
+xcb_dri3_fd_from_fence_reply (xcb_connection_t *c,
+ xcb_dri3_fd_from_fence_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Return the reply fds
+ * @param c The connection
+ * @param reply The reply
+ *
+ * Returns a pointer to the array of reply fds of the reply.
+ *
+ * The returned value points into the reply and must not be free().
+ * The fds are not managed by xcb. You must close() them before freeing the reply.
+ */
+int *
+xcb_dri3_fd_from_fence_reply_fds (xcb_connection_t *c /**< */,
+ xcb_dri3_fd_from_fence_reply_t *reply);
+
+int
+xcb_dri3_get_supported_modifiers_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri3_get_supported_modifiers_cookie_t
+xcb_dri3_get_supported_modifiers (xcb_connection_t *c,
+ uint32_t window,
+ uint8_t depth,
+ uint8_t bpp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri3_get_supported_modifiers_cookie_t
+xcb_dri3_get_supported_modifiers_unchecked (xcb_connection_t *c,
+ uint32_t window,
+ uint8_t depth,
+ uint8_t bpp);
+
+uint64_t *
+xcb_dri3_get_supported_modifiers_window_modifiers (const xcb_dri3_get_supported_modifiers_reply_t *R);
+
+int
+xcb_dri3_get_supported_modifiers_window_modifiers_length (const xcb_dri3_get_supported_modifiers_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri3_get_supported_modifiers_window_modifiers_end (const xcb_dri3_get_supported_modifiers_reply_t *R);
+
+uint64_t *
+xcb_dri3_get_supported_modifiers_screen_modifiers (const xcb_dri3_get_supported_modifiers_reply_t *R);
+
+int
+xcb_dri3_get_supported_modifiers_screen_modifiers_length (const xcb_dri3_get_supported_modifiers_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri3_get_supported_modifiers_screen_modifiers_end (const xcb_dri3_get_supported_modifiers_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri3_get_supported_modifiers_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri3_get_supported_modifiers_reply_t *
+xcb_dri3_get_supported_modifiers_reply (xcb_connection_t *c,
+ xcb_dri3_get_supported_modifiers_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri3_pixmap_from_buffers_checked (xcb_connection_t *c,
+ xcb_pixmap_t pixmap,
+ xcb_window_t window,
+ uint8_t num_buffers,
+ uint16_t width,
+ uint16_t height,
+ uint32_t stride0,
+ uint32_t offset0,
+ uint32_t stride1,
+ uint32_t offset1,
+ uint32_t stride2,
+ uint32_t offset2,
+ uint32_t stride3,
+ uint32_t offset3,
+ uint8_t depth,
+ uint8_t bpp,
+ uint64_t modifier,
+ const int32_t *buffers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri3_pixmap_from_buffers (xcb_connection_t *c,
+ xcb_pixmap_t pixmap,
+ xcb_window_t window,
+ uint8_t num_buffers,
+ uint16_t width,
+ uint16_t height,
+ uint32_t stride0,
+ uint32_t offset0,
+ uint32_t stride1,
+ uint32_t offset1,
+ uint32_t stride2,
+ uint32_t offset2,
+ uint32_t stride3,
+ uint32_t offset3,
+ uint8_t depth,
+ uint8_t bpp,
+ uint64_t modifier,
+ const int32_t *buffers);
+
+int
+xcb_dri3_buffers_from_pixmap_sizeof (const void *_buffer,
+ int32_t buffers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_dri3_buffers_from_pixmap_cookie_t
+xcb_dri3_buffers_from_pixmap (xcb_connection_t *c,
+ xcb_pixmap_t pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_dri3_buffers_from_pixmap_cookie_t
+xcb_dri3_buffers_from_pixmap_unchecked (xcb_connection_t *c,
+ xcb_pixmap_t pixmap);
+
+uint32_t *
+xcb_dri3_buffers_from_pixmap_strides (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+int
+xcb_dri3_buffers_from_pixmap_strides_length (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri3_buffers_from_pixmap_strides_end (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+uint32_t *
+xcb_dri3_buffers_from_pixmap_offsets (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+int
+xcb_dri3_buffers_from_pixmap_offsets_length (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri3_buffers_from_pixmap_offsets_end (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+int32_t *
+xcb_dri3_buffers_from_pixmap_buffers (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+int
+xcb_dri3_buffers_from_pixmap_buffers_length (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_dri3_buffers_from_pixmap_buffers_end (const xcb_dri3_buffers_from_pixmap_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_dri3_buffers_from_pixmap_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_dri3_buffers_from_pixmap_reply_t *
+xcb_dri3_buffers_from_pixmap_reply (xcb_connection_t *c,
+ xcb_dri3_buffers_from_pixmap_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Return the reply fds
+ * @param c The connection
+ * @param reply The reply
+ *
+ * Returns a pointer to the array of reply fds of the reply.
+ *
+ * The returned value points into the reply and must not be free().
+ * The fds are not managed by xcb. You must close() them before freeing the reply.
+ */
+int *
+xcb_dri3_buffers_from_pixmap_reply_fds (xcb_connection_t *c /**< */,
+ xcb_dri3_buffers_from_pixmap_reply_t *reply);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_dri3_set_drm_device_in_use_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t drmMajor,
+ uint32_t drmMinor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_dri3_set_drm_device_in_use (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t drmMajor,
+ uint32_t drmMinor);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/ge.h b/depends/libxcb/include/xcb/ge.h
new file mode 100644
index 0000000..9887e57
--- /dev/null
+++ b/depends/libxcb/include/xcb/ge.h
@@ -0,0 +1,117 @@
+/*
+ * This file generated automatically from ge.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_GenericEvent_API XCB GenericEvent API
+ * @brief GenericEvent XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __GE_H
+#define __GE_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_GENERICEVENT_MAJOR_VERSION 1
+#define XCB_GENERICEVENT_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_genericevent_id;
+
+/**
+ * @brief xcb_genericevent_query_version_cookie_t
+ **/
+typedef struct xcb_genericevent_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_genericevent_query_version_cookie_t;
+
+/** Opcode for xcb_genericevent_query_version. */
+#define XCB_GENERICEVENT_QUERY_VERSION 0
+
+/**
+ * @brief xcb_genericevent_query_version_request_t
+ **/
+typedef struct xcb_genericevent_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t client_major_version;
+ uint16_t client_minor_version;
+} xcb_genericevent_query_version_request_t;
+
+/**
+ * @brief xcb_genericevent_query_version_reply_t
+ **/
+typedef struct xcb_genericevent_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+ uint8_t pad1[20];
+} xcb_genericevent_query_version_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_genericevent_query_version_cookie_t
+xcb_genericevent_query_version (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_genericevent_query_version_cookie_t
+xcb_genericevent_query_version_unchecked (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_genericevent_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_genericevent_query_version_reply_t *
+xcb_genericevent_query_version_reply (xcb_connection_t *c,
+ xcb_genericevent_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/glx.h b/depends/libxcb/include/xcb/glx.h
new file mode 100644
index 0000000..d864bcc
--- /dev/null
+++ b/depends/libxcb/include/xcb/glx.h
@@ -0,0 +1,8657 @@
+/*
+ * This file generated automatically from glx.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Glx_API XCB Glx API
+ * @brief Glx XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __GLX_H
+#define __GLX_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_GLX_MAJOR_VERSION 1
+#define XCB_GLX_MINOR_VERSION 4
+
+extern xcb_extension_t xcb_glx_id;
+
+typedef uint32_t xcb_glx_pixmap_t;
+
+/**
+ * @brief xcb_glx_pixmap_iterator_t
+ **/
+typedef struct xcb_glx_pixmap_iterator_t {
+ xcb_glx_pixmap_t *data;
+ int rem;
+ int index;
+} xcb_glx_pixmap_iterator_t;
+
+typedef uint32_t xcb_glx_context_t;
+
+/**
+ * @brief xcb_glx_context_iterator_t
+ **/
+typedef struct xcb_glx_context_iterator_t {
+ xcb_glx_context_t *data;
+ int rem;
+ int index;
+} xcb_glx_context_iterator_t;
+
+typedef uint32_t xcb_glx_pbuffer_t;
+
+/**
+ * @brief xcb_glx_pbuffer_iterator_t
+ **/
+typedef struct xcb_glx_pbuffer_iterator_t {
+ xcb_glx_pbuffer_t *data;
+ int rem;
+ int index;
+} xcb_glx_pbuffer_iterator_t;
+
+typedef uint32_t xcb_glx_window_t;
+
+/**
+ * @brief xcb_glx_window_iterator_t
+ **/
+typedef struct xcb_glx_window_iterator_t {
+ xcb_glx_window_t *data;
+ int rem;
+ int index;
+} xcb_glx_window_iterator_t;
+
+typedef uint32_t xcb_glx_fbconfig_t;
+
+/**
+ * @brief xcb_glx_fbconfig_iterator_t
+ **/
+typedef struct xcb_glx_fbconfig_iterator_t {
+ xcb_glx_fbconfig_t *data;
+ int rem;
+ int index;
+} xcb_glx_fbconfig_iterator_t;
+
+typedef uint32_t xcb_glx_drawable_t;
+
+/**
+ * @brief xcb_glx_drawable_iterator_t
+ **/
+typedef struct xcb_glx_drawable_iterator_t {
+ xcb_glx_drawable_t *data;
+ int rem;
+ int index;
+} xcb_glx_drawable_iterator_t;
+
+typedef float xcb_glx_float32_t;
+
+/**
+ * @brief xcb_glx_float32_iterator_t
+ **/
+typedef struct xcb_glx_float32_iterator_t {
+ xcb_glx_float32_t *data;
+ int rem;
+ int index;
+} xcb_glx_float32_iterator_t;
+
+typedef double xcb_glx_float64_t;
+
+/**
+ * @brief xcb_glx_float64_iterator_t
+ **/
+typedef struct xcb_glx_float64_iterator_t {
+ xcb_glx_float64_t *data;
+ int rem;
+ int index;
+} xcb_glx_float64_iterator_t;
+
+typedef uint32_t xcb_glx_bool32_t;
+
+/**
+ * @brief xcb_glx_bool32_iterator_t
+ **/
+typedef struct xcb_glx_bool32_iterator_t {
+ xcb_glx_bool32_t *data;
+ int rem;
+ int index;
+} xcb_glx_bool32_iterator_t;
+
+typedef uint32_t xcb_glx_context_tag_t;
+
+/**
+ * @brief xcb_glx_context_tag_iterator_t
+ **/
+typedef struct xcb_glx_context_tag_iterator_t {
+ xcb_glx_context_tag_t *data;
+ int rem;
+ int index;
+} xcb_glx_context_tag_iterator_t;
+
+/** Opcode for xcb_glx_generic. */
+#define XCB_GLX_GENERIC -1
+
+/**
+ * @brief xcb_glx_generic_error_t
+ **/
+typedef struct xcb_glx_generic_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t pad0[21];
+} xcb_glx_generic_error_t;
+
+/** Opcode for xcb_glx_bad_context. */
+#define XCB_GLX_BAD_CONTEXT 0
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_context_error_t;
+
+/** Opcode for xcb_glx_bad_context_state. */
+#define XCB_GLX_BAD_CONTEXT_STATE 1
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_context_state_error_t;
+
+/** Opcode for xcb_glx_bad_drawable. */
+#define XCB_GLX_BAD_DRAWABLE 2
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_drawable_error_t;
+
+/** Opcode for xcb_glx_bad_pixmap. */
+#define XCB_GLX_BAD_PIXMAP 3
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_pixmap_error_t;
+
+/** Opcode for xcb_glx_bad_context_tag. */
+#define XCB_GLX_BAD_CONTEXT_TAG 4
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_context_tag_error_t;
+
+/** Opcode for xcb_glx_bad_current_window. */
+#define XCB_GLX_BAD_CURRENT_WINDOW 5
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_current_window_error_t;
+
+/** Opcode for xcb_glx_bad_render_request. */
+#define XCB_GLX_BAD_RENDER_REQUEST 6
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_render_request_error_t;
+
+/** Opcode for xcb_glx_bad_large_request. */
+#define XCB_GLX_BAD_LARGE_REQUEST 7
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_large_request_error_t;
+
+/** Opcode for xcb_glx_unsupported_private_request. */
+#define XCB_GLX_UNSUPPORTED_PRIVATE_REQUEST 8
+
+typedef xcb_glx_generic_error_t xcb_glx_unsupported_private_request_error_t;
+
+/** Opcode for xcb_glx_bad_fb_config. */
+#define XCB_GLX_BAD_FB_CONFIG 9
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_fb_config_error_t;
+
+/** Opcode for xcb_glx_bad_pbuffer. */
+#define XCB_GLX_BAD_PBUFFER 10
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_pbuffer_error_t;
+
+/** Opcode for xcb_glx_bad_current_drawable. */
+#define XCB_GLX_BAD_CURRENT_DRAWABLE 11
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_current_drawable_error_t;
+
+/** Opcode for xcb_glx_bad_window. */
+#define XCB_GLX_BAD_WINDOW 12
+
+typedef xcb_glx_generic_error_t xcb_glx_bad_window_error_t;
+
+/** Opcode for xcb_glx_glx_bad_profile_arb. */
+#define XCB_GLX_GLX_BAD_PROFILE_ARB 13
+
+typedef xcb_glx_generic_error_t xcb_glx_glx_bad_profile_arb_error_t;
+
+/** Opcode for xcb_glx_pbuffer_clobber. */
+#define XCB_GLX_PBUFFER_CLOBBER 0
+
+/**
+ * @brief xcb_glx_pbuffer_clobber_event_t
+ **/
+typedef struct xcb_glx_pbuffer_clobber_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint16_t event_type;
+ uint16_t draw_type;
+ xcb_glx_drawable_t drawable;
+ uint32_t b_mask;
+ uint16_t aux_buffer;
+ uint16_t x;
+ uint16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t count;
+ uint8_t pad1[4];
+} xcb_glx_pbuffer_clobber_event_t;
+
+/** Opcode for xcb_glx_buffer_swap_complete. */
+#define XCB_GLX_BUFFER_SWAP_COMPLETE 1
+
+/**
+ * @brief xcb_glx_buffer_swap_complete_event_t
+ **/
+typedef struct xcb_glx_buffer_swap_complete_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint16_t event_type;
+ uint8_t pad1[2];
+ xcb_glx_drawable_t drawable;
+ uint32_t ust_hi;
+ uint32_t ust_lo;
+ uint32_t msc_hi;
+ uint32_t msc_lo;
+ uint32_t sbc;
+} xcb_glx_buffer_swap_complete_event_t;
+
+typedef enum xcb_glx_pbcet_t {
+ XCB_GLX_PBCET_DAMAGED = 32791,
+ XCB_GLX_PBCET_SAVED = 32792
+} xcb_glx_pbcet_t;
+
+typedef enum xcb_glx_pbcdt_t {
+ XCB_GLX_PBCDT_WINDOW = 32793,
+ XCB_GLX_PBCDT_PBUFFER = 32794
+} xcb_glx_pbcdt_t;
+
+/** Opcode for xcb_glx_render. */
+#define XCB_GLX_RENDER 1
+
+/**
+ * @brief xcb_glx_render_request_t
+ **/
+typedef struct xcb_glx_render_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_render_request_t;
+
+/** Opcode for xcb_glx_render_large. */
+#define XCB_GLX_RENDER_LARGE 2
+
+/**
+ * @brief xcb_glx_render_large_request_t
+ **/
+typedef struct xcb_glx_render_large_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint16_t request_num;
+ uint16_t request_total;
+ uint32_t data_len;
+} xcb_glx_render_large_request_t;
+
+/** Opcode for xcb_glx_create_context. */
+#define XCB_GLX_CREATE_CONTEXT 3
+
+/**
+ * @brief xcb_glx_create_context_request_t
+ **/
+typedef struct xcb_glx_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t context;
+ xcb_visualid_t visual;
+ uint32_t screen;
+ xcb_glx_context_t share_list;
+ uint8_t is_direct;
+ uint8_t pad0[3];
+} xcb_glx_create_context_request_t;
+
+/** Opcode for xcb_glx_destroy_context. */
+#define XCB_GLX_DESTROY_CONTEXT 4
+
+/**
+ * @brief xcb_glx_destroy_context_request_t
+ **/
+typedef struct xcb_glx_destroy_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t context;
+} xcb_glx_destroy_context_request_t;
+
+/**
+ * @brief xcb_glx_make_current_cookie_t
+ **/
+typedef struct xcb_glx_make_current_cookie_t {
+ unsigned int sequence;
+} xcb_glx_make_current_cookie_t;
+
+/** Opcode for xcb_glx_make_current. */
+#define XCB_GLX_MAKE_CURRENT 5
+
+/**
+ * @brief xcb_glx_make_current_request_t
+ **/
+typedef struct xcb_glx_make_current_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_drawable_t drawable;
+ xcb_glx_context_t context;
+ xcb_glx_context_tag_t old_context_tag;
+} xcb_glx_make_current_request_t;
+
+/**
+ * @brief xcb_glx_make_current_reply_t
+ **/
+typedef struct xcb_glx_make_current_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint8_t pad1[20];
+} xcb_glx_make_current_reply_t;
+
+/**
+ * @brief xcb_glx_is_direct_cookie_t
+ **/
+typedef struct xcb_glx_is_direct_cookie_t {
+ unsigned int sequence;
+} xcb_glx_is_direct_cookie_t;
+
+/** Opcode for xcb_glx_is_direct. */
+#define XCB_GLX_IS_DIRECT 6
+
+/**
+ * @brief xcb_glx_is_direct_request_t
+ **/
+typedef struct xcb_glx_is_direct_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t context;
+} xcb_glx_is_direct_request_t;
+
+/**
+ * @brief xcb_glx_is_direct_reply_t
+ **/
+typedef struct xcb_glx_is_direct_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t is_direct;
+ uint8_t pad1[23];
+} xcb_glx_is_direct_reply_t;
+
+/**
+ * @brief xcb_glx_query_version_cookie_t
+ **/
+typedef struct xcb_glx_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_glx_query_version_cookie_t;
+
+/** Opcode for xcb_glx_query_version. */
+#define XCB_GLX_QUERY_VERSION 7
+
+/**
+ * @brief xcb_glx_query_version_request_t
+ **/
+typedef struct xcb_glx_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_glx_query_version_request_t;
+
+/**
+ * @brief xcb_glx_query_version_reply_t
+ **/
+typedef struct xcb_glx_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint8_t pad1[16];
+} xcb_glx_query_version_reply_t;
+
+/** Opcode for xcb_glx_wait_gl. */
+#define XCB_GLX_WAIT_GL 8
+
+/**
+ * @brief xcb_glx_wait_gl_request_t
+ **/
+typedef struct xcb_glx_wait_gl_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_wait_gl_request_t;
+
+/** Opcode for xcb_glx_wait_x. */
+#define XCB_GLX_WAIT_X 9
+
+/**
+ * @brief xcb_glx_wait_x_request_t
+ **/
+typedef struct xcb_glx_wait_x_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_wait_x_request_t;
+
+/** Opcode for xcb_glx_copy_context. */
+#define XCB_GLX_COPY_CONTEXT 10
+
+/**
+ * @brief xcb_glx_copy_context_request_t
+ **/
+typedef struct xcb_glx_copy_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t src;
+ xcb_glx_context_t dest;
+ uint32_t mask;
+ xcb_glx_context_tag_t src_context_tag;
+} xcb_glx_copy_context_request_t;
+
+typedef enum xcb_glx_gc_t {
+ XCB_GLX_GC_GL_CURRENT_BIT = 1,
+ XCB_GLX_GC_GL_POINT_BIT = 2,
+ XCB_GLX_GC_GL_LINE_BIT = 4,
+ XCB_GLX_GC_GL_POLYGON_BIT = 8,
+ XCB_GLX_GC_GL_POLYGON_STIPPLE_BIT = 16,
+ XCB_GLX_GC_GL_PIXEL_MODE_BIT = 32,
+ XCB_GLX_GC_GL_LIGHTING_BIT = 64,
+ XCB_GLX_GC_GL_FOG_BIT = 128,
+ XCB_GLX_GC_GL_DEPTH_BUFFER_BIT = 256,
+ XCB_GLX_GC_GL_ACCUM_BUFFER_BIT = 512,
+ XCB_GLX_GC_GL_STENCIL_BUFFER_BIT = 1024,
+ XCB_GLX_GC_GL_VIEWPORT_BIT = 2048,
+ XCB_GLX_GC_GL_TRANSFORM_BIT = 4096,
+ XCB_GLX_GC_GL_ENABLE_BIT = 8192,
+ XCB_GLX_GC_GL_COLOR_BUFFER_BIT = 16384,
+ XCB_GLX_GC_GL_HINT_BIT = 32768,
+ XCB_GLX_GC_GL_EVAL_BIT = 65536,
+ XCB_GLX_GC_GL_LIST_BIT = 131072,
+ XCB_GLX_GC_GL_TEXTURE_BIT = 262144,
+ XCB_GLX_GC_GL_SCISSOR_BIT = 524288,
+ XCB_GLX_GC_GL_ALL_ATTRIB_BITS = 16777215
+} xcb_glx_gc_t;
+
+/** Opcode for xcb_glx_swap_buffers. */
+#define XCB_GLX_SWAP_BUFFERS 11
+
+/**
+ * @brief xcb_glx_swap_buffers_request_t
+ **/
+typedef struct xcb_glx_swap_buffers_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ xcb_glx_drawable_t drawable;
+} xcb_glx_swap_buffers_request_t;
+
+/** Opcode for xcb_glx_use_x_font. */
+#define XCB_GLX_USE_X_FONT 12
+
+/**
+ * @brief xcb_glx_use_x_font_request_t
+ **/
+typedef struct xcb_glx_use_x_font_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ xcb_font_t font;
+ uint32_t first;
+ uint32_t count;
+ uint32_t list_base;
+} xcb_glx_use_x_font_request_t;
+
+/** Opcode for xcb_glx_create_glx_pixmap. */
+#define XCB_GLX_CREATE_GLX_PIXMAP 13
+
+/**
+ * @brief xcb_glx_create_glx_pixmap_request_t
+ **/
+typedef struct xcb_glx_create_glx_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ xcb_visualid_t visual;
+ xcb_pixmap_t pixmap;
+ xcb_glx_pixmap_t glx_pixmap;
+} xcb_glx_create_glx_pixmap_request_t;
+
+/**
+ * @brief xcb_glx_get_visual_configs_cookie_t
+ **/
+typedef struct xcb_glx_get_visual_configs_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_visual_configs_cookie_t;
+
+/** Opcode for xcb_glx_get_visual_configs. */
+#define XCB_GLX_GET_VISUAL_CONFIGS 14
+
+/**
+ * @brief xcb_glx_get_visual_configs_request_t
+ **/
+typedef struct xcb_glx_get_visual_configs_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_glx_get_visual_configs_request_t;
+
+/**
+ * @brief xcb_glx_get_visual_configs_reply_t
+ **/
+typedef struct xcb_glx_get_visual_configs_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_visuals;
+ uint32_t num_properties;
+ uint8_t pad1[16];
+} xcb_glx_get_visual_configs_reply_t;
+
+/** Opcode for xcb_glx_destroy_glx_pixmap. */
+#define XCB_GLX_DESTROY_GLX_PIXMAP 15
+
+/**
+ * @brief xcb_glx_destroy_glx_pixmap_request_t
+ **/
+typedef struct xcb_glx_destroy_glx_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_pixmap_t glx_pixmap;
+} xcb_glx_destroy_glx_pixmap_request_t;
+
+/** Opcode for xcb_glx_vendor_private. */
+#define XCB_GLX_VENDOR_PRIVATE 16
+
+/**
+ * @brief xcb_glx_vendor_private_request_t
+ **/
+typedef struct xcb_glx_vendor_private_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t vendor_code;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_vendor_private_request_t;
+
+/**
+ * @brief xcb_glx_vendor_private_with_reply_cookie_t
+ **/
+typedef struct xcb_glx_vendor_private_with_reply_cookie_t {
+ unsigned int sequence;
+} xcb_glx_vendor_private_with_reply_cookie_t;
+
+/** Opcode for xcb_glx_vendor_private_with_reply. */
+#define XCB_GLX_VENDOR_PRIVATE_WITH_REPLY 17
+
+/**
+ * @brief xcb_glx_vendor_private_with_reply_request_t
+ **/
+typedef struct xcb_glx_vendor_private_with_reply_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t vendor_code;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_vendor_private_with_reply_request_t;
+
+/**
+ * @brief xcb_glx_vendor_private_with_reply_reply_t
+ **/
+typedef struct xcb_glx_vendor_private_with_reply_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t retval;
+ uint8_t data1[24];
+} xcb_glx_vendor_private_with_reply_reply_t;
+
+/**
+ * @brief xcb_glx_query_extensions_string_cookie_t
+ **/
+typedef struct xcb_glx_query_extensions_string_cookie_t {
+ unsigned int sequence;
+} xcb_glx_query_extensions_string_cookie_t;
+
+/** Opcode for xcb_glx_query_extensions_string. */
+#define XCB_GLX_QUERY_EXTENSIONS_STRING 18
+
+/**
+ * @brief xcb_glx_query_extensions_string_request_t
+ **/
+typedef struct xcb_glx_query_extensions_string_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_glx_query_extensions_string_request_t;
+
+/**
+ * @brief xcb_glx_query_extensions_string_reply_t
+ **/
+typedef struct xcb_glx_query_extensions_string_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ uint8_t pad2[16];
+} xcb_glx_query_extensions_string_reply_t;
+
+/**
+ * @brief xcb_glx_query_server_string_cookie_t
+ **/
+typedef struct xcb_glx_query_server_string_cookie_t {
+ unsigned int sequence;
+} xcb_glx_query_server_string_cookie_t;
+
+/** Opcode for xcb_glx_query_server_string. */
+#define XCB_GLX_QUERY_SERVER_STRING 19
+
+/**
+ * @brief xcb_glx_query_server_string_request_t
+ **/
+typedef struct xcb_glx_query_server_string_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t name;
+} xcb_glx_query_server_string_request_t;
+
+/**
+ * @brief xcb_glx_query_server_string_reply_t
+ **/
+typedef struct xcb_glx_query_server_string_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t str_len;
+ uint8_t pad2[16];
+} xcb_glx_query_server_string_reply_t;
+
+/** Opcode for xcb_glx_client_info. */
+#define XCB_GLX_CLIENT_INFO 20
+
+/**
+ * @brief xcb_glx_client_info_request_t
+ **/
+typedef struct xcb_glx_client_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint32_t str_len;
+} xcb_glx_client_info_request_t;
+
+/**
+ * @brief xcb_glx_get_fb_configs_cookie_t
+ **/
+typedef struct xcb_glx_get_fb_configs_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_fb_configs_cookie_t;
+
+/** Opcode for xcb_glx_get_fb_configs. */
+#define XCB_GLX_GET_FB_CONFIGS 21
+
+/**
+ * @brief xcb_glx_get_fb_configs_request_t
+ **/
+typedef struct xcb_glx_get_fb_configs_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_glx_get_fb_configs_request_t;
+
+/**
+ * @brief xcb_glx_get_fb_configs_reply_t
+ **/
+typedef struct xcb_glx_get_fb_configs_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_FB_configs;
+ uint32_t num_properties;
+ uint8_t pad1[16];
+} xcb_glx_get_fb_configs_reply_t;
+
+/** Opcode for xcb_glx_create_pixmap. */
+#define XCB_GLX_CREATE_PIXMAP 22
+
+/**
+ * @brief xcb_glx_create_pixmap_request_t
+ **/
+typedef struct xcb_glx_create_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ xcb_glx_fbconfig_t fbconfig;
+ xcb_pixmap_t pixmap;
+ xcb_glx_pixmap_t glx_pixmap;
+ uint32_t num_attribs;
+} xcb_glx_create_pixmap_request_t;
+
+/** Opcode for xcb_glx_destroy_pixmap. */
+#define XCB_GLX_DESTROY_PIXMAP 23
+
+/**
+ * @brief xcb_glx_destroy_pixmap_request_t
+ **/
+typedef struct xcb_glx_destroy_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_pixmap_t glx_pixmap;
+} xcb_glx_destroy_pixmap_request_t;
+
+/** Opcode for xcb_glx_create_new_context. */
+#define XCB_GLX_CREATE_NEW_CONTEXT 24
+
+/**
+ * @brief xcb_glx_create_new_context_request_t
+ **/
+typedef struct xcb_glx_create_new_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t context;
+ xcb_glx_fbconfig_t fbconfig;
+ uint32_t screen;
+ uint32_t render_type;
+ xcb_glx_context_t share_list;
+ uint8_t is_direct;
+ uint8_t pad0[3];
+} xcb_glx_create_new_context_request_t;
+
+/**
+ * @brief xcb_glx_query_context_cookie_t
+ **/
+typedef struct xcb_glx_query_context_cookie_t {
+ unsigned int sequence;
+} xcb_glx_query_context_cookie_t;
+
+/** Opcode for xcb_glx_query_context. */
+#define XCB_GLX_QUERY_CONTEXT 25
+
+/**
+ * @brief xcb_glx_query_context_request_t
+ **/
+typedef struct xcb_glx_query_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t context;
+} xcb_glx_query_context_request_t;
+
+/**
+ * @brief xcb_glx_query_context_reply_t
+ **/
+typedef struct xcb_glx_query_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_attribs;
+ uint8_t pad1[20];
+} xcb_glx_query_context_reply_t;
+
+/**
+ * @brief xcb_glx_make_context_current_cookie_t
+ **/
+typedef struct xcb_glx_make_context_current_cookie_t {
+ unsigned int sequence;
+} xcb_glx_make_context_current_cookie_t;
+
+/** Opcode for xcb_glx_make_context_current. */
+#define XCB_GLX_MAKE_CONTEXT_CURRENT 26
+
+/**
+ * @brief xcb_glx_make_context_current_request_t
+ **/
+typedef struct xcb_glx_make_context_current_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t old_context_tag;
+ xcb_glx_drawable_t drawable;
+ xcb_glx_drawable_t read_drawable;
+ xcb_glx_context_t context;
+} xcb_glx_make_context_current_request_t;
+
+/**
+ * @brief xcb_glx_make_context_current_reply_t
+ **/
+typedef struct xcb_glx_make_context_current_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint8_t pad1[20];
+} xcb_glx_make_context_current_reply_t;
+
+/** Opcode for xcb_glx_create_pbuffer. */
+#define XCB_GLX_CREATE_PBUFFER 27
+
+/**
+ * @brief xcb_glx_create_pbuffer_request_t
+ **/
+typedef struct xcb_glx_create_pbuffer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ xcb_glx_fbconfig_t fbconfig;
+ xcb_glx_pbuffer_t pbuffer;
+ uint32_t num_attribs;
+} xcb_glx_create_pbuffer_request_t;
+
+/** Opcode for xcb_glx_destroy_pbuffer. */
+#define XCB_GLX_DESTROY_PBUFFER 28
+
+/**
+ * @brief xcb_glx_destroy_pbuffer_request_t
+ **/
+typedef struct xcb_glx_destroy_pbuffer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_pbuffer_t pbuffer;
+} xcb_glx_destroy_pbuffer_request_t;
+
+/**
+ * @brief xcb_glx_get_drawable_attributes_cookie_t
+ **/
+typedef struct xcb_glx_get_drawable_attributes_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_drawable_attributes_cookie_t;
+
+/** Opcode for xcb_glx_get_drawable_attributes. */
+#define XCB_GLX_GET_DRAWABLE_ATTRIBUTES 29
+
+/**
+ * @brief xcb_glx_get_drawable_attributes_request_t
+ **/
+typedef struct xcb_glx_get_drawable_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_drawable_t drawable;
+} xcb_glx_get_drawable_attributes_request_t;
+
+/**
+ * @brief xcb_glx_get_drawable_attributes_reply_t
+ **/
+typedef struct xcb_glx_get_drawable_attributes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_attribs;
+ uint8_t pad1[20];
+} xcb_glx_get_drawable_attributes_reply_t;
+
+/** Opcode for xcb_glx_change_drawable_attributes. */
+#define XCB_GLX_CHANGE_DRAWABLE_ATTRIBUTES 30
+
+/**
+ * @brief xcb_glx_change_drawable_attributes_request_t
+ **/
+typedef struct xcb_glx_change_drawable_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_drawable_t drawable;
+ uint32_t num_attribs;
+} xcb_glx_change_drawable_attributes_request_t;
+
+/** Opcode for xcb_glx_create_window. */
+#define XCB_GLX_CREATE_WINDOW 31
+
+/**
+ * @brief xcb_glx_create_window_request_t
+ **/
+typedef struct xcb_glx_create_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ xcb_glx_fbconfig_t fbconfig;
+ xcb_window_t window;
+ xcb_glx_window_t glx_window;
+ uint32_t num_attribs;
+} xcb_glx_create_window_request_t;
+
+/** Opcode for xcb_glx_delete_window. */
+#define XCB_GLX_DELETE_WINDOW 32
+
+/**
+ * @brief xcb_glx_delete_window_request_t
+ **/
+typedef struct xcb_glx_delete_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_window_t glxwindow;
+} xcb_glx_delete_window_request_t;
+
+/** Opcode for xcb_glx_set_client_info_arb. */
+#define XCB_GLX_SET_CLIENT_INFO_ARB 33
+
+/**
+ * @brief xcb_glx_set_client_info_arb_request_t
+ **/
+typedef struct xcb_glx_set_client_info_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint32_t num_versions;
+ uint32_t gl_str_len;
+ uint32_t glx_str_len;
+} xcb_glx_set_client_info_arb_request_t;
+
+/** Opcode for xcb_glx_create_context_attribs_arb. */
+#define XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB 34
+
+/**
+ * @brief xcb_glx_create_context_attribs_arb_request_t
+ **/
+typedef struct xcb_glx_create_context_attribs_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_t context;
+ xcb_glx_fbconfig_t fbconfig;
+ uint32_t screen;
+ xcb_glx_context_t share_list;
+ uint8_t is_direct;
+ uint8_t pad0[3];
+ uint32_t num_attribs;
+} xcb_glx_create_context_attribs_arb_request_t;
+
+/** Opcode for xcb_glx_set_client_info_2arb. */
+#define XCB_GLX_SET_CLIENT_INFO_2ARB 35
+
+/**
+ * @brief xcb_glx_set_client_info_2arb_request_t
+ **/
+typedef struct xcb_glx_set_client_info_2arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint32_t num_versions;
+ uint32_t gl_str_len;
+ uint32_t glx_str_len;
+} xcb_glx_set_client_info_2arb_request_t;
+
+/** Opcode for xcb_glx_new_list. */
+#define XCB_GLX_NEW_LIST 101
+
+/**
+ * @brief xcb_glx_new_list_request_t
+ **/
+typedef struct xcb_glx_new_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t list;
+ uint32_t mode;
+} xcb_glx_new_list_request_t;
+
+/** Opcode for xcb_glx_end_list. */
+#define XCB_GLX_END_LIST 102
+
+/**
+ * @brief xcb_glx_end_list_request_t
+ **/
+typedef struct xcb_glx_end_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_end_list_request_t;
+
+/** Opcode for xcb_glx_delete_lists. */
+#define XCB_GLX_DELETE_LISTS 103
+
+/**
+ * @brief xcb_glx_delete_lists_request_t
+ **/
+typedef struct xcb_glx_delete_lists_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t list;
+ int32_t range;
+} xcb_glx_delete_lists_request_t;
+
+/**
+ * @brief xcb_glx_gen_lists_cookie_t
+ **/
+typedef struct xcb_glx_gen_lists_cookie_t {
+ unsigned int sequence;
+} xcb_glx_gen_lists_cookie_t;
+
+/** Opcode for xcb_glx_gen_lists. */
+#define XCB_GLX_GEN_LISTS 104
+
+/**
+ * @brief xcb_glx_gen_lists_request_t
+ **/
+typedef struct xcb_glx_gen_lists_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t range;
+} xcb_glx_gen_lists_request_t;
+
+/**
+ * @brief xcb_glx_gen_lists_reply_t
+ **/
+typedef struct xcb_glx_gen_lists_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t ret_val;
+} xcb_glx_gen_lists_reply_t;
+
+/** Opcode for xcb_glx_feedback_buffer. */
+#define XCB_GLX_FEEDBACK_BUFFER 105
+
+/**
+ * @brief xcb_glx_feedback_buffer_request_t
+ **/
+typedef struct xcb_glx_feedback_buffer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t size;
+ int32_t type;
+} xcb_glx_feedback_buffer_request_t;
+
+/** Opcode for xcb_glx_select_buffer. */
+#define XCB_GLX_SELECT_BUFFER 106
+
+/**
+ * @brief xcb_glx_select_buffer_request_t
+ **/
+typedef struct xcb_glx_select_buffer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t size;
+} xcb_glx_select_buffer_request_t;
+
+/**
+ * @brief xcb_glx_render_mode_cookie_t
+ **/
+typedef struct xcb_glx_render_mode_cookie_t {
+ unsigned int sequence;
+} xcb_glx_render_mode_cookie_t;
+
+/** Opcode for xcb_glx_render_mode. */
+#define XCB_GLX_RENDER_MODE 107
+
+/**
+ * @brief xcb_glx_render_mode_request_t
+ **/
+typedef struct xcb_glx_render_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t mode;
+} xcb_glx_render_mode_request_t;
+
+/**
+ * @brief xcb_glx_render_mode_reply_t
+ **/
+typedef struct xcb_glx_render_mode_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t ret_val;
+ uint32_t n;
+ uint32_t new_mode;
+ uint8_t pad1[12];
+} xcb_glx_render_mode_reply_t;
+
+typedef enum xcb_glx_rm_t {
+ XCB_GLX_RM_GL_RENDER = 7168,
+ XCB_GLX_RM_GL_FEEDBACK = 7169,
+ XCB_GLX_RM_GL_SELECT = 7170
+} xcb_glx_rm_t;
+
+/**
+ * @brief xcb_glx_finish_cookie_t
+ **/
+typedef struct xcb_glx_finish_cookie_t {
+ unsigned int sequence;
+} xcb_glx_finish_cookie_t;
+
+/** Opcode for xcb_glx_finish. */
+#define XCB_GLX_FINISH 108
+
+/**
+ * @brief xcb_glx_finish_request_t
+ **/
+typedef struct xcb_glx_finish_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_finish_request_t;
+
+/**
+ * @brief xcb_glx_finish_reply_t
+ **/
+typedef struct xcb_glx_finish_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_glx_finish_reply_t;
+
+/** Opcode for xcb_glx_pixel_storef. */
+#define XCB_GLX_PIXEL_STOREF 109
+
+/**
+ * @brief xcb_glx_pixel_storef_request_t
+ **/
+typedef struct xcb_glx_pixel_storef_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t pname;
+ xcb_glx_float32_t datum;
+} xcb_glx_pixel_storef_request_t;
+
+/** Opcode for xcb_glx_pixel_storei. */
+#define XCB_GLX_PIXEL_STOREI 110
+
+/**
+ * @brief xcb_glx_pixel_storei_request_t
+ **/
+typedef struct xcb_glx_pixel_storei_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t pname;
+ int32_t datum;
+} xcb_glx_pixel_storei_request_t;
+
+/**
+ * @brief xcb_glx_read_pixels_cookie_t
+ **/
+typedef struct xcb_glx_read_pixels_cookie_t {
+ unsigned int sequence;
+} xcb_glx_read_pixels_cookie_t;
+
+/** Opcode for xcb_glx_read_pixels. */
+#define XCB_GLX_READ_PIXELS 111
+
+/**
+ * @brief xcb_glx_read_pixels_request_t
+ **/
+typedef struct xcb_glx_read_pixels_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t x;
+ int32_t y;
+ int32_t width;
+ int32_t height;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+ uint8_t lsb_first;
+} xcb_glx_read_pixels_request_t;
+
+/**
+ * @brief xcb_glx_read_pixels_reply_t
+ **/
+typedef struct xcb_glx_read_pixels_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_glx_read_pixels_reply_t;
+
+/**
+ * @brief xcb_glx_get_booleanv_cookie_t
+ **/
+typedef struct xcb_glx_get_booleanv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_booleanv_cookie_t;
+
+/** Opcode for xcb_glx_get_booleanv. */
+#define XCB_GLX_GET_BOOLEANV 112
+
+/**
+ * @brief xcb_glx_get_booleanv_request_t
+ **/
+typedef struct xcb_glx_get_booleanv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t pname;
+} xcb_glx_get_booleanv_request_t;
+
+/**
+ * @brief xcb_glx_get_booleanv_reply_t
+ **/
+typedef struct xcb_glx_get_booleanv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ uint8_t datum;
+ uint8_t pad2[15];
+} xcb_glx_get_booleanv_reply_t;
+
+/**
+ * @brief xcb_glx_get_clip_plane_cookie_t
+ **/
+typedef struct xcb_glx_get_clip_plane_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_clip_plane_cookie_t;
+
+/** Opcode for xcb_glx_get_clip_plane. */
+#define XCB_GLX_GET_CLIP_PLANE 113
+
+/**
+ * @brief xcb_glx_get_clip_plane_request_t
+ **/
+typedef struct xcb_glx_get_clip_plane_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t plane;
+} xcb_glx_get_clip_plane_request_t;
+
+/**
+ * @brief xcb_glx_get_clip_plane_reply_t
+ **/
+typedef struct xcb_glx_get_clip_plane_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_glx_get_clip_plane_reply_t;
+
+/**
+ * @brief xcb_glx_get_doublev_cookie_t
+ **/
+typedef struct xcb_glx_get_doublev_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_doublev_cookie_t;
+
+/** Opcode for xcb_glx_get_doublev. */
+#define XCB_GLX_GET_DOUBLEV 114
+
+/**
+ * @brief xcb_glx_get_doublev_request_t
+ **/
+typedef struct xcb_glx_get_doublev_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t pname;
+} xcb_glx_get_doublev_request_t;
+
+/**
+ * @brief xcb_glx_get_doublev_reply_t
+ **/
+typedef struct xcb_glx_get_doublev_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float64_t datum;
+ uint8_t pad2[8];
+} xcb_glx_get_doublev_reply_t;
+
+/**
+ * @brief xcb_glx_get_error_cookie_t
+ **/
+typedef struct xcb_glx_get_error_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_error_cookie_t;
+
+/** Opcode for xcb_glx_get_error. */
+#define XCB_GLX_GET_ERROR 115
+
+/**
+ * @brief xcb_glx_get_error_request_t
+ **/
+typedef struct xcb_glx_get_error_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_get_error_request_t;
+
+/**
+ * @brief xcb_glx_get_error_reply_t
+ **/
+typedef struct xcb_glx_get_error_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ int32_t error;
+} xcb_glx_get_error_reply_t;
+
+/**
+ * @brief xcb_glx_get_floatv_cookie_t
+ **/
+typedef struct xcb_glx_get_floatv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_floatv_cookie_t;
+
+/** Opcode for xcb_glx_get_floatv. */
+#define XCB_GLX_GET_FLOATV 116
+
+/**
+ * @brief xcb_glx_get_floatv_request_t
+ **/
+typedef struct xcb_glx_get_floatv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t pname;
+} xcb_glx_get_floatv_request_t;
+
+/**
+ * @brief xcb_glx_get_floatv_reply_t
+ **/
+typedef struct xcb_glx_get_floatv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_floatv_reply_t;
+
+/**
+ * @brief xcb_glx_get_integerv_cookie_t
+ **/
+typedef struct xcb_glx_get_integerv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_integerv_cookie_t;
+
+/** Opcode for xcb_glx_get_integerv. */
+#define XCB_GLX_GET_INTEGERV 117
+
+/**
+ * @brief xcb_glx_get_integerv_request_t
+ **/
+typedef struct xcb_glx_get_integerv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t pname;
+} xcb_glx_get_integerv_request_t;
+
+/**
+ * @brief xcb_glx_get_integerv_reply_t
+ **/
+typedef struct xcb_glx_get_integerv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_integerv_reply_t;
+
+/**
+ * @brief xcb_glx_get_lightfv_cookie_t
+ **/
+typedef struct xcb_glx_get_lightfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_lightfv_cookie_t;
+
+/** Opcode for xcb_glx_get_lightfv. */
+#define XCB_GLX_GET_LIGHTFV 118
+
+/**
+ * @brief xcb_glx_get_lightfv_request_t
+ **/
+typedef struct xcb_glx_get_lightfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t light;
+ uint32_t pname;
+} xcb_glx_get_lightfv_request_t;
+
+/**
+ * @brief xcb_glx_get_lightfv_reply_t
+ **/
+typedef struct xcb_glx_get_lightfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_lightfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_lightiv_cookie_t
+ **/
+typedef struct xcb_glx_get_lightiv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_lightiv_cookie_t;
+
+/** Opcode for xcb_glx_get_lightiv. */
+#define XCB_GLX_GET_LIGHTIV 119
+
+/**
+ * @brief xcb_glx_get_lightiv_request_t
+ **/
+typedef struct xcb_glx_get_lightiv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t light;
+ uint32_t pname;
+} xcb_glx_get_lightiv_request_t;
+
+/**
+ * @brief xcb_glx_get_lightiv_reply_t
+ **/
+typedef struct xcb_glx_get_lightiv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_lightiv_reply_t;
+
+/**
+ * @brief xcb_glx_get_mapdv_cookie_t
+ **/
+typedef struct xcb_glx_get_mapdv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_mapdv_cookie_t;
+
+/** Opcode for xcb_glx_get_mapdv. */
+#define XCB_GLX_GET_MAPDV 120
+
+/**
+ * @brief xcb_glx_get_mapdv_request_t
+ **/
+typedef struct xcb_glx_get_mapdv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t query;
+} xcb_glx_get_mapdv_request_t;
+
+/**
+ * @brief xcb_glx_get_mapdv_reply_t
+ **/
+typedef struct xcb_glx_get_mapdv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float64_t datum;
+ uint8_t pad2[8];
+} xcb_glx_get_mapdv_reply_t;
+
+/**
+ * @brief xcb_glx_get_mapfv_cookie_t
+ **/
+typedef struct xcb_glx_get_mapfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_mapfv_cookie_t;
+
+/** Opcode for xcb_glx_get_mapfv. */
+#define XCB_GLX_GET_MAPFV 121
+
+/**
+ * @brief xcb_glx_get_mapfv_request_t
+ **/
+typedef struct xcb_glx_get_mapfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t query;
+} xcb_glx_get_mapfv_request_t;
+
+/**
+ * @brief xcb_glx_get_mapfv_reply_t
+ **/
+typedef struct xcb_glx_get_mapfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_mapfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_mapiv_cookie_t
+ **/
+typedef struct xcb_glx_get_mapiv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_mapiv_cookie_t;
+
+/** Opcode for xcb_glx_get_mapiv. */
+#define XCB_GLX_GET_MAPIV 122
+
+/**
+ * @brief xcb_glx_get_mapiv_request_t
+ **/
+typedef struct xcb_glx_get_mapiv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t query;
+} xcb_glx_get_mapiv_request_t;
+
+/**
+ * @brief xcb_glx_get_mapiv_reply_t
+ **/
+typedef struct xcb_glx_get_mapiv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_mapiv_reply_t;
+
+/**
+ * @brief xcb_glx_get_materialfv_cookie_t
+ **/
+typedef struct xcb_glx_get_materialfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_materialfv_cookie_t;
+
+/** Opcode for xcb_glx_get_materialfv. */
+#define XCB_GLX_GET_MATERIALFV 123
+
+/**
+ * @brief xcb_glx_get_materialfv_request_t
+ **/
+typedef struct xcb_glx_get_materialfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t face;
+ uint32_t pname;
+} xcb_glx_get_materialfv_request_t;
+
+/**
+ * @brief xcb_glx_get_materialfv_reply_t
+ **/
+typedef struct xcb_glx_get_materialfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_materialfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_materialiv_cookie_t
+ **/
+typedef struct xcb_glx_get_materialiv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_materialiv_cookie_t;
+
+/** Opcode for xcb_glx_get_materialiv. */
+#define XCB_GLX_GET_MATERIALIV 124
+
+/**
+ * @brief xcb_glx_get_materialiv_request_t
+ **/
+typedef struct xcb_glx_get_materialiv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t face;
+ uint32_t pname;
+} xcb_glx_get_materialiv_request_t;
+
+/**
+ * @brief xcb_glx_get_materialiv_reply_t
+ **/
+typedef struct xcb_glx_get_materialiv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_materialiv_reply_t;
+
+/**
+ * @brief xcb_glx_get_pixel_mapfv_cookie_t
+ **/
+typedef struct xcb_glx_get_pixel_mapfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_pixel_mapfv_cookie_t;
+
+/** Opcode for xcb_glx_get_pixel_mapfv. */
+#define XCB_GLX_GET_PIXEL_MAPFV 125
+
+/**
+ * @brief xcb_glx_get_pixel_mapfv_request_t
+ **/
+typedef struct xcb_glx_get_pixel_mapfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t map;
+} xcb_glx_get_pixel_mapfv_request_t;
+
+/**
+ * @brief xcb_glx_get_pixel_mapfv_reply_t
+ **/
+typedef struct xcb_glx_get_pixel_mapfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_pixel_mapfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_pixel_mapuiv_cookie_t
+ **/
+typedef struct xcb_glx_get_pixel_mapuiv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_pixel_mapuiv_cookie_t;
+
+/** Opcode for xcb_glx_get_pixel_mapuiv. */
+#define XCB_GLX_GET_PIXEL_MAPUIV 126
+
+/**
+ * @brief xcb_glx_get_pixel_mapuiv_request_t
+ **/
+typedef struct xcb_glx_get_pixel_mapuiv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t map;
+} xcb_glx_get_pixel_mapuiv_request_t;
+
+/**
+ * @brief xcb_glx_get_pixel_mapuiv_reply_t
+ **/
+typedef struct xcb_glx_get_pixel_mapuiv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ uint32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_pixel_mapuiv_reply_t;
+
+/**
+ * @brief xcb_glx_get_pixel_mapusv_cookie_t
+ **/
+typedef struct xcb_glx_get_pixel_mapusv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_pixel_mapusv_cookie_t;
+
+/** Opcode for xcb_glx_get_pixel_mapusv. */
+#define XCB_GLX_GET_PIXEL_MAPUSV 127
+
+/**
+ * @brief xcb_glx_get_pixel_mapusv_request_t
+ **/
+typedef struct xcb_glx_get_pixel_mapusv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t map;
+} xcb_glx_get_pixel_mapusv_request_t;
+
+/**
+ * @brief xcb_glx_get_pixel_mapusv_reply_t
+ **/
+typedef struct xcb_glx_get_pixel_mapusv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ uint16_t datum;
+ uint8_t pad2[16];
+} xcb_glx_get_pixel_mapusv_reply_t;
+
+/**
+ * @brief xcb_glx_get_polygon_stipple_cookie_t
+ **/
+typedef struct xcb_glx_get_polygon_stipple_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_polygon_stipple_cookie_t;
+
+/** Opcode for xcb_glx_get_polygon_stipple. */
+#define XCB_GLX_GET_POLYGON_STIPPLE 128
+
+/**
+ * @brief xcb_glx_get_polygon_stipple_request_t
+ **/
+typedef struct xcb_glx_get_polygon_stipple_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint8_t lsb_first;
+} xcb_glx_get_polygon_stipple_request_t;
+
+/**
+ * @brief xcb_glx_get_polygon_stipple_reply_t
+ **/
+typedef struct xcb_glx_get_polygon_stipple_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_glx_get_polygon_stipple_reply_t;
+
+/**
+ * @brief xcb_glx_get_string_cookie_t
+ **/
+typedef struct xcb_glx_get_string_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_string_cookie_t;
+
+/** Opcode for xcb_glx_get_string. */
+#define XCB_GLX_GET_STRING 129
+
+/**
+ * @brief xcb_glx_get_string_request_t
+ **/
+typedef struct xcb_glx_get_string_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t name;
+} xcb_glx_get_string_request_t;
+
+/**
+ * @brief xcb_glx_get_string_reply_t
+ **/
+typedef struct xcb_glx_get_string_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ uint8_t pad2[16];
+} xcb_glx_get_string_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_envfv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_envfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_envfv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_envfv. */
+#define XCB_GLX_GET_TEX_ENVFV 130
+
+/**
+ * @brief xcb_glx_get_tex_envfv_request_t
+ **/
+typedef struct xcb_glx_get_tex_envfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_tex_envfv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_envfv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_envfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_envfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_enviv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_enviv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_enviv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_enviv. */
+#define XCB_GLX_GET_TEX_ENVIV 131
+
+/**
+ * @brief xcb_glx_get_tex_enviv_request_t
+ **/
+typedef struct xcb_glx_get_tex_enviv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_tex_enviv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_enviv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_enviv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_enviv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_gendv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_gendv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_gendv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_gendv. */
+#define XCB_GLX_GET_TEX_GENDV 132
+
+/**
+ * @brief xcb_glx_get_tex_gendv_request_t
+ **/
+typedef struct xcb_glx_get_tex_gendv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t coord;
+ uint32_t pname;
+} xcb_glx_get_tex_gendv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_gendv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_gendv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float64_t datum;
+ uint8_t pad2[8];
+} xcb_glx_get_tex_gendv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_genfv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_genfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_genfv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_genfv. */
+#define XCB_GLX_GET_TEX_GENFV 133
+
+/**
+ * @brief xcb_glx_get_tex_genfv_request_t
+ **/
+typedef struct xcb_glx_get_tex_genfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t coord;
+ uint32_t pname;
+} xcb_glx_get_tex_genfv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_genfv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_genfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_genfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_geniv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_geniv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_geniv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_geniv. */
+#define XCB_GLX_GET_TEX_GENIV 134
+
+/**
+ * @brief xcb_glx_get_tex_geniv_request_t
+ **/
+typedef struct xcb_glx_get_tex_geniv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t coord;
+ uint32_t pname;
+} xcb_glx_get_tex_geniv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_geniv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_geniv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_geniv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_image_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_image_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_image_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_image. */
+#define XCB_GLX_GET_TEX_IMAGE 135
+
+/**
+ * @brief xcb_glx_get_tex_image_request_t
+ **/
+typedef struct xcb_glx_get_tex_image_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ int32_t level;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+} xcb_glx_get_tex_image_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_image_reply_t
+ **/
+typedef struct xcb_glx_get_tex_image_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[8];
+ int32_t width;
+ int32_t height;
+ int32_t depth;
+ uint8_t pad2[4];
+} xcb_glx_get_tex_image_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_parameterfv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_parameterfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_parameterfv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_parameterfv. */
+#define XCB_GLX_GET_TEX_PARAMETERFV 136
+
+/**
+ * @brief xcb_glx_get_tex_parameterfv_request_t
+ **/
+typedef struct xcb_glx_get_tex_parameterfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_tex_parameterfv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_parameterfv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_parameterfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_parameterfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_parameteriv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_parameteriv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_parameteriv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_parameteriv. */
+#define XCB_GLX_GET_TEX_PARAMETERIV 137
+
+/**
+ * @brief xcb_glx_get_tex_parameteriv_request_t
+ **/
+typedef struct xcb_glx_get_tex_parameteriv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_tex_parameteriv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_parameteriv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_parameteriv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_parameteriv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_level_parameterfv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_level_parameterfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_level_parameterfv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_level_parameterfv. */
+#define XCB_GLX_GET_TEX_LEVEL_PARAMETERFV 138
+
+/**
+ * @brief xcb_glx_get_tex_level_parameterfv_request_t
+ **/
+typedef struct xcb_glx_get_tex_level_parameterfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ int32_t level;
+ uint32_t pname;
+} xcb_glx_get_tex_level_parameterfv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_level_parameterfv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_level_parameterfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_level_parameterfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_tex_level_parameteriv_cookie_t
+ **/
+typedef struct xcb_glx_get_tex_level_parameteriv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_tex_level_parameteriv_cookie_t;
+
+/** Opcode for xcb_glx_get_tex_level_parameteriv. */
+#define XCB_GLX_GET_TEX_LEVEL_PARAMETERIV 139
+
+/**
+ * @brief xcb_glx_get_tex_level_parameteriv_request_t
+ **/
+typedef struct xcb_glx_get_tex_level_parameteriv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ int32_t level;
+ uint32_t pname;
+} xcb_glx_get_tex_level_parameteriv_request_t;
+
+/**
+ * @brief xcb_glx_get_tex_level_parameteriv_reply_t
+ **/
+typedef struct xcb_glx_get_tex_level_parameteriv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_tex_level_parameteriv_reply_t;
+
+/**
+ * @brief xcb_glx_is_enabled_cookie_t
+ **/
+typedef struct xcb_glx_is_enabled_cookie_t {
+ unsigned int sequence;
+} xcb_glx_is_enabled_cookie_t;
+
+/** Opcode for xcb_glx_is_enabled. */
+#define XCB_GLX_IS_ENABLED 140
+
+/**
+ * @brief xcb_glx_is_enabled_request_t
+ **/
+typedef struct xcb_glx_is_enabled_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t capability;
+} xcb_glx_is_enabled_request_t;
+
+/**
+ * @brief xcb_glx_is_enabled_reply_t
+ **/
+typedef struct xcb_glx_is_enabled_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_bool32_t ret_val;
+} xcb_glx_is_enabled_reply_t;
+
+/**
+ * @brief xcb_glx_is_list_cookie_t
+ **/
+typedef struct xcb_glx_is_list_cookie_t {
+ unsigned int sequence;
+} xcb_glx_is_list_cookie_t;
+
+/** Opcode for xcb_glx_is_list. */
+#define XCB_GLX_IS_LIST 141
+
+/**
+ * @brief xcb_glx_is_list_request_t
+ **/
+typedef struct xcb_glx_is_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t list;
+} xcb_glx_is_list_request_t;
+
+/**
+ * @brief xcb_glx_is_list_reply_t
+ **/
+typedef struct xcb_glx_is_list_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_bool32_t ret_val;
+} xcb_glx_is_list_reply_t;
+
+/** Opcode for xcb_glx_flush. */
+#define XCB_GLX_FLUSH 142
+
+/**
+ * @brief xcb_glx_flush_request_t
+ **/
+typedef struct xcb_glx_flush_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+} xcb_glx_flush_request_t;
+
+/**
+ * @brief xcb_glx_are_textures_resident_cookie_t
+ **/
+typedef struct xcb_glx_are_textures_resident_cookie_t {
+ unsigned int sequence;
+} xcb_glx_are_textures_resident_cookie_t;
+
+/** Opcode for xcb_glx_are_textures_resident. */
+#define XCB_GLX_ARE_TEXTURES_RESIDENT 143
+
+/**
+ * @brief xcb_glx_are_textures_resident_request_t
+ **/
+typedef struct xcb_glx_are_textures_resident_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t n;
+} xcb_glx_are_textures_resident_request_t;
+
+/**
+ * @brief xcb_glx_are_textures_resident_reply_t
+ **/
+typedef struct xcb_glx_are_textures_resident_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_bool32_t ret_val;
+ uint8_t pad1[20];
+} xcb_glx_are_textures_resident_reply_t;
+
+/** Opcode for xcb_glx_delete_textures. */
+#define XCB_GLX_DELETE_TEXTURES 144
+
+/**
+ * @brief xcb_glx_delete_textures_request_t
+ **/
+typedef struct xcb_glx_delete_textures_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t n;
+} xcb_glx_delete_textures_request_t;
+
+/**
+ * @brief xcb_glx_gen_textures_cookie_t
+ **/
+typedef struct xcb_glx_gen_textures_cookie_t {
+ unsigned int sequence;
+} xcb_glx_gen_textures_cookie_t;
+
+/** Opcode for xcb_glx_gen_textures. */
+#define XCB_GLX_GEN_TEXTURES 145
+
+/**
+ * @brief xcb_glx_gen_textures_request_t
+ **/
+typedef struct xcb_glx_gen_textures_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t n;
+} xcb_glx_gen_textures_request_t;
+
+/**
+ * @brief xcb_glx_gen_textures_reply_t
+ **/
+typedef struct xcb_glx_gen_textures_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_glx_gen_textures_reply_t;
+
+/**
+ * @brief xcb_glx_is_texture_cookie_t
+ **/
+typedef struct xcb_glx_is_texture_cookie_t {
+ unsigned int sequence;
+} xcb_glx_is_texture_cookie_t;
+
+/** Opcode for xcb_glx_is_texture. */
+#define XCB_GLX_IS_TEXTURE 146
+
+/**
+ * @brief xcb_glx_is_texture_request_t
+ **/
+typedef struct xcb_glx_is_texture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t texture;
+} xcb_glx_is_texture_request_t;
+
+/**
+ * @brief xcb_glx_is_texture_reply_t
+ **/
+typedef struct xcb_glx_is_texture_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_bool32_t ret_val;
+} xcb_glx_is_texture_reply_t;
+
+/**
+ * @brief xcb_glx_get_color_table_cookie_t
+ **/
+typedef struct xcb_glx_get_color_table_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_color_table_cookie_t;
+
+/** Opcode for xcb_glx_get_color_table. */
+#define XCB_GLX_GET_COLOR_TABLE 147
+
+/**
+ * @brief xcb_glx_get_color_table_request_t
+ **/
+typedef struct xcb_glx_get_color_table_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+} xcb_glx_get_color_table_request_t;
+
+/**
+ * @brief xcb_glx_get_color_table_reply_t
+ **/
+typedef struct xcb_glx_get_color_table_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[8];
+ int32_t width;
+ uint8_t pad2[12];
+} xcb_glx_get_color_table_reply_t;
+
+/**
+ * @brief xcb_glx_get_color_table_parameterfv_cookie_t
+ **/
+typedef struct xcb_glx_get_color_table_parameterfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_color_table_parameterfv_cookie_t;
+
+/** Opcode for xcb_glx_get_color_table_parameterfv. */
+#define XCB_GLX_GET_COLOR_TABLE_PARAMETERFV 148
+
+/**
+ * @brief xcb_glx_get_color_table_parameterfv_request_t
+ **/
+typedef struct xcb_glx_get_color_table_parameterfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_color_table_parameterfv_request_t;
+
+/**
+ * @brief xcb_glx_get_color_table_parameterfv_reply_t
+ **/
+typedef struct xcb_glx_get_color_table_parameterfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_color_table_parameterfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_color_table_parameteriv_cookie_t
+ **/
+typedef struct xcb_glx_get_color_table_parameteriv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_color_table_parameteriv_cookie_t;
+
+/** Opcode for xcb_glx_get_color_table_parameteriv. */
+#define XCB_GLX_GET_COLOR_TABLE_PARAMETERIV 149
+
+/**
+ * @brief xcb_glx_get_color_table_parameteriv_request_t
+ **/
+typedef struct xcb_glx_get_color_table_parameteriv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_color_table_parameteriv_request_t;
+
+/**
+ * @brief xcb_glx_get_color_table_parameteriv_reply_t
+ **/
+typedef struct xcb_glx_get_color_table_parameteriv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_color_table_parameteriv_reply_t;
+
+/**
+ * @brief xcb_glx_get_convolution_filter_cookie_t
+ **/
+typedef struct xcb_glx_get_convolution_filter_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_convolution_filter_cookie_t;
+
+/** Opcode for xcb_glx_get_convolution_filter. */
+#define XCB_GLX_GET_CONVOLUTION_FILTER 150
+
+/**
+ * @brief xcb_glx_get_convolution_filter_request_t
+ **/
+typedef struct xcb_glx_get_convolution_filter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+} xcb_glx_get_convolution_filter_request_t;
+
+/**
+ * @brief xcb_glx_get_convolution_filter_reply_t
+ **/
+typedef struct xcb_glx_get_convolution_filter_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[8];
+ int32_t width;
+ int32_t height;
+ uint8_t pad2[8];
+} xcb_glx_get_convolution_filter_reply_t;
+
+/**
+ * @brief xcb_glx_get_convolution_parameterfv_cookie_t
+ **/
+typedef struct xcb_glx_get_convolution_parameterfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_convolution_parameterfv_cookie_t;
+
+/** Opcode for xcb_glx_get_convolution_parameterfv. */
+#define XCB_GLX_GET_CONVOLUTION_PARAMETERFV 151
+
+/**
+ * @brief xcb_glx_get_convolution_parameterfv_request_t
+ **/
+typedef struct xcb_glx_get_convolution_parameterfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_convolution_parameterfv_request_t;
+
+/**
+ * @brief xcb_glx_get_convolution_parameterfv_reply_t
+ **/
+typedef struct xcb_glx_get_convolution_parameterfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_convolution_parameterfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_convolution_parameteriv_cookie_t
+ **/
+typedef struct xcb_glx_get_convolution_parameteriv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_convolution_parameteriv_cookie_t;
+
+/** Opcode for xcb_glx_get_convolution_parameteriv. */
+#define XCB_GLX_GET_CONVOLUTION_PARAMETERIV 152
+
+/**
+ * @brief xcb_glx_get_convolution_parameteriv_request_t
+ **/
+typedef struct xcb_glx_get_convolution_parameteriv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_convolution_parameteriv_request_t;
+
+/**
+ * @brief xcb_glx_get_convolution_parameteriv_reply_t
+ **/
+typedef struct xcb_glx_get_convolution_parameteriv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_convolution_parameteriv_reply_t;
+
+/**
+ * @brief xcb_glx_get_separable_filter_cookie_t
+ **/
+typedef struct xcb_glx_get_separable_filter_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_separable_filter_cookie_t;
+
+/** Opcode for xcb_glx_get_separable_filter. */
+#define XCB_GLX_GET_SEPARABLE_FILTER 153
+
+/**
+ * @brief xcb_glx_get_separable_filter_request_t
+ **/
+typedef struct xcb_glx_get_separable_filter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+} xcb_glx_get_separable_filter_request_t;
+
+/**
+ * @brief xcb_glx_get_separable_filter_reply_t
+ **/
+typedef struct xcb_glx_get_separable_filter_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[8];
+ int32_t row_w;
+ int32_t col_h;
+ uint8_t pad2[8];
+} xcb_glx_get_separable_filter_reply_t;
+
+/**
+ * @brief xcb_glx_get_histogram_cookie_t
+ **/
+typedef struct xcb_glx_get_histogram_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_histogram_cookie_t;
+
+/** Opcode for xcb_glx_get_histogram. */
+#define XCB_GLX_GET_HISTOGRAM 154
+
+/**
+ * @brief xcb_glx_get_histogram_request_t
+ **/
+typedef struct xcb_glx_get_histogram_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+ uint8_t reset;
+} xcb_glx_get_histogram_request_t;
+
+/**
+ * @brief xcb_glx_get_histogram_reply_t
+ **/
+typedef struct xcb_glx_get_histogram_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[8];
+ int32_t width;
+ uint8_t pad2[12];
+} xcb_glx_get_histogram_reply_t;
+
+/**
+ * @brief xcb_glx_get_histogram_parameterfv_cookie_t
+ **/
+typedef struct xcb_glx_get_histogram_parameterfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_histogram_parameterfv_cookie_t;
+
+/** Opcode for xcb_glx_get_histogram_parameterfv. */
+#define XCB_GLX_GET_HISTOGRAM_PARAMETERFV 155
+
+/**
+ * @brief xcb_glx_get_histogram_parameterfv_request_t
+ **/
+typedef struct xcb_glx_get_histogram_parameterfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_histogram_parameterfv_request_t;
+
+/**
+ * @brief xcb_glx_get_histogram_parameterfv_reply_t
+ **/
+typedef struct xcb_glx_get_histogram_parameterfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_histogram_parameterfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_histogram_parameteriv_cookie_t
+ **/
+typedef struct xcb_glx_get_histogram_parameteriv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_histogram_parameteriv_cookie_t;
+
+/** Opcode for xcb_glx_get_histogram_parameteriv. */
+#define XCB_GLX_GET_HISTOGRAM_PARAMETERIV 156
+
+/**
+ * @brief xcb_glx_get_histogram_parameteriv_request_t
+ **/
+typedef struct xcb_glx_get_histogram_parameteriv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_histogram_parameteriv_request_t;
+
+/**
+ * @brief xcb_glx_get_histogram_parameteriv_reply_t
+ **/
+typedef struct xcb_glx_get_histogram_parameteriv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_histogram_parameteriv_reply_t;
+
+/**
+ * @brief xcb_glx_get_minmax_cookie_t
+ **/
+typedef struct xcb_glx_get_minmax_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_minmax_cookie_t;
+
+/** Opcode for xcb_glx_get_minmax. */
+#define XCB_GLX_GET_MINMAX 157
+
+/**
+ * @brief xcb_glx_get_minmax_request_t
+ **/
+typedef struct xcb_glx_get_minmax_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t format;
+ uint32_t type;
+ uint8_t swap_bytes;
+ uint8_t reset;
+} xcb_glx_get_minmax_request_t;
+
+/**
+ * @brief xcb_glx_get_minmax_reply_t
+ **/
+typedef struct xcb_glx_get_minmax_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_glx_get_minmax_reply_t;
+
+/**
+ * @brief xcb_glx_get_minmax_parameterfv_cookie_t
+ **/
+typedef struct xcb_glx_get_minmax_parameterfv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_minmax_parameterfv_cookie_t;
+
+/** Opcode for xcb_glx_get_minmax_parameterfv. */
+#define XCB_GLX_GET_MINMAX_PARAMETERFV 158
+
+/**
+ * @brief xcb_glx_get_minmax_parameterfv_request_t
+ **/
+typedef struct xcb_glx_get_minmax_parameterfv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_minmax_parameterfv_request_t;
+
+/**
+ * @brief xcb_glx_get_minmax_parameterfv_reply_t
+ **/
+typedef struct xcb_glx_get_minmax_parameterfv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ xcb_glx_float32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_minmax_parameterfv_reply_t;
+
+/**
+ * @brief xcb_glx_get_minmax_parameteriv_cookie_t
+ **/
+typedef struct xcb_glx_get_minmax_parameteriv_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_minmax_parameteriv_cookie_t;
+
+/** Opcode for xcb_glx_get_minmax_parameteriv. */
+#define XCB_GLX_GET_MINMAX_PARAMETERIV 159
+
+/**
+ * @brief xcb_glx_get_minmax_parameteriv_request_t
+ **/
+typedef struct xcb_glx_get_minmax_parameteriv_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_minmax_parameteriv_request_t;
+
+/**
+ * @brief xcb_glx_get_minmax_parameteriv_reply_t
+ **/
+typedef struct xcb_glx_get_minmax_parameteriv_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_minmax_parameteriv_reply_t;
+
+/**
+ * @brief xcb_glx_get_compressed_tex_image_arb_cookie_t
+ **/
+typedef struct xcb_glx_get_compressed_tex_image_arb_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_compressed_tex_image_arb_cookie_t;
+
+/** Opcode for xcb_glx_get_compressed_tex_image_arb. */
+#define XCB_GLX_GET_COMPRESSED_TEX_IMAGE_ARB 160
+
+/**
+ * @brief xcb_glx_get_compressed_tex_image_arb_request_t
+ **/
+typedef struct xcb_glx_get_compressed_tex_image_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ int32_t level;
+} xcb_glx_get_compressed_tex_image_arb_request_t;
+
+/**
+ * @brief xcb_glx_get_compressed_tex_image_arb_reply_t
+ **/
+typedef struct xcb_glx_get_compressed_tex_image_arb_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[8];
+ int32_t size;
+ uint8_t pad2[12];
+} xcb_glx_get_compressed_tex_image_arb_reply_t;
+
+/** Opcode for xcb_glx_delete_queries_arb. */
+#define XCB_GLX_DELETE_QUERIES_ARB 161
+
+/**
+ * @brief xcb_glx_delete_queries_arb_request_t
+ **/
+typedef struct xcb_glx_delete_queries_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t n;
+} xcb_glx_delete_queries_arb_request_t;
+
+/**
+ * @brief xcb_glx_gen_queries_arb_cookie_t
+ **/
+typedef struct xcb_glx_gen_queries_arb_cookie_t {
+ unsigned int sequence;
+} xcb_glx_gen_queries_arb_cookie_t;
+
+/** Opcode for xcb_glx_gen_queries_arb. */
+#define XCB_GLX_GEN_QUERIES_ARB 162
+
+/**
+ * @brief xcb_glx_gen_queries_arb_request_t
+ **/
+typedef struct xcb_glx_gen_queries_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ int32_t n;
+} xcb_glx_gen_queries_arb_request_t;
+
+/**
+ * @brief xcb_glx_gen_queries_arb_reply_t
+ **/
+typedef struct xcb_glx_gen_queries_arb_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_glx_gen_queries_arb_reply_t;
+
+/**
+ * @brief xcb_glx_is_query_arb_cookie_t
+ **/
+typedef struct xcb_glx_is_query_arb_cookie_t {
+ unsigned int sequence;
+} xcb_glx_is_query_arb_cookie_t;
+
+/** Opcode for xcb_glx_is_query_arb. */
+#define XCB_GLX_IS_QUERY_ARB 163
+
+/**
+ * @brief xcb_glx_is_query_arb_request_t
+ **/
+typedef struct xcb_glx_is_query_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t id;
+} xcb_glx_is_query_arb_request_t;
+
+/**
+ * @brief xcb_glx_is_query_arb_reply_t
+ **/
+typedef struct xcb_glx_is_query_arb_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_glx_bool32_t ret_val;
+} xcb_glx_is_query_arb_reply_t;
+
+/**
+ * @brief xcb_glx_get_queryiv_arb_cookie_t
+ **/
+typedef struct xcb_glx_get_queryiv_arb_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_queryiv_arb_cookie_t;
+
+/** Opcode for xcb_glx_get_queryiv_arb. */
+#define XCB_GLX_GET_QUERYIV_ARB 164
+
+/**
+ * @brief xcb_glx_get_queryiv_arb_request_t
+ **/
+typedef struct xcb_glx_get_queryiv_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t target;
+ uint32_t pname;
+} xcb_glx_get_queryiv_arb_request_t;
+
+/**
+ * @brief xcb_glx_get_queryiv_arb_reply_t
+ **/
+typedef struct xcb_glx_get_queryiv_arb_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_queryiv_arb_reply_t;
+
+/**
+ * @brief xcb_glx_get_query_objectiv_arb_cookie_t
+ **/
+typedef struct xcb_glx_get_query_objectiv_arb_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_query_objectiv_arb_cookie_t;
+
+/** Opcode for xcb_glx_get_query_objectiv_arb. */
+#define XCB_GLX_GET_QUERY_OBJECTIV_ARB 165
+
+/**
+ * @brief xcb_glx_get_query_objectiv_arb_request_t
+ **/
+typedef struct xcb_glx_get_query_objectiv_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t id;
+ uint32_t pname;
+} xcb_glx_get_query_objectiv_arb_request_t;
+
+/**
+ * @brief xcb_glx_get_query_objectiv_arb_reply_t
+ **/
+typedef struct xcb_glx_get_query_objectiv_arb_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ int32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_query_objectiv_arb_reply_t;
+
+/**
+ * @brief xcb_glx_get_query_objectuiv_arb_cookie_t
+ **/
+typedef struct xcb_glx_get_query_objectuiv_arb_cookie_t {
+ unsigned int sequence;
+} xcb_glx_get_query_objectuiv_arb_cookie_t;
+
+/** Opcode for xcb_glx_get_query_objectuiv_arb. */
+#define XCB_GLX_GET_QUERY_OBJECTUIV_ARB 166
+
+/**
+ * @brief xcb_glx_get_query_objectuiv_arb_request_t
+ **/
+typedef struct xcb_glx_get_query_objectuiv_arb_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_glx_context_tag_t context_tag;
+ uint32_t id;
+ uint32_t pname;
+} xcb_glx_get_query_objectuiv_arb_request_t;
+
+/**
+ * @brief xcb_glx_get_query_objectuiv_arb_reply_t
+ **/
+typedef struct xcb_glx_get_query_objectuiv_arb_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[4];
+ uint32_t n;
+ uint32_t datum;
+ uint8_t pad2[12];
+} xcb_glx_get_query_objectuiv_arb_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_pixmap_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_pixmap_t)
+ */
+void
+xcb_glx_pixmap_next (xcb_glx_pixmap_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_pixmap_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_pixmap_end (xcb_glx_pixmap_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_context_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_context_t)
+ */
+void
+xcb_glx_context_next (xcb_glx_context_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_context_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_context_end (xcb_glx_context_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_pbuffer_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_pbuffer_t)
+ */
+void
+xcb_glx_pbuffer_next (xcb_glx_pbuffer_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_pbuffer_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_pbuffer_end (xcb_glx_pbuffer_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_window_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_window_t)
+ */
+void
+xcb_glx_window_next (xcb_glx_window_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_window_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_window_end (xcb_glx_window_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_fbconfig_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_fbconfig_t)
+ */
+void
+xcb_glx_fbconfig_next (xcb_glx_fbconfig_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_fbconfig_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_fbconfig_end (xcb_glx_fbconfig_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_drawable_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_drawable_t)
+ */
+void
+xcb_glx_drawable_next (xcb_glx_drawable_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_drawable_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_drawable_end (xcb_glx_drawable_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_float32_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_float32_t)
+ */
+void
+xcb_glx_float32_next (xcb_glx_float32_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_float32_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_float32_end (xcb_glx_float32_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_float64_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_float64_t)
+ */
+void
+xcb_glx_float64_next (xcb_glx_float64_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_float64_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_float64_end (xcb_glx_float64_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_bool32_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_bool32_t)
+ */
+void
+xcb_glx_bool32_next (xcb_glx_bool32_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_bool32_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_bool32_end (xcb_glx_bool32_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_glx_context_tag_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_glx_context_tag_t)
+ */
+void
+xcb_glx_context_tag_next (xcb_glx_context_tag_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_glx_context_tag_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_glx_context_tag_end (xcb_glx_context_tag_iterator_t i);
+
+int
+xcb_glx_render_sizeof (const void *_buffer,
+ uint32_t data_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_render_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_render (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint8_t *
+xcb_glx_render_data (const xcb_glx_render_request_t *R);
+
+int
+xcb_glx_render_data_length (const xcb_glx_render_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_render_data_end (const xcb_glx_render_request_t *R);
+
+int
+xcb_glx_render_large_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_render_large_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint16_t request_num,
+ uint16_t request_total,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_render_large (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint16_t request_num,
+ uint16_t request_total,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint8_t *
+xcb_glx_render_large_data (const xcb_glx_render_large_request_t *R);
+
+int
+xcb_glx_render_large_data_length (const xcb_glx_render_large_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_render_large_data_end (const xcb_glx_render_large_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_context_checked (xcb_connection_t *c,
+ xcb_glx_context_t context,
+ xcb_visualid_t visual,
+ uint32_t screen,
+ xcb_glx_context_t share_list,
+ uint8_t is_direct);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_context (xcb_connection_t *c,
+ xcb_glx_context_t context,
+ xcb_visualid_t visual,
+ uint32_t screen,
+ xcb_glx_context_t share_list,
+ uint8_t is_direct);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_context_checked (xcb_connection_t *c,
+ xcb_glx_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_context (xcb_connection_t *c,
+ xcb_glx_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_make_current_cookie_t
+xcb_glx_make_current (xcb_connection_t *c,
+ xcb_glx_drawable_t drawable,
+ xcb_glx_context_t context,
+ xcb_glx_context_tag_t old_context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_make_current_cookie_t
+xcb_glx_make_current_unchecked (xcb_connection_t *c,
+ xcb_glx_drawable_t drawable,
+ xcb_glx_context_t context,
+ xcb_glx_context_tag_t old_context_tag);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_make_current_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_make_current_reply_t *
+xcb_glx_make_current_reply (xcb_connection_t *c,
+ xcb_glx_make_current_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_is_direct_cookie_t
+xcb_glx_is_direct (xcb_connection_t *c,
+ xcb_glx_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_is_direct_cookie_t
+xcb_glx_is_direct_unchecked (xcb_connection_t *c,
+ xcb_glx_context_t context);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_is_direct_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_is_direct_reply_t *
+xcb_glx_is_direct_reply (xcb_connection_t *c,
+ xcb_glx_is_direct_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_query_version_cookie_t
+xcb_glx_query_version (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_query_version_cookie_t
+xcb_glx_query_version_unchecked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_query_version_reply_t *
+xcb_glx_query_version_reply (xcb_connection_t *c,
+ xcb_glx_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_wait_gl_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_wait_gl (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_wait_x_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_wait_x (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_copy_context_checked (xcb_connection_t *c,
+ xcb_glx_context_t src,
+ xcb_glx_context_t dest,
+ uint32_t mask,
+ xcb_glx_context_tag_t src_context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_copy_context (xcb_connection_t *c,
+ xcb_glx_context_t src,
+ xcb_glx_context_t dest,
+ uint32_t mask,
+ xcb_glx_context_tag_t src_context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_swap_buffers_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ xcb_glx_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_swap_buffers (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ xcb_glx_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_use_x_font_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ xcb_font_t font,
+ uint32_t first,
+ uint32_t count,
+ uint32_t list_base);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_use_x_font (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ xcb_font_t font,
+ uint32_t first,
+ uint32_t count,
+ uint32_t list_base);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_glx_pixmap_checked (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_visualid_t visual,
+ xcb_pixmap_t pixmap,
+ xcb_glx_pixmap_t glx_pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_glx_pixmap (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_visualid_t visual,
+ xcb_pixmap_t pixmap,
+ xcb_glx_pixmap_t glx_pixmap);
+
+int
+xcb_glx_get_visual_configs_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_visual_configs_cookie_t
+xcb_glx_get_visual_configs (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_visual_configs_cookie_t
+xcb_glx_get_visual_configs_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+uint32_t *
+xcb_glx_get_visual_configs_property_list (const xcb_glx_get_visual_configs_reply_t *R);
+
+int
+xcb_glx_get_visual_configs_property_list_length (const xcb_glx_get_visual_configs_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_visual_configs_property_list_end (const xcb_glx_get_visual_configs_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_visual_configs_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_visual_configs_reply_t *
+xcb_glx_get_visual_configs_reply (xcb_connection_t *c,
+ xcb_glx_get_visual_configs_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_glx_pixmap_checked (xcb_connection_t *c,
+ xcb_glx_pixmap_t glx_pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_glx_pixmap (xcb_connection_t *c,
+ xcb_glx_pixmap_t glx_pixmap);
+
+int
+xcb_glx_vendor_private_sizeof (const void *_buffer,
+ uint32_t data_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_vendor_private_checked (xcb_connection_t *c,
+ uint32_t vendor_code,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_vendor_private (xcb_connection_t *c,
+ uint32_t vendor_code,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint8_t *
+xcb_glx_vendor_private_data (const xcb_glx_vendor_private_request_t *R);
+
+int
+xcb_glx_vendor_private_data_length (const xcb_glx_vendor_private_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_vendor_private_data_end (const xcb_glx_vendor_private_request_t *R);
+
+int
+xcb_glx_vendor_private_with_reply_sizeof (const void *_buffer,
+ uint32_t data_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_vendor_private_with_reply_cookie_t
+xcb_glx_vendor_private_with_reply (xcb_connection_t *c,
+ uint32_t vendor_code,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_vendor_private_with_reply_cookie_t
+xcb_glx_vendor_private_with_reply_unchecked (xcb_connection_t *c,
+ uint32_t vendor_code,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint8_t *
+xcb_glx_vendor_private_with_reply_data_2 (const xcb_glx_vendor_private_with_reply_reply_t *R);
+
+int
+xcb_glx_vendor_private_with_reply_data_2_length (const xcb_glx_vendor_private_with_reply_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_vendor_private_with_reply_data_2_end (const xcb_glx_vendor_private_with_reply_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_vendor_private_with_reply_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_vendor_private_with_reply_reply_t *
+xcb_glx_vendor_private_with_reply_reply (xcb_connection_t *c,
+ xcb_glx_vendor_private_with_reply_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_query_extensions_string_cookie_t
+xcb_glx_query_extensions_string (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_query_extensions_string_cookie_t
+xcb_glx_query_extensions_string_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_query_extensions_string_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_query_extensions_string_reply_t *
+xcb_glx_query_extensions_string_reply (xcb_connection_t *c,
+ xcb_glx_query_extensions_string_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_query_server_string_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_query_server_string_cookie_t
+xcb_glx_query_server_string (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_query_server_string_cookie_t
+xcb_glx_query_server_string_unchecked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t name);
+
+char *
+xcb_glx_query_server_string_string (const xcb_glx_query_server_string_reply_t *R);
+
+int
+xcb_glx_query_server_string_string_length (const xcb_glx_query_server_string_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_query_server_string_string_end (const xcb_glx_query_server_string_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_query_server_string_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_query_server_string_reply_t *
+xcb_glx_query_server_string_reply (xcb_connection_t *c,
+ xcb_glx_query_server_string_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_client_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_client_info_checked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version,
+ uint32_t str_len,
+ const char *string);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_client_info (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version,
+ uint32_t str_len,
+ const char *string);
+
+char *
+xcb_glx_client_info_string (const xcb_glx_client_info_request_t *R);
+
+int
+xcb_glx_client_info_string_length (const xcb_glx_client_info_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_client_info_string_end (const xcb_glx_client_info_request_t *R);
+
+int
+xcb_glx_get_fb_configs_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_fb_configs_cookie_t
+xcb_glx_get_fb_configs (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_fb_configs_cookie_t
+xcb_glx_get_fb_configs_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+uint32_t *
+xcb_glx_get_fb_configs_property_list (const xcb_glx_get_fb_configs_reply_t *R);
+
+int
+xcb_glx_get_fb_configs_property_list_length (const xcb_glx_get_fb_configs_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_fb_configs_property_list_end (const xcb_glx_get_fb_configs_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_fb_configs_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_fb_configs_reply_t *
+xcb_glx_get_fb_configs_reply (xcb_connection_t *c,
+ xcb_glx_get_fb_configs_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_create_pixmap_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_pixmap_checked (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_glx_fbconfig_t fbconfig,
+ xcb_pixmap_t pixmap,
+ xcb_glx_pixmap_t glx_pixmap,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_pixmap (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_glx_fbconfig_t fbconfig,
+ xcb_pixmap_t pixmap,
+ xcb_glx_pixmap_t glx_pixmap,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+uint32_t *
+xcb_glx_create_pixmap_attribs (const xcb_glx_create_pixmap_request_t *R);
+
+int
+xcb_glx_create_pixmap_attribs_length (const xcb_glx_create_pixmap_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_create_pixmap_attribs_end (const xcb_glx_create_pixmap_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_pixmap_checked (xcb_connection_t *c,
+ xcb_glx_pixmap_t glx_pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_pixmap (xcb_connection_t *c,
+ xcb_glx_pixmap_t glx_pixmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_new_context_checked (xcb_connection_t *c,
+ xcb_glx_context_t context,
+ xcb_glx_fbconfig_t fbconfig,
+ uint32_t screen,
+ uint32_t render_type,
+ xcb_glx_context_t share_list,
+ uint8_t is_direct);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_new_context (xcb_connection_t *c,
+ xcb_glx_context_t context,
+ xcb_glx_fbconfig_t fbconfig,
+ uint32_t screen,
+ uint32_t render_type,
+ xcb_glx_context_t share_list,
+ uint8_t is_direct);
+
+int
+xcb_glx_query_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_query_context_cookie_t
+xcb_glx_query_context (xcb_connection_t *c,
+ xcb_glx_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_query_context_cookie_t
+xcb_glx_query_context_unchecked (xcb_connection_t *c,
+ xcb_glx_context_t context);
+
+uint32_t *
+xcb_glx_query_context_attribs (const xcb_glx_query_context_reply_t *R);
+
+int
+xcb_glx_query_context_attribs_length (const xcb_glx_query_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_query_context_attribs_end (const xcb_glx_query_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_query_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_query_context_reply_t *
+xcb_glx_query_context_reply (xcb_connection_t *c,
+ xcb_glx_query_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_make_context_current_cookie_t
+xcb_glx_make_context_current (xcb_connection_t *c,
+ xcb_glx_context_tag_t old_context_tag,
+ xcb_glx_drawable_t drawable,
+ xcb_glx_drawable_t read_drawable,
+ xcb_glx_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_make_context_current_cookie_t
+xcb_glx_make_context_current_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t old_context_tag,
+ xcb_glx_drawable_t drawable,
+ xcb_glx_drawable_t read_drawable,
+ xcb_glx_context_t context);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_make_context_current_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_make_context_current_reply_t *
+xcb_glx_make_context_current_reply (xcb_connection_t *c,
+ xcb_glx_make_context_current_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_create_pbuffer_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_pbuffer_checked (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_glx_fbconfig_t fbconfig,
+ xcb_glx_pbuffer_t pbuffer,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_pbuffer (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_glx_fbconfig_t fbconfig,
+ xcb_glx_pbuffer_t pbuffer,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+uint32_t *
+xcb_glx_create_pbuffer_attribs (const xcb_glx_create_pbuffer_request_t *R);
+
+int
+xcb_glx_create_pbuffer_attribs_length (const xcb_glx_create_pbuffer_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_create_pbuffer_attribs_end (const xcb_glx_create_pbuffer_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_pbuffer_checked (xcb_connection_t *c,
+ xcb_glx_pbuffer_t pbuffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_destroy_pbuffer (xcb_connection_t *c,
+ xcb_glx_pbuffer_t pbuffer);
+
+int
+xcb_glx_get_drawable_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_drawable_attributes_cookie_t
+xcb_glx_get_drawable_attributes (xcb_connection_t *c,
+ xcb_glx_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_drawable_attributes_cookie_t
+xcb_glx_get_drawable_attributes_unchecked (xcb_connection_t *c,
+ xcb_glx_drawable_t drawable);
+
+uint32_t *
+xcb_glx_get_drawable_attributes_attribs (const xcb_glx_get_drawable_attributes_reply_t *R);
+
+int
+xcb_glx_get_drawable_attributes_attribs_length (const xcb_glx_get_drawable_attributes_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_drawable_attributes_attribs_end (const xcb_glx_get_drawable_attributes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_drawable_attributes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_drawable_attributes_reply_t *
+xcb_glx_get_drawable_attributes_reply (xcb_connection_t *c,
+ xcb_glx_get_drawable_attributes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_change_drawable_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_change_drawable_attributes_checked (xcb_connection_t *c,
+ xcb_glx_drawable_t drawable,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_change_drawable_attributes (xcb_connection_t *c,
+ xcb_glx_drawable_t drawable,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+uint32_t *
+xcb_glx_change_drawable_attributes_attribs (const xcb_glx_change_drawable_attributes_request_t *R);
+
+int
+xcb_glx_change_drawable_attributes_attribs_length (const xcb_glx_change_drawable_attributes_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_change_drawable_attributes_attribs_end (const xcb_glx_change_drawable_attributes_request_t *R);
+
+int
+xcb_glx_create_window_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_window_checked (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_glx_fbconfig_t fbconfig,
+ xcb_window_t window,
+ xcb_glx_window_t glx_window,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_window (xcb_connection_t *c,
+ uint32_t screen,
+ xcb_glx_fbconfig_t fbconfig,
+ xcb_window_t window,
+ xcb_glx_window_t glx_window,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+uint32_t *
+xcb_glx_create_window_attribs (const xcb_glx_create_window_request_t *R);
+
+int
+xcb_glx_create_window_attribs_length (const xcb_glx_create_window_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_create_window_attribs_end (const xcb_glx_create_window_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_delete_window_checked (xcb_connection_t *c,
+ xcb_glx_window_t glxwindow);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_delete_window (xcb_connection_t *c,
+ xcb_glx_window_t glxwindow);
+
+int
+xcb_glx_set_client_info_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_set_client_info_arb_checked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version,
+ uint32_t num_versions,
+ uint32_t gl_str_len,
+ uint32_t glx_str_len,
+ const uint32_t *gl_versions,
+ const char *gl_extension_string,
+ const char *glx_extension_string);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_set_client_info_arb (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version,
+ uint32_t num_versions,
+ uint32_t gl_str_len,
+ uint32_t glx_str_len,
+ const uint32_t *gl_versions,
+ const char *gl_extension_string,
+ const char *glx_extension_string);
+
+uint32_t *
+xcb_glx_set_client_info_arb_gl_versions (const xcb_glx_set_client_info_arb_request_t *R);
+
+int
+xcb_glx_set_client_info_arb_gl_versions_length (const xcb_glx_set_client_info_arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_set_client_info_arb_gl_versions_end (const xcb_glx_set_client_info_arb_request_t *R);
+
+char *
+xcb_glx_set_client_info_arb_gl_extension_string (const xcb_glx_set_client_info_arb_request_t *R);
+
+int
+xcb_glx_set_client_info_arb_gl_extension_string_length (const xcb_glx_set_client_info_arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_set_client_info_arb_gl_extension_string_end (const xcb_glx_set_client_info_arb_request_t *R);
+
+char *
+xcb_glx_set_client_info_arb_glx_extension_string (const xcb_glx_set_client_info_arb_request_t *R);
+
+int
+xcb_glx_set_client_info_arb_glx_extension_string_length (const xcb_glx_set_client_info_arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_set_client_info_arb_glx_extension_string_end (const xcb_glx_set_client_info_arb_request_t *R);
+
+int
+xcb_glx_create_context_attribs_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_create_context_attribs_arb_checked (xcb_connection_t *c,
+ xcb_glx_context_t context,
+ xcb_glx_fbconfig_t fbconfig,
+ uint32_t screen,
+ xcb_glx_context_t share_list,
+ uint8_t is_direct,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_create_context_attribs_arb (xcb_connection_t *c,
+ xcb_glx_context_t context,
+ xcb_glx_fbconfig_t fbconfig,
+ uint32_t screen,
+ xcb_glx_context_t share_list,
+ uint8_t is_direct,
+ uint32_t num_attribs,
+ const uint32_t *attribs);
+
+uint32_t *
+xcb_glx_create_context_attribs_arb_attribs (const xcb_glx_create_context_attribs_arb_request_t *R);
+
+int
+xcb_glx_create_context_attribs_arb_attribs_length (const xcb_glx_create_context_attribs_arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_create_context_attribs_arb_attribs_end (const xcb_glx_create_context_attribs_arb_request_t *R);
+
+int
+xcb_glx_set_client_info_2arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_set_client_info_2arb_checked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version,
+ uint32_t num_versions,
+ uint32_t gl_str_len,
+ uint32_t glx_str_len,
+ const uint32_t *gl_versions,
+ const char *gl_extension_string,
+ const char *glx_extension_string);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_set_client_info_2arb (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version,
+ uint32_t num_versions,
+ uint32_t gl_str_len,
+ uint32_t glx_str_len,
+ const uint32_t *gl_versions,
+ const char *gl_extension_string,
+ const char *glx_extension_string);
+
+uint32_t *
+xcb_glx_set_client_info_2arb_gl_versions (const xcb_glx_set_client_info_2arb_request_t *R);
+
+int
+xcb_glx_set_client_info_2arb_gl_versions_length (const xcb_glx_set_client_info_2arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_set_client_info_2arb_gl_versions_end (const xcb_glx_set_client_info_2arb_request_t *R);
+
+char *
+xcb_glx_set_client_info_2arb_gl_extension_string (const xcb_glx_set_client_info_2arb_request_t *R);
+
+int
+xcb_glx_set_client_info_2arb_gl_extension_string_length (const xcb_glx_set_client_info_2arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_set_client_info_2arb_gl_extension_string_end (const xcb_glx_set_client_info_2arb_request_t *R);
+
+char *
+xcb_glx_set_client_info_2arb_glx_extension_string (const xcb_glx_set_client_info_2arb_request_t *R);
+
+int
+xcb_glx_set_client_info_2arb_glx_extension_string_length (const xcb_glx_set_client_info_2arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_set_client_info_2arb_glx_extension_string_end (const xcb_glx_set_client_info_2arb_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_new_list_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t list,
+ uint32_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_new_list (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t list,
+ uint32_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_end_list_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_end_list (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_delete_lists_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t list,
+ int32_t range);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_delete_lists (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t list,
+ int32_t range);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_gen_lists_cookie_t
+xcb_glx_gen_lists (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t range);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_gen_lists_cookie_t
+xcb_glx_gen_lists_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t range);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_gen_lists_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_gen_lists_reply_t *
+xcb_glx_gen_lists_reply (xcb_connection_t *c,
+ xcb_glx_gen_lists_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_feedback_buffer_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t size,
+ int32_t type);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_feedback_buffer (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t size,
+ int32_t type);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_select_buffer_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t size);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_select_buffer (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t size);
+
+int
+xcb_glx_render_mode_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_render_mode_cookie_t
+xcb_glx_render_mode (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_render_mode_cookie_t
+xcb_glx_render_mode_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t mode);
+
+uint32_t *
+xcb_glx_render_mode_data (const xcb_glx_render_mode_reply_t *R);
+
+int
+xcb_glx_render_mode_data_length (const xcb_glx_render_mode_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_render_mode_data_end (const xcb_glx_render_mode_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_render_mode_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_render_mode_reply_t *
+xcb_glx_render_mode_reply (xcb_connection_t *c,
+ xcb_glx_render_mode_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_finish_cookie_t
+xcb_glx_finish (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_finish_cookie_t
+xcb_glx_finish_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_finish_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_finish_reply_t *
+xcb_glx_finish_reply (xcb_connection_t *c,
+ xcb_glx_finish_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_pixel_storef_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname,
+ xcb_glx_float32_t datum);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_pixel_storef (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname,
+ xcb_glx_float32_t datum);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_pixel_storei_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname,
+ int32_t datum);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_pixel_storei (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname,
+ int32_t datum);
+
+int
+xcb_glx_read_pixels_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_read_pixels_cookie_t
+xcb_glx_read_pixels (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes,
+ uint8_t lsb_first);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_read_pixels_cookie_t
+xcb_glx_read_pixels_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes,
+ uint8_t lsb_first);
+
+uint8_t *
+xcb_glx_read_pixels_data (const xcb_glx_read_pixels_reply_t *R);
+
+int
+xcb_glx_read_pixels_data_length (const xcb_glx_read_pixels_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_read_pixels_data_end (const xcb_glx_read_pixels_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_read_pixels_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_read_pixels_reply_t *
+xcb_glx_read_pixels_reply (xcb_connection_t *c,
+ xcb_glx_read_pixels_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_booleanv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_booleanv_cookie_t
+xcb_glx_get_booleanv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_booleanv_cookie_t
+xcb_glx_get_booleanv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t pname);
+
+uint8_t *
+xcb_glx_get_booleanv_data (const xcb_glx_get_booleanv_reply_t *R);
+
+int
+xcb_glx_get_booleanv_data_length (const xcb_glx_get_booleanv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_booleanv_data_end (const xcb_glx_get_booleanv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_booleanv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_booleanv_reply_t *
+xcb_glx_get_booleanv_reply (xcb_connection_t *c,
+ xcb_glx_get_booleanv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_clip_plane_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_clip_plane_cookie_t
+xcb_glx_get_clip_plane (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t plane);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_clip_plane_cookie_t
+xcb_glx_get_clip_plane_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t plane);
+
+xcb_glx_float64_t *
+xcb_glx_get_clip_plane_data (const xcb_glx_get_clip_plane_reply_t *R);
+
+int
+xcb_glx_get_clip_plane_data_length (const xcb_glx_get_clip_plane_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_clip_plane_data_end (const xcb_glx_get_clip_plane_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_clip_plane_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_clip_plane_reply_t *
+xcb_glx_get_clip_plane_reply (xcb_connection_t *c,
+ xcb_glx_get_clip_plane_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_doublev_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_doublev_cookie_t
+xcb_glx_get_doublev (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_doublev_cookie_t
+xcb_glx_get_doublev_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname);
+
+xcb_glx_float64_t *
+xcb_glx_get_doublev_data (const xcb_glx_get_doublev_reply_t *R);
+
+int
+xcb_glx_get_doublev_data_length (const xcb_glx_get_doublev_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_doublev_data_end (const xcb_glx_get_doublev_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_doublev_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_doublev_reply_t *
+xcb_glx_get_doublev_reply (xcb_connection_t *c,
+ xcb_glx_get_doublev_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_error_cookie_t
+xcb_glx_get_error (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_error_cookie_t
+xcb_glx_get_error_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_error_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_error_reply_t *
+xcb_glx_get_error_reply (xcb_connection_t *c,
+ xcb_glx_get_error_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_floatv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_floatv_cookie_t
+xcb_glx_get_floatv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_floatv_cookie_t
+xcb_glx_get_floatv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_floatv_data (const xcb_glx_get_floatv_reply_t *R);
+
+int
+xcb_glx_get_floatv_data_length (const xcb_glx_get_floatv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_floatv_data_end (const xcb_glx_get_floatv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_floatv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_floatv_reply_t *
+xcb_glx_get_floatv_reply (xcb_connection_t *c,
+ xcb_glx_get_floatv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_integerv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_integerv_cookie_t
+xcb_glx_get_integerv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_integerv_cookie_t
+xcb_glx_get_integerv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_integerv_data (const xcb_glx_get_integerv_reply_t *R);
+
+int
+xcb_glx_get_integerv_data_length (const xcb_glx_get_integerv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_integerv_data_end (const xcb_glx_get_integerv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_integerv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_integerv_reply_t *
+xcb_glx_get_integerv_reply (xcb_connection_t *c,
+ xcb_glx_get_integerv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_lightfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_lightfv_cookie_t
+xcb_glx_get_lightfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t light,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_lightfv_cookie_t
+xcb_glx_get_lightfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t light,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_lightfv_data (const xcb_glx_get_lightfv_reply_t *R);
+
+int
+xcb_glx_get_lightfv_data_length (const xcb_glx_get_lightfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_lightfv_data_end (const xcb_glx_get_lightfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_lightfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_lightfv_reply_t *
+xcb_glx_get_lightfv_reply (xcb_connection_t *c,
+ xcb_glx_get_lightfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_lightiv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_lightiv_cookie_t
+xcb_glx_get_lightiv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t light,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_lightiv_cookie_t
+xcb_glx_get_lightiv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t light,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_lightiv_data (const xcb_glx_get_lightiv_reply_t *R);
+
+int
+xcb_glx_get_lightiv_data_length (const xcb_glx_get_lightiv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_lightiv_data_end (const xcb_glx_get_lightiv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_lightiv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_lightiv_reply_t *
+xcb_glx_get_lightiv_reply (xcb_connection_t *c,
+ xcb_glx_get_lightiv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_mapdv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_mapdv_cookie_t
+xcb_glx_get_mapdv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t query);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_mapdv_cookie_t
+xcb_glx_get_mapdv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t query);
+
+xcb_glx_float64_t *
+xcb_glx_get_mapdv_data (const xcb_glx_get_mapdv_reply_t *R);
+
+int
+xcb_glx_get_mapdv_data_length (const xcb_glx_get_mapdv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_mapdv_data_end (const xcb_glx_get_mapdv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_mapdv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_mapdv_reply_t *
+xcb_glx_get_mapdv_reply (xcb_connection_t *c,
+ xcb_glx_get_mapdv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_mapfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_mapfv_cookie_t
+xcb_glx_get_mapfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t query);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_mapfv_cookie_t
+xcb_glx_get_mapfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t query);
+
+xcb_glx_float32_t *
+xcb_glx_get_mapfv_data (const xcb_glx_get_mapfv_reply_t *R);
+
+int
+xcb_glx_get_mapfv_data_length (const xcb_glx_get_mapfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_mapfv_data_end (const xcb_glx_get_mapfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_mapfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_mapfv_reply_t *
+xcb_glx_get_mapfv_reply (xcb_connection_t *c,
+ xcb_glx_get_mapfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_mapiv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_mapiv_cookie_t
+xcb_glx_get_mapiv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t query);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_mapiv_cookie_t
+xcb_glx_get_mapiv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t query);
+
+int32_t *
+xcb_glx_get_mapiv_data (const xcb_glx_get_mapiv_reply_t *R);
+
+int
+xcb_glx_get_mapiv_data_length (const xcb_glx_get_mapiv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_mapiv_data_end (const xcb_glx_get_mapiv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_mapiv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_mapiv_reply_t *
+xcb_glx_get_mapiv_reply (xcb_connection_t *c,
+ xcb_glx_get_mapiv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_materialfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_materialfv_cookie_t
+xcb_glx_get_materialfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t face,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_materialfv_cookie_t
+xcb_glx_get_materialfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t face,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_materialfv_data (const xcb_glx_get_materialfv_reply_t *R);
+
+int
+xcb_glx_get_materialfv_data_length (const xcb_glx_get_materialfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_materialfv_data_end (const xcb_glx_get_materialfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_materialfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_materialfv_reply_t *
+xcb_glx_get_materialfv_reply (xcb_connection_t *c,
+ xcb_glx_get_materialfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_materialiv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_materialiv_cookie_t
+xcb_glx_get_materialiv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t face,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_materialiv_cookie_t
+xcb_glx_get_materialiv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t face,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_materialiv_data (const xcb_glx_get_materialiv_reply_t *R);
+
+int
+xcb_glx_get_materialiv_data_length (const xcb_glx_get_materialiv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_materialiv_data_end (const xcb_glx_get_materialiv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_materialiv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_materialiv_reply_t *
+xcb_glx_get_materialiv_reply (xcb_connection_t *c,
+ xcb_glx_get_materialiv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_pixel_mapfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_pixel_mapfv_cookie_t
+xcb_glx_get_pixel_mapfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t map);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_pixel_mapfv_cookie_t
+xcb_glx_get_pixel_mapfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t map);
+
+xcb_glx_float32_t *
+xcb_glx_get_pixel_mapfv_data (const xcb_glx_get_pixel_mapfv_reply_t *R);
+
+int
+xcb_glx_get_pixel_mapfv_data_length (const xcb_glx_get_pixel_mapfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_pixel_mapfv_data_end (const xcb_glx_get_pixel_mapfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_pixel_mapfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_pixel_mapfv_reply_t *
+xcb_glx_get_pixel_mapfv_reply (xcb_connection_t *c,
+ xcb_glx_get_pixel_mapfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_pixel_mapuiv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_pixel_mapuiv_cookie_t
+xcb_glx_get_pixel_mapuiv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t map);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_pixel_mapuiv_cookie_t
+xcb_glx_get_pixel_mapuiv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t map);
+
+uint32_t *
+xcb_glx_get_pixel_mapuiv_data (const xcb_glx_get_pixel_mapuiv_reply_t *R);
+
+int
+xcb_glx_get_pixel_mapuiv_data_length (const xcb_glx_get_pixel_mapuiv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_pixel_mapuiv_data_end (const xcb_glx_get_pixel_mapuiv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_pixel_mapuiv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_pixel_mapuiv_reply_t *
+xcb_glx_get_pixel_mapuiv_reply (xcb_connection_t *c,
+ xcb_glx_get_pixel_mapuiv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_pixel_mapusv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_pixel_mapusv_cookie_t
+xcb_glx_get_pixel_mapusv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t map);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_pixel_mapusv_cookie_t
+xcb_glx_get_pixel_mapusv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t map);
+
+uint16_t *
+xcb_glx_get_pixel_mapusv_data (const xcb_glx_get_pixel_mapusv_reply_t *R);
+
+int
+xcb_glx_get_pixel_mapusv_data_length (const xcb_glx_get_pixel_mapusv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_pixel_mapusv_data_end (const xcb_glx_get_pixel_mapusv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_pixel_mapusv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_pixel_mapusv_reply_t *
+xcb_glx_get_pixel_mapusv_reply (xcb_connection_t *c,
+ xcb_glx_get_pixel_mapusv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_polygon_stipple_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_polygon_stipple_cookie_t
+xcb_glx_get_polygon_stipple (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint8_t lsb_first);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_polygon_stipple_cookie_t
+xcb_glx_get_polygon_stipple_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint8_t lsb_first);
+
+uint8_t *
+xcb_glx_get_polygon_stipple_data (const xcb_glx_get_polygon_stipple_reply_t *R);
+
+int
+xcb_glx_get_polygon_stipple_data_length (const xcb_glx_get_polygon_stipple_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_polygon_stipple_data_end (const xcb_glx_get_polygon_stipple_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_polygon_stipple_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_polygon_stipple_reply_t *
+xcb_glx_get_polygon_stipple_reply (xcb_connection_t *c,
+ xcb_glx_get_polygon_stipple_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_string_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_string_cookie_t
+xcb_glx_get_string (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_string_cookie_t
+xcb_glx_get_string_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t name);
+
+char *
+xcb_glx_get_string_string (const xcb_glx_get_string_reply_t *R);
+
+int
+xcb_glx_get_string_string_length (const xcb_glx_get_string_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_string_string_end (const xcb_glx_get_string_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_string_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_string_reply_t *
+xcb_glx_get_string_reply (xcb_connection_t *c,
+ xcb_glx_get_string_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_envfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_envfv_cookie_t
+xcb_glx_get_tex_envfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_envfv_cookie_t
+xcb_glx_get_tex_envfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_tex_envfv_data (const xcb_glx_get_tex_envfv_reply_t *R);
+
+int
+xcb_glx_get_tex_envfv_data_length (const xcb_glx_get_tex_envfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_envfv_data_end (const xcb_glx_get_tex_envfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_envfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_envfv_reply_t *
+xcb_glx_get_tex_envfv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_envfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_enviv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_enviv_cookie_t
+xcb_glx_get_tex_enviv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_enviv_cookie_t
+xcb_glx_get_tex_enviv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_tex_enviv_data (const xcb_glx_get_tex_enviv_reply_t *R);
+
+int
+xcb_glx_get_tex_enviv_data_length (const xcb_glx_get_tex_enviv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_enviv_data_end (const xcb_glx_get_tex_enviv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_enviv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_enviv_reply_t *
+xcb_glx_get_tex_enviv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_enviv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_gendv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_gendv_cookie_t
+xcb_glx_get_tex_gendv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t coord,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_gendv_cookie_t
+xcb_glx_get_tex_gendv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t coord,
+ uint32_t pname);
+
+xcb_glx_float64_t *
+xcb_glx_get_tex_gendv_data (const xcb_glx_get_tex_gendv_reply_t *R);
+
+int
+xcb_glx_get_tex_gendv_data_length (const xcb_glx_get_tex_gendv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_gendv_data_end (const xcb_glx_get_tex_gendv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_gendv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_gendv_reply_t *
+xcb_glx_get_tex_gendv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_gendv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_genfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_genfv_cookie_t
+xcb_glx_get_tex_genfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t coord,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_genfv_cookie_t
+xcb_glx_get_tex_genfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t coord,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_tex_genfv_data (const xcb_glx_get_tex_genfv_reply_t *R);
+
+int
+xcb_glx_get_tex_genfv_data_length (const xcb_glx_get_tex_genfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_genfv_data_end (const xcb_glx_get_tex_genfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_genfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_genfv_reply_t *
+xcb_glx_get_tex_genfv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_genfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_geniv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_geniv_cookie_t
+xcb_glx_get_tex_geniv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t coord,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_geniv_cookie_t
+xcb_glx_get_tex_geniv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t coord,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_tex_geniv_data (const xcb_glx_get_tex_geniv_reply_t *R);
+
+int
+xcb_glx_get_tex_geniv_data_length (const xcb_glx_get_tex_geniv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_geniv_data_end (const xcb_glx_get_tex_geniv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_geniv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_geniv_reply_t *
+xcb_glx_get_tex_geniv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_geniv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_image_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_image_cookie_t
+xcb_glx_get_tex_image (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_image_cookie_t
+xcb_glx_get_tex_image_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+uint8_t *
+xcb_glx_get_tex_image_data (const xcb_glx_get_tex_image_reply_t *R);
+
+int
+xcb_glx_get_tex_image_data_length (const xcb_glx_get_tex_image_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_image_data_end (const xcb_glx_get_tex_image_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_image_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_image_reply_t *
+xcb_glx_get_tex_image_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_image_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_parameterfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_parameterfv_cookie_t
+xcb_glx_get_tex_parameterfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_parameterfv_cookie_t
+xcb_glx_get_tex_parameterfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_tex_parameterfv_data (const xcb_glx_get_tex_parameterfv_reply_t *R);
+
+int
+xcb_glx_get_tex_parameterfv_data_length (const xcb_glx_get_tex_parameterfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_parameterfv_data_end (const xcb_glx_get_tex_parameterfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_parameterfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_parameterfv_reply_t *
+xcb_glx_get_tex_parameterfv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_parameterfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_parameteriv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_parameteriv_cookie_t
+xcb_glx_get_tex_parameteriv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_parameteriv_cookie_t
+xcb_glx_get_tex_parameteriv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_tex_parameteriv_data (const xcb_glx_get_tex_parameteriv_reply_t *R);
+
+int
+xcb_glx_get_tex_parameteriv_data_length (const xcb_glx_get_tex_parameteriv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_parameteriv_data_end (const xcb_glx_get_tex_parameteriv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_parameteriv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_parameteriv_reply_t *
+xcb_glx_get_tex_parameteriv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_parameteriv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_level_parameterfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_level_parameterfv_cookie_t
+xcb_glx_get_tex_level_parameterfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_level_parameterfv_cookie_t
+xcb_glx_get_tex_level_parameterfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_tex_level_parameterfv_data (const xcb_glx_get_tex_level_parameterfv_reply_t *R);
+
+int
+xcb_glx_get_tex_level_parameterfv_data_length (const xcb_glx_get_tex_level_parameterfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_level_parameterfv_data_end (const xcb_glx_get_tex_level_parameterfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_level_parameterfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_level_parameterfv_reply_t *
+xcb_glx_get_tex_level_parameterfv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_level_parameterfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_tex_level_parameteriv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_tex_level_parameteriv_cookie_t
+xcb_glx_get_tex_level_parameteriv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_tex_level_parameteriv_cookie_t
+xcb_glx_get_tex_level_parameteriv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_tex_level_parameteriv_data (const xcb_glx_get_tex_level_parameteriv_reply_t *R);
+
+int
+xcb_glx_get_tex_level_parameteriv_data_length (const xcb_glx_get_tex_level_parameteriv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_tex_level_parameteriv_data_end (const xcb_glx_get_tex_level_parameteriv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_tex_level_parameteriv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_tex_level_parameteriv_reply_t *
+xcb_glx_get_tex_level_parameteriv_reply (xcb_connection_t *c,
+ xcb_glx_get_tex_level_parameteriv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_is_enabled_cookie_t
+xcb_glx_is_enabled (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t capability);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_is_enabled_cookie_t
+xcb_glx_is_enabled_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t capability);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_is_enabled_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_is_enabled_reply_t *
+xcb_glx_is_enabled_reply (xcb_connection_t *c,
+ xcb_glx_is_enabled_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_is_list_cookie_t
+xcb_glx_is_list (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_is_list_cookie_t
+xcb_glx_is_list_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t list);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_is_list_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_is_list_reply_t *
+xcb_glx_is_list_reply (xcb_connection_t *c,
+ xcb_glx_is_list_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_flush_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_flush (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag);
+
+int
+xcb_glx_are_textures_resident_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_are_textures_resident_cookie_t
+xcb_glx_are_textures_resident (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n,
+ const uint32_t *textures);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_are_textures_resident_cookie_t
+xcb_glx_are_textures_resident_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n,
+ const uint32_t *textures);
+
+uint8_t *
+xcb_glx_are_textures_resident_data (const xcb_glx_are_textures_resident_reply_t *R);
+
+int
+xcb_glx_are_textures_resident_data_length (const xcb_glx_are_textures_resident_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_are_textures_resident_data_end (const xcb_glx_are_textures_resident_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_are_textures_resident_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_are_textures_resident_reply_t *
+xcb_glx_are_textures_resident_reply (xcb_connection_t *c,
+ xcb_glx_are_textures_resident_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_delete_textures_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_delete_textures_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n,
+ const uint32_t *textures);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_delete_textures (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n,
+ const uint32_t *textures);
+
+uint32_t *
+xcb_glx_delete_textures_textures (const xcb_glx_delete_textures_request_t *R);
+
+int
+xcb_glx_delete_textures_textures_length (const xcb_glx_delete_textures_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_delete_textures_textures_end (const xcb_glx_delete_textures_request_t *R);
+
+int
+xcb_glx_gen_textures_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_gen_textures_cookie_t
+xcb_glx_gen_textures (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_gen_textures_cookie_t
+xcb_glx_gen_textures_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n);
+
+uint32_t *
+xcb_glx_gen_textures_data (const xcb_glx_gen_textures_reply_t *R);
+
+int
+xcb_glx_gen_textures_data_length (const xcb_glx_gen_textures_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_gen_textures_data_end (const xcb_glx_gen_textures_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_gen_textures_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_gen_textures_reply_t *
+xcb_glx_gen_textures_reply (xcb_connection_t *c,
+ xcb_glx_gen_textures_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_is_texture_cookie_t
+xcb_glx_is_texture (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t texture);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_is_texture_cookie_t
+xcb_glx_is_texture_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t texture);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_is_texture_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_is_texture_reply_t *
+xcb_glx_is_texture_reply (xcb_connection_t *c,
+ xcb_glx_is_texture_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_color_table_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_color_table_cookie_t
+xcb_glx_get_color_table (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_color_table_cookie_t
+xcb_glx_get_color_table_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+uint8_t *
+xcb_glx_get_color_table_data (const xcb_glx_get_color_table_reply_t *R);
+
+int
+xcb_glx_get_color_table_data_length (const xcb_glx_get_color_table_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_color_table_data_end (const xcb_glx_get_color_table_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_color_table_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_color_table_reply_t *
+xcb_glx_get_color_table_reply (xcb_connection_t *c,
+ xcb_glx_get_color_table_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_color_table_parameterfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_color_table_parameterfv_cookie_t
+xcb_glx_get_color_table_parameterfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_color_table_parameterfv_cookie_t
+xcb_glx_get_color_table_parameterfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_color_table_parameterfv_data (const xcb_glx_get_color_table_parameterfv_reply_t *R);
+
+int
+xcb_glx_get_color_table_parameterfv_data_length (const xcb_glx_get_color_table_parameterfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_color_table_parameterfv_data_end (const xcb_glx_get_color_table_parameterfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_color_table_parameterfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_color_table_parameterfv_reply_t *
+xcb_glx_get_color_table_parameterfv_reply (xcb_connection_t *c,
+ xcb_glx_get_color_table_parameterfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_color_table_parameteriv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_color_table_parameteriv_cookie_t
+xcb_glx_get_color_table_parameteriv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_color_table_parameteriv_cookie_t
+xcb_glx_get_color_table_parameteriv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_color_table_parameteriv_data (const xcb_glx_get_color_table_parameteriv_reply_t *R);
+
+int
+xcb_glx_get_color_table_parameteriv_data_length (const xcb_glx_get_color_table_parameteriv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_color_table_parameteriv_data_end (const xcb_glx_get_color_table_parameteriv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_color_table_parameteriv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_color_table_parameteriv_reply_t *
+xcb_glx_get_color_table_parameteriv_reply (xcb_connection_t *c,
+ xcb_glx_get_color_table_parameteriv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_convolution_filter_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_convolution_filter_cookie_t
+xcb_glx_get_convolution_filter (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_convolution_filter_cookie_t
+xcb_glx_get_convolution_filter_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+uint8_t *
+xcb_glx_get_convolution_filter_data (const xcb_glx_get_convolution_filter_reply_t *R);
+
+int
+xcb_glx_get_convolution_filter_data_length (const xcb_glx_get_convolution_filter_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_convolution_filter_data_end (const xcb_glx_get_convolution_filter_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_convolution_filter_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_convolution_filter_reply_t *
+xcb_glx_get_convolution_filter_reply (xcb_connection_t *c,
+ xcb_glx_get_convolution_filter_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_convolution_parameterfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_convolution_parameterfv_cookie_t
+xcb_glx_get_convolution_parameterfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_convolution_parameterfv_cookie_t
+xcb_glx_get_convolution_parameterfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_convolution_parameterfv_data (const xcb_glx_get_convolution_parameterfv_reply_t *R);
+
+int
+xcb_glx_get_convolution_parameterfv_data_length (const xcb_glx_get_convolution_parameterfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_convolution_parameterfv_data_end (const xcb_glx_get_convolution_parameterfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_convolution_parameterfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_convolution_parameterfv_reply_t *
+xcb_glx_get_convolution_parameterfv_reply (xcb_connection_t *c,
+ xcb_glx_get_convolution_parameterfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_convolution_parameteriv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_convolution_parameteriv_cookie_t
+xcb_glx_get_convolution_parameteriv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_convolution_parameteriv_cookie_t
+xcb_glx_get_convolution_parameteriv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_convolution_parameteriv_data (const xcb_glx_get_convolution_parameteriv_reply_t *R);
+
+int
+xcb_glx_get_convolution_parameteriv_data_length (const xcb_glx_get_convolution_parameteriv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_convolution_parameteriv_data_end (const xcb_glx_get_convolution_parameteriv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_convolution_parameteriv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_convolution_parameteriv_reply_t *
+xcb_glx_get_convolution_parameteriv_reply (xcb_connection_t *c,
+ xcb_glx_get_convolution_parameteriv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_separable_filter_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_separable_filter_cookie_t
+xcb_glx_get_separable_filter (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_separable_filter_cookie_t
+xcb_glx_get_separable_filter_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes);
+
+uint8_t *
+xcb_glx_get_separable_filter_rows_and_cols (const xcb_glx_get_separable_filter_reply_t *R);
+
+int
+xcb_glx_get_separable_filter_rows_and_cols_length (const xcb_glx_get_separable_filter_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_separable_filter_rows_and_cols_end (const xcb_glx_get_separable_filter_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_separable_filter_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_separable_filter_reply_t *
+xcb_glx_get_separable_filter_reply (xcb_connection_t *c,
+ xcb_glx_get_separable_filter_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_histogram_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_histogram_cookie_t
+xcb_glx_get_histogram (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes,
+ uint8_t reset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_histogram_cookie_t
+xcb_glx_get_histogram_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes,
+ uint8_t reset);
+
+uint8_t *
+xcb_glx_get_histogram_data (const xcb_glx_get_histogram_reply_t *R);
+
+int
+xcb_glx_get_histogram_data_length (const xcb_glx_get_histogram_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_histogram_data_end (const xcb_glx_get_histogram_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_histogram_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_histogram_reply_t *
+xcb_glx_get_histogram_reply (xcb_connection_t *c,
+ xcb_glx_get_histogram_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_histogram_parameterfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_histogram_parameterfv_cookie_t
+xcb_glx_get_histogram_parameterfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_histogram_parameterfv_cookie_t
+xcb_glx_get_histogram_parameterfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_histogram_parameterfv_data (const xcb_glx_get_histogram_parameterfv_reply_t *R);
+
+int
+xcb_glx_get_histogram_parameterfv_data_length (const xcb_glx_get_histogram_parameterfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_histogram_parameterfv_data_end (const xcb_glx_get_histogram_parameterfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_histogram_parameterfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_histogram_parameterfv_reply_t *
+xcb_glx_get_histogram_parameterfv_reply (xcb_connection_t *c,
+ xcb_glx_get_histogram_parameterfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_histogram_parameteriv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_histogram_parameteriv_cookie_t
+xcb_glx_get_histogram_parameteriv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_histogram_parameteriv_cookie_t
+xcb_glx_get_histogram_parameteriv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_histogram_parameteriv_data (const xcb_glx_get_histogram_parameteriv_reply_t *R);
+
+int
+xcb_glx_get_histogram_parameteriv_data_length (const xcb_glx_get_histogram_parameteriv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_histogram_parameteriv_data_end (const xcb_glx_get_histogram_parameteriv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_histogram_parameteriv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_histogram_parameteriv_reply_t *
+xcb_glx_get_histogram_parameteriv_reply (xcb_connection_t *c,
+ xcb_glx_get_histogram_parameteriv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_minmax_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_minmax_cookie_t
+xcb_glx_get_minmax (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes,
+ uint8_t reset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_minmax_cookie_t
+xcb_glx_get_minmax_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t format,
+ uint32_t type,
+ uint8_t swap_bytes,
+ uint8_t reset);
+
+uint8_t *
+xcb_glx_get_minmax_data (const xcb_glx_get_minmax_reply_t *R);
+
+int
+xcb_glx_get_minmax_data_length (const xcb_glx_get_minmax_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_minmax_data_end (const xcb_glx_get_minmax_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_minmax_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_minmax_reply_t *
+xcb_glx_get_minmax_reply (xcb_connection_t *c,
+ xcb_glx_get_minmax_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_minmax_parameterfv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_minmax_parameterfv_cookie_t
+xcb_glx_get_minmax_parameterfv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_minmax_parameterfv_cookie_t
+xcb_glx_get_minmax_parameterfv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+xcb_glx_float32_t *
+xcb_glx_get_minmax_parameterfv_data (const xcb_glx_get_minmax_parameterfv_reply_t *R);
+
+int
+xcb_glx_get_minmax_parameterfv_data_length (const xcb_glx_get_minmax_parameterfv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_minmax_parameterfv_data_end (const xcb_glx_get_minmax_parameterfv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_minmax_parameterfv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_minmax_parameterfv_reply_t *
+xcb_glx_get_minmax_parameterfv_reply (xcb_connection_t *c,
+ xcb_glx_get_minmax_parameterfv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_minmax_parameteriv_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_minmax_parameteriv_cookie_t
+xcb_glx_get_minmax_parameteriv (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_minmax_parameteriv_cookie_t
+xcb_glx_get_minmax_parameteriv_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_minmax_parameteriv_data (const xcb_glx_get_minmax_parameteriv_reply_t *R);
+
+int
+xcb_glx_get_minmax_parameteriv_data_length (const xcb_glx_get_minmax_parameteriv_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_minmax_parameteriv_data_end (const xcb_glx_get_minmax_parameteriv_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_minmax_parameteriv_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_minmax_parameteriv_reply_t *
+xcb_glx_get_minmax_parameteriv_reply (xcb_connection_t *c,
+ xcb_glx_get_minmax_parameteriv_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_compressed_tex_image_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_compressed_tex_image_arb_cookie_t
+xcb_glx_get_compressed_tex_image_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_compressed_tex_image_arb_cookie_t
+xcb_glx_get_compressed_tex_image_arb_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ int32_t level);
+
+uint8_t *
+xcb_glx_get_compressed_tex_image_arb_data (const xcb_glx_get_compressed_tex_image_arb_reply_t *R);
+
+int
+xcb_glx_get_compressed_tex_image_arb_data_length (const xcb_glx_get_compressed_tex_image_arb_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_compressed_tex_image_arb_data_end (const xcb_glx_get_compressed_tex_image_arb_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_compressed_tex_image_arb_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_compressed_tex_image_arb_reply_t *
+xcb_glx_get_compressed_tex_image_arb_reply (xcb_connection_t *c,
+ xcb_glx_get_compressed_tex_image_arb_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_delete_queries_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_glx_delete_queries_arb_checked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n,
+ const uint32_t *ids);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_glx_delete_queries_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n,
+ const uint32_t *ids);
+
+uint32_t *
+xcb_glx_delete_queries_arb_ids (const xcb_glx_delete_queries_arb_request_t *R);
+
+int
+xcb_glx_delete_queries_arb_ids_length (const xcb_glx_delete_queries_arb_request_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_delete_queries_arb_ids_end (const xcb_glx_delete_queries_arb_request_t *R);
+
+int
+xcb_glx_gen_queries_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_gen_queries_arb_cookie_t
+xcb_glx_gen_queries_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_gen_queries_arb_cookie_t
+xcb_glx_gen_queries_arb_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ int32_t n);
+
+uint32_t *
+xcb_glx_gen_queries_arb_data (const xcb_glx_gen_queries_arb_reply_t *R);
+
+int
+xcb_glx_gen_queries_arb_data_length (const xcb_glx_gen_queries_arb_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_gen_queries_arb_data_end (const xcb_glx_gen_queries_arb_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_gen_queries_arb_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_gen_queries_arb_reply_t *
+xcb_glx_gen_queries_arb_reply (xcb_connection_t *c,
+ xcb_glx_gen_queries_arb_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_is_query_arb_cookie_t
+xcb_glx_is_query_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_is_query_arb_cookie_t
+xcb_glx_is_query_arb_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t id);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_is_query_arb_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_is_query_arb_reply_t *
+xcb_glx_is_query_arb_reply (xcb_connection_t *c,
+ xcb_glx_is_query_arb_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_queryiv_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_queryiv_arb_cookie_t
+xcb_glx_get_queryiv_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_queryiv_arb_cookie_t
+xcb_glx_get_queryiv_arb_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t target,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_queryiv_arb_data (const xcb_glx_get_queryiv_arb_reply_t *R);
+
+int
+xcb_glx_get_queryiv_arb_data_length (const xcb_glx_get_queryiv_arb_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_queryiv_arb_data_end (const xcb_glx_get_queryiv_arb_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_queryiv_arb_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_queryiv_arb_reply_t *
+xcb_glx_get_queryiv_arb_reply (xcb_connection_t *c,
+ xcb_glx_get_queryiv_arb_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_query_objectiv_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_query_objectiv_arb_cookie_t
+xcb_glx_get_query_objectiv_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t id,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_query_objectiv_arb_cookie_t
+xcb_glx_get_query_objectiv_arb_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t id,
+ uint32_t pname);
+
+int32_t *
+xcb_glx_get_query_objectiv_arb_data (const xcb_glx_get_query_objectiv_arb_reply_t *R);
+
+int
+xcb_glx_get_query_objectiv_arb_data_length (const xcb_glx_get_query_objectiv_arb_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_query_objectiv_arb_data_end (const xcb_glx_get_query_objectiv_arb_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_query_objectiv_arb_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_query_objectiv_arb_reply_t *
+xcb_glx_get_query_objectiv_arb_reply (xcb_connection_t *c,
+ xcb_glx_get_query_objectiv_arb_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_glx_get_query_objectuiv_arb_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_glx_get_query_objectuiv_arb_cookie_t
+xcb_glx_get_query_objectuiv_arb (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t id,
+ uint32_t pname);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_glx_get_query_objectuiv_arb_cookie_t
+xcb_glx_get_query_objectuiv_arb_unchecked (xcb_connection_t *c,
+ xcb_glx_context_tag_t context_tag,
+ uint32_t id,
+ uint32_t pname);
+
+uint32_t *
+xcb_glx_get_query_objectuiv_arb_data (const xcb_glx_get_query_objectuiv_arb_reply_t *R);
+
+int
+xcb_glx_get_query_objectuiv_arb_data_length (const xcb_glx_get_query_objectuiv_arb_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_glx_get_query_objectuiv_arb_data_end (const xcb_glx_get_query_objectuiv_arb_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_glx_get_query_objectuiv_arb_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_glx_get_query_objectuiv_arb_reply_t *
+xcb_glx_get_query_objectuiv_arb_reply (xcb_connection_t *c,
+ xcb_glx_get_query_objectuiv_arb_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/present.h b/depends/libxcb/include/xcb/present.h
new file mode 100644
index 0000000..e366330
--- /dev/null
+++ b/depends/libxcb/include/xcb/present.h
@@ -0,0 +1,644 @@
+/*
+ * This file generated automatically from present.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Present_API XCB Present API
+ * @brief Present XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __PRESENT_H
+#define __PRESENT_H
+
+#include "xcb.h"
+#include "xproto.h"
+#include "randr.h"
+#include "xfixes.h"
+#include "sync.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_PRESENT_MAJOR_VERSION 1
+#define XCB_PRESENT_MINOR_VERSION 2
+
+extern xcb_extension_t xcb_present_id;
+
+typedef enum xcb_present_event_enum_t {
+ XCB_PRESENT_EVENT_CONFIGURE_NOTIFY = 0,
+ XCB_PRESENT_EVENT_COMPLETE_NOTIFY = 1,
+ XCB_PRESENT_EVENT_IDLE_NOTIFY = 2,
+ XCB_PRESENT_EVENT_REDIRECT_NOTIFY = 3
+} xcb_present_event_enum_t;
+
+typedef enum xcb_present_event_mask_t {
+ XCB_PRESENT_EVENT_MASK_NO_EVENT = 0,
+ XCB_PRESENT_EVENT_MASK_CONFIGURE_NOTIFY = 1,
+ XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY = 2,
+ XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY = 4,
+ XCB_PRESENT_EVENT_MASK_REDIRECT_NOTIFY = 8
+} xcb_present_event_mask_t;
+
+typedef enum xcb_present_option_t {
+ XCB_PRESENT_OPTION_NONE = 0,
+ XCB_PRESENT_OPTION_ASYNC = 1,
+ XCB_PRESENT_OPTION_COPY = 2,
+ XCB_PRESENT_OPTION_UST = 4,
+ XCB_PRESENT_OPTION_SUBOPTIMAL = 8
+} xcb_present_option_t;
+
+typedef enum xcb_present_capability_t {
+ XCB_PRESENT_CAPABILITY_NONE = 0,
+ XCB_PRESENT_CAPABILITY_ASYNC = 1,
+ XCB_PRESENT_CAPABILITY_FENCE = 2,
+ XCB_PRESENT_CAPABILITY_UST = 4
+} xcb_present_capability_t;
+
+typedef enum xcb_present_complete_kind_t {
+ XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0,
+ XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1
+} xcb_present_complete_kind_t;
+
+typedef enum xcb_present_complete_mode_t {
+ XCB_PRESENT_COMPLETE_MODE_COPY = 0,
+ XCB_PRESENT_COMPLETE_MODE_FLIP = 1,
+ XCB_PRESENT_COMPLETE_MODE_SKIP = 2,
+ XCB_PRESENT_COMPLETE_MODE_SUBOPTIMAL_COPY = 3
+} xcb_present_complete_mode_t;
+
+/**
+ * @brief xcb_present_notify_t
+ **/
+typedef struct xcb_present_notify_t {
+ xcb_window_t window;
+ uint32_t serial;
+} xcb_present_notify_t;
+
+/**
+ * @brief xcb_present_notify_iterator_t
+ **/
+typedef struct xcb_present_notify_iterator_t {
+ xcb_present_notify_t *data;
+ int rem;
+ int index;
+} xcb_present_notify_iterator_t;
+
+/**
+ * @brief xcb_present_query_version_cookie_t
+ **/
+typedef struct xcb_present_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_present_query_version_cookie_t;
+
+/** Opcode for xcb_present_query_version. */
+#define XCB_PRESENT_QUERY_VERSION 0
+
+/**
+ * @brief xcb_present_query_version_request_t
+ **/
+typedef struct xcb_present_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_present_query_version_request_t;
+
+/**
+ * @brief xcb_present_query_version_reply_t
+ **/
+typedef struct xcb_present_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_present_query_version_reply_t;
+
+/** Opcode for xcb_present_pixmap. */
+#define XCB_PRESENT_PIXMAP 1
+
+/**
+ * @brief xcb_present_pixmap_request_t
+ **/
+typedef struct xcb_present_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_pixmap_t pixmap;
+ uint32_t serial;
+ xcb_xfixes_region_t valid;
+ xcb_xfixes_region_t update;
+ int16_t x_off;
+ int16_t y_off;
+ xcb_randr_crtc_t target_crtc;
+ xcb_sync_fence_t wait_fence;
+ xcb_sync_fence_t idle_fence;
+ uint32_t options;
+ uint8_t pad0[4];
+ uint64_t target_msc;
+ uint64_t divisor;
+ uint64_t remainder;
+} xcb_present_pixmap_request_t;
+
+/** Opcode for xcb_present_notify_msc. */
+#define XCB_PRESENT_NOTIFY_MSC 2
+
+/**
+ * @brief xcb_present_notify_msc_request_t
+ **/
+typedef struct xcb_present_notify_msc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t serial;
+ uint8_t pad0[4];
+ uint64_t target_msc;
+ uint64_t divisor;
+ uint64_t remainder;
+} xcb_present_notify_msc_request_t;
+
+typedef uint32_t xcb_present_event_t;
+
+/**
+ * @brief xcb_present_event_iterator_t
+ **/
+typedef struct xcb_present_event_iterator_t {
+ xcb_present_event_t *data;
+ int rem;
+ int index;
+} xcb_present_event_iterator_t;
+
+/** Opcode for xcb_present_select_input. */
+#define XCB_PRESENT_SELECT_INPUT 3
+
+/**
+ * @brief xcb_present_select_input_request_t
+ **/
+typedef struct xcb_present_select_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_present_event_t eid;
+ xcb_window_t window;
+ uint32_t event_mask;
+} xcb_present_select_input_request_t;
+
+/**
+ * @brief xcb_present_query_capabilities_cookie_t
+ **/
+typedef struct xcb_present_query_capabilities_cookie_t {
+ unsigned int sequence;
+} xcb_present_query_capabilities_cookie_t;
+
+/** Opcode for xcb_present_query_capabilities. */
+#define XCB_PRESENT_QUERY_CAPABILITIES 4
+
+/**
+ * @brief xcb_present_query_capabilities_request_t
+ **/
+typedef struct xcb_present_query_capabilities_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t target;
+} xcb_present_query_capabilities_request_t;
+
+/**
+ * @brief xcb_present_query_capabilities_reply_t
+ **/
+typedef struct xcb_present_query_capabilities_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t capabilities;
+} xcb_present_query_capabilities_reply_t;
+
+/** Opcode for xcb_present_generic. */
+#define XCB_PRESENT_GENERIC 0
+
+/**
+ * @brief xcb_present_generic_event_t
+ **/
+typedef struct xcb_present_generic_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t evtype;
+ uint8_t pad0[2];
+ xcb_present_event_t event;
+} xcb_present_generic_event_t;
+
+/** Opcode for xcb_present_configure_notify. */
+#define XCB_PRESENT_CONFIGURE_NOTIFY 0
+
+/**
+ * @brief xcb_present_configure_notify_event_t
+ **/
+typedef struct xcb_present_configure_notify_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ uint8_t pad0[2];
+ xcb_present_event_t event;
+ xcb_window_t window;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ int16_t off_x;
+ int16_t off_y;
+ uint32_t full_sequence;
+ uint16_t pixmap_width;
+ uint16_t pixmap_height;
+ uint32_t pixmap_flags;
+} xcb_present_configure_notify_event_t;
+
+/** Opcode for xcb_present_complete_notify. */
+#define XCB_PRESENT_COMPLETE_NOTIFY 1
+
+/**
+ * @brief xcb_present_complete_notify_event_t
+ **/
+typedef struct xcb_present_complete_notify_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ uint8_t kind;
+ uint8_t mode;
+ xcb_present_event_t event;
+ xcb_window_t window;
+ uint32_t serial;
+ uint64_t ust;
+ uint32_t full_sequence;
+ uint64_t msc;
+} XCB_PACKED xcb_present_complete_notify_event_t;
+
+/** Opcode for xcb_present_idle_notify. */
+#define XCB_PRESENT_IDLE_NOTIFY 2
+
+/**
+ * @brief xcb_present_idle_notify_event_t
+ **/
+typedef struct xcb_present_idle_notify_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ uint8_t pad0[2];
+ xcb_present_event_t event;
+ xcb_window_t window;
+ uint32_t serial;
+ xcb_pixmap_t pixmap;
+ xcb_sync_fence_t idle_fence;
+ uint32_t full_sequence;
+} xcb_present_idle_notify_event_t;
+
+/** Opcode for xcb_present_redirect_notify. */
+#define XCB_PRESENT_REDIRECT_NOTIFY 3
+
+/**
+ * @brief xcb_present_redirect_notify_event_t
+ **/
+typedef struct xcb_present_redirect_notify_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ uint8_t update_window;
+ uint8_t pad0;
+ xcb_present_event_t event;
+ xcb_window_t event_window;
+ xcb_window_t window;
+ xcb_pixmap_t pixmap;
+ uint32_t serial;
+ uint32_t full_sequence;
+ xcb_xfixes_region_t valid_region;
+ xcb_xfixes_region_t update_region;
+ xcb_rectangle_t valid_rect;
+ xcb_rectangle_t update_rect;
+ int16_t x_off;
+ int16_t y_off;
+ xcb_randr_crtc_t target_crtc;
+ xcb_sync_fence_t wait_fence;
+ xcb_sync_fence_t idle_fence;
+ uint32_t options;
+ uint8_t pad1[4];
+ uint64_t target_msc;
+ uint64_t divisor;
+ uint64_t remainder;
+} XCB_PACKED xcb_present_redirect_notify_event_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_present_notify_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_present_notify_t)
+ */
+void
+xcb_present_notify_next (xcb_present_notify_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_present_notify_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_present_notify_end (xcb_present_notify_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_present_query_version_cookie_t
+xcb_present_query_version (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_present_query_version_cookie_t
+xcb_present_query_version_unchecked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_present_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_present_query_version_reply_t *
+xcb_present_query_version_reply (xcb_connection_t *c,
+ xcb_present_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_present_pixmap_sizeof (const void *_buffer,
+ uint32_t notifies_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_present_pixmap_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_pixmap_t pixmap,
+ uint32_t serial,
+ xcb_xfixes_region_t valid,
+ xcb_xfixes_region_t update,
+ int16_t x_off,
+ int16_t y_off,
+ xcb_randr_crtc_t target_crtc,
+ xcb_sync_fence_t wait_fence,
+ xcb_sync_fence_t idle_fence,
+ uint32_t options,
+ uint64_t target_msc,
+ uint64_t divisor,
+ uint64_t remainder,
+ uint32_t notifies_len,
+ const xcb_present_notify_t *notifies);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_present_pixmap (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_pixmap_t pixmap,
+ uint32_t serial,
+ xcb_xfixes_region_t valid,
+ xcb_xfixes_region_t update,
+ int16_t x_off,
+ int16_t y_off,
+ xcb_randr_crtc_t target_crtc,
+ xcb_sync_fence_t wait_fence,
+ xcb_sync_fence_t idle_fence,
+ uint32_t options,
+ uint64_t target_msc,
+ uint64_t divisor,
+ uint64_t remainder,
+ uint32_t notifies_len,
+ const xcb_present_notify_t *notifies);
+
+xcb_present_notify_t *
+xcb_present_pixmap_notifies (const xcb_present_pixmap_request_t *R);
+
+int
+xcb_present_pixmap_notifies_length (const xcb_present_pixmap_request_t *R);
+
+xcb_present_notify_iterator_t
+xcb_present_pixmap_notifies_iterator (const xcb_present_pixmap_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_present_notify_msc_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t serial,
+ uint64_t target_msc,
+ uint64_t divisor,
+ uint64_t remainder);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_present_notify_msc (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t serial,
+ uint64_t target_msc,
+ uint64_t divisor,
+ uint64_t remainder);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_present_event_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_present_event_t)
+ */
+void
+xcb_present_event_next (xcb_present_event_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_present_event_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_present_event_end (xcb_present_event_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_present_select_input_checked (xcb_connection_t *c,
+ xcb_present_event_t eid,
+ xcb_window_t window,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_present_select_input (xcb_connection_t *c,
+ xcb_present_event_t eid,
+ xcb_window_t window,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_present_query_capabilities_cookie_t
+xcb_present_query_capabilities (xcb_connection_t *c,
+ uint32_t target);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_present_query_capabilities_cookie_t
+xcb_present_query_capabilities_unchecked (xcb_connection_t *c,
+ uint32_t target);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_present_query_capabilities_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_present_query_capabilities_reply_t *
+xcb_present_query_capabilities_reply (xcb_connection_t *c,
+ xcb_present_query_capabilities_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_present_redirect_notify_sizeof (const void *_buffer,
+ uint32_t notifies_len);
+
+xcb_present_notify_t *
+xcb_present_redirect_notify_notifies (const xcb_present_redirect_notify_event_t *R);
+
+int
+xcb_present_redirect_notify_notifies_length (const xcb_present_redirect_notify_event_t *R);
+
+xcb_present_notify_iterator_t
+xcb_present_redirect_notify_notifies_iterator (const xcb_present_redirect_notify_event_t *R);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/randr.h b/depends/libxcb/include/xcb/randr.h
new file mode 100644
index 0000000..cc04c8e
--- /dev/null
+++ b/depends/libxcb/include/xcb/randr.h
@@ -0,0 +1,4588 @@
+/*
+ * This file generated automatically from randr.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_RandR_API XCB RandR API
+ * @brief RandR XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __RANDR_H
+#define __RANDR_H
+
+#include "xcb.h"
+#include "xproto.h"
+#include "render.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_RANDR_MAJOR_VERSION 1
+#define XCB_RANDR_MINOR_VERSION 6
+
+extern xcb_extension_t xcb_randr_id;
+
+typedef uint32_t xcb_randr_mode_t;
+
+/**
+ * @brief xcb_randr_mode_iterator_t
+ **/
+typedef struct xcb_randr_mode_iterator_t {
+ xcb_randr_mode_t *data;
+ int rem;
+ int index;
+} xcb_randr_mode_iterator_t;
+
+typedef uint32_t xcb_randr_crtc_t;
+
+/**
+ * @brief xcb_randr_crtc_iterator_t
+ **/
+typedef struct xcb_randr_crtc_iterator_t {
+ xcb_randr_crtc_t *data;
+ int rem;
+ int index;
+} xcb_randr_crtc_iterator_t;
+
+typedef uint32_t xcb_randr_output_t;
+
+/**
+ * @brief xcb_randr_output_iterator_t
+ **/
+typedef struct xcb_randr_output_iterator_t {
+ xcb_randr_output_t *data;
+ int rem;
+ int index;
+} xcb_randr_output_iterator_t;
+
+typedef uint32_t xcb_randr_provider_t;
+
+/**
+ * @brief xcb_randr_provider_iterator_t
+ **/
+typedef struct xcb_randr_provider_iterator_t {
+ xcb_randr_provider_t *data;
+ int rem;
+ int index;
+} xcb_randr_provider_iterator_t;
+
+typedef uint32_t xcb_randr_lease_t;
+
+/**
+ * @brief xcb_randr_lease_iterator_t
+ **/
+typedef struct xcb_randr_lease_iterator_t {
+ xcb_randr_lease_t *data;
+ int rem;
+ int index;
+} xcb_randr_lease_iterator_t;
+
+/** Opcode for xcb_randr_bad_output. */
+#define XCB_RANDR_BAD_OUTPUT 0
+
+/**
+ * @brief xcb_randr_bad_output_error_t
+ **/
+typedef struct xcb_randr_bad_output_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_randr_bad_output_error_t;
+
+/** Opcode for xcb_randr_bad_crtc. */
+#define XCB_RANDR_BAD_CRTC 1
+
+/**
+ * @brief xcb_randr_bad_crtc_error_t
+ **/
+typedef struct xcb_randr_bad_crtc_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_randr_bad_crtc_error_t;
+
+/** Opcode for xcb_randr_bad_mode. */
+#define XCB_RANDR_BAD_MODE 2
+
+/**
+ * @brief xcb_randr_bad_mode_error_t
+ **/
+typedef struct xcb_randr_bad_mode_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_randr_bad_mode_error_t;
+
+/** Opcode for xcb_randr_bad_provider. */
+#define XCB_RANDR_BAD_PROVIDER 3
+
+/**
+ * @brief xcb_randr_bad_provider_error_t
+ **/
+typedef struct xcb_randr_bad_provider_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_randr_bad_provider_error_t;
+
+typedef enum xcb_randr_rotation_t {
+ XCB_RANDR_ROTATION_ROTATE_0 = 1,
+ XCB_RANDR_ROTATION_ROTATE_90 = 2,
+ XCB_RANDR_ROTATION_ROTATE_180 = 4,
+ XCB_RANDR_ROTATION_ROTATE_270 = 8,
+ XCB_RANDR_ROTATION_REFLECT_X = 16,
+ XCB_RANDR_ROTATION_REFLECT_Y = 32
+} xcb_randr_rotation_t;
+
+/**
+ * @brief xcb_randr_screen_size_t
+ **/
+typedef struct xcb_randr_screen_size_t {
+ uint16_t width;
+ uint16_t height;
+ uint16_t mwidth;
+ uint16_t mheight;
+} xcb_randr_screen_size_t;
+
+/**
+ * @brief xcb_randr_screen_size_iterator_t
+ **/
+typedef struct xcb_randr_screen_size_iterator_t {
+ xcb_randr_screen_size_t *data;
+ int rem;
+ int index;
+} xcb_randr_screen_size_iterator_t;
+
+/**
+ * @brief xcb_randr_refresh_rates_t
+ **/
+typedef struct xcb_randr_refresh_rates_t {
+ uint16_t nRates;
+} xcb_randr_refresh_rates_t;
+
+/**
+ * @brief xcb_randr_refresh_rates_iterator_t
+ **/
+typedef struct xcb_randr_refresh_rates_iterator_t {
+ xcb_randr_refresh_rates_t *data;
+ int rem;
+ int index;
+} xcb_randr_refresh_rates_iterator_t;
+
+/**
+ * @brief xcb_randr_query_version_cookie_t
+ **/
+typedef struct xcb_randr_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_randr_query_version_cookie_t;
+
+/** Opcode for xcb_randr_query_version. */
+#define XCB_RANDR_QUERY_VERSION 0
+
+/**
+ * @brief xcb_randr_query_version_request_t
+ **/
+typedef struct xcb_randr_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+} xcb_randr_query_version_request_t;
+
+/**
+ * @brief xcb_randr_query_version_reply_t
+ **/
+typedef struct xcb_randr_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint8_t pad1[16];
+} xcb_randr_query_version_reply_t;
+
+typedef enum xcb_randr_set_config_t {
+ XCB_RANDR_SET_CONFIG_SUCCESS = 0,
+ XCB_RANDR_SET_CONFIG_INVALID_CONFIG_TIME = 1,
+ XCB_RANDR_SET_CONFIG_INVALID_TIME = 2,
+ XCB_RANDR_SET_CONFIG_FAILED = 3
+} xcb_randr_set_config_t;
+
+/**
+ * @brief xcb_randr_set_screen_config_cookie_t
+ **/
+typedef struct xcb_randr_set_screen_config_cookie_t {
+ unsigned int sequence;
+} xcb_randr_set_screen_config_cookie_t;
+
+/** Opcode for xcb_randr_set_screen_config. */
+#define XCB_RANDR_SET_SCREEN_CONFIG 2
+
+/**
+ * @brief xcb_randr_set_screen_config_request_t
+ **/
+typedef struct xcb_randr_set_screen_config_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ uint16_t sizeID;
+ uint16_t rotation;
+ uint16_t rate;
+ uint8_t pad0[2];
+} xcb_randr_set_screen_config_request_t;
+
+/**
+ * @brief xcb_randr_set_screen_config_reply_t
+ **/
+typedef struct xcb_randr_set_screen_config_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t new_timestamp;
+ xcb_timestamp_t config_timestamp;
+ xcb_window_t root;
+ uint16_t subpixel_order;
+ uint8_t pad0[10];
+} xcb_randr_set_screen_config_reply_t;
+
+typedef enum xcb_randr_notify_mask_t {
+ XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE = 1,
+ XCB_RANDR_NOTIFY_MASK_CRTC_CHANGE = 2,
+ XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE = 4,
+ XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY = 8,
+ XCB_RANDR_NOTIFY_MASK_PROVIDER_CHANGE = 16,
+ XCB_RANDR_NOTIFY_MASK_PROVIDER_PROPERTY = 32,
+ XCB_RANDR_NOTIFY_MASK_RESOURCE_CHANGE = 64,
+ XCB_RANDR_NOTIFY_MASK_LEASE = 128
+} xcb_randr_notify_mask_t;
+
+/** Opcode for xcb_randr_select_input. */
+#define XCB_RANDR_SELECT_INPUT 4
+
+/**
+ * @brief xcb_randr_select_input_request_t
+ **/
+typedef struct xcb_randr_select_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t enable;
+ uint8_t pad0[2];
+} xcb_randr_select_input_request_t;
+
+/**
+ * @brief xcb_randr_get_screen_info_cookie_t
+ **/
+typedef struct xcb_randr_get_screen_info_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_screen_info_cookie_t;
+
+/** Opcode for xcb_randr_get_screen_info. */
+#define XCB_RANDR_GET_SCREEN_INFO 5
+
+/**
+ * @brief xcb_randr_get_screen_info_request_t
+ **/
+typedef struct xcb_randr_get_screen_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_get_screen_info_request_t;
+
+/**
+ * @brief xcb_randr_get_screen_info_reply_t
+ **/
+typedef struct xcb_randr_get_screen_info_reply_t {
+ uint8_t response_type;
+ uint8_t rotations;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t root;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ uint16_t nSizes;
+ uint16_t sizeID;
+ uint16_t rotation;
+ uint16_t rate;
+ uint16_t nInfo;
+ uint8_t pad0[2];
+} xcb_randr_get_screen_info_reply_t;
+
+/**
+ * @brief xcb_randr_get_screen_size_range_cookie_t
+ **/
+typedef struct xcb_randr_get_screen_size_range_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_screen_size_range_cookie_t;
+
+/** Opcode for xcb_randr_get_screen_size_range. */
+#define XCB_RANDR_GET_SCREEN_SIZE_RANGE 6
+
+/**
+ * @brief xcb_randr_get_screen_size_range_request_t
+ **/
+typedef struct xcb_randr_get_screen_size_range_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_get_screen_size_range_request_t;
+
+/**
+ * @brief xcb_randr_get_screen_size_range_reply_t
+ **/
+typedef struct xcb_randr_get_screen_size_range_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t min_width;
+ uint16_t min_height;
+ uint16_t max_width;
+ uint16_t max_height;
+ uint8_t pad1[16];
+} xcb_randr_get_screen_size_range_reply_t;
+
+/** Opcode for xcb_randr_set_screen_size. */
+#define XCB_RANDR_SET_SCREEN_SIZE 7
+
+/**
+ * @brief xcb_randr_set_screen_size_request_t
+ **/
+typedef struct xcb_randr_set_screen_size_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t width;
+ uint16_t height;
+ uint32_t mm_width;
+ uint32_t mm_height;
+} xcb_randr_set_screen_size_request_t;
+
+typedef enum xcb_randr_mode_flag_t {
+ XCB_RANDR_MODE_FLAG_HSYNC_POSITIVE = 1,
+ XCB_RANDR_MODE_FLAG_HSYNC_NEGATIVE = 2,
+ XCB_RANDR_MODE_FLAG_VSYNC_POSITIVE = 4,
+ XCB_RANDR_MODE_FLAG_VSYNC_NEGATIVE = 8,
+ XCB_RANDR_MODE_FLAG_INTERLACE = 16,
+ XCB_RANDR_MODE_FLAG_DOUBLE_SCAN = 32,
+ XCB_RANDR_MODE_FLAG_CSYNC = 64,
+ XCB_RANDR_MODE_FLAG_CSYNC_POSITIVE = 128,
+ XCB_RANDR_MODE_FLAG_CSYNC_NEGATIVE = 256,
+ XCB_RANDR_MODE_FLAG_HSKEW_PRESENT = 512,
+ XCB_RANDR_MODE_FLAG_BCAST = 1024,
+ XCB_RANDR_MODE_FLAG_PIXEL_MULTIPLEX = 2048,
+ XCB_RANDR_MODE_FLAG_DOUBLE_CLOCK = 4096,
+ XCB_RANDR_MODE_FLAG_HALVE_CLOCK = 8192
+} xcb_randr_mode_flag_t;
+
+/**
+ * @brief xcb_randr_mode_info_t
+ **/
+typedef struct xcb_randr_mode_info_t {
+ uint32_t id;
+ uint16_t width;
+ uint16_t height;
+ uint32_t dot_clock;
+ uint16_t hsync_start;
+ uint16_t hsync_end;
+ uint16_t htotal;
+ uint16_t hskew;
+ uint16_t vsync_start;
+ uint16_t vsync_end;
+ uint16_t vtotal;
+ uint16_t name_len;
+ uint32_t mode_flags;
+} xcb_randr_mode_info_t;
+
+/**
+ * @brief xcb_randr_mode_info_iterator_t
+ **/
+typedef struct xcb_randr_mode_info_iterator_t {
+ xcb_randr_mode_info_t *data;
+ int rem;
+ int index;
+} xcb_randr_mode_info_iterator_t;
+
+/**
+ * @brief xcb_randr_get_screen_resources_cookie_t
+ **/
+typedef struct xcb_randr_get_screen_resources_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_screen_resources_cookie_t;
+
+/** Opcode for xcb_randr_get_screen_resources. */
+#define XCB_RANDR_GET_SCREEN_RESOURCES 8
+
+/**
+ * @brief xcb_randr_get_screen_resources_request_t
+ **/
+typedef struct xcb_randr_get_screen_resources_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_get_screen_resources_request_t;
+
+/**
+ * @brief xcb_randr_get_screen_resources_reply_t
+ **/
+typedef struct xcb_randr_get_screen_resources_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ uint16_t num_crtcs;
+ uint16_t num_outputs;
+ uint16_t num_modes;
+ uint16_t names_len;
+ uint8_t pad1[8];
+} xcb_randr_get_screen_resources_reply_t;
+
+typedef enum xcb_randr_connection_t {
+ XCB_RANDR_CONNECTION_CONNECTED = 0,
+ XCB_RANDR_CONNECTION_DISCONNECTED = 1,
+ XCB_RANDR_CONNECTION_UNKNOWN = 2
+} xcb_randr_connection_t;
+
+/**
+ * @brief xcb_randr_get_output_info_cookie_t
+ **/
+typedef struct xcb_randr_get_output_info_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_output_info_cookie_t;
+
+/** Opcode for xcb_randr_get_output_info. */
+#define XCB_RANDR_GET_OUTPUT_INFO 9
+
+/**
+ * @brief xcb_randr_get_output_info_request_t
+ **/
+typedef struct xcb_randr_get_output_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_timestamp_t config_timestamp;
+} xcb_randr_get_output_info_request_t;
+
+/**
+ * @brief xcb_randr_get_output_info_reply_t
+ **/
+typedef struct xcb_randr_get_output_info_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ xcb_randr_crtc_t crtc;
+ uint32_t mm_width;
+ uint32_t mm_height;
+ uint8_t connection;
+ uint8_t subpixel_order;
+ uint16_t num_crtcs;
+ uint16_t num_modes;
+ uint16_t num_preferred;
+ uint16_t num_clones;
+ uint16_t name_len;
+} xcb_randr_get_output_info_reply_t;
+
+/**
+ * @brief xcb_randr_list_output_properties_cookie_t
+ **/
+typedef struct xcb_randr_list_output_properties_cookie_t {
+ unsigned int sequence;
+} xcb_randr_list_output_properties_cookie_t;
+
+/** Opcode for xcb_randr_list_output_properties. */
+#define XCB_RANDR_LIST_OUTPUT_PROPERTIES 10
+
+/**
+ * @brief xcb_randr_list_output_properties_request_t
+ **/
+typedef struct xcb_randr_list_output_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+} xcb_randr_list_output_properties_request_t;
+
+/**
+ * @brief xcb_randr_list_output_properties_reply_t
+ **/
+typedef struct xcb_randr_list_output_properties_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_atoms;
+ uint8_t pad1[22];
+} xcb_randr_list_output_properties_reply_t;
+
+/**
+ * @brief xcb_randr_query_output_property_cookie_t
+ **/
+typedef struct xcb_randr_query_output_property_cookie_t {
+ unsigned int sequence;
+} xcb_randr_query_output_property_cookie_t;
+
+/** Opcode for xcb_randr_query_output_property. */
+#define XCB_RANDR_QUERY_OUTPUT_PROPERTY 11
+
+/**
+ * @brief xcb_randr_query_output_property_request_t
+ **/
+typedef struct xcb_randr_query_output_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_atom_t property;
+} xcb_randr_query_output_property_request_t;
+
+/**
+ * @brief xcb_randr_query_output_property_reply_t
+ **/
+typedef struct xcb_randr_query_output_property_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pending;
+ uint8_t range;
+ uint8_t immutable;
+ uint8_t pad1[21];
+} xcb_randr_query_output_property_reply_t;
+
+/** Opcode for xcb_randr_configure_output_property. */
+#define XCB_RANDR_CONFIGURE_OUTPUT_PROPERTY 12
+
+/**
+ * @brief xcb_randr_configure_output_property_request_t
+ **/
+typedef struct xcb_randr_configure_output_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_atom_t property;
+ uint8_t pending;
+ uint8_t range;
+ uint8_t pad0[2];
+} xcb_randr_configure_output_property_request_t;
+
+/** Opcode for xcb_randr_change_output_property. */
+#define XCB_RANDR_CHANGE_OUTPUT_PROPERTY 13
+
+/**
+ * @brief xcb_randr_change_output_property_request_t
+ **/
+typedef struct xcb_randr_change_output_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint8_t format;
+ uint8_t mode;
+ uint8_t pad0[2];
+ uint32_t num_units;
+} xcb_randr_change_output_property_request_t;
+
+/** Opcode for xcb_randr_delete_output_property. */
+#define XCB_RANDR_DELETE_OUTPUT_PROPERTY 14
+
+/**
+ * @brief xcb_randr_delete_output_property_request_t
+ **/
+typedef struct xcb_randr_delete_output_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_atom_t property;
+} xcb_randr_delete_output_property_request_t;
+
+/**
+ * @brief xcb_randr_get_output_property_cookie_t
+ **/
+typedef struct xcb_randr_get_output_property_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_output_property_cookie_t;
+
+/** Opcode for xcb_randr_get_output_property. */
+#define XCB_RANDR_GET_OUTPUT_PROPERTY 15
+
+/**
+ * @brief xcb_randr_get_output_property_request_t
+ **/
+typedef struct xcb_randr_get_output_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint32_t long_offset;
+ uint32_t long_length;
+ uint8_t _delete;
+ uint8_t pending;
+ uint8_t pad0[2];
+} xcb_randr_get_output_property_request_t;
+
+/**
+ * @brief xcb_randr_get_output_property_reply_t
+ **/
+typedef struct xcb_randr_get_output_property_reply_t {
+ uint8_t response_type;
+ uint8_t format;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t type;
+ uint32_t bytes_after;
+ uint32_t num_items;
+ uint8_t pad0[12];
+} xcb_randr_get_output_property_reply_t;
+
+/**
+ * @brief xcb_randr_create_mode_cookie_t
+ **/
+typedef struct xcb_randr_create_mode_cookie_t {
+ unsigned int sequence;
+} xcb_randr_create_mode_cookie_t;
+
+/** Opcode for xcb_randr_create_mode. */
+#define XCB_RANDR_CREATE_MODE 16
+
+/**
+ * @brief xcb_randr_create_mode_request_t
+ **/
+typedef struct xcb_randr_create_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_randr_mode_info_t mode_info;
+} xcb_randr_create_mode_request_t;
+
+/**
+ * @brief xcb_randr_create_mode_reply_t
+ **/
+typedef struct xcb_randr_create_mode_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_randr_mode_t mode;
+ uint8_t pad1[20];
+} xcb_randr_create_mode_reply_t;
+
+/** Opcode for xcb_randr_destroy_mode. */
+#define XCB_RANDR_DESTROY_MODE 17
+
+/**
+ * @brief xcb_randr_destroy_mode_request_t
+ **/
+typedef struct xcb_randr_destroy_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_mode_t mode;
+} xcb_randr_destroy_mode_request_t;
+
+/** Opcode for xcb_randr_add_output_mode. */
+#define XCB_RANDR_ADD_OUTPUT_MODE 18
+
+/**
+ * @brief xcb_randr_add_output_mode_request_t
+ **/
+typedef struct xcb_randr_add_output_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_randr_mode_t mode;
+} xcb_randr_add_output_mode_request_t;
+
+/** Opcode for xcb_randr_delete_output_mode. */
+#define XCB_RANDR_DELETE_OUTPUT_MODE 19
+
+/**
+ * @brief xcb_randr_delete_output_mode_request_t
+ **/
+typedef struct xcb_randr_delete_output_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_output_t output;
+ xcb_randr_mode_t mode;
+} xcb_randr_delete_output_mode_request_t;
+
+/**
+ * @brief xcb_randr_get_crtc_info_cookie_t
+ **/
+typedef struct xcb_randr_get_crtc_info_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_crtc_info_cookie_t;
+
+/** Opcode for xcb_randr_get_crtc_info. */
+#define XCB_RANDR_GET_CRTC_INFO 20
+
+/**
+ * @brief xcb_randr_get_crtc_info_request_t
+ **/
+typedef struct xcb_randr_get_crtc_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+ xcb_timestamp_t config_timestamp;
+} xcb_randr_get_crtc_info_request_t;
+
+/**
+ * @brief xcb_randr_get_crtc_info_reply_t
+ **/
+typedef struct xcb_randr_get_crtc_info_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ xcb_randr_mode_t mode;
+ uint16_t rotation;
+ uint16_t rotations;
+ uint16_t num_outputs;
+ uint16_t num_possible_outputs;
+} xcb_randr_get_crtc_info_reply_t;
+
+/**
+ * @brief xcb_randr_set_crtc_config_cookie_t
+ **/
+typedef struct xcb_randr_set_crtc_config_cookie_t {
+ unsigned int sequence;
+} xcb_randr_set_crtc_config_cookie_t;
+
+/** Opcode for xcb_randr_set_crtc_config. */
+#define XCB_RANDR_SET_CRTC_CONFIG 21
+
+/**
+ * @brief xcb_randr_set_crtc_config_request_t
+ **/
+typedef struct xcb_randr_set_crtc_config_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ int16_t x;
+ int16_t y;
+ xcb_randr_mode_t mode;
+ uint16_t rotation;
+ uint8_t pad0[2];
+} xcb_randr_set_crtc_config_request_t;
+
+/**
+ * @brief xcb_randr_set_crtc_config_reply_t
+ **/
+typedef struct xcb_randr_set_crtc_config_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ uint8_t pad0[20];
+} xcb_randr_set_crtc_config_reply_t;
+
+/**
+ * @brief xcb_randr_get_crtc_gamma_size_cookie_t
+ **/
+typedef struct xcb_randr_get_crtc_gamma_size_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_crtc_gamma_size_cookie_t;
+
+/** Opcode for xcb_randr_get_crtc_gamma_size. */
+#define XCB_RANDR_GET_CRTC_GAMMA_SIZE 22
+
+/**
+ * @brief xcb_randr_get_crtc_gamma_size_request_t
+ **/
+typedef struct xcb_randr_get_crtc_gamma_size_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+} xcb_randr_get_crtc_gamma_size_request_t;
+
+/**
+ * @brief xcb_randr_get_crtc_gamma_size_reply_t
+ **/
+typedef struct xcb_randr_get_crtc_gamma_size_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t size;
+ uint8_t pad1[22];
+} xcb_randr_get_crtc_gamma_size_reply_t;
+
+/**
+ * @brief xcb_randr_get_crtc_gamma_cookie_t
+ **/
+typedef struct xcb_randr_get_crtc_gamma_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_crtc_gamma_cookie_t;
+
+/** Opcode for xcb_randr_get_crtc_gamma. */
+#define XCB_RANDR_GET_CRTC_GAMMA 23
+
+/**
+ * @brief xcb_randr_get_crtc_gamma_request_t
+ **/
+typedef struct xcb_randr_get_crtc_gamma_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+} xcb_randr_get_crtc_gamma_request_t;
+
+/**
+ * @brief xcb_randr_get_crtc_gamma_reply_t
+ **/
+typedef struct xcb_randr_get_crtc_gamma_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t size;
+ uint8_t pad1[22];
+} xcb_randr_get_crtc_gamma_reply_t;
+
+/** Opcode for xcb_randr_set_crtc_gamma. */
+#define XCB_RANDR_SET_CRTC_GAMMA 24
+
+/**
+ * @brief xcb_randr_set_crtc_gamma_request_t
+ **/
+typedef struct xcb_randr_set_crtc_gamma_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+ uint16_t size;
+ uint8_t pad0[2];
+} xcb_randr_set_crtc_gamma_request_t;
+
+/**
+ * @brief xcb_randr_get_screen_resources_current_cookie_t
+ **/
+typedef struct xcb_randr_get_screen_resources_current_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_screen_resources_current_cookie_t;
+
+/** Opcode for xcb_randr_get_screen_resources_current. */
+#define XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT 25
+
+/**
+ * @brief xcb_randr_get_screen_resources_current_request_t
+ **/
+typedef struct xcb_randr_get_screen_resources_current_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_get_screen_resources_current_request_t;
+
+/**
+ * @brief xcb_randr_get_screen_resources_current_reply_t
+ **/
+typedef struct xcb_randr_get_screen_resources_current_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ uint16_t num_crtcs;
+ uint16_t num_outputs;
+ uint16_t num_modes;
+ uint16_t names_len;
+ uint8_t pad1[8];
+} xcb_randr_get_screen_resources_current_reply_t;
+
+typedef enum xcb_randr_transform_t {
+ XCB_RANDR_TRANSFORM_UNIT = 1,
+ XCB_RANDR_TRANSFORM_SCALE_UP = 2,
+ XCB_RANDR_TRANSFORM_SCALE_DOWN = 4,
+ XCB_RANDR_TRANSFORM_PROJECTIVE = 8
+} xcb_randr_transform_t;
+
+/** Opcode for xcb_randr_set_crtc_transform. */
+#define XCB_RANDR_SET_CRTC_TRANSFORM 26
+
+/**
+ * @brief xcb_randr_set_crtc_transform_request_t
+ **/
+typedef struct xcb_randr_set_crtc_transform_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+ xcb_render_transform_t transform;
+ uint16_t filter_len;
+ uint8_t pad0[2];
+} xcb_randr_set_crtc_transform_request_t;
+
+/**
+ * @brief xcb_randr_get_crtc_transform_cookie_t
+ **/
+typedef struct xcb_randr_get_crtc_transform_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_crtc_transform_cookie_t;
+
+/** Opcode for xcb_randr_get_crtc_transform. */
+#define XCB_RANDR_GET_CRTC_TRANSFORM 27
+
+/**
+ * @brief xcb_randr_get_crtc_transform_request_t
+ **/
+typedef struct xcb_randr_get_crtc_transform_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+} xcb_randr_get_crtc_transform_request_t;
+
+/**
+ * @brief xcb_randr_get_crtc_transform_reply_t
+ **/
+typedef struct xcb_randr_get_crtc_transform_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_render_transform_t pending_transform;
+ uint8_t has_transforms;
+ uint8_t pad1[3];
+ xcb_render_transform_t current_transform;
+ uint8_t pad2[4];
+ uint16_t pending_len;
+ uint16_t pending_nparams;
+ uint16_t current_len;
+ uint16_t current_nparams;
+} xcb_randr_get_crtc_transform_reply_t;
+
+/**
+ * @brief xcb_randr_get_panning_cookie_t
+ **/
+typedef struct xcb_randr_get_panning_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_panning_cookie_t;
+
+/** Opcode for xcb_randr_get_panning. */
+#define XCB_RANDR_GET_PANNING 28
+
+/**
+ * @brief xcb_randr_get_panning_request_t
+ **/
+typedef struct xcb_randr_get_panning_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+} xcb_randr_get_panning_request_t;
+
+/**
+ * @brief xcb_randr_get_panning_reply_t
+ **/
+typedef struct xcb_randr_get_panning_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ uint16_t left;
+ uint16_t top;
+ uint16_t width;
+ uint16_t height;
+ uint16_t track_left;
+ uint16_t track_top;
+ uint16_t track_width;
+ uint16_t track_height;
+ int16_t border_left;
+ int16_t border_top;
+ int16_t border_right;
+ int16_t border_bottom;
+} xcb_randr_get_panning_reply_t;
+
+/**
+ * @brief xcb_randr_set_panning_cookie_t
+ **/
+typedef struct xcb_randr_set_panning_cookie_t {
+ unsigned int sequence;
+} xcb_randr_set_panning_cookie_t;
+
+/** Opcode for xcb_randr_set_panning. */
+#define XCB_RANDR_SET_PANNING 29
+
+/**
+ * @brief xcb_randr_set_panning_request_t
+ **/
+typedef struct xcb_randr_set_panning_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_crtc_t crtc;
+ xcb_timestamp_t timestamp;
+ uint16_t left;
+ uint16_t top;
+ uint16_t width;
+ uint16_t height;
+ uint16_t track_left;
+ uint16_t track_top;
+ uint16_t track_width;
+ uint16_t track_height;
+ int16_t border_left;
+ int16_t border_top;
+ int16_t border_right;
+ int16_t border_bottom;
+} xcb_randr_set_panning_request_t;
+
+/**
+ * @brief xcb_randr_set_panning_reply_t
+ **/
+typedef struct xcb_randr_set_panning_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+} xcb_randr_set_panning_reply_t;
+
+/** Opcode for xcb_randr_set_output_primary. */
+#define XCB_RANDR_SET_OUTPUT_PRIMARY 30
+
+/**
+ * @brief xcb_randr_set_output_primary_request_t
+ **/
+typedef struct xcb_randr_set_output_primary_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_randr_output_t output;
+} xcb_randr_set_output_primary_request_t;
+
+/**
+ * @brief xcb_randr_get_output_primary_cookie_t
+ **/
+typedef struct xcb_randr_get_output_primary_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_output_primary_cookie_t;
+
+/** Opcode for xcb_randr_get_output_primary. */
+#define XCB_RANDR_GET_OUTPUT_PRIMARY 31
+
+/**
+ * @brief xcb_randr_get_output_primary_request_t
+ **/
+typedef struct xcb_randr_get_output_primary_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_get_output_primary_request_t;
+
+/**
+ * @brief xcb_randr_get_output_primary_reply_t
+ **/
+typedef struct xcb_randr_get_output_primary_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_randr_output_t output;
+} xcb_randr_get_output_primary_reply_t;
+
+/**
+ * @brief xcb_randr_get_providers_cookie_t
+ **/
+typedef struct xcb_randr_get_providers_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_providers_cookie_t;
+
+/** Opcode for xcb_randr_get_providers. */
+#define XCB_RANDR_GET_PROVIDERS 32
+
+/**
+ * @brief xcb_randr_get_providers_request_t
+ **/
+typedef struct xcb_randr_get_providers_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_get_providers_request_t;
+
+/**
+ * @brief xcb_randr_get_providers_reply_t
+ **/
+typedef struct xcb_randr_get_providers_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ uint16_t num_providers;
+ uint8_t pad1[18];
+} xcb_randr_get_providers_reply_t;
+
+typedef enum xcb_randr_provider_capability_t {
+ XCB_RANDR_PROVIDER_CAPABILITY_SOURCE_OUTPUT = 1,
+ XCB_RANDR_PROVIDER_CAPABILITY_SINK_OUTPUT = 2,
+ XCB_RANDR_PROVIDER_CAPABILITY_SOURCE_OFFLOAD = 4,
+ XCB_RANDR_PROVIDER_CAPABILITY_SINK_OFFLOAD = 8
+} xcb_randr_provider_capability_t;
+
+/**
+ * @brief xcb_randr_get_provider_info_cookie_t
+ **/
+typedef struct xcb_randr_get_provider_info_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_provider_info_cookie_t;
+
+/** Opcode for xcb_randr_get_provider_info. */
+#define XCB_RANDR_GET_PROVIDER_INFO 33
+
+/**
+ * @brief xcb_randr_get_provider_info_request_t
+ **/
+typedef struct xcb_randr_get_provider_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_timestamp_t config_timestamp;
+} xcb_randr_get_provider_info_request_t;
+
+/**
+ * @brief xcb_randr_get_provider_info_reply_t
+ **/
+typedef struct xcb_randr_get_provider_info_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ uint32_t capabilities;
+ uint16_t num_crtcs;
+ uint16_t num_outputs;
+ uint16_t num_associated_providers;
+ uint16_t name_len;
+ uint8_t pad0[8];
+} xcb_randr_get_provider_info_reply_t;
+
+/** Opcode for xcb_randr_set_provider_offload_sink. */
+#define XCB_RANDR_SET_PROVIDER_OFFLOAD_SINK 34
+
+/**
+ * @brief xcb_randr_set_provider_offload_sink_request_t
+ **/
+typedef struct xcb_randr_set_provider_offload_sink_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_randr_provider_t sink_provider;
+ xcb_timestamp_t config_timestamp;
+} xcb_randr_set_provider_offload_sink_request_t;
+
+/** Opcode for xcb_randr_set_provider_output_source. */
+#define XCB_RANDR_SET_PROVIDER_OUTPUT_SOURCE 35
+
+/**
+ * @brief xcb_randr_set_provider_output_source_request_t
+ **/
+typedef struct xcb_randr_set_provider_output_source_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_randr_provider_t source_provider;
+ xcb_timestamp_t config_timestamp;
+} xcb_randr_set_provider_output_source_request_t;
+
+/**
+ * @brief xcb_randr_list_provider_properties_cookie_t
+ **/
+typedef struct xcb_randr_list_provider_properties_cookie_t {
+ unsigned int sequence;
+} xcb_randr_list_provider_properties_cookie_t;
+
+/** Opcode for xcb_randr_list_provider_properties. */
+#define XCB_RANDR_LIST_PROVIDER_PROPERTIES 36
+
+/**
+ * @brief xcb_randr_list_provider_properties_request_t
+ **/
+typedef struct xcb_randr_list_provider_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+} xcb_randr_list_provider_properties_request_t;
+
+/**
+ * @brief xcb_randr_list_provider_properties_reply_t
+ **/
+typedef struct xcb_randr_list_provider_properties_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_atoms;
+ uint8_t pad1[22];
+} xcb_randr_list_provider_properties_reply_t;
+
+/**
+ * @brief xcb_randr_query_provider_property_cookie_t
+ **/
+typedef struct xcb_randr_query_provider_property_cookie_t {
+ unsigned int sequence;
+} xcb_randr_query_provider_property_cookie_t;
+
+/** Opcode for xcb_randr_query_provider_property. */
+#define XCB_RANDR_QUERY_PROVIDER_PROPERTY 37
+
+/**
+ * @brief xcb_randr_query_provider_property_request_t
+ **/
+typedef struct xcb_randr_query_provider_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_atom_t property;
+} xcb_randr_query_provider_property_request_t;
+
+/**
+ * @brief xcb_randr_query_provider_property_reply_t
+ **/
+typedef struct xcb_randr_query_provider_property_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pending;
+ uint8_t range;
+ uint8_t immutable;
+ uint8_t pad1[21];
+} xcb_randr_query_provider_property_reply_t;
+
+/** Opcode for xcb_randr_configure_provider_property. */
+#define XCB_RANDR_CONFIGURE_PROVIDER_PROPERTY 38
+
+/**
+ * @brief xcb_randr_configure_provider_property_request_t
+ **/
+typedef struct xcb_randr_configure_provider_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_atom_t property;
+ uint8_t pending;
+ uint8_t range;
+ uint8_t pad0[2];
+} xcb_randr_configure_provider_property_request_t;
+
+/** Opcode for xcb_randr_change_provider_property. */
+#define XCB_RANDR_CHANGE_PROVIDER_PROPERTY 39
+
+/**
+ * @brief xcb_randr_change_provider_property_request_t
+ **/
+typedef struct xcb_randr_change_provider_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint8_t format;
+ uint8_t mode;
+ uint8_t pad0[2];
+ uint32_t num_items;
+} xcb_randr_change_provider_property_request_t;
+
+/** Opcode for xcb_randr_delete_provider_property. */
+#define XCB_RANDR_DELETE_PROVIDER_PROPERTY 40
+
+/**
+ * @brief xcb_randr_delete_provider_property_request_t
+ **/
+typedef struct xcb_randr_delete_provider_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_atom_t property;
+} xcb_randr_delete_provider_property_request_t;
+
+/**
+ * @brief xcb_randr_get_provider_property_cookie_t
+ **/
+typedef struct xcb_randr_get_provider_property_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_provider_property_cookie_t;
+
+/** Opcode for xcb_randr_get_provider_property. */
+#define XCB_RANDR_GET_PROVIDER_PROPERTY 41
+
+/**
+ * @brief xcb_randr_get_provider_property_request_t
+ **/
+typedef struct xcb_randr_get_provider_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_provider_t provider;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint32_t long_offset;
+ uint32_t long_length;
+ uint8_t _delete;
+ uint8_t pending;
+ uint8_t pad0[2];
+} xcb_randr_get_provider_property_request_t;
+
+/**
+ * @brief xcb_randr_get_provider_property_reply_t
+ **/
+typedef struct xcb_randr_get_provider_property_reply_t {
+ uint8_t response_type;
+ uint8_t format;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t type;
+ uint32_t bytes_after;
+ uint32_t num_items;
+ uint8_t pad0[12];
+} xcb_randr_get_provider_property_reply_t;
+
+/** Opcode for xcb_randr_screen_change_notify. */
+#define XCB_RANDR_SCREEN_CHANGE_NOTIFY 0
+
+/**
+ * @brief xcb_randr_screen_change_notify_event_t
+ **/
+typedef struct xcb_randr_screen_change_notify_event_t {
+ uint8_t response_type;
+ uint8_t rotation;
+ uint16_t sequence;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ xcb_window_t root;
+ xcb_window_t request_window;
+ uint16_t sizeID;
+ uint16_t subpixel_order;
+ uint16_t width;
+ uint16_t height;
+ uint16_t mwidth;
+ uint16_t mheight;
+} xcb_randr_screen_change_notify_event_t;
+
+typedef enum xcb_randr_notify_t {
+ XCB_RANDR_NOTIFY_CRTC_CHANGE = 0,
+ XCB_RANDR_NOTIFY_OUTPUT_CHANGE = 1,
+ XCB_RANDR_NOTIFY_OUTPUT_PROPERTY = 2,
+ XCB_RANDR_NOTIFY_PROVIDER_CHANGE = 3,
+ XCB_RANDR_NOTIFY_PROVIDER_PROPERTY = 4,
+ XCB_RANDR_NOTIFY_RESOURCE_CHANGE = 5,
+ XCB_RANDR_NOTIFY_LEASE = 6
+} xcb_randr_notify_t;
+
+/**
+ * @brief xcb_randr_crtc_change_t
+ **/
+typedef struct xcb_randr_crtc_change_t {
+ xcb_timestamp_t timestamp;
+ xcb_window_t window;
+ xcb_randr_crtc_t crtc;
+ xcb_randr_mode_t mode;
+ uint16_t rotation;
+ uint8_t pad0[2];
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+} xcb_randr_crtc_change_t;
+
+/**
+ * @brief xcb_randr_crtc_change_iterator_t
+ **/
+typedef struct xcb_randr_crtc_change_iterator_t {
+ xcb_randr_crtc_change_t *data;
+ int rem;
+ int index;
+} xcb_randr_crtc_change_iterator_t;
+
+/**
+ * @brief xcb_randr_output_change_t
+ **/
+typedef struct xcb_randr_output_change_t {
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t config_timestamp;
+ xcb_window_t window;
+ xcb_randr_output_t output;
+ xcb_randr_crtc_t crtc;
+ xcb_randr_mode_t mode;
+ uint16_t rotation;
+ uint8_t connection;
+ uint8_t subpixel_order;
+} xcb_randr_output_change_t;
+
+/**
+ * @brief xcb_randr_output_change_iterator_t
+ **/
+typedef struct xcb_randr_output_change_iterator_t {
+ xcb_randr_output_change_t *data;
+ int rem;
+ int index;
+} xcb_randr_output_change_iterator_t;
+
+/**
+ * @brief xcb_randr_output_property_t
+ **/
+typedef struct xcb_randr_output_property_t {
+ xcb_window_t window;
+ xcb_randr_output_t output;
+ xcb_atom_t atom;
+ xcb_timestamp_t timestamp;
+ uint8_t status;
+ uint8_t pad0[11];
+} xcb_randr_output_property_t;
+
+/**
+ * @brief xcb_randr_output_property_iterator_t
+ **/
+typedef struct xcb_randr_output_property_iterator_t {
+ xcb_randr_output_property_t *data;
+ int rem;
+ int index;
+} xcb_randr_output_property_iterator_t;
+
+/**
+ * @brief xcb_randr_provider_change_t
+ **/
+typedef struct xcb_randr_provider_change_t {
+ xcb_timestamp_t timestamp;
+ xcb_window_t window;
+ xcb_randr_provider_t provider;
+ uint8_t pad0[16];
+} xcb_randr_provider_change_t;
+
+/**
+ * @brief xcb_randr_provider_change_iterator_t
+ **/
+typedef struct xcb_randr_provider_change_iterator_t {
+ xcb_randr_provider_change_t *data;
+ int rem;
+ int index;
+} xcb_randr_provider_change_iterator_t;
+
+/**
+ * @brief xcb_randr_provider_property_t
+ **/
+typedef struct xcb_randr_provider_property_t {
+ xcb_window_t window;
+ xcb_randr_provider_t provider;
+ xcb_atom_t atom;
+ xcb_timestamp_t timestamp;
+ uint8_t state;
+ uint8_t pad0[11];
+} xcb_randr_provider_property_t;
+
+/**
+ * @brief xcb_randr_provider_property_iterator_t
+ **/
+typedef struct xcb_randr_provider_property_iterator_t {
+ xcb_randr_provider_property_t *data;
+ int rem;
+ int index;
+} xcb_randr_provider_property_iterator_t;
+
+/**
+ * @brief xcb_randr_resource_change_t
+ **/
+typedef struct xcb_randr_resource_change_t {
+ xcb_timestamp_t timestamp;
+ xcb_window_t window;
+ uint8_t pad0[20];
+} xcb_randr_resource_change_t;
+
+/**
+ * @brief xcb_randr_resource_change_iterator_t
+ **/
+typedef struct xcb_randr_resource_change_iterator_t {
+ xcb_randr_resource_change_t *data;
+ int rem;
+ int index;
+} xcb_randr_resource_change_iterator_t;
+
+/**
+ * @brief xcb_randr_monitor_info_t
+ **/
+typedef struct xcb_randr_monitor_info_t {
+ xcb_atom_t name;
+ uint8_t primary;
+ uint8_t automatic;
+ uint16_t nOutput;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint32_t width_in_millimeters;
+ uint32_t height_in_millimeters;
+} xcb_randr_monitor_info_t;
+
+/**
+ * @brief xcb_randr_monitor_info_iterator_t
+ **/
+typedef struct xcb_randr_monitor_info_iterator_t {
+ xcb_randr_monitor_info_t *data;
+ int rem;
+ int index;
+} xcb_randr_monitor_info_iterator_t;
+
+/**
+ * @brief xcb_randr_get_monitors_cookie_t
+ **/
+typedef struct xcb_randr_get_monitors_cookie_t {
+ unsigned int sequence;
+} xcb_randr_get_monitors_cookie_t;
+
+/** Opcode for xcb_randr_get_monitors. */
+#define XCB_RANDR_GET_MONITORS 42
+
+/**
+ * @brief xcb_randr_get_monitors_request_t
+ **/
+typedef struct xcb_randr_get_monitors_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint8_t get_active;
+} xcb_randr_get_monitors_request_t;
+
+/**
+ * @brief xcb_randr_get_monitors_reply_t
+ **/
+typedef struct xcb_randr_get_monitors_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_timestamp_t timestamp;
+ uint32_t nMonitors;
+ uint32_t nOutputs;
+ uint8_t pad1[12];
+} xcb_randr_get_monitors_reply_t;
+
+/** Opcode for xcb_randr_set_monitor. */
+#define XCB_RANDR_SET_MONITOR 43
+
+/**
+ * @brief xcb_randr_set_monitor_request_t
+ **/
+typedef struct xcb_randr_set_monitor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_randr_set_monitor_request_t;
+
+/** Opcode for xcb_randr_delete_monitor. */
+#define XCB_RANDR_DELETE_MONITOR 44
+
+/**
+ * @brief xcb_randr_delete_monitor_request_t
+ **/
+typedef struct xcb_randr_delete_monitor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t name;
+} xcb_randr_delete_monitor_request_t;
+
+/**
+ * @brief xcb_randr_create_lease_cookie_t
+ **/
+typedef struct xcb_randr_create_lease_cookie_t {
+ unsigned int sequence;
+} xcb_randr_create_lease_cookie_t;
+
+/** Opcode for xcb_randr_create_lease. */
+#define XCB_RANDR_CREATE_LEASE 45
+
+/**
+ * @brief xcb_randr_create_lease_request_t
+ **/
+typedef struct xcb_randr_create_lease_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_randr_lease_t lid;
+ uint16_t num_crtcs;
+ uint16_t num_outputs;
+} xcb_randr_create_lease_request_t;
+
+/**
+ * @brief xcb_randr_create_lease_reply_t
+ **/
+typedef struct xcb_randr_create_lease_reply_t {
+ uint8_t response_type;
+ uint8_t nfd;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_randr_create_lease_reply_t;
+
+/** Opcode for xcb_randr_free_lease. */
+#define XCB_RANDR_FREE_LEASE 46
+
+/**
+ * @brief xcb_randr_free_lease_request_t
+ **/
+typedef struct xcb_randr_free_lease_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_randr_lease_t lid;
+ uint8_t terminate;
+} xcb_randr_free_lease_request_t;
+
+/**
+ * @brief xcb_randr_lease_notify_t
+ **/
+typedef struct xcb_randr_lease_notify_t {
+ xcb_timestamp_t timestamp;
+ xcb_window_t window;
+ xcb_randr_lease_t lease;
+ uint8_t created;
+ uint8_t pad0[15];
+} xcb_randr_lease_notify_t;
+
+/**
+ * @brief xcb_randr_lease_notify_iterator_t
+ **/
+typedef struct xcb_randr_lease_notify_iterator_t {
+ xcb_randr_lease_notify_t *data;
+ int rem;
+ int index;
+} xcb_randr_lease_notify_iterator_t;
+
+/**
+ * @brief xcb_randr_notify_data_t
+ **/
+typedef union xcb_randr_notify_data_t {
+ xcb_randr_crtc_change_t cc;
+ xcb_randr_output_change_t oc;
+ xcb_randr_output_property_t op;
+ xcb_randr_provider_change_t pc;
+ xcb_randr_provider_property_t pp;
+ xcb_randr_resource_change_t rc;
+ xcb_randr_lease_notify_t lc;
+} xcb_randr_notify_data_t;
+
+/**
+ * @brief xcb_randr_notify_data_iterator_t
+ **/
+typedef struct xcb_randr_notify_data_iterator_t {
+ xcb_randr_notify_data_t *data;
+ int rem;
+ int index;
+} xcb_randr_notify_data_iterator_t;
+
+/** Opcode for xcb_randr_notify. */
+#define XCB_RANDR_NOTIFY 1
+
+/**
+ * @brief xcb_randr_notify_event_t
+ **/
+typedef struct xcb_randr_notify_event_t {
+ uint8_t response_type;
+ uint8_t subCode;
+ uint16_t sequence;
+ xcb_randr_notify_data_t u;
+} xcb_randr_notify_event_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_mode_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_mode_t)
+ */
+void
+xcb_randr_mode_next (xcb_randr_mode_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_mode_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_mode_end (xcb_randr_mode_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_crtc_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_crtc_t)
+ */
+void
+xcb_randr_crtc_next (xcb_randr_crtc_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_crtc_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_crtc_end (xcb_randr_crtc_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_output_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_output_t)
+ */
+void
+xcb_randr_output_next (xcb_randr_output_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_output_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_output_end (xcb_randr_output_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_provider_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_provider_t)
+ */
+void
+xcb_randr_provider_next (xcb_randr_provider_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_provider_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_provider_end (xcb_randr_provider_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_lease_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_lease_t)
+ */
+void
+xcb_randr_lease_next (xcb_randr_lease_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_lease_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_lease_end (xcb_randr_lease_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_screen_size_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_screen_size_t)
+ */
+void
+xcb_randr_screen_size_next (xcb_randr_screen_size_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_screen_size_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_screen_size_end (xcb_randr_screen_size_iterator_t i);
+
+int
+xcb_randr_refresh_rates_sizeof (const void *_buffer);
+
+uint16_t *
+xcb_randr_refresh_rates_rates (const xcb_randr_refresh_rates_t *R);
+
+int
+xcb_randr_refresh_rates_rates_length (const xcb_randr_refresh_rates_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_refresh_rates_rates_end (const xcb_randr_refresh_rates_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_refresh_rates_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_refresh_rates_t)
+ */
+void
+xcb_randr_refresh_rates_next (xcb_randr_refresh_rates_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_refresh_rates_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_refresh_rates_end (xcb_randr_refresh_rates_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_query_version_cookie_t
+xcb_randr_query_version (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_query_version_cookie_t
+xcb_randr_query_version_unchecked (xcb_connection_t *c,
+ uint32_t major_version,
+ uint32_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_query_version_reply_t *
+xcb_randr_query_version_reply (xcb_connection_t *c,
+ xcb_randr_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_set_screen_config_cookie_t
+xcb_randr_set_screen_config (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t timestamp,
+ xcb_timestamp_t config_timestamp,
+ uint16_t sizeID,
+ uint16_t rotation,
+ uint16_t rate);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_set_screen_config_cookie_t
+xcb_randr_set_screen_config_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t timestamp,
+ xcb_timestamp_t config_timestamp,
+ uint16_t sizeID,
+ uint16_t rotation,
+ uint16_t rate);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_set_screen_config_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_set_screen_config_reply_t *
+xcb_randr_set_screen_config_reply (xcb_connection_t *c,
+ xcb_randr_set_screen_config_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_select_input_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t enable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_select_input (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t enable);
+
+int
+xcb_randr_get_screen_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_screen_info_cookie_t
+xcb_randr_get_screen_info (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_screen_info_cookie_t
+xcb_randr_get_screen_info_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_randr_screen_size_t *
+xcb_randr_get_screen_info_sizes (const xcb_randr_get_screen_info_reply_t *R);
+
+int
+xcb_randr_get_screen_info_sizes_length (const xcb_randr_get_screen_info_reply_t *R);
+
+xcb_randr_screen_size_iterator_t
+xcb_randr_get_screen_info_sizes_iterator (const xcb_randr_get_screen_info_reply_t *R);
+
+int
+xcb_randr_get_screen_info_rates_length (const xcb_randr_get_screen_info_reply_t *R);
+
+xcb_randr_refresh_rates_iterator_t
+xcb_randr_get_screen_info_rates_iterator (const xcb_randr_get_screen_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_screen_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_screen_info_reply_t *
+xcb_randr_get_screen_info_reply (xcb_connection_t *c,
+ xcb_randr_get_screen_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_screen_size_range_cookie_t
+xcb_randr_get_screen_size_range (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_screen_size_range_cookie_t
+xcb_randr_get_screen_size_range_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_screen_size_range_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_screen_size_range_reply_t *
+xcb_randr_get_screen_size_range_reply (xcb_connection_t *c,
+ xcb_randr_get_screen_size_range_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_screen_size_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t width,
+ uint16_t height,
+ uint32_t mm_width,
+ uint32_t mm_height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_screen_size (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t width,
+ uint16_t height,
+ uint32_t mm_width,
+ uint32_t mm_height);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_mode_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_mode_info_t)
+ */
+void
+xcb_randr_mode_info_next (xcb_randr_mode_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_mode_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_mode_info_end (xcb_randr_mode_info_iterator_t i);
+
+int
+xcb_randr_get_screen_resources_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_screen_resources_cookie_t
+xcb_randr_get_screen_resources (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_screen_resources_cookie_t
+xcb_randr_get_screen_resources_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_randr_crtc_t *
+xcb_randr_get_screen_resources_crtcs (const xcb_randr_get_screen_resources_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_crtcs_length (const xcb_randr_get_screen_resources_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_screen_resources_crtcs_end (const xcb_randr_get_screen_resources_reply_t *R);
+
+xcb_randr_output_t *
+xcb_randr_get_screen_resources_outputs (const xcb_randr_get_screen_resources_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_outputs_length (const xcb_randr_get_screen_resources_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_screen_resources_outputs_end (const xcb_randr_get_screen_resources_reply_t *R);
+
+xcb_randr_mode_info_t *
+xcb_randr_get_screen_resources_modes (const xcb_randr_get_screen_resources_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_modes_length (const xcb_randr_get_screen_resources_reply_t *R);
+
+xcb_randr_mode_info_iterator_t
+xcb_randr_get_screen_resources_modes_iterator (const xcb_randr_get_screen_resources_reply_t *R);
+
+uint8_t *
+xcb_randr_get_screen_resources_names (const xcb_randr_get_screen_resources_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_names_length (const xcb_randr_get_screen_resources_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_screen_resources_names_end (const xcb_randr_get_screen_resources_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_screen_resources_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_screen_resources_reply_t *
+xcb_randr_get_screen_resources_reply (xcb_connection_t *c,
+ xcb_randr_get_screen_resources_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_get_output_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_output_info_cookie_t
+xcb_randr_get_output_info (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_timestamp_t config_timestamp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_output_info_cookie_t
+xcb_randr_get_output_info_unchecked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_timestamp_t config_timestamp);
+
+xcb_randr_crtc_t *
+xcb_randr_get_output_info_crtcs (const xcb_randr_get_output_info_reply_t *R);
+
+int
+xcb_randr_get_output_info_crtcs_length (const xcb_randr_get_output_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_output_info_crtcs_end (const xcb_randr_get_output_info_reply_t *R);
+
+xcb_randr_mode_t *
+xcb_randr_get_output_info_modes (const xcb_randr_get_output_info_reply_t *R);
+
+int
+xcb_randr_get_output_info_modes_length (const xcb_randr_get_output_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_output_info_modes_end (const xcb_randr_get_output_info_reply_t *R);
+
+xcb_randr_output_t *
+xcb_randr_get_output_info_clones (const xcb_randr_get_output_info_reply_t *R);
+
+int
+xcb_randr_get_output_info_clones_length (const xcb_randr_get_output_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_output_info_clones_end (const xcb_randr_get_output_info_reply_t *R);
+
+uint8_t *
+xcb_randr_get_output_info_name (const xcb_randr_get_output_info_reply_t *R);
+
+int
+xcb_randr_get_output_info_name_length (const xcb_randr_get_output_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_output_info_name_end (const xcb_randr_get_output_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_output_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_output_info_reply_t *
+xcb_randr_get_output_info_reply (xcb_connection_t *c,
+ xcb_randr_get_output_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_list_output_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_list_output_properties_cookie_t
+xcb_randr_list_output_properties (xcb_connection_t *c,
+ xcb_randr_output_t output);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_list_output_properties_cookie_t
+xcb_randr_list_output_properties_unchecked (xcb_connection_t *c,
+ xcb_randr_output_t output);
+
+xcb_atom_t *
+xcb_randr_list_output_properties_atoms (const xcb_randr_list_output_properties_reply_t *R);
+
+int
+xcb_randr_list_output_properties_atoms_length (const xcb_randr_list_output_properties_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_list_output_properties_atoms_end (const xcb_randr_list_output_properties_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_list_output_properties_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_list_output_properties_reply_t *
+xcb_randr_list_output_properties_reply (xcb_connection_t *c,
+ xcb_randr_list_output_properties_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_query_output_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_query_output_property_cookie_t
+xcb_randr_query_output_property (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_query_output_property_cookie_t
+xcb_randr_query_output_property_unchecked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property);
+
+int32_t *
+xcb_randr_query_output_property_valid_values (const xcb_randr_query_output_property_reply_t *R);
+
+int
+xcb_randr_query_output_property_valid_values_length (const xcb_randr_query_output_property_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_query_output_property_valid_values_end (const xcb_randr_query_output_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_query_output_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_query_output_property_reply_t *
+xcb_randr_query_output_property_reply (xcb_connection_t *c,
+ xcb_randr_query_output_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_configure_output_property_sizeof (const void *_buffer,
+ uint32_t values_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_configure_output_property_checked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property,
+ uint8_t pending,
+ uint8_t range,
+ uint32_t values_len,
+ const int32_t *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_configure_output_property (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property,
+ uint8_t pending,
+ uint8_t range,
+ uint32_t values_len,
+ const int32_t *values);
+
+int32_t *
+xcb_randr_configure_output_property_values (const xcb_randr_configure_output_property_request_t *R);
+
+int
+xcb_randr_configure_output_property_values_length (const xcb_randr_configure_output_property_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_configure_output_property_values_end (const xcb_randr_configure_output_property_request_t *R);
+
+int
+xcb_randr_change_output_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_change_output_property_checked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_units,
+ const void *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_change_output_property (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_units,
+ const void *data);
+
+void *
+xcb_randr_change_output_property_data (const xcb_randr_change_output_property_request_t *R);
+
+int
+xcb_randr_change_output_property_data_length (const xcb_randr_change_output_property_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_change_output_property_data_end (const xcb_randr_change_output_property_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_delete_output_property_checked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_delete_output_property (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property);
+
+int
+xcb_randr_get_output_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_output_property_cookie_t
+xcb_randr_get_output_property (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t long_offset,
+ uint32_t long_length,
+ uint8_t _delete,
+ uint8_t pending);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_output_property_cookie_t
+xcb_randr_get_output_property_unchecked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t long_offset,
+ uint32_t long_length,
+ uint8_t _delete,
+ uint8_t pending);
+
+uint8_t *
+xcb_randr_get_output_property_data (const xcb_randr_get_output_property_reply_t *R);
+
+int
+xcb_randr_get_output_property_data_length (const xcb_randr_get_output_property_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_output_property_data_end (const xcb_randr_get_output_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_output_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_output_property_reply_t *
+xcb_randr_get_output_property_reply (xcb_connection_t *c,
+ xcb_randr_get_output_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_create_mode_sizeof (const void *_buffer,
+ uint32_t name_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_create_mode_cookie_t
+xcb_randr_create_mode (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_mode_info_t mode_info,
+ uint32_t name_len,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_create_mode_cookie_t
+xcb_randr_create_mode_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_mode_info_t mode_info,
+ uint32_t name_len,
+ const char *name);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_create_mode_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_create_mode_reply_t *
+xcb_randr_create_mode_reply (xcb_connection_t *c,
+ xcb_randr_create_mode_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_destroy_mode_checked (xcb_connection_t *c,
+ xcb_randr_mode_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_destroy_mode (xcb_connection_t *c,
+ xcb_randr_mode_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_add_output_mode_checked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_randr_mode_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_add_output_mode (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_randr_mode_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_delete_output_mode_checked (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_randr_mode_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_delete_output_mode (xcb_connection_t *c,
+ xcb_randr_output_t output,
+ xcb_randr_mode_t mode);
+
+int
+xcb_randr_get_crtc_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_crtc_info_cookie_t
+xcb_randr_get_crtc_info (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_timestamp_t config_timestamp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_crtc_info_cookie_t
+xcb_randr_get_crtc_info_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_timestamp_t config_timestamp);
+
+xcb_randr_output_t *
+xcb_randr_get_crtc_info_outputs (const xcb_randr_get_crtc_info_reply_t *R);
+
+int
+xcb_randr_get_crtc_info_outputs_length (const xcb_randr_get_crtc_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_info_outputs_end (const xcb_randr_get_crtc_info_reply_t *R);
+
+xcb_randr_output_t *
+xcb_randr_get_crtc_info_possible (const xcb_randr_get_crtc_info_reply_t *R);
+
+int
+xcb_randr_get_crtc_info_possible_length (const xcb_randr_get_crtc_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_info_possible_end (const xcb_randr_get_crtc_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_crtc_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_crtc_info_reply_t *
+xcb_randr_get_crtc_info_reply (xcb_connection_t *c,
+ xcb_randr_get_crtc_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_set_crtc_config_sizeof (const void *_buffer,
+ uint32_t outputs_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_set_crtc_config_cookie_t
+xcb_randr_set_crtc_config (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_timestamp_t timestamp,
+ xcb_timestamp_t config_timestamp,
+ int16_t x,
+ int16_t y,
+ xcb_randr_mode_t mode,
+ uint16_t rotation,
+ uint32_t outputs_len,
+ const xcb_randr_output_t *outputs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_set_crtc_config_cookie_t
+xcb_randr_set_crtc_config_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_timestamp_t timestamp,
+ xcb_timestamp_t config_timestamp,
+ int16_t x,
+ int16_t y,
+ xcb_randr_mode_t mode,
+ uint16_t rotation,
+ uint32_t outputs_len,
+ const xcb_randr_output_t *outputs);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_set_crtc_config_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_set_crtc_config_reply_t *
+xcb_randr_set_crtc_config_reply (xcb_connection_t *c,
+ xcb_randr_set_crtc_config_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_crtc_gamma_size_cookie_t
+xcb_randr_get_crtc_gamma_size (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_crtc_gamma_size_cookie_t
+xcb_randr_get_crtc_gamma_size_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_crtc_gamma_size_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_crtc_gamma_size_reply_t *
+xcb_randr_get_crtc_gamma_size_reply (xcb_connection_t *c,
+ xcb_randr_get_crtc_gamma_size_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_get_crtc_gamma_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_crtc_gamma_cookie_t
+xcb_randr_get_crtc_gamma (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_crtc_gamma_cookie_t
+xcb_randr_get_crtc_gamma_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+uint16_t *
+xcb_randr_get_crtc_gamma_red (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+int
+xcb_randr_get_crtc_gamma_red_length (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_gamma_red_end (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+uint16_t *
+xcb_randr_get_crtc_gamma_green (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+int
+xcb_randr_get_crtc_gamma_green_length (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_gamma_green_end (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+uint16_t *
+xcb_randr_get_crtc_gamma_blue (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+int
+xcb_randr_get_crtc_gamma_blue_length (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_gamma_blue_end (const xcb_randr_get_crtc_gamma_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_crtc_gamma_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_crtc_gamma_reply_t *
+xcb_randr_get_crtc_gamma_reply (xcb_connection_t *c,
+ xcb_randr_get_crtc_gamma_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_set_crtc_gamma_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_crtc_gamma_checked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ uint16_t size,
+ const uint16_t *red,
+ const uint16_t *green,
+ const uint16_t *blue);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_crtc_gamma (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ uint16_t size,
+ const uint16_t *red,
+ const uint16_t *green,
+ const uint16_t *blue);
+
+uint16_t *
+xcb_randr_set_crtc_gamma_red (const xcb_randr_set_crtc_gamma_request_t *R);
+
+int
+xcb_randr_set_crtc_gamma_red_length (const xcb_randr_set_crtc_gamma_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_set_crtc_gamma_red_end (const xcb_randr_set_crtc_gamma_request_t *R);
+
+uint16_t *
+xcb_randr_set_crtc_gamma_green (const xcb_randr_set_crtc_gamma_request_t *R);
+
+int
+xcb_randr_set_crtc_gamma_green_length (const xcb_randr_set_crtc_gamma_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_set_crtc_gamma_green_end (const xcb_randr_set_crtc_gamma_request_t *R);
+
+uint16_t *
+xcb_randr_set_crtc_gamma_blue (const xcb_randr_set_crtc_gamma_request_t *R);
+
+int
+xcb_randr_set_crtc_gamma_blue_length (const xcb_randr_set_crtc_gamma_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_set_crtc_gamma_blue_end (const xcb_randr_set_crtc_gamma_request_t *R);
+
+int
+xcb_randr_get_screen_resources_current_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_screen_resources_current_cookie_t
+xcb_randr_get_screen_resources_current (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_screen_resources_current_cookie_t
+xcb_randr_get_screen_resources_current_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_randr_crtc_t *
+xcb_randr_get_screen_resources_current_crtcs (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_current_crtcs_length (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_screen_resources_current_crtcs_end (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+xcb_randr_output_t *
+xcb_randr_get_screen_resources_current_outputs (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_current_outputs_length (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_screen_resources_current_outputs_end (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+xcb_randr_mode_info_t *
+xcb_randr_get_screen_resources_current_modes (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_current_modes_length (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+xcb_randr_mode_info_iterator_t
+xcb_randr_get_screen_resources_current_modes_iterator (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+uint8_t *
+xcb_randr_get_screen_resources_current_names (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+int
+xcb_randr_get_screen_resources_current_names_length (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_screen_resources_current_names_end (const xcb_randr_get_screen_resources_current_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_screen_resources_current_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_screen_resources_current_reply_t *
+xcb_randr_get_screen_resources_current_reply (xcb_connection_t *c,
+ xcb_randr_get_screen_resources_current_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_set_crtc_transform_sizeof (const void *_buffer,
+ uint32_t filter_params_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_crtc_transform_checked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_render_transform_t transform,
+ uint16_t filter_len,
+ const char *filter_name,
+ uint32_t filter_params_len,
+ const xcb_render_fixed_t *filter_params);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_crtc_transform (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_render_transform_t transform,
+ uint16_t filter_len,
+ const char *filter_name,
+ uint32_t filter_params_len,
+ const xcb_render_fixed_t *filter_params);
+
+char *
+xcb_randr_set_crtc_transform_filter_name (const xcb_randr_set_crtc_transform_request_t *R);
+
+int
+xcb_randr_set_crtc_transform_filter_name_length (const xcb_randr_set_crtc_transform_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_set_crtc_transform_filter_name_end (const xcb_randr_set_crtc_transform_request_t *R);
+
+xcb_render_fixed_t *
+xcb_randr_set_crtc_transform_filter_params (const xcb_randr_set_crtc_transform_request_t *R);
+
+int
+xcb_randr_set_crtc_transform_filter_params_length (const xcb_randr_set_crtc_transform_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_set_crtc_transform_filter_params_end (const xcb_randr_set_crtc_transform_request_t *R);
+
+int
+xcb_randr_get_crtc_transform_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_crtc_transform_cookie_t
+xcb_randr_get_crtc_transform (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_crtc_transform_cookie_t
+xcb_randr_get_crtc_transform_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+char *
+xcb_randr_get_crtc_transform_pending_filter_name (const xcb_randr_get_crtc_transform_reply_t *R);
+
+int
+xcb_randr_get_crtc_transform_pending_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_transform_pending_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R);
+
+xcb_render_fixed_t *
+xcb_randr_get_crtc_transform_pending_params (const xcb_randr_get_crtc_transform_reply_t *R);
+
+int
+xcb_randr_get_crtc_transform_pending_params_length (const xcb_randr_get_crtc_transform_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_transform_pending_params_end (const xcb_randr_get_crtc_transform_reply_t *R);
+
+char *
+xcb_randr_get_crtc_transform_current_filter_name (const xcb_randr_get_crtc_transform_reply_t *R);
+
+int
+xcb_randr_get_crtc_transform_current_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_transform_current_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R);
+
+xcb_render_fixed_t *
+xcb_randr_get_crtc_transform_current_params (const xcb_randr_get_crtc_transform_reply_t *R);
+
+int
+xcb_randr_get_crtc_transform_current_params_length (const xcb_randr_get_crtc_transform_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_crtc_transform_current_params_end (const xcb_randr_get_crtc_transform_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_crtc_transform_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_crtc_transform_reply_t *
+xcb_randr_get_crtc_transform_reply (xcb_connection_t *c,
+ xcb_randr_get_crtc_transform_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_panning_cookie_t
+xcb_randr_get_panning (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_panning_cookie_t
+xcb_randr_get_panning_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_panning_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_panning_reply_t *
+xcb_randr_get_panning_reply (xcb_connection_t *c,
+ xcb_randr_get_panning_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_set_panning_cookie_t
+xcb_randr_set_panning (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_timestamp_t timestamp,
+ uint16_t left,
+ uint16_t top,
+ uint16_t width,
+ uint16_t height,
+ uint16_t track_left,
+ uint16_t track_top,
+ uint16_t track_width,
+ uint16_t track_height,
+ int16_t border_left,
+ int16_t border_top,
+ int16_t border_right,
+ int16_t border_bottom);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_set_panning_cookie_t
+xcb_randr_set_panning_unchecked (xcb_connection_t *c,
+ xcb_randr_crtc_t crtc,
+ xcb_timestamp_t timestamp,
+ uint16_t left,
+ uint16_t top,
+ uint16_t width,
+ uint16_t height,
+ uint16_t track_left,
+ uint16_t track_top,
+ uint16_t track_width,
+ uint16_t track_height,
+ int16_t border_left,
+ int16_t border_top,
+ int16_t border_right,
+ int16_t border_bottom);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_set_panning_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_set_panning_reply_t *
+xcb_randr_set_panning_reply (xcb_connection_t *c,
+ xcb_randr_set_panning_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_output_primary_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_output_t output);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_output_primary (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_output_t output);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_output_primary_cookie_t
+xcb_randr_get_output_primary (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_output_primary_cookie_t
+xcb_randr_get_output_primary_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_output_primary_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_output_primary_reply_t *
+xcb_randr_get_output_primary_reply (xcb_connection_t *c,
+ xcb_randr_get_output_primary_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_get_providers_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_providers_cookie_t
+xcb_randr_get_providers (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_providers_cookie_t
+xcb_randr_get_providers_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_randr_provider_t *
+xcb_randr_get_providers_providers (const xcb_randr_get_providers_reply_t *R);
+
+int
+xcb_randr_get_providers_providers_length (const xcb_randr_get_providers_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_providers_providers_end (const xcb_randr_get_providers_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_providers_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_providers_reply_t *
+xcb_randr_get_providers_reply (xcb_connection_t *c,
+ xcb_randr_get_providers_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_get_provider_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_provider_info_cookie_t
+xcb_randr_get_provider_info (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_timestamp_t config_timestamp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_provider_info_cookie_t
+xcb_randr_get_provider_info_unchecked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_timestamp_t config_timestamp);
+
+xcb_randr_crtc_t *
+xcb_randr_get_provider_info_crtcs (const xcb_randr_get_provider_info_reply_t *R);
+
+int
+xcb_randr_get_provider_info_crtcs_length (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_provider_info_crtcs_end (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_randr_output_t *
+xcb_randr_get_provider_info_outputs (const xcb_randr_get_provider_info_reply_t *R);
+
+int
+xcb_randr_get_provider_info_outputs_length (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_provider_info_outputs_end (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_randr_provider_t *
+xcb_randr_get_provider_info_associated_providers (const xcb_randr_get_provider_info_reply_t *R);
+
+int
+xcb_randr_get_provider_info_associated_providers_length (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_provider_info_associated_providers_end (const xcb_randr_get_provider_info_reply_t *R);
+
+uint32_t *
+xcb_randr_get_provider_info_associated_capability (const xcb_randr_get_provider_info_reply_t *R);
+
+int
+xcb_randr_get_provider_info_associated_capability_length (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_provider_info_associated_capability_end (const xcb_randr_get_provider_info_reply_t *R);
+
+char *
+xcb_randr_get_provider_info_name (const xcb_randr_get_provider_info_reply_t *R);
+
+int
+xcb_randr_get_provider_info_name_length (const xcb_randr_get_provider_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_provider_info_name_end (const xcb_randr_get_provider_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_provider_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_provider_info_reply_t *
+xcb_randr_get_provider_info_reply (xcb_connection_t *c,
+ xcb_randr_get_provider_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_provider_offload_sink_checked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_randr_provider_t sink_provider,
+ xcb_timestamp_t config_timestamp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_provider_offload_sink (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_randr_provider_t sink_provider,
+ xcb_timestamp_t config_timestamp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_provider_output_source_checked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_randr_provider_t source_provider,
+ xcb_timestamp_t config_timestamp);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_provider_output_source (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_randr_provider_t source_provider,
+ xcb_timestamp_t config_timestamp);
+
+int
+xcb_randr_list_provider_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_list_provider_properties_cookie_t
+xcb_randr_list_provider_properties (xcb_connection_t *c,
+ xcb_randr_provider_t provider);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_list_provider_properties_cookie_t
+xcb_randr_list_provider_properties_unchecked (xcb_connection_t *c,
+ xcb_randr_provider_t provider);
+
+xcb_atom_t *
+xcb_randr_list_provider_properties_atoms (const xcb_randr_list_provider_properties_reply_t *R);
+
+int
+xcb_randr_list_provider_properties_atoms_length (const xcb_randr_list_provider_properties_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_list_provider_properties_atoms_end (const xcb_randr_list_provider_properties_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_list_provider_properties_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_list_provider_properties_reply_t *
+xcb_randr_list_provider_properties_reply (xcb_connection_t *c,
+ xcb_randr_list_provider_properties_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_query_provider_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_query_provider_property_cookie_t
+xcb_randr_query_provider_property (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_query_provider_property_cookie_t
+xcb_randr_query_provider_property_unchecked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property);
+
+int32_t *
+xcb_randr_query_provider_property_valid_values (const xcb_randr_query_provider_property_reply_t *R);
+
+int
+xcb_randr_query_provider_property_valid_values_length (const xcb_randr_query_provider_property_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_query_provider_property_valid_values_end (const xcb_randr_query_provider_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_query_provider_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_query_provider_property_reply_t *
+xcb_randr_query_provider_property_reply (xcb_connection_t *c,
+ xcb_randr_query_provider_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_configure_provider_property_sizeof (const void *_buffer,
+ uint32_t values_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_configure_provider_property_checked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property,
+ uint8_t pending,
+ uint8_t range,
+ uint32_t values_len,
+ const int32_t *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_configure_provider_property (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property,
+ uint8_t pending,
+ uint8_t range,
+ uint32_t values_len,
+ const int32_t *values);
+
+int32_t *
+xcb_randr_configure_provider_property_values (const xcb_randr_configure_provider_property_request_t *R);
+
+int
+xcb_randr_configure_provider_property_values_length (const xcb_randr_configure_provider_property_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_configure_provider_property_values_end (const xcb_randr_configure_provider_property_request_t *R);
+
+int
+xcb_randr_change_provider_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_change_provider_property_checked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_items,
+ const void *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_change_provider_property (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_items,
+ const void *data);
+
+void *
+xcb_randr_change_provider_property_data (const xcb_randr_change_provider_property_request_t *R);
+
+int
+xcb_randr_change_provider_property_data_length (const xcb_randr_change_provider_property_request_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_change_provider_property_data_end (const xcb_randr_change_provider_property_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_delete_provider_property_checked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_delete_provider_property (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property);
+
+int
+xcb_randr_get_provider_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_provider_property_cookie_t
+xcb_randr_get_provider_property (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t long_offset,
+ uint32_t long_length,
+ uint8_t _delete,
+ uint8_t pending);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_provider_property_cookie_t
+xcb_randr_get_provider_property_unchecked (xcb_connection_t *c,
+ xcb_randr_provider_t provider,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t long_offset,
+ uint32_t long_length,
+ uint8_t _delete,
+ uint8_t pending);
+
+void *
+xcb_randr_get_provider_property_data (const xcb_randr_get_provider_property_reply_t *R);
+
+int
+xcb_randr_get_provider_property_data_length (const xcb_randr_get_provider_property_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_get_provider_property_data_end (const xcb_randr_get_provider_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_provider_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_provider_property_reply_t *
+xcb_randr_get_provider_property_reply (xcb_connection_t *c,
+ xcb_randr_get_provider_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_crtc_change_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_crtc_change_t)
+ */
+void
+xcb_randr_crtc_change_next (xcb_randr_crtc_change_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_crtc_change_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_crtc_change_end (xcb_randr_crtc_change_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_output_change_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_output_change_t)
+ */
+void
+xcb_randr_output_change_next (xcb_randr_output_change_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_output_change_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_output_change_end (xcb_randr_output_change_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_output_property_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_output_property_t)
+ */
+void
+xcb_randr_output_property_next (xcb_randr_output_property_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_output_property_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_output_property_end (xcb_randr_output_property_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_provider_change_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_provider_change_t)
+ */
+void
+xcb_randr_provider_change_next (xcb_randr_provider_change_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_provider_change_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_provider_change_end (xcb_randr_provider_change_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_provider_property_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_provider_property_t)
+ */
+void
+xcb_randr_provider_property_next (xcb_randr_provider_property_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_provider_property_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_provider_property_end (xcb_randr_provider_property_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_resource_change_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_resource_change_t)
+ */
+void
+xcb_randr_resource_change_next (xcb_randr_resource_change_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_resource_change_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_resource_change_end (xcb_randr_resource_change_iterator_t i);
+
+int
+xcb_randr_monitor_info_sizeof (const void *_buffer);
+
+xcb_randr_output_t *
+xcb_randr_monitor_info_outputs (const xcb_randr_monitor_info_t *R);
+
+int
+xcb_randr_monitor_info_outputs_length (const xcb_randr_monitor_info_t *R);
+
+xcb_generic_iterator_t
+xcb_randr_monitor_info_outputs_end (const xcb_randr_monitor_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_monitor_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_monitor_info_t)
+ */
+void
+xcb_randr_monitor_info_next (xcb_randr_monitor_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_monitor_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_monitor_info_end (xcb_randr_monitor_info_iterator_t i);
+
+int
+xcb_randr_get_monitors_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_get_monitors_cookie_t
+xcb_randr_get_monitors (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t get_active);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_get_monitors_cookie_t
+xcb_randr_get_monitors_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint8_t get_active);
+
+int
+xcb_randr_get_monitors_monitors_length (const xcb_randr_get_monitors_reply_t *R);
+
+xcb_randr_monitor_info_iterator_t
+xcb_randr_get_monitors_monitors_iterator (const xcb_randr_get_monitors_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_get_monitors_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_get_monitors_reply_t *
+xcb_randr_get_monitors_reply (xcb_connection_t *c,
+ xcb_randr_get_monitors_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_randr_set_monitor_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_set_monitor_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_monitor_info_t *monitorinfo);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_set_monitor (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_monitor_info_t *monitorinfo);
+
+xcb_randr_monitor_info_t *
+xcb_randr_set_monitor_monitorinfo (const xcb_randr_set_monitor_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_delete_monitor_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_delete_monitor (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t name);
+
+int
+xcb_randr_create_lease_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_randr_create_lease_cookie_t
+xcb_randr_create_lease (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_lease_t lid,
+ uint16_t num_crtcs,
+ uint16_t num_outputs,
+ const xcb_randr_crtc_t *crtcs,
+ const xcb_randr_output_t *outputs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_randr_create_lease_cookie_t
+xcb_randr_create_lease_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_randr_lease_t lid,
+ uint16_t num_crtcs,
+ uint16_t num_outputs,
+ const xcb_randr_crtc_t *crtcs,
+ const xcb_randr_output_t *outputs);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_randr_create_lease_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_randr_create_lease_reply_t *
+xcb_randr_create_lease_reply (xcb_connection_t *c,
+ xcb_randr_create_lease_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Return the reply fds
+ * @param c The connection
+ * @param reply The reply
+ *
+ * Returns a pointer to the array of reply fds of the reply.
+ *
+ * The returned value points into the reply and must not be free().
+ * The fds are not managed by xcb. You must close() them before freeing the reply.
+ */
+int *
+xcb_randr_create_lease_reply_fds (xcb_connection_t *c /**< */,
+ xcb_randr_create_lease_reply_t *reply);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_randr_free_lease_checked (xcb_connection_t *c,
+ xcb_randr_lease_t lid,
+ uint8_t terminate);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_randr_free_lease (xcb_connection_t *c,
+ xcb_randr_lease_t lid,
+ uint8_t terminate);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_lease_notify_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_lease_notify_t)
+ */
+void
+xcb_randr_lease_notify_next (xcb_randr_lease_notify_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_lease_notify_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_lease_notify_end (xcb_randr_lease_notify_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_randr_notify_data_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_randr_notify_data_t)
+ */
+void
+xcb_randr_notify_data_next (xcb_randr_notify_data_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_randr_notify_data_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_randr_notify_data_end (xcb_randr_notify_data_iterator_t i);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/record.h b/depends/libxcb/include/xcb/record.h
new file mode 100644
index 0000000..cfd33f3
--- /dev/null
+++ b/depends/libxcb/include/xcb/record.h
@@ -0,0 +1,935 @@
+/*
+ * This file generated automatically from record.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Record_API XCB Record API
+ * @brief Record XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __RECORD_H
+#define __RECORD_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_RECORD_MAJOR_VERSION 1
+#define XCB_RECORD_MINOR_VERSION 13
+
+extern xcb_extension_t xcb_record_id;
+
+typedef uint32_t xcb_record_context_t;
+
+/**
+ * @brief xcb_record_context_iterator_t
+ **/
+typedef struct xcb_record_context_iterator_t {
+ xcb_record_context_t *data;
+ int rem;
+ int index;
+} xcb_record_context_iterator_t;
+
+/**
+ * @brief xcb_record_range_8_t
+ **/
+typedef struct xcb_record_range_8_t {
+ uint8_t first;
+ uint8_t last;
+} xcb_record_range_8_t;
+
+/**
+ * @brief xcb_record_range_8_iterator_t
+ **/
+typedef struct xcb_record_range_8_iterator_t {
+ xcb_record_range_8_t *data;
+ int rem;
+ int index;
+} xcb_record_range_8_iterator_t;
+
+/**
+ * @brief xcb_record_range_16_t
+ **/
+typedef struct xcb_record_range_16_t {
+ uint16_t first;
+ uint16_t last;
+} xcb_record_range_16_t;
+
+/**
+ * @brief xcb_record_range_16_iterator_t
+ **/
+typedef struct xcb_record_range_16_iterator_t {
+ xcb_record_range_16_t *data;
+ int rem;
+ int index;
+} xcb_record_range_16_iterator_t;
+
+/**
+ * @brief xcb_record_ext_range_t
+ **/
+typedef struct xcb_record_ext_range_t {
+ xcb_record_range_8_t major;
+ xcb_record_range_16_t minor;
+} xcb_record_ext_range_t;
+
+/**
+ * @brief xcb_record_ext_range_iterator_t
+ **/
+typedef struct xcb_record_ext_range_iterator_t {
+ xcb_record_ext_range_t *data;
+ int rem;
+ int index;
+} xcb_record_ext_range_iterator_t;
+
+/**
+ * @brief xcb_record_range_t
+ **/
+typedef struct xcb_record_range_t {
+ xcb_record_range_8_t core_requests;
+ xcb_record_range_8_t core_replies;
+ xcb_record_ext_range_t ext_requests;
+ xcb_record_ext_range_t ext_replies;
+ xcb_record_range_8_t delivered_events;
+ xcb_record_range_8_t device_events;
+ xcb_record_range_8_t errors;
+ uint8_t client_started;
+ uint8_t client_died;
+} xcb_record_range_t;
+
+/**
+ * @brief xcb_record_range_iterator_t
+ **/
+typedef struct xcb_record_range_iterator_t {
+ xcb_record_range_t *data;
+ int rem;
+ int index;
+} xcb_record_range_iterator_t;
+
+typedef uint8_t xcb_record_element_header_t;
+
+/**
+ * @brief xcb_record_element_header_iterator_t
+ **/
+typedef struct xcb_record_element_header_iterator_t {
+ xcb_record_element_header_t *data;
+ int rem;
+ int index;
+} xcb_record_element_header_iterator_t;
+
+typedef enum xcb_record_h_type_t {
+ XCB_RECORD_H_TYPE_FROM_SERVER_TIME = 1,
+ XCB_RECORD_H_TYPE_FROM_CLIENT_TIME = 2,
+ XCB_RECORD_H_TYPE_FROM_CLIENT_SEQUENCE = 4
+} xcb_record_h_type_t;
+
+typedef uint32_t xcb_record_client_spec_t;
+
+/**
+ * @brief xcb_record_client_spec_iterator_t
+ **/
+typedef struct xcb_record_client_spec_iterator_t {
+ xcb_record_client_spec_t *data;
+ int rem;
+ int index;
+} xcb_record_client_spec_iterator_t;
+
+typedef enum xcb_record_cs_t {
+ XCB_RECORD_CS_CURRENT_CLIENTS = 1,
+ XCB_RECORD_CS_FUTURE_CLIENTS = 2,
+ XCB_RECORD_CS_ALL_CLIENTS = 3
+} xcb_record_cs_t;
+
+/**
+ * @brief xcb_record_client_info_t
+ **/
+typedef struct xcb_record_client_info_t {
+ xcb_record_client_spec_t client_resource;
+ uint32_t num_ranges;
+} xcb_record_client_info_t;
+
+/**
+ * @brief xcb_record_client_info_iterator_t
+ **/
+typedef struct xcb_record_client_info_iterator_t {
+ xcb_record_client_info_t *data;
+ int rem;
+ int index;
+} xcb_record_client_info_iterator_t;
+
+/** Opcode for xcb_record_bad_context. */
+#define XCB_RECORD_BAD_CONTEXT 0
+
+/**
+ * @brief xcb_record_bad_context_error_t
+ **/
+typedef struct xcb_record_bad_context_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t invalid_record;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_record_bad_context_error_t;
+
+/**
+ * @brief xcb_record_query_version_cookie_t
+ **/
+typedef struct xcb_record_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_record_query_version_cookie_t;
+
+/** Opcode for xcb_record_query_version. */
+#define XCB_RECORD_QUERY_VERSION 0
+
+/**
+ * @brief xcb_record_query_version_request_t
+ **/
+typedef struct xcb_record_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+} xcb_record_query_version_request_t;
+
+/**
+ * @brief xcb_record_query_version_reply_t
+ **/
+typedef struct xcb_record_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+} xcb_record_query_version_reply_t;
+
+/** Opcode for xcb_record_create_context. */
+#define XCB_RECORD_CREATE_CONTEXT 1
+
+/**
+ * @brief xcb_record_create_context_request_t
+ **/
+typedef struct xcb_record_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+ xcb_record_element_header_t element_header;
+ uint8_t pad0[3];
+ uint32_t num_client_specs;
+ uint32_t num_ranges;
+} xcb_record_create_context_request_t;
+
+/** Opcode for xcb_record_register_clients. */
+#define XCB_RECORD_REGISTER_CLIENTS 2
+
+/**
+ * @brief xcb_record_register_clients_request_t
+ **/
+typedef struct xcb_record_register_clients_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+ xcb_record_element_header_t element_header;
+ uint8_t pad0[3];
+ uint32_t num_client_specs;
+ uint32_t num_ranges;
+} xcb_record_register_clients_request_t;
+
+/** Opcode for xcb_record_unregister_clients. */
+#define XCB_RECORD_UNREGISTER_CLIENTS 3
+
+/**
+ * @brief xcb_record_unregister_clients_request_t
+ **/
+typedef struct xcb_record_unregister_clients_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+ uint32_t num_client_specs;
+} xcb_record_unregister_clients_request_t;
+
+/**
+ * @brief xcb_record_get_context_cookie_t
+ **/
+typedef struct xcb_record_get_context_cookie_t {
+ unsigned int sequence;
+} xcb_record_get_context_cookie_t;
+
+/** Opcode for xcb_record_get_context. */
+#define XCB_RECORD_GET_CONTEXT 4
+
+/**
+ * @brief xcb_record_get_context_request_t
+ **/
+typedef struct xcb_record_get_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+} xcb_record_get_context_request_t;
+
+/**
+ * @brief xcb_record_get_context_reply_t
+ **/
+typedef struct xcb_record_get_context_reply_t {
+ uint8_t response_type;
+ uint8_t enabled;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_record_element_header_t element_header;
+ uint8_t pad0[3];
+ uint32_t num_intercepted_clients;
+ uint8_t pad1[16];
+} xcb_record_get_context_reply_t;
+
+/**
+ * @brief xcb_record_enable_context_cookie_t
+ **/
+typedef struct xcb_record_enable_context_cookie_t {
+ unsigned int sequence;
+} xcb_record_enable_context_cookie_t;
+
+/** Opcode for xcb_record_enable_context. */
+#define XCB_RECORD_ENABLE_CONTEXT 5
+
+/**
+ * @brief xcb_record_enable_context_request_t
+ **/
+typedef struct xcb_record_enable_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+} xcb_record_enable_context_request_t;
+
+/**
+ * @brief xcb_record_enable_context_reply_t
+ **/
+typedef struct xcb_record_enable_context_reply_t {
+ uint8_t response_type;
+ uint8_t category;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_record_element_header_t element_header;
+ uint8_t client_swapped;
+ uint8_t pad0[2];
+ uint32_t xid_base;
+ uint32_t server_time;
+ uint32_t rec_sequence_num;
+ uint8_t pad1[8];
+} xcb_record_enable_context_reply_t;
+
+/** Opcode for xcb_record_disable_context. */
+#define XCB_RECORD_DISABLE_CONTEXT 6
+
+/**
+ * @brief xcb_record_disable_context_request_t
+ **/
+typedef struct xcb_record_disable_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+} xcb_record_disable_context_request_t;
+
+/** Opcode for xcb_record_free_context. */
+#define XCB_RECORD_FREE_CONTEXT 7
+
+/**
+ * @brief xcb_record_free_context_request_t
+ **/
+typedef struct xcb_record_free_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_record_context_t context;
+} xcb_record_free_context_request_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_context_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_context_t)
+ */
+void
+xcb_record_context_next (xcb_record_context_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_context_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_context_end (xcb_record_context_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_range_8_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_range_8_t)
+ */
+void
+xcb_record_range_8_next (xcb_record_range_8_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_range_8_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_range_8_end (xcb_record_range_8_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_range_16_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_range_16_t)
+ */
+void
+xcb_record_range_16_next (xcb_record_range_16_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_range_16_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_range_16_end (xcb_record_range_16_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_ext_range_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_ext_range_t)
+ */
+void
+xcb_record_ext_range_next (xcb_record_ext_range_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_ext_range_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_ext_range_end (xcb_record_ext_range_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_range_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_range_t)
+ */
+void
+xcb_record_range_next (xcb_record_range_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_range_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_range_end (xcb_record_range_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_element_header_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_element_header_t)
+ */
+void
+xcb_record_element_header_next (xcb_record_element_header_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_element_header_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_element_header_end (xcb_record_element_header_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_client_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_client_spec_t)
+ */
+void
+xcb_record_client_spec_next (xcb_record_client_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_client_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_client_spec_end (xcb_record_client_spec_iterator_t i);
+
+int
+xcb_record_client_info_sizeof (const void *_buffer);
+
+xcb_record_range_t *
+xcb_record_client_info_ranges (const xcb_record_client_info_t *R);
+
+int
+xcb_record_client_info_ranges_length (const xcb_record_client_info_t *R);
+
+xcb_record_range_iterator_t
+xcb_record_client_info_ranges_iterator (const xcb_record_client_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_record_client_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_record_client_info_t)
+ */
+void
+xcb_record_client_info_next (xcb_record_client_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_record_client_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_record_client_info_end (xcb_record_client_info_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_record_query_version_cookie_t
+xcb_record_query_version (xcb_connection_t *c,
+ uint16_t major_version,
+ uint16_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_record_query_version_cookie_t
+xcb_record_query_version_unchecked (xcb_connection_t *c,
+ uint16_t major_version,
+ uint16_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_record_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_record_query_version_reply_t *
+xcb_record_query_version_reply (xcb_connection_t *c,
+ xcb_record_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_record_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_record_create_context_checked (xcb_connection_t *c,
+ xcb_record_context_t context,
+ xcb_record_element_header_t element_header,
+ uint32_t num_client_specs,
+ uint32_t num_ranges,
+ const xcb_record_client_spec_t *client_specs,
+ const xcb_record_range_t *ranges);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_record_create_context (xcb_connection_t *c,
+ xcb_record_context_t context,
+ xcb_record_element_header_t element_header,
+ uint32_t num_client_specs,
+ uint32_t num_ranges,
+ const xcb_record_client_spec_t *client_specs,
+ const xcb_record_range_t *ranges);
+
+xcb_record_client_spec_t *
+xcb_record_create_context_client_specs (const xcb_record_create_context_request_t *R);
+
+int
+xcb_record_create_context_client_specs_length (const xcb_record_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_record_create_context_client_specs_end (const xcb_record_create_context_request_t *R);
+
+xcb_record_range_t *
+xcb_record_create_context_ranges (const xcb_record_create_context_request_t *R);
+
+int
+xcb_record_create_context_ranges_length (const xcb_record_create_context_request_t *R);
+
+xcb_record_range_iterator_t
+xcb_record_create_context_ranges_iterator (const xcb_record_create_context_request_t *R);
+
+int
+xcb_record_register_clients_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_record_register_clients_checked (xcb_connection_t *c,
+ xcb_record_context_t context,
+ xcb_record_element_header_t element_header,
+ uint32_t num_client_specs,
+ uint32_t num_ranges,
+ const xcb_record_client_spec_t *client_specs,
+ const xcb_record_range_t *ranges);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_record_register_clients (xcb_connection_t *c,
+ xcb_record_context_t context,
+ xcb_record_element_header_t element_header,
+ uint32_t num_client_specs,
+ uint32_t num_ranges,
+ const xcb_record_client_spec_t *client_specs,
+ const xcb_record_range_t *ranges);
+
+xcb_record_client_spec_t *
+xcb_record_register_clients_client_specs (const xcb_record_register_clients_request_t *R);
+
+int
+xcb_record_register_clients_client_specs_length (const xcb_record_register_clients_request_t *R);
+
+xcb_generic_iterator_t
+xcb_record_register_clients_client_specs_end (const xcb_record_register_clients_request_t *R);
+
+xcb_record_range_t *
+xcb_record_register_clients_ranges (const xcb_record_register_clients_request_t *R);
+
+int
+xcb_record_register_clients_ranges_length (const xcb_record_register_clients_request_t *R);
+
+xcb_record_range_iterator_t
+xcb_record_register_clients_ranges_iterator (const xcb_record_register_clients_request_t *R);
+
+int
+xcb_record_unregister_clients_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_record_unregister_clients_checked (xcb_connection_t *c,
+ xcb_record_context_t context,
+ uint32_t num_client_specs,
+ const xcb_record_client_spec_t *client_specs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_record_unregister_clients (xcb_connection_t *c,
+ xcb_record_context_t context,
+ uint32_t num_client_specs,
+ const xcb_record_client_spec_t *client_specs);
+
+xcb_record_client_spec_t *
+xcb_record_unregister_clients_client_specs (const xcb_record_unregister_clients_request_t *R);
+
+int
+xcb_record_unregister_clients_client_specs_length (const xcb_record_unregister_clients_request_t *R);
+
+xcb_generic_iterator_t
+xcb_record_unregister_clients_client_specs_end (const xcb_record_unregister_clients_request_t *R);
+
+int
+xcb_record_get_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_record_get_context_cookie_t
+xcb_record_get_context (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_record_get_context_cookie_t
+xcb_record_get_context_unchecked (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+int
+xcb_record_get_context_intercepted_clients_length (const xcb_record_get_context_reply_t *R);
+
+xcb_record_client_info_iterator_t
+xcb_record_get_context_intercepted_clients_iterator (const xcb_record_get_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_record_get_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_record_get_context_reply_t *
+xcb_record_get_context_reply (xcb_connection_t *c,
+ xcb_record_get_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_record_enable_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_record_enable_context_cookie_t
+xcb_record_enable_context (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_record_enable_context_cookie_t
+xcb_record_enable_context_unchecked (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+uint8_t *
+xcb_record_enable_context_data (const xcb_record_enable_context_reply_t *R);
+
+int
+xcb_record_enable_context_data_length (const xcb_record_enable_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_record_enable_context_data_end (const xcb_record_enable_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_record_enable_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_record_enable_context_reply_t *
+xcb_record_enable_context_reply (xcb_connection_t *c,
+ xcb_record_enable_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_record_disable_context_checked (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_record_disable_context (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_record_free_context_checked (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_record_free_context (xcb_connection_t *c,
+ xcb_record_context_t context);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/render.h b/depends/libxcb/include/xcb/render.h
new file mode 100644
index 0000000..d6f84d5
--- /dev/null
+++ b/depends/libxcb/include/xcb/render.h
@@ -0,0 +1,3277 @@
+/*
+ * This file generated automatically from render.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Render_API XCB Render API
+ * @brief Render XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __RENDER_H
+#define __RENDER_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_RENDER_MAJOR_VERSION 0
+#define XCB_RENDER_MINOR_VERSION 11
+
+extern xcb_extension_t xcb_render_id;
+
+typedef enum xcb_render_pict_type_t {
+ XCB_RENDER_PICT_TYPE_INDEXED = 0,
+ XCB_RENDER_PICT_TYPE_DIRECT = 1
+} xcb_render_pict_type_t;
+
+typedef enum xcb_render_picture_enum_t {
+ XCB_RENDER_PICTURE_NONE = 0
+} xcb_render_picture_enum_t;
+
+typedef enum xcb_render_pict_op_t {
+ XCB_RENDER_PICT_OP_CLEAR = 0,
+ XCB_RENDER_PICT_OP_SRC = 1,
+ XCB_RENDER_PICT_OP_DST = 2,
+ XCB_RENDER_PICT_OP_OVER = 3,
+ XCB_RENDER_PICT_OP_OVER_REVERSE = 4,
+ XCB_RENDER_PICT_OP_IN = 5,
+ XCB_RENDER_PICT_OP_IN_REVERSE = 6,
+ XCB_RENDER_PICT_OP_OUT = 7,
+ XCB_RENDER_PICT_OP_OUT_REVERSE = 8,
+ XCB_RENDER_PICT_OP_ATOP = 9,
+ XCB_RENDER_PICT_OP_ATOP_REVERSE = 10,
+ XCB_RENDER_PICT_OP_XOR = 11,
+ XCB_RENDER_PICT_OP_ADD = 12,
+ XCB_RENDER_PICT_OP_SATURATE = 13,
+ XCB_RENDER_PICT_OP_DISJOINT_CLEAR = 16,
+ XCB_RENDER_PICT_OP_DISJOINT_SRC = 17,
+ XCB_RENDER_PICT_OP_DISJOINT_DST = 18,
+ XCB_RENDER_PICT_OP_DISJOINT_OVER = 19,
+ XCB_RENDER_PICT_OP_DISJOINT_OVER_REVERSE = 20,
+ XCB_RENDER_PICT_OP_DISJOINT_IN = 21,
+ XCB_RENDER_PICT_OP_DISJOINT_IN_REVERSE = 22,
+ XCB_RENDER_PICT_OP_DISJOINT_OUT = 23,
+ XCB_RENDER_PICT_OP_DISJOINT_OUT_REVERSE = 24,
+ XCB_RENDER_PICT_OP_DISJOINT_ATOP = 25,
+ XCB_RENDER_PICT_OP_DISJOINT_ATOP_REVERSE = 26,
+ XCB_RENDER_PICT_OP_DISJOINT_XOR = 27,
+ XCB_RENDER_PICT_OP_CONJOINT_CLEAR = 32,
+ XCB_RENDER_PICT_OP_CONJOINT_SRC = 33,
+ XCB_RENDER_PICT_OP_CONJOINT_DST = 34,
+ XCB_RENDER_PICT_OP_CONJOINT_OVER = 35,
+ XCB_RENDER_PICT_OP_CONJOINT_OVER_REVERSE = 36,
+ XCB_RENDER_PICT_OP_CONJOINT_IN = 37,
+ XCB_RENDER_PICT_OP_CONJOINT_IN_REVERSE = 38,
+ XCB_RENDER_PICT_OP_CONJOINT_OUT = 39,
+ XCB_RENDER_PICT_OP_CONJOINT_OUT_REVERSE = 40,
+ XCB_RENDER_PICT_OP_CONJOINT_ATOP = 41,
+ XCB_RENDER_PICT_OP_CONJOINT_ATOP_REVERSE = 42,
+ XCB_RENDER_PICT_OP_CONJOINT_XOR = 43,
+ XCB_RENDER_PICT_OP_MULTIPLY = 48,
+ XCB_RENDER_PICT_OP_SCREEN = 49,
+ XCB_RENDER_PICT_OP_OVERLAY = 50,
+ XCB_RENDER_PICT_OP_DARKEN = 51,
+ XCB_RENDER_PICT_OP_LIGHTEN = 52,
+ XCB_RENDER_PICT_OP_COLOR_DODGE = 53,
+ XCB_RENDER_PICT_OP_COLOR_BURN = 54,
+ XCB_RENDER_PICT_OP_HARD_LIGHT = 55,
+ XCB_RENDER_PICT_OP_SOFT_LIGHT = 56,
+ XCB_RENDER_PICT_OP_DIFFERENCE = 57,
+ XCB_RENDER_PICT_OP_EXCLUSION = 58,
+ XCB_RENDER_PICT_OP_HSL_HUE = 59,
+ XCB_RENDER_PICT_OP_HSL_SATURATION = 60,
+ XCB_RENDER_PICT_OP_HSL_COLOR = 61,
+ XCB_RENDER_PICT_OP_HSL_LUMINOSITY = 62
+} xcb_render_pict_op_t;
+
+typedef enum xcb_render_poly_edge_t {
+ XCB_RENDER_POLY_EDGE_SHARP = 0,
+ XCB_RENDER_POLY_EDGE_SMOOTH = 1
+} xcb_render_poly_edge_t;
+
+typedef enum xcb_render_poly_mode_t {
+ XCB_RENDER_POLY_MODE_PRECISE = 0,
+ XCB_RENDER_POLY_MODE_IMPRECISE = 1
+} xcb_render_poly_mode_t;
+
+typedef enum xcb_render_cp_t {
+ XCB_RENDER_CP_REPEAT = 1,
+ XCB_RENDER_CP_ALPHA_MAP = 2,
+ XCB_RENDER_CP_ALPHA_X_ORIGIN = 4,
+ XCB_RENDER_CP_ALPHA_Y_ORIGIN = 8,
+ XCB_RENDER_CP_CLIP_X_ORIGIN = 16,
+ XCB_RENDER_CP_CLIP_Y_ORIGIN = 32,
+ XCB_RENDER_CP_CLIP_MASK = 64,
+ XCB_RENDER_CP_GRAPHICS_EXPOSURE = 128,
+ XCB_RENDER_CP_SUBWINDOW_MODE = 256,
+ XCB_RENDER_CP_POLY_EDGE = 512,
+ XCB_RENDER_CP_POLY_MODE = 1024,
+ XCB_RENDER_CP_DITHER = 2048,
+ XCB_RENDER_CP_COMPONENT_ALPHA = 4096
+} xcb_render_cp_t;
+
+typedef enum xcb_render_sub_pixel_t {
+ XCB_RENDER_SUB_PIXEL_UNKNOWN = 0,
+ XCB_RENDER_SUB_PIXEL_HORIZONTAL_RGB = 1,
+ XCB_RENDER_SUB_PIXEL_HORIZONTAL_BGR = 2,
+ XCB_RENDER_SUB_PIXEL_VERTICAL_RGB = 3,
+ XCB_RENDER_SUB_PIXEL_VERTICAL_BGR = 4,
+ XCB_RENDER_SUB_PIXEL_NONE = 5
+} xcb_render_sub_pixel_t;
+
+typedef enum xcb_render_repeat_t {
+ XCB_RENDER_REPEAT_NONE = 0,
+ XCB_RENDER_REPEAT_NORMAL = 1,
+ XCB_RENDER_REPEAT_PAD = 2,
+ XCB_RENDER_REPEAT_REFLECT = 3
+} xcb_render_repeat_t;
+
+typedef uint32_t xcb_render_glyph_t;
+
+/**
+ * @brief xcb_render_glyph_iterator_t
+ **/
+typedef struct xcb_render_glyph_iterator_t {
+ xcb_render_glyph_t *data;
+ int rem;
+ int index;
+} xcb_render_glyph_iterator_t;
+
+typedef uint32_t xcb_render_glyphset_t;
+
+/**
+ * @brief xcb_render_glyphset_iterator_t
+ **/
+typedef struct xcb_render_glyphset_iterator_t {
+ xcb_render_glyphset_t *data;
+ int rem;
+ int index;
+} xcb_render_glyphset_iterator_t;
+
+typedef uint32_t xcb_render_picture_t;
+
+/**
+ * @brief xcb_render_picture_iterator_t
+ **/
+typedef struct xcb_render_picture_iterator_t {
+ xcb_render_picture_t *data;
+ int rem;
+ int index;
+} xcb_render_picture_iterator_t;
+
+typedef uint32_t xcb_render_pictformat_t;
+
+/**
+ * @brief xcb_render_pictformat_iterator_t
+ **/
+typedef struct xcb_render_pictformat_iterator_t {
+ xcb_render_pictformat_t *data;
+ int rem;
+ int index;
+} xcb_render_pictformat_iterator_t;
+
+typedef int32_t xcb_render_fixed_t;
+
+/**
+ * @brief xcb_render_fixed_iterator_t
+ **/
+typedef struct xcb_render_fixed_iterator_t {
+ xcb_render_fixed_t *data;
+ int rem;
+ int index;
+} xcb_render_fixed_iterator_t;
+
+/** Opcode for xcb_render_pict_format. */
+#define XCB_RENDER_PICT_FORMAT 0
+
+/**
+ * @brief xcb_render_pict_format_error_t
+ **/
+typedef struct xcb_render_pict_format_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_render_pict_format_error_t;
+
+/** Opcode for xcb_render_picture. */
+#define XCB_RENDER_PICTURE 1
+
+/**
+ * @brief xcb_render_picture_error_t
+ **/
+typedef struct xcb_render_picture_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_render_picture_error_t;
+
+/** Opcode for xcb_render_pict_op. */
+#define XCB_RENDER_PICT_OP 2
+
+/**
+ * @brief xcb_render_pict_op_error_t
+ **/
+typedef struct xcb_render_pict_op_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_render_pict_op_error_t;
+
+/** Opcode for xcb_render_glyph_set. */
+#define XCB_RENDER_GLYPH_SET 3
+
+/**
+ * @brief xcb_render_glyph_set_error_t
+ **/
+typedef struct xcb_render_glyph_set_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_render_glyph_set_error_t;
+
+/** Opcode for xcb_render_glyph. */
+#define XCB_RENDER_GLYPH 4
+
+/**
+ * @brief xcb_render_glyph_error_t
+ **/
+typedef struct xcb_render_glyph_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_render_glyph_error_t;
+
+/**
+ * @brief xcb_render_directformat_t
+ **/
+typedef struct xcb_render_directformat_t {
+ uint16_t red_shift;
+ uint16_t red_mask;
+ uint16_t green_shift;
+ uint16_t green_mask;
+ uint16_t blue_shift;
+ uint16_t blue_mask;
+ uint16_t alpha_shift;
+ uint16_t alpha_mask;
+} xcb_render_directformat_t;
+
+/**
+ * @brief xcb_render_directformat_iterator_t
+ **/
+typedef struct xcb_render_directformat_iterator_t {
+ xcb_render_directformat_t *data;
+ int rem;
+ int index;
+} xcb_render_directformat_iterator_t;
+
+/**
+ * @brief xcb_render_pictforminfo_t
+ **/
+typedef struct xcb_render_pictforminfo_t {
+ xcb_render_pictformat_t id;
+ uint8_t type;
+ uint8_t depth;
+ uint8_t pad0[2];
+ xcb_render_directformat_t direct;
+ xcb_colormap_t colormap;
+} xcb_render_pictforminfo_t;
+
+/**
+ * @brief xcb_render_pictforminfo_iterator_t
+ **/
+typedef struct xcb_render_pictforminfo_iterator_t {
+ xcb_render_pictforminfo_t *data;
+ int rem;
+ int index;
+} xcb_render_pictforminfo_iterator_t;
+
+/**
+ * @brief xcb_render_pictvisual_t
+ **/
+typedef struct xcb_render_pictvisual_t {
+ xcb_visualid_t visual;
+ xcb_render_pictformat_t format;
+} xcb_render_pictvisual_t;
+
+/**
+ * @brief xcb_render_pictvisual_iterator_t
+ **/
+typedef struct xcb_render_pictvisual_iterator_t {
+ xcb_render_pictvisual_t *data;
+ int rem;
+ int index;
+} xcb_render_pictvisual_iterator_t;
+
+/**
+ * @brief xcb_render_pictdepth_t
+ **/
+typedef struct xcb_render_pictdepth_t {
+ uint8_t depth;
+ uint8_t pad0;
+ uint16_t num_visuals;
+ uint8_t pad1[4];
+} xcb_render_pictdepth_t;
+
+/**
+ * @brief xcb_render_pictdepth_iterator_t
+ **/
+typedef struct xcb_render_pictdepth_iterator_t {
+ xcb_render_pictdepth_t *data;
+ int rem;
+ int index;
+} xcb_render_pictdepth_iterator_t;
+
+/**
+ * @brief xcb_render_pictscreen_t
+ **/
+typedef struct xcb_render_pictscreen_t {
+ uint32_t num_depths;
+ xcb_render_pictformat_t fallback;
+} xcb_render_pictscreen_t;
+
+/**
+ * @brief xcb_render_pictscreen_iterator_t
+ **/
+typedef struct xcb_render_pictscreen_iterator_t {
+ xcb_render_pictscreen_t *data;
+ int rem;
+ int index;
+} xcb_render_pictscreen_iterator_t;
+
+/**
+ * @brief xcb_render_indexvalue_t
+ **/
+typedef struct xcb_render_indexvalue_t {
+ uint32_t pixel;
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ uint16_t alpha;
+} xcb_render_indexvalue_t;
+
+/**
+ * @brief xcb_render_indexvalue_iterator_t
+ **/
+typedef struct xcb_render_indexvalue_iterator_t {
+ xcb_render_indexvalue_t *data;
+ int rem;
+ int index;
+} xcb_render_indexvalue_iterator_t;
+
+/**
+ * @brief xcb_render_color_t
+ **/
+typedef struct xcb_render_color_t {
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ uint16_t alpha;
+} xcb_render_color_t;
+
+/**
+ * @brief xcb_render_color_iterator_t
+ **/
+typedef struct xcb_render_color_iterator_t {
+ xcb_render_color_t *data;
+ int rem;
+ int index;
+} xcb_render_color_iterator_t;
+
+/**
+ * @brief xcb_render_pointfix_t
+ **/
+typedef struct xcb_render_pointfix_t {
+ xcb_render_fixed_t x;
+ xcb_render_fixed_t y;
+} xcb_render_pointfix_t;
+
+/**
+ * @brief xcb_render_pointfix_iterator_t
+ **/
+typedef struct xcb_render_pointfix_iterator_t {
+ xcb_render_pointfix_t *data;
+ int rem;
+ int index;
+} xcb_render_pointfix_iterator_t;
+
+/**
+ * @brief xcb_render_linefix_t
+ **/
+typedef struct xcb_render_linefix_t {
+ xcb_render_pointfix_t p1;
+ xcb_render_pointfix_t p2;
+} xcb_render_linefix_t;
+
+/**
+ * @brief xcb_render_linefix_iterator_t
+ **/
+typedef struct xcb_render_linefix_iterator_t {
+ xcb_render_linefix_t *data;
+ int rem;
+ int index;
+} xcb_render_linefix_iterator_t;
+
+/**
+ * @brief xcb_render_triangle_t
+ **/
+typedef struct xcb_render_triangle_t {
+ xcb_render_pointfix_t p1;
+ xcb_render_pointfix_t p2;
+ xcb_render_pointfix_t p3;
+} xcb_render_triangle_t;
+
+/**
+ * @brief xcb_render_triangle_iterator_t
+ **/
+typedef struct xcb_render_triangle_iterator_t {
+ xcb_render_triangle_t *data;
+ int rem;
+ int index;
+} xcb_render_triangle_iterator_t;
+
+/**
+ * @brief xcb_render_trapezoid_t
+ **/
+typedef struct xcb_render_trapezoid_t {
+ xcb_render_fixed_t top;
+ xcb_render_fixed_t bottom;
+ xcb_render_linefix_t left;
+ xcb_render_linefix_t right;
+} xcb_render_trapezoid_t;
+
+/**
+ * @brief xcb_render_trapezoid_iterator_t
+ **/
+typedef struct xcb_render_trapezoid_iterator_t {
+ xcb_render_trapezoid_t *data;
+ int rem;
+ int index;
+} xcb_render_trapezoid_iterator_t;
+
+/**
+ * @brief xcb_render_glyphinfo_t
+ **/
+typedef struct xcb_render_glyphinfo_t {
+ uint16_t width;
+ uint16_t height;
+ int16_t x;
+ int16_t y;
+ int16_t x_off;
+ int16_t y_off;
+} xcb_render_glyphinfo_t;
+
+/**
+ * @brief xcb_render_glyphinfo_iterator_t
+ **/
+typedef struct xcb_render_glyphinfo_iterator_t {
+ xcb_render_glyphinfo_t *data;
+ int rem;
+ int index;
+} xcb_render_glyphinfo_iterator_t;
+
+/**
+ * @brief xcb_render_query_version_cookie_t
+ **/
+typedef struct xcb_render_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_render_query_version_cookie_t;
+
+/** Opcode for xcb_render_query_version. */
+#define XCB_RENDER_QUERY_VERSION 0
+
+/**
+ * @brief xcb_render_query_version_request_t
+ **/
+typedef struct xcb_render_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t client_major_version;
+ uint32_t client_minor_version;
+} xcb_render_query_version_request_t;
+
+/**
+ * @brief xcb_render_query_version_reply_t
+ **/
+typedef struct xcb_render_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint8_t pad1[16];
+} xcb_render_query_version_reply_t;
+
+/**
+ * @brief xcb_render_query_pict_formats_cookie_t
+ **/
+typedef struct xcb_render_query_pict_formats_cookie_t {
+ unsigned int sequence;
+} xcb_render_query_pict_formats_cookie_t;
+
+/** Opcode for xcb_render_query_pict_formats. */
+#define XCB_RENDER_QUERY_PICT_FORMATS 1
+
+/**
+ * @brief xcb_render_query_pict_formats_request_t
+ **/
+typedef struct xcb_render_query_pict_formats_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_render_query_pict_formats_request_t;
+
+/**
+ * @brief xcb_render_query_pict_formats_reply_t
+ **/
+typedef struct xcb_render_query_pict_formats_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_formats;
+ uint32_t num_screens;
+ uint32_t num_depths;
+ uint32_t num_visuals;
+ uint32_t num_subpixel;
+ uint8_t pad1[4];
+} xcb_render_query_pict_formats_reply_t;
+
+/**
+ * @brief xcb_render_query_pict_index_values_cookie_t
+ **/
+typedef struct xcb_render_query_pict_index_values_cookie_t {
+ unsigned int sequence;
+} xcb_render_query_pict_index_values_cookie_t;
+
+/** Opcode for xcb_render_query_pict_index_values. */
+#define XCB_RENDER_QUERY_PICT_INDEX_VALUES 2
+
+/**
+ * @brief xcb_render_query_pict_index_values_request_t
+ **/
+typedef struct xcb_render_query_pict_index_values_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_pictformat_t format;
+} xcb_render_query_pict_index_values_request_t;
+
+/**
+ * @brief xcb_render_query_pict_index_values_reply_t
+ **/
+typedef struct xcb_render_query_pict_index_values_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_values;
+ uint8_t pad1[20];
+} xcb_render_query_pict_index_values_reply_t;
+
+/**
+ * @brief xcb_render_create_picture_value_list_t
+ **/
+typedef struct xcb_render_create_picture_value_list_t {
+ uint32_t repeat;
+ xcb_render_picture_t alphamap;
+ int32_t alphaxorigin;
+ int32_t alphayorigin;
+ int32_t clipxorigin;
+ int32_t clipyorigin;
+ xcb_pixmap_t clipmask;
+ uint32_t graphicsexposure;
+ uint32_t subwindowmode;
+ uint32_t polyedge;
+ uint32_t polymode;
+ xcb_atom_t dither;
+ uint32_t componentalpha;
+} xcb_render_create_picture_value_list_t;
+
+/** Opcode for xcb_render_create_picture. */
+#define XCB_RENDER_CREATE_PICTURE 4
+
+/**
+ * @brief xcb_render_create_picture_request_t
+ **/
+typedef struct xcb_render_create_picture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t pid;
+ xcb_drawable_t drawable;
+ xcb_render_pictformat_t format;
+ uint32_t value_mask;
+} xcb_render_create_picture_request_t;
+
+/**
+ * @brief xcb_render_change_picture_value_list_t
+ **/
+typedef struct xcb_render_change_picture_value_list_t {
+ uint32_t repeat;
+ xcb_render_picture_t alphamap;
+ int32_t alphaxorigin;
+ int32_t alphayorigin;
+ int32_t clipxorigin;
+ int32_t clipyorigin;
+ xcb_pixmap_t clipmask;
+ uint32_t graphicsexposure;
+ uint32_t subwindowmode;
+ uint32_t polyedge;
+ uint32_t polymode;
+ xcb_atom_t dither;
+ uint32_t componentalpha;
+} xcb_render_change_picture_value_list_t;
+
+/** Opcode for xcb_render_change_picture. */
+#define XCB_RENDER_CHANGE_PICTURE 5
+
+/**
+ * @brief xcb_render_change_picture_request_t
+ **/
+typedef struct xcb_render_change_picture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ uint32_t value_mask;
+} xcb_render_change_picture_request_t;
+
+/** Opcode for xcb_render_set_picture_clip_rectangles. */
+#define XCB_RENDER_SET_PICTURE_CLIP_RECTANGLES 6
+
+/**
+ * @brief xcb_render_set_picture_clip_rectangles_request_t
+ **/
+typedef struct xcb_render_set_picture_clip_rectangles_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ int16_t clip_x_origin;
+ int16_t clip_y_origin;
+} xcb_render_set_picture_clip_rectangles_request_t;
+
+/** Opcode for xcb_render_free_picture. */
+#define XCB_RENDER_FREE_PICTURE 7
+
+/**
+ * @brief xcb_render_free_picture_request_t
+ **/
+typedef struct xcb_render_free_picture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+} xcb_render_free_picture_request_t;
+
+/** Opcode for xcb_render_composite. */
+#define XCB_RENDER_COMPOSITE 8
+
+/**
+ * @brief xcb_render_composite_request_t
+ **/
+typedef struct xcb_render_composite_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t mask;
+ xcb_render_picture_t dst;
+ int16_t src_x;
+ int16_t src_y;
+ int16_t mask_x;
+ int16_t mask_y;
+ int16_t dst_x;
+ int16_t dst_y;
+ uint16_t width;
+ uint16_t height;
+} xcb_render_composite_request_t;
+
+/** Opcode for xcb_render_trapezoids. */
+#define XCB_RENDER_TRAPEZOIDS 10
+
+/**
+ * @brief xcb_render_trapezoids_request_t
+ **/
+typedef struct xcb_render_trapezoids_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_trapezoids_request_t;
+
+/** Opcode for xcb_render_triangles. */
+#define XCB_RENDER_TRIANGLES 11
+
+/**
+ * @brief xcb_render_triangles_request_t
+ **/
+typedef struct xcb_render_triangles_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_triangles_request_t;
+
+/** Opcode for xcb_render_tri_strip. */
+#define XCB_RENDER_TRI_STRIP 12
+
+/**
+ * @brief xcb_render_tri_strip_request_t
+ **/
+typedef struct xcb_render_tri_strip_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_tri_strip_request_t;
+
+/** Opcode for xcb_render_tri_fan. */
+#define XCB_RENDER_TRI_FAN 13
+
+/**
+ * @brief xcb_render_tri_fan_request_t
+ **/
+typedef struct xcb_render_tri_fan_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_tri_fan_request_t;
+
+/** Opcode for xcb_render_create_glyph_set. */
+#define XCB_RENDER_CREATE_GLYPH_SET 17
+
+/**
+ * @brief xcb_render_create_glyph_set_request_t
+ **/
+typedef struct xcb_render_create_glyph_set_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_glyphset_t gsid;
+ xcb_render_pictformat_t format;
+} xcb_render_create_glyph_set_request_t;
+
+/** Opcode for xcb_render_reference_glyph_set. */
+#define XCB_RENDER_REFERENCE_GLYPH_SET 18
+
+/**
+ * @brief xcb_render_reference_glyph_set_request_t
+ **/
+typedef struct xcb_render_reference_glyph_set_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_glyphset_t gsid;
+ xcb_render_glyphset_t existing;
+} xcb_render_reference_glyph_set_request_t;
+
+/** Opcode for xcb_render_free_glyph_set. */
+#define XCB_RENDER_FREE_GLYPH_SET 19
+
+/**
+ * @brief xcb_render_free_glyph_set_request_t
+ **/
+typedef struct xcb_render_free_glyph_set_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_glyphset_t glyphset;
+} xcb_render_free_glyph_set_request_t;
+
+/** Opcode for xcb_render_add_glyphs. */
+#define XCB_RENDER_ADD_GLYPHS 20
+
+/**
+ * @brief xcb_render_add_glyphs_request_t
+ **/
+typedef struct xcb_render_add_glyphs_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_glyphset_t glyphset;
+ uint32_t glyphs_len;
+} xcb_render_add_glyphs_request_t;
+
+/** Opcode for xcb_render_free_glyphs. */
+#define XCB_RENDER_FREE_GLYPHS 22
+
+/**
+ * @brief xcb_render_free_glyphs_request_t
+ **/
+typedef struct xcb_render_free_glyphs_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_glyphset_t glyphset;
+} xcb_render_free_glyphs_request_t;
+
+/** Opcode for xcb_render_composite_glyphs_8. */
+#define XCB_RENDER_COMPOSITE_GLYPHS_8 23
+
+/**
+ * @brief xcb_render_composite_glyphs_8_request_t
+ **/
+typedef struct xcb_render_composite_glyphs_8_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ xcb_render_glyphset_t glyphset;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_composite_glyphs_8_request_t;
+
+/** Opcode for xcb_render_composite_glyphs_16. */
+#define XCB_RENDER_COMPOSITE_GLYPHS_16 24
+
+/**
+ * @brief xcb_render_composite_glyphs_16_request_t
+ **/
+typedef struct xcb_render_composite_glyphs_16_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ xcb_render_glyphset_t glyphset;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_composite_glyphs_16_request_t;
+
+/** Opcode for xcb_render_composite_glyphs_32. */
+#define XCB_RENDER_COMPOSITE_GLYPHS_32 25
+
+/**
+ * @brief xcb_render_composite_glyphs_32_request_t
+ **/
+typedef struct xcb_render_composite_glyphs_32_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t src;
+ xcb_render_picture_t dst;
+ xcb_render_pictformat_t mask_format;
+ xcb_render_glyphset_t glyphset;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_render_composite_glyphs_32_request_t;
+
+/** Opcode for xcb_render_fill_rectangles. */
+#define XCB_RENDER_FILL_RECTANGLES 26
+
+/**
+ * @brief xcb_render_fill_rectangles_request_t
+ **/
+typedef struct xcb_render_fill_rectangles_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t op;
+ uint8_t pad0[3];
+ xcb_render_picture_t dst;
+ xcb_render_color_t color;
+} xcb_render_fill_rectangles_request_t;
+
+/** Opcode for xcb_render_create_cursor. */
+#define XCB_RENDER_CREATE_CURSOR 27
+
+/**
+ * @brief xcb_render_create_cursor_request_t
+ **/
+typedef struct xcb_render_create_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_cursor_t cid;
+ xcb_render_picture_t source;
+ uint16_t x;
+ uint16_t y;
+} xcb_render_create_cursor_request_t;
+
+/**
+ * @brief xcb_render_transform_t
+ **/
+typedef struct xcb_render_transform_t {
+ xcb_render_fixed_t matrix11;
+ xcb_render_fixed_t matrix12;
+ xcb_render_fixed_t matrix13;
+ xcb_render_fixed_t matrix21;
+ xcb_render_fixed_t matrix22;
+ xcb_render_fixed_t matrix23;
+ xcb_render_fixed_t matrix31;
+ xcb_render_fixed_t matrix32;
+ xcb_render_fixed_t matrix33;
+} xcb_render_transform_t;
+
+/**
+ * @brief xcb_render_transform_iterator_t
+ **/
+typedef struct xcb_render_transform_iterator_t {
+ xcb_render_transform_t *data;
+ int rem;
+ int index;
+} xcb_render_transform_iterator_t;
+
+/** Opcode for xcb_render_set_picture_transform. */
+#define XCB_RENDER_SET_PICTURE_TRANSFORM 28
+
+/**
+ * @brief xcb_render_set_picture_transform_request_t
+ **/
+typedef struct xcb_render_set_picture_transform_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ xcb_render_transform_t transform;
+} xcb_render_set_picture_transform_request_t;
+
+/**
+ * @brief xcb_render_query_filters_cookie_t
+ **/
+typedef struct xcb_render_query_filters_cookie_t {
+ unsigned int sequence;
+} xcb_render_query_filters_cookie_t;
+
+/** Opcode for xcb_render_query_filters. */
+#define XCB_RENDER_QUERY_FILTERS 29
+
+/**
+ * @brief xcb_render_query_filters_request_t
+ **/
+typedef struct xcb_render_query_filters_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_render_query_filters_request_t;
+
+/**
+ * @brief xcb_render_query_filters_reply_t
+ **/
+typedef struct xcb_render_query_filters_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_aliases;
+ uint32_t num_filters;
+ uint8_t pad1[16];
+} xcb_render_query_filters_reply_t;
+
+/** Opcode for xcb_render_set_picture_filter. */
+#define XCB_RENDER_SET_PICTURE_FILTER 30
+
+/**
+ * @brief xcb_render_set_picture_filter_request_t
+ **/
+typedef struct xcb_render_set_picture_filter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ uint16_t filter_len;
+ uint8_t pad0[2];
+} xcb_render_set_picture_filter_request_t;
+
+/**
+ * @brief xcb_render_animcursorelt_t
+ **/
+typedef struct xcb_render_animcursorelt_t {
+ xcb_cursor_t cursor;
+ uint32_t delay;
+} xcb_render_animcursorelt_t;
+
+/**
+ * @brief xcb_render_animcursorelt_iterator_t
+ **/
+typedef struct xcb_render_animcursorelt_iterator_t {
+ xcb_render_animcursorelt_t *data;
+ int rem;
+ int index;
+} xcb_render_animcursorelt_iterator_t;
+
+/** Opcode for xcb_render_create_anim_cursor. */
+#define XCB_RENDER_CREATE_ANIM_CURSOR 31
+
+/**
+ * @brief xcb_render_create_anim_cursor_request_t
+ **/
+typedef struct xcb_render_create_anim_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_cursor_t cid;
+} xcb_render_create_anim_cursor_request_t;
+
+/**
+ * @brief xcb_render_spanfix_t
+ **/
+typedef struct xcb_render_spanfix_t {
+ xcb_render_fixed_t l;
+ xcb_render_fixed_t r;
+ xcb_render_fixed_t y;
+} xcb_render_spanfix_t;
+
+/**
+ * @brief xcb_render_spanfix_iterator_t
+ **/
+typedef struct xcb_render_spanfix_iterator_t {
+ xcb_render_spanfix_t *data;
+ int rem;
+ int index;
+} xcb_render_spanfix_iterator_t;
+
+/**
+ * @brief xcb_render_trap_t
+ **/
+typedef struct xcb_render_trap_t {
+ xcb_render_spanfix_t top;
+ xcb_render_spanfix_t bot;
+} xcb_render_trap_t;
+
+/**
+ * @brief xcb_render_trap_iterator_t
+ **/
+typedef struct xcb_render_trap_iterator_t {
+ xcb_render_trap_t *data;
+ int rem;
+ int index;
+} xcb_render_trap_iterator_t;
+
+/** Opcode for xcb_render_add_traps. */
+#define XCB_RENDER_ADD_TRAPS 32
+
+/**
+ * @brief xcb_render_add_traps_request_t
+ **/
+typedef struct xcb_render_add_traps_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ int16_t x_off;
+ int16_t y_off;
+} xcb_render_add_traps_request_t;
+
+/** Opcode for xcb_render_create_solid_fill. */
+#define XCB_RENDER_CREATE_SOLID_FILL 33
+
+/**
+ * @brief xcb_render_create_solid_fill_request_t
+ **/
+typedef struct xcb_render_create_solid_fill_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ xcb_render_color_t color;
+} xcb_render_create_solid_fill_request_t;
+
+/** Opcode for xcb_render_create_linear_gradient. */
+#define XCB_RENDER_CREATE_LINEAR_GRADIENT 34
+
+/**
+ * @brief xcb_render_create_linear_gradient_request_t
+ **/
+typedef struct xcb_render_create_linear_gradient_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ xcb_render_pointfix_t p1;
+ xcb_render_pointfix_t p2;
+ uint32_t num_stops;
+} xcb_render_create_linear_gradient_request_t;
+
+/** Opcode for xcb_render_create_radial_gradient. */
+#define XCB_RENDER_CREATE_RADIAL_GRADIENT 35
+
+/**
+ * @brief xcb_render_create_radial_gradient_request_t
+ **/
+typedef struct xcb_render_create_radial_gradient_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ xcb_render_pointfix_t inner;
+ xcb_render_pointfix_t outer;
+ xcb_render_fixed_t inner_radius;
+ xcb_render_fixed_t outer_radius;
+ uint32_t num_stops;
+} xcb_render_create_radial_gradient_request_t;
+
+/** Opcode for xcb_render_create_conical_gradient. */
+#define XCB_RENDER_CREATE_CONICAL_GRADIENT 36
+
+/**
+ * @brief xcb_render_create_conical_gradient_request_t
+ **/
+typedef struct xcb_render_create_conical_gradient_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ xcb_render_pointfix_t center;
+ xcb_render_fixed_t angle;
+ uint32_t num_stops;
+} xcb_render_create_conical_gradient_request_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_glyph_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_glyph_t)
+ */
+void
+xcb_render_glyph_next (xcb_render_glyph_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_glyph_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_glyph_end (xcb_render_glyph_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_glyphset_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_glyphset_t)
+ */
+void
+xcb_render_glyphset_next (xcb_render_glyphset_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_glyphset_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_glyphset_end (xcb_render_glyphset_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_picture_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_picture_t)
+ */
+void
+xcb_render_picture_next (xcb_render_picture_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_picture_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_picture_end (xcb_render_picture_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_pictformat_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_pictformat_t)
+ */
+void
+xcb_render_pictformat_next (xcb_render_pictformat_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_pictformat_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_pictformat_end (xcb_render_pictformat_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_fixed_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_fixed_t)
+ */
+void
+xcb_render_fixed_next (xcb_render_fixed_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_fixed_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_fixed_end (xcb_render_fixed_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_directformat_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_directformat_t)
+ */
+void
+xcb_render_directformat_next (xcb_render_directformat_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_directformat_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_directformat_end (xcb_render_directformat_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_pictforminfo_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_pictforminfo_t)
+ */
+void
+xcb_render_pictforminfo_next (xcb_render_pictforminfo_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_pictforminfo_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_pictforminfo_end (xcb_render_pictforminfo_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_pictvisual_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_pictvisual_t)
+ */
+void
+xcb_render_pictvisual_next (xcb_render_pictvisual_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_pictvisual_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_pictvisual_end (xcb_render_pictvisual_iterator_t i);
+
+int
+xcb_render_pictdepth_sizeof (const void *_buffer);
+
+xcb_render_pictvisual_t *
+xcb_render_pictdepth_visuals (const xcb_render_pictdepth_t *R);
+
+int
+xcb_render_pictdepth_visuals_length (const xcb_render_pictdepth_t *R);
+
+xcb_render_pictvisual_iterator_t
+xcb_render_pictdepth_visuals_iterator (const xcb_render_pictdepth_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_pictdepth_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_pictdepth_t)
+ */
+void
+xcb_render_pictdepth_next (xcb_render_pictdepth_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_pictdepth_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_pictdepth_end (xcb_render_pictdepth_iterator_t i);
+
+int
+xcb_render_pictscreen_sizeof (const void *_buffer);
+
+int
+xcb_render_pictscreen_depths_length (const xcb_render_pictscreen_t *R);
+
+xcb_render_pictdepth_iterator_t
+xcb_render_pictscreen_depths_iterator (const xcb_render_pictscreen_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_pictscreen_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_pictscreen_t)
+ */
+void
+xcb_render_pictscreen_next (xcb_render_pictscreen_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_pictscreen_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_pictscreen_end (xcb_render_pictscreen_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_indexvalue_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_indexvalue_t)
+ */
+void
+xcb_render_indexvalue_next (xcb_render_indexvalue_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_indexvalue_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_indexvalue_end (xcb_render_indexvalue_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_color_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_color_t)
+ */
+void
+xcb_render_color_next (xcb_render_color_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_color_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_color_end (xcb_render_color_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_pointfix_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_pointfix_t)
+ */
+void
+xcb_render_pointfix_next (xcb_render_pointfix_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_pointfix_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_pointfix_end (xcb_render_pointfix_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_linefix_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_linefix_t)
+ */
+void
+xcb_render_linefix_next (xcb_render_linefix_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_linefix_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_linefix_end (xcb_render_linefix_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_triangle_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_triangle_t)
+ */
+void
+xcb_render_triangle_next (xcb_render_triangle_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_triangle_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_triangle_end (xcb_render_triangle_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_trapezoid_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_trapezoid_t)
+ */
+void
+xcb_render_trapezoid_next (xcb_render_trapezoid_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_trapezoid_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_trapezoid_end (xcb_render_trapezoid_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_glyphinfo_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_glyphinfo_t)
+ */
+void
+xcb_render_glyphinfo_next (xcb_render_glyphinfo_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_glyphinfo_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_glyphinfo_end (xcb_render_glyphinfo_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_render_query_version_cookie_t
+xcb_render_query_version (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_render_query_version_cookie_t
+xcb_render_query_version_unchecked (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_render_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_render_query_version_reply_t *
+xcb_render_query_version_reply (xcb_connection_t *c,
+ xcb_render_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_render_query_pict_formats_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_render_query_pict_formats_cookie_t
+xcb_render_query_pict_formats (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_render_query_pict_formats_cookie_t
+xcb_render_query_pict_formats_unchecked (xcb_connection_t *c);
+
+xcb_render_pictforminfo_t *
+xcb_render_query_pict_formats_formats (const xcb_render_query_pict_formats_reply_t *R);
+
+int
+xcb_render_query_pict_formats_formats_length (const xcb_render_query_pict_formats_reply_t *R);
+
+xcb_render_pictforminfo_iterator_t
+xcb_render_query_pict_formats_formats_iterator (const xcb_render_query_pict_formats_reply_t *R);
+
+int
+xcb_render_query_pict_formats_screens_length (const xcb_render_query_pict_formats_reply_t *R);
+
+xcb_render_pictscreen_iterator_t
+xcb_render_query_pict_formats_screens_iterator (const xcb_render_query_pict_formats_reply_t *R);
+
+uint32_t *
+xcb_render_query_pict_formats_subpixels (const xcb_render_query_pict_formats_reply_t *R);
+
+int
+xcb_render_query_pict_formats_subpixels_length (const xcb_render_query_pict_formats_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_render_query_pict_formats_subpixels_end (const xcb_render_query_pict_formats_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_render_query_pict_formats_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_render_query_pict_formats_reply_t *
+xcb_render_query_pict_formats_reply (xcb_connection_t *c,
+ xcb_render_query_pict_formats_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_render_query_pict_index_values_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_render_query_pict_index_values_cookie_t
+xcb_render_query_pict_index_values (xcb_connection_t *c,
+ xcb_render_pictformat_t format);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_render_query_pict_index_values_cookie_t
+xcb_render_query_pict_index_values_unchecked (xcb_connection_t *c,
+ xcb_render_pictformat_t format);
+
+xcb_render_indexvalue_t *
+xcb_render_query_pict_index_values_values (const xcb_render_query_pict_index_values_reply_t *R);
+
+int
+xcb_render_query_pict_index_values_values_length (const xcb_render_query_pict_index_values_reply_t *R);
+
+xcb_render_indexvalue_iterator_t
+xcb_render_query_pict_index_values_values_iterator (const xcb_render_query_pict_index_values_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_render_query_pict_index_values_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_render_query_pict_index_values_reply_t *
+xcb_render_query_pict_index_values_reply (xcb_connection_t *c,
+ xcb_render_query_pict_index_values_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_render_create_picture_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_render_create_picture_value_list_t *_aux);
+
+int
+xcb_render_create_picture_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_render_create_picture_value_list_t *_aux);
+
+int
+xcb_render_create_picture_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_render_create_picture_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_picture_checked (xcb_connection_t *c,
+ xcb_render_picture_t pid,
+ xcb_drawable_t drawable,
+ xcb_render_pictformat_t format,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_picture (xcb_connection_t *c,
+ xcb_render_picture_t pid,
+ xcb_drawable_t drawable,
+ xcb_render_pictformat_t format,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_picture_aux_checked (xcb_connection_t *c,
+ xcb_render_picture_t pid,
+ xcb_drawable_t drawable,
+ xcb_render_pictformat_t format,
+ uint32_t value_mask,
+ const xcb_render_create_picture_value_list_t *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_picture_aux (xcb_connection_t *c,
+ xcb_render_picture_t pid,
+ xcb_drawable_t drawable,
+ xcb_render_pictformat_t format,
+ uint32_t value_mask,
+ const xcb_render_create_picture_value_list_t *value_list);
+
+void *
+xcb_render_create_picture_value_list (const xcb_render_create_picture_request_t *R);
+
+int
+xcb_render_change_picture_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_render_change_picture_value_list_t *_aux);
+
+int
+xcb_render_change_picture_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_render_change_picture_value_list_t *_aux);
+
+int
+xcb_render_change_picture_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_render_change_picture_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_change_picture_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_change_picture (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_change_picture_aux_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ uint32_t value_mask,
+ const xcb_render_change_picture_value_list_t *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_change_picture_aux (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ uint32_t value_mask,
+ const xcb_render_change_picture_value_list_t *value_list);
+
+void *
+xcb_render_change_picture_value_list (const xcb_render_change_picture_request_t *R);
+
+int
+xcb_render_set_picture_clip_rectangles_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_set_picture_clip_rectangles_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ int16_t clip_x_origin,
+ int16_t clip_y_origin,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_set_picture_clip_rectangles (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ int16_t clip_x_origin,
+ int16_t clip_y_origin,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_render_set_picture_clip_rectangles_rectangles (const xcb_render_set_picture_clip_rectangles_request_t *R);
+
+int
+xcb_render_set_picture_clip_rectangles_rectangles_length (const xcb_render_set_picture_clip_rectangles_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_render_set_picture_clip_rectangles_rectangles_iterator (const xcb_render_set_picture_clip_rectangles_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_free_picture_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_free_picture (xcb_connection_t *c,
+ xcb_render_picture_t picture);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_composite_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t mask,
+ xcb_render_picture_t dst,
+ int16_t src_x,
+ int16_t src_y,
+ int16_t mask_x,
+ int16_t mask_y,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_composite (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t mask,
+ xcb_render_picture_t dst,
+ int16_t src_x,
+ int16_t src_y,
+ int16_t mask_x,
+ int16_t mask_y,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint16_t width,
+ uint16_t height);
+
+int
+xcb_render_trapezoids_sizeof (const void *_buffer,
+ uint32_t traps_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_trapezoids_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t traps_len,
+ const xcb_render_trapezoid_t *traps);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_trapezoids (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t traps_len,
+ const xcb_render_trapezoid_t *traps);
+
+xcb_render_trapezoid_t *
+xcb_render_trapezoids_traps (const xcb_render_trapezoids_request_t *R);
+
+int
+xcb_render_trapezoids_traps_length (const xcb_render_trapezoids_request_t *R);
+
+xcb_render_trapezoid_iterator_t
+xcb_render_trapezoids_traps_iterator (const xcb_render_trapezoids_request_t *R);
+
+int
+xcb_render_triangles_sizeof (const void *_buffer,
+ uint32_t triangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_triangles_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t triangles_len,
+ const xcb_render_triangle_t *triangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_triangles (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t triangles_len,
+ const xcb_render_triangle_t *triangles);
+
+xcb_render_triangle_t *
+xcb_render_triangles_triangles (const xcb_render_triangles_request_t *R);
+
+int
+xcb_render_triangles_triangles_length (const xcb_render_triangles_request_t *R);
+
+xcb_render_triangle_iterator_t
+xcb_render_triangles_triangles_iterator (const xcb_render_triangles_request_t *R);
+
+int
+xcb_render_tri_strip_sizeof (const void *_buffer,
+ uint32_t points_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_tri_strip_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t points_len,
+ const xcb_render_pointfix_t *points);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_tri_strip (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t points_len,
+ const xcb_render_pointfix_t *points);
+
+xcb_render_pointfix_t *
+xcb_render_tri_strip_points (const xcb_render_tri_strip_request_t *R);
+
+int
+xcb_render_tri_strip_points_length (const xcb_render_tri_strip_request_t *R);
+
+xcb_render_pointfix_iterator_t
+xcb_render_tri_strip_points_iterator (const xcb_render_tri_strip_request_t *R);
+
+int
+xcb_render_tri_fan_sizeof (const void *_buffer,
+ uint32_t points_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_tri_fan_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t points_len,
+ const xcb_render_pointfix_t *points);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_tri_fan (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t points_len,
+ const xcb_render_pointfix_t *points);
+
+xcb_render_pointfix_t *
+xcb_render_tri_fan_points (const xcb_render_tri_fan_request_t *R);
+
+int
+xcb_render_tri_fan_points_length (const xcb_render_tri_fan_request_t *R);
+
+xcb_render_pointfix_iterator_t
+xcb_render_tri_fan_points_iterator (const xcb_render_tri_fan_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_glyph_set_checked (xcb_connection_t *c,
+ xcb_render_glyphset_t gsid,
+ xcb_render_pictformat_t format);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_glyph_set (xcb_connection_t *c,
+ xcb_render_glyphset_t gsid,
+ xcb_render_pictformat_t format);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_reference_glyph_set_checked (xcb_connection_t *c,
+ xcb_render_glyphset_t gsid,
+ xcb_render_glyphset_t existing);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_reference_glyph_set (xcb_connection_t *c,
+ xcb_render_glyphset_t gsid,
+ xcb_render_glyphset_t existing);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_free_glyph_set_checked (xcb_connection_t *c,
+ xcb_render_glyphset_t glyphset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_free_glyph_set (xcb_connection_t *c,
+ xcb_render_glyphset_t glyphset);
+
+int
+xcb_render_add_glyphs_sizeof (const void *_buffer,
+ uint32_t data_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_add_glyphs_checked (xcb_connection_t *c,
+ xcb_render_glyphset_t glyphset,
+ uint32_t glyphs_len,
+ const uint32_t *glyphids,
+ const xcb_render_glyphinfo_t *glyphs,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_add_glyphs (xcb_connection_t *c,
+ xcb_render_glyphset_t glyphset,
+ uint32_t glyphs_len,
+ const uint32_t *glyphids,
+ const xcb_render_glyphinfo_t *glyphs,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint32_t *
+xcb_render_add_glyphs_glyphids (const xcb_render_add_glyphs_request_t *R);
+
+int
+xcb_render_add_glyphs_glyphids_length (const xcb_render_add_glyphs_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_add_glyphs_glyphids_end (const xcb_render_add_glyphs_request_t *R);
+
+xcb_render_glyphinfo_t *
+xcb_render_add_glyphs_glyphs (const xcb_render_add_glyphs_request_t *R);
+
+int
+xcb_render_add_glyphs_glyphs_length (const xcb_render_add_glyphs_request_t *R);
+
+xcb_render_glyphinfo_iterator_t
+xcb_render_add_glyphs_glyphs_iterator (const xcb_render_add_glyphs_request_t *R);
+
+uint8_t *
+xcb_render_add_glyphs_data (const xcb_render_add_glyphs_request_t *R);
+
+int
+xcb_render_add_glyphs_data_length (const xcb_render_add_glyphs_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_add_glyphs_data_end (const xcb_render_add_glyphs_request_t *R);
+
+int
+xcb_render_free_glyphs_sizeof (const void *_buffer,
+ uint32_t glyphs_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_free_glyphs_checked (xcb_connection_t *c,
+ xcb_render_glyphset_t glyphset,
+ uint32_t glyphs_len,
+ const xcb_render_glyph_t *glyphs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_free_glyphs (xcb_connection_t *c,
+ xcb_render_glyphset_t glyphset,
+ uint32_t glyphs_len,
+ const xcb_render_glyph_t *glyphs);
+
+xcb_render_glyph_t *
+xcb_render_free_glyphs_glyphs (const xcb_render_free_glyphs_request_t *R);
+
+int
+xcb_render_free_glyphs_glyphs_length (const xcb_render_free_glyphs_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_free_glyphs_glyphs_end (const xcb_render_free_glyphs_request_t *R);
+
+int
+xcb_render_composite_glyphs_8_sizeof (const void *_buffer,
+ uint32_t glyphcmds_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_composite_glyphs_8_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ xcb_render_glyphset_t glyphset,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t glyphcmds_len,
+ const uint8_t *glyphcmds);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_composite_glyphs_8 (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ xcb_render_glyphset_t glyphset,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t glyphcmds_len,
+ const uint8_t *glyphcmds);
+
+uint8_t *
+xcb_render_composite_glyphs_8_glyphcmds (const xcb_render_composite_glyphs_8_request_t *R);
+
+int
+xcb_render_composite_glyphs_8_glyphcmds_length (const xcb_render_composite_glyphs_8_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_composite_glyphs_8_glyphcmds_end (const xcb_render_composite_glyphs_8_request_t *R);
+
+int
+xcb_render_composite_glyphs_16_sizeof (const void *_buffer,
+ uint32_t glyphcmds_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_composite_glyphs_16_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ xcb_render_glyphset_t glyphset,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t glyphcmds_len,
+ const uint8_t *glyphcmds);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_composite_glyphs_16 (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ xcb_render_glyphset_t glyphset,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t glyphcmds_len,
+ const uint8_t *glyphcmds);
+
+uint8_t *
+xcb_render_composite_glyphs_16_glyphcmds (const xcb_render_composite_glyphs_16_request_t *R);
+
+int
+xcb_render_composite_glyphs_16_glyphcmds_length (const xcb_render_composite_glyphs_16_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_composite_glyphs_16_glyphcmds_end (const xcb_render_composite_glyphs_16_request_t *R);
+
+int
+xcb_render_composite_glyphs_32_sizeof (const void *_buffer,
+ uint32_t glyphcmds_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_composite_glyphs_32_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ xcb_render_glyphset_t glyphset,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t glyphcmds_len,
+ const uint8_t *glyphcmds);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_composite_glyphs_32 (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t src,
+ xcb_render_picture_t dst,
+ xcb_render_pictformat_t mask_format,
+ xcb_render_glyphset_t glyphset,
+ int16_t src_x,
+ int16_t src_y,
+ uint32_t glyphcmds_len,
+ const uint8_t *glyphcmds);
+
+uint8_t *
+xcb_render_composite_glyphs_32_glyphcmds (const xcb_render_composite_glyphs_32_request_t *R);
+
+int
+xcb_render_composite_glyphs_32_glyphcmds_length (const xcb_render_composite_glyphs_32_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_composite_glyphs_32_glyphcmds_end (const xcb_render_composite_glyphs_32_request_t *R);
+
+int
+xcb_render_fill_rectangles_sizeof (const void *_buffer,
+ uint32_t rects_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_fill_rectangles_checked (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t dst,
+ xcb_render_color_t color,
+ uint32_t rects_len,
+ const xcb_rectangle_t *rects);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_fill_rectangles (xcb_connection_t *c,
+ uint8_t op,
+ xcb_render_picture_t dst,
+ xcb_render_color_t color,
+ uint32_t rects_len,
+ const xcb_rectangle_t *rects);
+
+xcb_rectangle_t *
+xcb_render_fill_rectangles_rects (const xcb_render_fill_rectangles_request_t *R);
+
+int
+xcb_render_fill_rectangles_rects_length (const xcb_render_fill_rectangles_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_render_fill_rectangles_rects_iterator (const xcb_render_fill_rectangles_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ xcb_render_picture_t source,
+ uint16_t x,
+ uint16_t y);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_cursor (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ xcb_render_picture_t source,
+ uint16_t x,
+ uint16_t y);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_transform_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_transform_t)
+ */
+void
+xcb_render_transform_next (xcb_render_transform_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_transform_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_transform_end (xcb_render_transform_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_set_picture_transform_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_transform_t transform);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_set_picture_transform (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_transform_t transform);
+
+int
+xcb_render_query_filters_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_render_query_filters_cookie_t
+xcb_render_query_filters (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_render_query_filters_cookie_t
+xcb_render_query_filters_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+uint16_t *
+xcb_render_query_filters_aliases (const xcb_render_query_filters_reply_t *R);
+
+int
+xcb_render_query_filters_aliases_length (const xcb_render_query_filters_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_render_query_filters_aliases_end (const xcb_render_query_filters_reply_t *R);
+
+int
+xcb_render_query_filters_filters_length (const xcb_render_query_filters_reply_t *R);
+
+xcb_str_iterator_t
+xcb_render_query_filters_filters_iterator (const xcb_render_query_filters_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_render_query_filters_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_render_query_filters_reply_t *
+xcb_render_query_filters_reply (xcb_connection_t *c,
+ xcb_render_query_filters_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_render_set_picture_filter_sizeof (const void *_buffer,
+ uint32_t values_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_set_picture_filter_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ uint16_t filter_len,
+ const char *filter,
+ uint32_t values_len,
+ const xcb_render_fixed_t *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_set_picture_filter (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ uint16_t filter_len,
+ const char *filter,
+ uint32_t values_len,
+ const xcb_render_fixed_t *values);
+
+char *
+xcb_render_set_picture_filter_filter (const xcb_render_set_picture_filter_request_t *R);
+
+int
+xcb_render_set_picture_filter_filter_length (const xcb_render_set_picture_filter_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_set_picture_filter_filter_end (const xcb_render_set_picture_filter_request_t *R);
+
+xcb_render_fixed_t *
+xcb_render_set_picture_filter_values (const xcb_render_set_picture_filter_request_t *R);
+
+int
+xcb_render_set_picture_filter_values_length (const xcb_render_set_picture_filter_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_set_picture_filter_values_end (const xcb_render_set_picture_filter_request_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_animcursorelt_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_animcursorelt_t)
+ */
+void
+xcb_render_animcursorelt_next (xcb_render_animcursorelt_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_animcursorelt_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_animcursorelt_end (xcb_render_animcursorelt_iterator_t i);
+
+int
+xcb_render_create_anim_cursor_sizeof (const void *_buffer,
+ uint32_t cursors_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_anim_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ uint32_t cursors_len,
+ const xcb_render_animcursorelt_t *cursors);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_anim_cursor (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ uint32_t cursors_len,
+ const xcb_render_animcursorelt_t *cursors);
+
+xcb_render_animcursorelt_t *
+xcb_render_create_anim_cursor_cursors (const xcb_render_create_anim_cursor_request_t *R);
+
+int
+xcb_render_create_anim_cursor_cursors_length (const xcb_render_create_anim_cursor_request_t *R);
+
+xcb_render_animcursorelt_iterator_t
+xcb_render_create_anim_cursor_cursors_iterator (const xcb_render_create_anim_cursor_request_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_spanfix_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_spanfix_t)
+ */
+void
+xcb_render_spanfix_next (xcb_render_spanfix_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_spanfix_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_spanfix_end (xcb_render_spanfix_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_render_trap_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_render_trap_t)
+ */
+void
+xcb_render_trap_next (xcb_render_trap_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_render_trap_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_render_trap_end (xcb_render_trap_iterator_t i);
+
+int
+xcb_render_add_traps_sizeof (const void *_buffer,
+ uint32_t traps_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_add_traps_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ int16_t x_off,
+ int16_t y_off,
+ uint32_t traps_len,
+ const xcb_render_trap_t *traps);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_add_traps (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ int16_t x_off,
+ int16_t y_off,
+ uint32_t traps_len,
+ const xcb_render_trap_t *traps);
+
+xcb_render_trap_t *
+xcb_render_add_traps_traps (const xcb_render_add_traps_request_t *R);
+
+int
+xcb_render_add_traps_traps_length (const xcb_render_add_traps_request_t *R);
+
+xcb_render_trap_iterator_t
+xcb_render_add_traps_traps_iterator (const xcb_render_add_traps_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_solid_fill_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_color_t color);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_solid_fill (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_color_t color);
+
+int
+xcb_render_create_linear_gradient_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_linear_gradient_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_pointfix_t p1,
+ xcb_render_pointfix_t p2,
+ uint32_t num_stops,
+ const xcb_render_fixed_t *stops,
+ const xcb_render_color_t *colors);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_linear_gradient (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_pointfix_t p1,
+ xcb_render_pointfix_t p2,
+ uint32_t num_stops,
+ const xcb_render_fixed_t *stops,
+ const xcb_render_color_t *colors);
+
+xcb_render_fixed_t *
+xcb_render_create_linear_gradient_stops (const xcb_render_create_linear_gradient_request_t *R);
+
+int
+xcb_render_create_linear_gradient_stops_length (const xcb_render_create_linear_gradient_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_create_linear_gradient_stops_end (const xcb_render_create_linear_gradient_request_t *R);
+
+xcb_render_color_t *
+xcb_render_create_linear_gradient_colors (const xcb_render_create_linear_gradient_request_t *R);
+
+int
+xcb_render_create_linear_gradient_colors_length (const xcb_render_create_linear_gradient_request_t *R);
+
+xcb_render_color_iterator_t
+xcb_render_create_linear_gradient_colors_iterator (const xcb_render_create_linear_gradient_request_t *R);
+
+int
+xcb_render_create_radial_gradient_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_radial_gradient_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_pointfix_t inner,
+ xcb_render_pointfix_t outer,
+ xcb_render_fixed_t inner_radius,
+ xcb_render_fixed_t outer_radius,
+ uint32_t num_stops,
+ const xcb_render_fixed_t *stops,
+ const xcb_render_color_t *colors);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_radial_gradient (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_pointfix_t inner,
+ xcb_render_pointfix_t outer,
+ xcb_render_fixed_t inner_radius,
+ xcb_render_fixed_t outer_radius,
+ uint32_t num_stops,
+ const xcb_render_fixed_t *stops,
+ const xcb_render_color_t *colors);
+
+xcb_render_fixed_t *
+xcb_render_create_radial_gradient_stops (const xcb_render_create_radial_gradient_request_t *R);
+
+int
+xcb_render_create_radial_gradient_stops_length (const xcb_render_create_radial_gradient_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_create_radial_gradient_stops_end (const xcb_render_create_radial_gradient_request_t *R);
+
+xcb_render_color_t *
+xcb_render_create_radial_gradient_colors (const xcb_render_create_radial_gradient_request_t *R);
+
+int
+xcb_render_create_radial_gradient_colors_length (const xcb_render_create_radial_gradient_request_t *R);
+
+xcb_render_color_iterator_t
+xcb_render_create_radial_gradient_colors_iterator (const xcb_render_create_radial_gradient_request_t *R);
+
+int
+xcb_render_create_conical_gradient_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_render_create_conical_gradient_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_pointfix_t center,
+ xcb_render_fixed_t angle,
+ uint32_t num_stops,
+ const xcb_render_fixed_t *stops,
+ const xcb_render_color_t *colors);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_render_create_conical_gradient (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_render_pointfix_t center,
+ xcb_render_fixed_t angle,
+ uint32_t num_stops,
+ const xcb_render_fixed_t *stops,
+ const xcb_render_color_t *colors);
+
+xcb_render_fixed_t *
+xcb_render_create_conical_gradient_stops (const xcb_render_create_conical_gradient_request_t *R);
+
+int
+xcb_render_create_conical_gradient_stops_length (const xcb_render_create_conical_gradient_request_t *R);
+
+xcb_generic_iterator_t
+xcb_render_create_conical_gradient_stops_end (const xcb_render_create_conical_gradient_request_t *R);
+
+xcb_render_color_t *
+xcb_render_create_conical_gradient_colors (const xcb_render_create_conical_gradient_request_t *R);
+
+int
+xcb_render_create_conical_gradient_colors_length (const xcb_render_create_conical_gradient_request_t *R);
+
+xcb_render_color_iterator_t
+xcb_render_create_conical_gradient_colors_iterator (const xcb_render_create_conical_gradient_request_t *R);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/res.h b/depends/libxcb/include/xcb/res.h
new file mode 100644
index 0000000..40afb63
--- /dev/null
+++ b/depends/libxcb/include/xcb/res.h
@@ -0,0 +1,864 @@
+/*
+ * This file generated automatically from res.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Res_API XCB Res API
+ * @brief Res XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __RES_H
+#define __RES_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_RES_MAJOR_VERSION 1
+#define XCB_RES_MINOR_VERSION 2
+
+extern xcb_extension_t xcb_res_id;
+
+/**
+ * @brief xcb_res_client_t
+ **/
+typedef struct xcb_res_client_t {
+ uint32_t resource_base;
+ uint32_t resource_mask;
+} xcb_res_client_t;
+
+/**
+ * @brief xcb_res_client_iterator_t
+ **/
+typedef struct xcb_res_client_iterator_t {
+ xcb_res_client_t *data;
+ int rem;
+ int index;
+} xcb_res_client_iterator_t;
+
+/**
+ * @brief xcb_res_type_t
+ **/
+typedef struct xcb_res_type_t {
+ xcb_atom_t resource_type;
+ uint32_t count;
+} xcb_res_type_t;
+
+/**
+ * @brief xcb_res_type_iterator_t
+ **/
+typedef struct xcb_res_type_iterator_t {
+ xcb_res_type_t *data;
+ int rem;
+ int index;
+} xcb_res_type_iterator_t;
+
+typedef enum xcb_res_client_id_mask_t {
+ XCB_RES_CLIENT_ID_MASK_CLIENT_XID = 1,
+ XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = 2
+} xcb_res_client_id_mask_t;
+
+/**
+ * @brief xcb_res_client_id_spec_t
+ **/
+typedef struct xcb_res_client_id_spec_t {
+ uint32_t client;
+ uint32_t mask;
+} xcb_res_client_id_spec_t;
+
+/**
+ * @brief xcb_res_client_id_spec_iterator_t
+ **/
+typedef struct xcb_res_client_id_spec_iterator_t {
+ xcb_res_client_id_spec_t *data;
+ int rem;
+ int index;
+} xcb_res_client_id_spec_iterator_t;
+
+/**
+ * @brief xcb_res_client_id_value_t
+ **/
+typedef struct xcb_res_client_id_value_t {
+ xcb_res_client_id_spec_t spec;
+ uint32_t length;
+} xcb_res_client_id_value_t;
+
+/**
+ * @brief xcb_res_client_id_value_iterator_t
+ **/
+typedef struct xcb_res_client_id_value_iterator_t {
+ xcb_res_client_id_value_t *data;
+ int rem;
+ int index;
+} xcb_res_client_id_value_iterator_t;
+
+/**
+ * @brief xcb_res_resource_id_spec_t
+ **/
+typedef struct xcb_res_resource_id_spec_t {
+ uint32_t resource;
+ uint32_t type;
+} xcb_res_resource_id_spec_t;
+
+/**
+ * @brief xcb_res_resource_id_spec_iterator_t
+ **/
+typedef struct xcb_res_resource_id_spec_iterator_t {
+ xcb_res_resource_id_spec_t *data;
+ int rem;
+ int index;
+} xcb_res_resource_id_spec_iterator_t;
+
+/**
+ * @brief xcb_res_resource_size_spec_t
+ **/
+typedef struct xcb_res_resource_size_spec_t {
+ xcb_res_resource_id_spec_t spec;
+ uint32_t bytes;
+ uint32_t ref_count;
+ uint32_t use_count;
+} xcb_res_resource_size_spec_t;
+
+/**
+ * @brief xcb_res_resource_size_spec_iterator_t
+ **/
+typedef struct xcb_res_resource_size_spec_iterator_t {
+ xcb_res_resource_size_spec_t *data;
+ int rem;
+ int index;
+} xcb_res_resource_size_spec_iterator_t;
+
+/**
+ * @brief xcb_res_resource_size_value_t
+ **/
+typedef struct xcb_res_resource_size_value_t {
+ xcb_res_resource_size_spec_t size;
+ uint32_t num_cross_references;
+} xcb_res_resource_size_value_t;
+
+/**
+ * @brief xcb_res_resource_size_value_iterator_t
+ **/
+typedef struct xcb_res_resource_size_value_iterator_t {
+ xcb_res_resource_size_value_t *data;
+ int rem;
+ int index;
+} xcb_res_resource_size_value_iterator_t;
+
+/**
+ * @brief xcb_res_query_version_cookie_t
+ **/
+typedef struct xcb_res_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_res_query_version_cookie_t;
+
+/** Opcode for xcb_res_query_version. */
+#define XCB_RES_QUERY_VERSION 0
+
+/**
+ * @brief xcb_res_query_version_request_t
+ **/
+typedef struct xcb_res_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t client_major;
+ uint8_t client_minor;
+} xcb_res_query_version_request_t;
+
+/**
+ * @brief xcb_res_query_version_reply_t
+ **/
+typedef struct xcb_res_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major;
+ uint16_t server_minor;
+} xcb_res_query_version_reply_t;
+
+/**
+ * @brief xcb_res_query_clients_cookie_t
+ **/
+typedef struct xcb_res_query_clients_cookie_t {
+ unsigned int sequence;
+} xcb_res_query_clients_cookie_t;
+
+/** Opcode for xcb_res_query_clients. */
+#define XCB_RES_QUERY_CLIENTS 1
+
+/**
+ * @brief xcb_res_query_clients_request_t
+ **/
+typedef struct xcb_res_query_clients_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_res_query_clients_request_t;
+
+/**
+ * @brief xcb_res_query_clients_reply_t
+ **/
+typedef struct xcb_res_query_clients_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_clients;
+ uint8_t pad1[20];
+} xcb_res_query_clients_reply_t;
+
+/**
+ * @brief xcb_res_query_client_resources_cookie_t
+ **/
+typedef struct xcb_res_query_client_resources_cookie_t {
+ unsigned int sequence;
+} xcb_res_query_client_resources_cookie_t;
+
+/** Opcode for xcb_res_query_client_resources. */
+#define XCB_RES_QUERY_CLIENT_RESOURCES 2
+
+/**
+ * @brief xcb_res_query_client_resources_request_t
+ **/
+typedef struct xcb_res_query_client_resources_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t xid;
+} xcb_res_query_client_resources_request_t;
+
+/**
+ * @brief xcb_res_query_client_resources_reply_t
+ **/
+typedef struct xcb_res_query_client_resources_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_types;
+ uint8_t pad1[20];
+} xcb_res_query_client_resources_reply_t;
+
+/**
+ * @brief xcb_res_query_client_pixmap_bytes_cookie_t
+ **/
+typedef struct xcb_res_query_client_pixmap_bytes_cookie_t {
+ unsigned int sequence;
+} xcb_res_query_client_pixmap_bytes_cookie_t;
+
+/** Opcode for xcb_res_query_client_pixmap_bytes. */
+#define XCB_RES_QUERY_CLIENT_PIXMAP_BYTES 3
+
+/**
+ * @brief xcb_res_query_client_pixmap_bytes_request_t
+ **/
+typedef struct xcb_res_query_client_pixmap_bytes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t xid;
+} xcb_res_query_client_pixmap_bytes_request_t;
+
+/**
+ * @brief xcb_res_query_client_pixmap_bytes_reply_t
+ **/
+typedef struct xcb_res_query_client_pixmap_bytes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t bytes;
+ uint32_t bytes_overflow;
+} xcb_res_query_client_pixmap_bytes_reply_t;
+
+/**
+ * @brief xcb_res_query_client_ids_cookie_t
+ **/
+typedef struct xcb_res_query_client_ids_cookie_t {
+ unsigned int sequence;
+} xcb_res_query_client_ids_cookie_t;
+
+/** Opcode for xcb_res_query_client_ids. */
+#define XCB_RES_QUERY_CLIENT_IDS 4
+
+/**
+ * @brief xcb_res_query_client_ids_request_t
+ **/
+typedef struct xcb_res_query_client_ids_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t num_specs;
+} xcb_res_query_client_ids_request_t;
+
+/**
+ * @brief xcb_res_query_client_ids_reply_t
+ **/
+typedef struct xcb_res_query_client_ids_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_ids;
+ uint8_t pad1[20];
+} xcb_res_query_client_ids_reply_t;
+
+/**
+ * @brief xcb_res_query_resource_bytes_cookie_t
+ **/
+typedef struct xcb_res_query_resource_bytes_cookie_t {
+ unsigned int sequence;
+} xcb_res_query_resource_bytes_cookie_t;
+
+/** Opcode for xcb_res_query_resource_bytes. */
+#define XCB_RES_QUERY_RESOURCE_BYTES 5
+
+/**
+ * @brief xcb_res_query_resource_bytes_request_t
+ **/
+typedef struct xcb_res_query_resource_bytes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t client;
+ uint32_t num_specs;
+} xcb_res_query_resource_bytes_request_t;
+
+/**
+ * @brief xcb_res_query_resource_bytes_reply_t
+ **/
+typedef struct xcb_res_query_resource_bytes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_sizes;
+ uint8_t pad1[20];
+} xcb_res_query_resource_bytes_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_client_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_client_t)
+ */
+void
+xcb_res_client_next (xcb_res_client_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_client_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_client_end (xcb_res_client_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_type_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_type_t)
+ */
+void
+xcb_res_type_next (xcb_res_type_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_type_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_type_end (xcb_res_type_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_client_id_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_client_id_spec_t)
+ */
+void
+xcb_res_client_id_spec_next (xcb_res_client_id_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_client_id_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_client_id_spec_end (xcb_res_client_id_spec_iterator_t i);
+
+int
+xcb_res_client_id_value_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R);
+
+int
+xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R);
+
+xcb_generic_iterator_t
+xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_client_id_value_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_client_id_value_t)
+ */
+void
+xcb_res_client_id_value_next (xcb_res_client_id_value_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_client_id_value_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_client_id_value_end (xcb_res_client_id_value_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_resource_id_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_resource_id_spec_t)
+ */
+void
+xcb_res_resource_id_spec_next (xcb_res_resource_id_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_resource_id_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_resource_id_spec_end (xcb_res_resource_id_spec_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_resource_size_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_resource_size_spec_t)
+ */
+void
+xcb_res_resource_size_spec_next (xcb_res_resource_size_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_resource_size_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_resource_size_spec_end (xcb_res_resource_size_spec_iterator_t i);
+
+int
+xcb_res_resource_size_value_sizeof (const void *_buffer);
+
+xcb_res_resource_size_spec_t *
+xcb_res_resource_size_value_cross_references (const xcb_res_resource_size_value_t *R);
+
+int
+xcb_res_resource_size_value_cross_references_length (const xcb_res_resource_size_value_t *R);
+
+xcb_res_resource_size_spec_iterator_t
+xcb_res_resource_size_value_cross_references_iterator (const xcb_res_resource_size_value_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_res_resource_size_value_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_res_resource_size_value_t)
+ */
+void
+xcb_res_resource_size_value_next (xcb_res_resource_size_value_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_res_resource_size_value_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_res_resource_size_value_end (xcb_res_resource_size_value_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_res_query_version_cookie_t
+xcb_res_query_version (xcb_connection_t *c,
+ uint8_t client_major,
+ uint8_t client_minor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_res_query_version_cookie_t
+xcb_res_query_version_unchecked (xcb_connection_t *c,
+ uint8_t client_major,
+ uint8_t client_minor);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_res_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_res_query_version_reply_t *
+xcb_res_query_version_reply (xcb_connection_t *c,
+ xcb_res_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_res_query_clients_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_res_query_clients_cookie_t
+xcb_res_query_clients (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_res_query_clients_cookie_t
+xcb_res_query_clients_unchecked (xcb_connection_t *c);
+
+xcb_res_client_t *
+xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R);
+
+int
+xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R);
+
+xcb_res_client_iterator_t
+xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_res_query_clients_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_res_query_clients_reply_t *
+xcb_res_query_clients_reply (xcb_connection_t *c,
+ xcb_res_query_clients_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_res_query_client_resources_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_res_query_client_resources_cookie_t
+xcb_res_query_client_resources (xcb_connection_t *c,
+ uint32_t xid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_res_query_client_resources_cookie_t
+xcb_res_query_client_resources_unchecked (xcb_connection_t *c,
+ uint32_t xid);
+
+xcb_res_type_t *
+xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R);
+
+int
+xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R);
+
+xcb_res_type_iterator_t
+xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_res_query_client_resources_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_res_query_client_resources_reply_t *
+xcb_res_query_client_resources_reply (xcb_connection_t *c,
+ xcb_res_query_client_resources_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_res_query_client_pixmap_bytes_cookie_t
+xcb_res_query_client_pixmap_bytes (xcb_connection_t *c,
+ uint32_t xid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_res_query_client_pixmap_bytes_cookie_t
+xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c,
+ uint32_t xid);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_res_query_client_pixmap_bytes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_res_query_client_pixmap_bytes_reply_t *
+xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t *c,
+ xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_res_query_client_ids_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_res_query_client_ids_cookie_t
+xcb_res_query_client_ids (xcb_connection_t *c,
+ uint32_t num_specs,
+ const xcb_res_client_id_spec_t *specs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_res_query_client_ids_cookie_t
+xcb_res_query_client_ids_unchecked (xcb_connection_t *c,
+ uint32_t num_specs,
+ const xcb_res_client_id_spec_t *specs);
+
+int
+xcb_res_query_client_ids_ids_length (const xcb_res_query_client_ids_reply_t *R);
+
+xcb_res_client_id_value_iterator_t
+xcb_res_query_client_ids_ids_iterator (const xcb_res_query_client_ids_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_res_query_client_ids_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_res_query_client_ids_reply_t *
+xcb_res_query_client_ids_reply (xcb_connection_t *c,
+ xcb_res_query_client_ids_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_res_query_resource_bytes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_res_query_resource_bytes_cookie_t
+xcb_res_query_resource_bytes (xcb_connection_t *c,
+ uint32_t client,
+ uint32_t num_specs,
+ const xcb_res_resource_id_spec_t *specs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_res_query_resource_bytes_cookie_t
+xcb_res_query_resource_bytes_unchecked (xcb_connection_t *c,
+ uint32_t client,
+ uint32_t num_specs,
+ const xcb_res_resource_id_spec_t *specs);
+
+int
+xcb_res_query_resource_bytes_sizes_length (const xcb_res_query_resource_bytes_reply_t *R);
+
+xcb_res_resource_size_value_iterator_t
+xcb_res_query_resource_bytes_sizes_iterator (const xcb_res_query_resource_bytes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_res_query_resource_bytes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_res_query_resource_bytes_reply_t *
+xcb_res_query_resource_bytes_reply (xcb_connection_t *c,
+ xcb_res_query_resource_bytes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/screensaver.h b/depends/libxcb/include/xcb/screensaver.h
new file mode 100644
index 0000000..f6982ea
--- /dev/null
+++ b/depends/libxcb/include/xcb/screensaver.h
@@ -0,0 +1,517 @@
+/*
+ * This file generated automatically from screensaver.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_ScreenSaver_API XCB ScreenSaver API
+ * @brief ScreenSaver XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __SCREENSAVER_H
+#define __SCREENSAVER_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_SCREENSAVER_MAJOR_VERSION 1
+#define XCB_SCREENSAVER_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_screensaver_id;
+
+typedef enum xcb_screensaver_kind_t {
+ XCB_SCREENSAVER_KIND_BLANKED = 0,
+ XCB_SCREENSAVER_KIND_INTERNAL = 1,
+ XCB_SCREENSAVER_KIND_EXTERNAL = 2
+} xcb_screensaver_kind_t;
+
+typedef enum xcb_screensaver_event_t {
+ XCB_SCREENSAVER_EVENT_NOTIFY_MASK = 1,
+ XCB_SCREENSAVER_EVENT_CYCLE_MASK = 2
+} xcb_screensaver_event_t;
+
+typedef enum xcb_screensaver_state_t {
+ XCB_SCREENSAVER_STATE_OFF = 0,
+ XCB_SCREENSAVER_STATE_ON = 1,
+ XCB_SCREENSAVER_STATE_CYCLE = 2,
+ XCB_SCREENSAVER_STATE_DISABLED = 3
+} xcb_screensaver_state_t;
+
+/**
+ * @brief xcb_screensaver_query_version_cookie_t
+ **/
+typedef struct xcb_screensaver_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_screensaver_query_version_cookie_t;
+
+/** Opcode for xcb_screensaver_query_version. */
+#define XCB_SCREENSAVER_QUERY_VERSION 0
+
+/**
+ * @brief xcb_screensaver_query_version_request_t
+ **/
+typedef struct xcb_screensaver_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t client_major_version;
+ uint8_t client_minor_version;
+ uint8_t pad0[2];
+} xcb_screensaver_query_version_request_t;
+
+/**
+ * @brief xcb_screensaver_query_version_reply_t
+ **/
+typedef struct xcb_screensaver_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major_version;
+ uint16_t server_minor_version;
+ uint8_t pad1[20];
+} xcb_screensaver_query_version_reply_t;
+
+/**
+ * @brief xcb_screensaver_query_info_cookie_t
+ **/
+typedef struct xcb_screensaver_query_info_cookie_t {
+ unsigned int sequence;
+} xcb_screensaver_query_info_cookie_t;
+
+/** Opcode for xcb_screensaver_query_info. */
+#define XCB_SCREENSAVER_QUERY_INFO 1
+
+/**
+ * @brief xcb_screensaver_query_info_request_t
+ **/
+typedef struct xcb_screensaver_query_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_screensaver_query_info_request_t;
+
+/**
+ * @brief xcb_screensaver_query_info_reply_t
+ **/
+typedef struct xcb_screensaver_query_info_reply_t {
+ uint8_t response_type;
+ uint8_t state;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t saver_window;
+ uint32_t ms_until_server;
+ uint32_t ms_since_user_input;
+ uint32_t event_mask;
+ uint8_t kind;
+ uint8_t pad0[7];
+} xcb_screensaver_query_info_reply_t;
+
+/** Opcode for xcb_screensaver_select_input. */
+#define XCB_SCREENSAVER_SELECT_INPUT 2
+
+/**
+ * @brief xcb_screensaver_select_input_request_t
+ **/
+typedef struct xcb_screensaver_select_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t event_mask;
+} xcb_screensaver_select_input_request_t;
+
+/**
+ * @brief xcb_screensaver_set_attributes_value_list_t
+ **/
+typedef struct xcb_screensaver_set_attributes_value_list_t {
+ xcb_pixmap_t background_pixmap;
+ uint32_t background_pixel;
+ xcb_pixmap_t border_pixmap;
+ uint32_t border_pixel;
+ uint32_t bit_gravity;
+ uint32_t win_gravity;
+ uint32_t backing_store;
+ uint32_t backing_planes;
+ uint32_t backing_pixel;
+ xcb_bool32_t override_redirect;
+ xcb_bool32_t save_under;
+ uint32_t event_mask;
+ uint32_t do_not_propogate_mask;
+ xcb_colormap_t colormap;
+ xcb_cursor_t cursor;
+} xcb_screensaver_set_attributes_value_list_t;
+
+/** Opcode for xcb_screensaver_set_attributes. */
+#define XCB_SCREENSAVER_SET_ATTRIBUTES 3
+
+/**
+ * @brief xcb_screensaver_set_attributes_request_t
+ **/
+typedef struct xcb_screensaver_set_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t border_width;
+ uint8_t _class;
+ uint8_t depth;
+ xcb_visualid_t visual;
+ uint32_t value_mask;
+} xcb_screensaver_set_attributes_request_t;
+
+/** Opcode for xcb_screensaver_unset_attributes. */
+#define XCB_SCREENSAVER_UNSET_ATTRIBUTES 4
+
+/**
+ * @brief xcb_screensaver_unset_attributes_request_t
+ **/
+typedef struct xcb_screensaver_unset_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_screensaver_unset_attributes_request_t;
+
+/** Opcode for xcb_screensaver_suspend. */
+#define XCB_SCREENSAVER_SUSPEND 5
+
+/**
+ * @brief xcb_screensaver_suspend_request_t
+ **/
+typedef struct xcb_screensaver_suspend_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t suspend;
+} xcb_screensaver_suspend_request_t;
+
+/** Opcode for xcb_screensaver_notify. */
+#define XCB_SCREENSAVER_NOTIFY 0
+
+/**
+ * @brief xcb_screensaver_notify_event_t
+ **/
+typedef struct xcb_screensaver_notify_event_t {
+ uint8_t response_type;
+ uint8_t state;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t root;
+ xcb_window_t window;
+ uint8_t kind;
+ uint8_t forced;
+ uint8_t pad0[14];
+} xcb_screensaver_notify_event_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_screensaver_query_version_cookie_t
+xcb_screensaver_query_version (xcb_connection_t *c,
+ uint8_t client_major_version,
+ uint8_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_screensaver_query_version_cookie_t
+xcb_screensaver_query_version_unchecked (xcb_connection_t *c,
+ uint8_t client_major_version,
+ uint8_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_screensaver_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_screensaver_query_version_reply_t *
+xcb_screensaver_query_version_reply (xcb_connection_t *c,
+ xcb_screensaver_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_screensaver_query_info_cookie_t
+xcb_screensaver_query_info (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_screensaver_query_info_cookie_t
+xcb_screensaver_query_info_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_screensaver_query_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_screensaver_query_info_reply_t *
+xcb_screensaver_query_info_reply (xcb_connection_t *c,
+ xcb_screensaver_query_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_screensaver_select_input_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_screensaver_select_input (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t event_mask);
+
+int
+xcb_screensaver_set_attributes_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_screensaver_set_attributes_value_list_t *_aux);
+
+int
+xcb_screensaver_set_attributes_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_screensaver_set_attributes_value_list_t *_aux);
+
+int
+xcb_screensaver_set_attributes_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_screensaver_set_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_screensaver_set_attributes_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint8_t _class,
+ uint8_t depth,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_screensaver_set_attributes (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint8_t _class,
+ uint8_t depth,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_screensaver_set_attributes_aux_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint8_t _class,
+ uint8_t depth,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const xcb_screensaver_set_attributes_value_list_t *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_screensaver_set_attributes_aux (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint8_t _class,
+ uint8_t depth,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const xcb_screensaver_set_attributes_value_list_t *value_list);
+
+void *
+xcb_screensaver_set_attributes_value_list (const xcb_screensaver_set_attributes_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_screensaver_unset_attributes_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_screensaver_unset_attributes (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_screensaver_suspend_checked (xcb_connection_t *c,
+ uint32_t suspend);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_screensaver_suspend (xcb_connection_t *c,
+ uint32_t suspend);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/shape.h b/depends/libxcb/include/xcb/shape.h
new file mode 100644
index 0000000..0b3b759
--- /dev/null
+++ b/depends/libxcb/include/xcb/shape.h
@@ -0,0 +1,752 @@
+/*
+ * This file generated automatically from shape.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Shape_API XCB Shape API
+ * @brief Shape XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __SHAPE_H
+#define __SHAPE_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_SHAPE_MAJOR_VERSION 1
+#define XCB_SHAPE_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_shape_id;
+
+typedef uint8_t xcb_shape_op_t;
+
+/**
+ * @brief xcb_shape_op_iterator_t
+ **/
+typedef struct xcb_shape_op_iterator_t {
+ xcb_shape_op_t *data;
+ int rem;
+ int index;
+} xcb_shape_op_iterator_t;
+
+typedef uint8_t xcb_shape_kind_t;
+
+/**
+ * @brief xcb_shape_kind_iterator_t
+ **/
+typedef struct xcb_shape_kind_iterator_t {
+ xcb_shape_kind_t *data;
+ int rem;
+ int index;
+} xcb_shape_kind_iterator_t;
+
+typedef enum xcb_shape_so_t {
+ XCB_SHAPE_SO_SET = 0,
+ XCB_SHAPE_SO_UNION = 1,
+ XCB_SHAPE_SO_INTERSECT = 2,
+ XCB_SHAPE_SO_SUBTRACT = 3,
+ XCB_SHAPE_SO_INVERT = 4
+} xcb_shape_so_t;
+
+typedef enum xcb_shape_sk_t {
+ XCB_SHAPE_SK_BOUNDING = 0,
+ XCB_SHAPE_SK_CLIP = 1,
+ XCB_SHAPE_SK_INPUT = 2
+} xcb_shape_sk_t;
+
+/** Opcode for xcb_shape_notify. */
+#define XCB_SHAPE_NOTIFY 0
+
+/**
+ * @brief xcb_shape_notify_event_t
+ **/
+typedef struct xcb_shape_notify_event_t {
+ uint8_t response_type;
+ xcb_shape_kind_t shape_kind;
+ uint16_t sequence;
+ xcb_window_t affected_window;
+ int16_t extents_x;
+ int16_t extents_y;
+ uint16_t extents_width;
+ uint16_t extents_height;
+ xcb_timestamp_t server_time;
+ uint8_t shaped;
+ uint8_t pad0[11];
+} xcb_shape_notify_event_t;
+
+/**
+ * @brief xcb_shape_query_version_cookie_t
+ **/
+typedef struct xcb_shape_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_shape_query_version_cookie_t;
+
+/** Opcode for xcb_shape_query_version. */
+#define XCB_SHAPE_QUERY_VERSION 0
+
+/**
+ * @brief xcb_shape_query_version_request_t
+ **/
+typedef struct xcb_shape_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_shape_query_version_request_t;
+
+/**
+ * @brief xcb_shape_query_version_reply_t
+ **/
+typedef struct xcb_shape_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+} xcb_shape_query_version_reply_t;
+
+/** Opcode for xcb_shape_rectangles. */
+#define XCB_SHAPE_RECTANGLES 1
+
+/**
+ * @brief xcb_shape_rectangles_request_t
+ **/
+typedef struct xcb_shape_rectangles_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shape_op_t operation;
+ xcb_shape_kind_t destination_kind;
+ uint8_t ordering;
+ uint8_t pad0;
+ xcb_window_t destination_window;
+ int16_t x_offset;
+ int16_t y_offset;
+} xcb_shape_rectangles_request_t;
+
+/** Opcode for xcb_shape_mask. */
+#define XCB_SHAPE_MASK 2
+
+/**
+ * @brief xcb_shape_mask_request_t
+ **/
+typedef struct xcb_shape_mask_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shape_op_t operation;
+ xcb_shape_kind_t destination_kind;
+ uint8_t pad0[2];
+ xcb_window_t destination_window;
+ int16_t x_offset;
+ int16_t y_offset;
+ xcb_pixmap_t source_bitmap;
+} xcb_shape_mask_request_t;
+
+/** Opcode for xcb_shape_combine. */
+#define XCB_SHAPE_COMBINE 3
+
+/**
+ * @brief xcb_shape_combine_request_t
+ **/
+typedef struct xcb_shape_combine_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shape_op_t operation;
+ xcb_shape_kind_t destination_kind;
+ xcb_shape_kind_t source_kind;
+ uint8_t pad0;
+ xcb_window_t destination_window;
+ int16_t x_offset;
+ int16_t y_offset;
+ xcb_window_t source_window;
+} xcb_shape_combine_request_t;
+
+/** Opcode for xcb_shape_offset. */
+#define XCB_SHAPE_OFFSET 4
+
+/**
+ * @brief xcb_shape_offset_request_t
+ **/
+typedef struct xcb_shape_offset_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shape_kind_t destination_kind;
+ uint8_t pad0[3];
+ xcb_window_t destination_window;
+ int16_t x_offset;
+ int16_t y_offset;
+} xcb_shape_offset_request_t;
+
+/**
+ * @brief xcb_shape_query_extents_cookie_t
+ **/
+typedef struct xcb_shape_query_extents_cookie_t {
+ unsigned int sequence;
+} xcb_shape_query_extents_cookie_t;
+
+/** Opcode for xcb_shape_query_extents. */
+#define XCB_SHAPE_QUERY_EXTENTS 5
+
+/**
+ * @brief xcb_shape_query_extents_request_t
+ **/
+typedef struct xcb_shape_query_extents_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t destination_window;
+} xcb_shape_query_extents_request_t;
+
+/**
+ * @brief xcb_shape_query_extents_reply_t
+ **/
+typedef struct xcb_shape_query_extents_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t bounding_shaped;
+ uint8_t clip_shaped;
+ uint8_t pad1[2];
+ int16_t bounding_shape_extents_x;
+ int16_t bounding_shape_extents_y;
+ uint16_t bounding_shape_extents_width;
+ uint16_t bounding_shape_extents_height;
+ int16_t clip_shape_extents_x;
+ int16_t clip_shape_extents_y;
+ uint16_t clip_shape_extents_width;
+ uint16_t clip_shape_extents_height;
+} xcb_shape_query_extents_reply_t;
+
+/** Opcode for xcb_shape_select_input. */
+#define XCB_SHAPE_SELECT_INPUT 6
+
+/**
+ * @brief xcb_shape_select_input_request_t
+ **/
+typedef struct xcb_shape_select_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t destination_window;
+ uint8_t enable;
+ uint8_t pad0[3];
+} xcb_shape_select_input_request_t;
+
+/**
+ * @brief xcb_shape_input_selected_cookie_t
+ **/
+typedef struct xcb_shape_input_selected_cookie_t {
+ unsigned int sequence;
+} xcb_shape_input_selected_cookie_t;
+
+/** Opcode for xcb_shape_input_selected. */
+#define XCB_SHAPE_INPUT_SELECTED 7
+
+/**
+ * @brief xcb_shape_input_selected_request_t
+ **/
+typedef struct xcb_shape_input_selected_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t destination_window;
+} xcb_shape_input_selected_request_t;
+
+/**
+ * @brief xcb_shape_input_selected_reply_t
+ **/
+typedef struct xcb_shape_input_selected_reply_t {
+ uint8_t response_type;
+ uint8_t enabled;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_shape_input_selected_reply_t;
+
+/**
+ * @brief xcb_shape_get_rectangles_cookie_t
+ **/
+typedef struct xcb_shape_get_rectangles_cookie_t {
+ unsigned int sequence;
+} xcb_shape_get_rectangles_cookie_t;
+
+/** Opcode for xcb_shape_get_rectangles. */
+#define XCB_SHAPE_GET_RECTANGLES 8
+
+/**
+ * @brief xcb_shape_get_rectangles_request_t
+ **/
+typedef struct xcb_shape_get_rectangles_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_shape_kind_t source_kind;
+ uint8_t pad0[3];
+} xcb_shape_get_rectangles_request_t;
+
+/**
+ * @brief xcb_shape_get_rectangles_reply_t
+ **/
+typedef struct xcb_shape_get_rectangles_reply_t {
+ uint8_t response_type;
+ uint8_t ordering;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t rectangles_len;
+ uint8_t pad0[20];
+} xcb_shape_get_rectangles_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_shape_op_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_shape_op_t)
+ */
+void
+xcb_shape_op_next (xcb_shape_op_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_shape_op_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_shape_op_end (xcb_shape_op_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_shape_kind_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_shape_kind_t)
+ */
+void
+xcb_shape_kind_next (xcb_shape_kind_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_shape_kind_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_shape_kind_end (xcb_shape_kind_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shape_query_version_cookie_t
+xcb_shape_query_version (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shape_query_version_cookie_t
+xcb_shape_query_version_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shape_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shape_query_version_reply_t *
+xcb_shape_query_version_reply (xcb_connection_t *c,
+ xcb_shape_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_shape_rectangles_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shape_rectangles_checked (xcb_connection_t *c,
+ xcb_shape_op_t operation,
+ xcb_shape_kind_t destination_kind,
+ uint8_t ordering,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shape_rectangles (xcb_connection_t *c,
+ xcb_shape_op_t operation,
+ xcb_shape_kind_t destination_kind,
+ uint8_t ordering,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_shape_rectangles_rectangles (const xcb_shape_rectangles_request_t *R);
+
+int
+xcb_shape_rectangles_rectangles_length (const xcb_shape_rectangles_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_shape_rectangles_rectangles_iterator (const xcb_shape_rectangles_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shape_mask_checked (xcb_connection_t *c,
+ xcb_shape_op_t operation,
+ xcb_shape_kind_t destination_kind,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset,
+ xcb_pixmap_t source_bitmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shape_mask (xcb_connection_t *c,
+ xcb_shape_op_t operation,
+ xcb_shape_kind_t destination_kind,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset,
+ xcb_pixmap_t source_bitmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shape_combine_checked (xcb_connection_t *c,
+ xcb_shape_op_t operation,
+ xcb_shape_kind_t destination_kind,
+ xcb_shape_kind_t source_kind,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset,
+ xcb_window_t source_window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shape_combine (xcb_connection_t *c,
+ xcb_shape_op_t operation,
+ xcb_shape_kind_t destination_kind,
+ xcb_shape_kind_t source_kind,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset,
+ xcb_window_t source_window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shape_offset_checked (xcb_connection_t *c,
+ xcb_shape_kind_t destination_kind,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shape_offset (xcb_connection_t *c,
+ xcb_shape_kind_t destination_kind,
+ xcb_window_t destination_window,
+ int16_t x_offset,
+ int16_t y_offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shape_query_extents_cookie_t
+xcb_shape_query_extents (xcb_connection_t *c,
+ xcb_window_t destination_window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shape_query_extents_cookie_t
+xcb_shape_query_extents_unchecked (xcb_connection_t *c,
+ xcb_window_t destination_window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shape_query_extents_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shape_query_extents_reply_t *
+xcb_shape_query_extents_reply (xcb_connection_t *c,
+ xcb_shape_query_extents_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shape_select_input_checked (xcb_connection_t *c,
+ xcb_window_t destination_window,
+ uint8_t enable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shape_select_input (xcb_connection_t *c,
+ xcb_window_t destination_window,
+ uint8_t enable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shape_input_selected_cookie_t
+xcb_shape_input_selected (xcb_connection_t *c,
+ xcb_window_t destination_window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shape_input_selected_cookie_t
+xcb_shape_input_selected_unchecked (xcb_connection_t *c,
+ xcb_window_t destination_window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shape_input_selected_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shape_input_selected_reply_t *
+xcb_shape_input_selected_reply (xcb_connection_t *c,
+ xcb_shape_input_selected_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_shape_get_rectangles_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shape_get_rectangles_cookie_t
+xcb_shape_get_rectangles (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_shape_kind_t source_kind);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shape_get_rectangles_cookie_t
+xcb_shape_get_rectangles_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_shape_kind_t source_kind);
+
+xcb_rectangle_t *
+xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R);
+
+int
+xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R);
+
+xcb_rectangle_iterator_t
+xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shape_get_rectangles_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shape_get_rectangles_reply_t *
+xcb_shape_get_rectangles_reply (xcb_connection_t *c,
+ xcb_shape_get_rectangles_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/shm.h b/depends/libxcb/include/xcb/shm.h
new file mode 100644
index 0000000..248e0f4
--- /dev/null
+++ b/depends/libxcb/include/xcb/shm.h
@@ -0,0 +1,648 @@
+/*
+ * This file generated automatically from shm.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Shm_API XCB Shm API
+ * @brief Shm XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __SHM_H
+#define __SHM_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_SHM_MAJOR_VERSION 1
+#define XCB_SHM_MINOR_VERSION 2
+
+extern xcb_extension_t xcb_shm_id;
+
+typedef uint32_t xcb_shm_seg_t;
+
+/**
+ * @brief xcb_shm_seg_iterator_t
+ **/
+typedef struct xcb_shm_seg_iterator_t {
+ xcb_shm_seg_t *data;
+ int rem;
+ int index;
+} xcb_shm_seg_iterator_t;
+
+/** Opcode for xcb_shm_completion. */
+#define XCB_SHM_COMPLETION 0
+
+/**
+ * @brief xcb_shm_completion_event_t
+ **/
+typedef struct xcb_shm_completion_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_drawable_t drawable;
+ uint16_t minor_event;
+ uint8_t major_event;
+ uint8_t pad1;
+ xcb_shm_seg_t shmseg;
+ uint32_t offset;
+} xcb_shm_completion_event_t;
+
+/** Opcode for xcb_shm_bad_seg. */
+#define XCB_SHM_BAD_SEG 0
+
+typedef xcb_value_error_t xcb_shm_bad_seg_error_t;
+
+/**
+ * @brief xcb_shm_query_version_cookie_t
+ **/
+typedef struct xcb_shm_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_shm_query_version_cookie_t;
+
+/** Opcode for xcb_shm_query_version. */
+#define XCB_SHM_QUERY_VERSION 0
+
+/**
+ * @brief xcb_shm_query_version_request_t
+ **/
+typedef struct xcb_shm_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_shm_query_version_request_t;
+
+/**
+ * @brief xcb_shm_query_version_reply_t
+ **/
+typedef struct xcb_shm_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t shared_pixmaps;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+ uint16_t uid;
+ uint16_t gid;
+ uint8_t pixmap_format;
+ uint8_t pad0[15];
+} xcb_shm_query_version_reply_t;
+
+/** Opcode for xcb_shm_attach. */
+#define XCB_SHM_ATTACH 1
+
+/**
+ * @brief xcb_shm_attach_request_t
+ **/
+typedef struct xcb_shm_attach_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shm_seg_t shmseg;
+ uint32_t shmid;
+ uint8_t read_only;
+ uint8_t pad0[3];
+} xcb_shm_attach_request_t;
+
+/** Opcode for xcb_shm_detach. */
+#define XCB_SHM_DETACH 2
+
+/**
+ * @brief xcb_shm_detach_request_t
+ **/
+typedef struct xcb_shm_detach_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shm_seg_t shmseg;
+} xcb_shm_detach_request_t;
+
+/** Opcode for xcb_shm_put_image. */
+#define XCB_SHM_PUT_IMAGE 3
+
+/**
+ * @brief xcb_shm_put_image_request_t
+ **/
+typedef struct xcb_shm_put_image_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ uint16_t total_width;
+ uint16_t total_height;
+ uint16_t src_x;
+ uint16_t src_y;
+ uint16_t src_width;
+ uint16_t src_height;
+ int16_t dst_x;
+ int16_t dst_y;
+ uint8_t depth;
+ uint8_t format;
+ uint8_t send_event;
+ uint8_t pad0;
+ xcb_shm_seg_t shmseg;
+ uint32_t offset;
+} xcb_shm_put_image_request_t;
+
+/**
+ * @brief xcb_shm_get_image_cookie_t
+ **/
+typedef struct xcb_shm_get_image_cookie_t {
+ unsigned int sequence;
+} xcb_shm_get_image_cookie_t;
+
+/** Opcode for xcb_shm_get_image. */
+#define XCB_SHM_GET_IMAGE 4
+
+/**
+ * @brief xcb_shm_get_image_request_t
+ **/
+typedef struct xcb_shm_get_image_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint32_t plane_mask;
+ uint8_t format;
+ uint8_t pad0[3];
+ xcb_shm_seg_t shmseg;
+ uint32_t offset;
+} xcb_shm_get_image_request_t;
+
+/**
+ * @brief xcb_shm_get_image_reply_t
+ **/
+typedef struct xcb_shm_get_image_reply_t {
+ uint8_t response_type;
+ uint8_t depth;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_visualid_t visual;
+ uint32_t size;
+} xcb_shm_get_image_reply_t;
+
+/** Opcode for xcb_shm_create_pixmap. */
+#define XCB_SHM_CREATE_PIXMAP 5
+
+/**
+ * @brief xcb_shm_create_pixmap_request_t
+ **/
+typedef struct xcb_shm_create_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_pixmap_t pid;
+ xcb_drawable_t drawable;
+ uint16_t width;
+ uint16_t height;
+ uint8_t depth;
+ uint8_t pad0[3];
+ xcb_shm_seg_t shmseg;
+ uint32_t offset;
+} xcb_shm_create_pixmap_request_t;
+
+/** Opcode for xcb_shm_attach_fd. */
+#define XCB_SHM_ATTACH_FD 6
+
+/**
+ * @brief xcb_shm_attach_fd_request_t
+ **/
+typedef struct xcb_shm_attach_fd_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shm_seg_t shmseg;
+ uint8_t read_only;
+ uint8_t pad0[3];
+} xcb_shm_attach_fd_request_t;
+
+/**
+ * @brief xcb_shm_create_segment_cookie_t
+ **/
+typedef struct xcb_shm_create_segment_cookie_t {
+ unsigned int sequence;
+} xcb_shm_create_segment_cookie_t;
+
+/** Opcode for xcb_shm_create_segment. */
+#define XCB_SHM_CREATE_SEGMENT 7
+
+/**
+ * @brief xcb_shm_create_segment_request_t
+ **/
+typedef struct xcb_shm_create_segment_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_shm_seg_t shmseg;
+ uint32_t size;
+ uint8_t read_only;
+ uint8_t pad0[3];
+} xcb_shm_create_segment_request_t;
+
+/**
+ * @brief xcb_shm_create_segment_reply_t
+ **/
+typedef struct xcb_shm_create_segment_reply_t {
+ uint8_t response_type;
+ uint8_t nfd;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_shm_create_segment_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_shm_seg_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_shm_seg_t)
+ */
+void
+xcb_shm_seg_next (xcb_shm_seg_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_shm_seg_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_shm_seg_end (xcb_shm_seg_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shm_query_version_cookie_t
+xcb_shm_query_version (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shm_query_version_cookie_t
+xcb_shm_query_version_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shm_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shm_query_version_reply_t *
+xcb_shm_query_version_reply (xcb_connection_t *c,
+ xcb_shm_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shm_attach_checked (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg,
+ uint32_t shmid,
+ uint8_t read_only);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shm_attach (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg,
+ uint32_t shmid,
+ uint8_t read_only);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shm_detach_checked (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shm_detach (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shm_put_image_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint16_t total_width,
+ uint16_t total_height,
+ uint16_t src_x,
+ uint16_t src_y,
+ uint16_t src_width,
+ uint16_t src_height,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint8_t depth,
+ uint8_t format,
+ uint8_t send_event,
+ xcb_shm_seg_t shmseg,
+ uint32_t offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shm_put_image (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint16_t total_width,
+ uint16_t total_height,
+ uint16_t src_x,
+ uint16_t src_y,
+ uint16_t src_width,
+ uint16_t src_height,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint8_t depth,
+ uint8_t format,
+ uint8_t send_event,
+ xcb_shm_seg_t shmseg,
+ uint32_t offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shm_get_image_cookie_t
+xcb_shm_get_image (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint32_t plane_mask,
+ uint8_t format,
+ xcb_shm_seg_t shmseg,
+ uint32_t offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shm_get_image_cookie_t
+xcb_shm_get_image_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint32_t plane_mask,
+ uint8_t format,
+ xcb_shm_seg_t shmseg,
+ uint32_t offset);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shm_get_image_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shm_get_image_reply_t *
+xcb_shm_get_image_reply (xcb_connection_t *c,
+ xcb_shm_get_image_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shm_create_pixmap_checked (xcb_connection_t *c,
+ xcb_pixmap_t pid,
+ xcb_drawable_t drawable,
+ uint16_t width,
+ uint16_t height,
+ uint8_t depth,
+ xcb_shm_seg_t shmseg,
+ uint32_t offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shm_create_pixmap (xcb_connection_t *c,
+ xcb_pixmap_t pid,
+ xcb_drawable_t drawable,
+ uint16_t width,
+ uint16_t height,
+ uint8_t depth,
+ xcb_shm_seg_t shmseg,
+ uint32_t offset);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_shm_attach_fd_checked (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg,
+ int32_t shm_fd,
+ uint8_t read_only);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_shm_attach_fd (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg,
+ int32_t shm_fd,
+ uint8_t read_only);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_shm_create_segment_cookie_t
+xcb_shm_create_segment (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg,
+ uint32_t size,
+ uint8_t read_only);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_shm_create_segment_cookie_t
+xcb_shm_create_segment_unchecked (xcb_connection_t *c,
+ xcb_shm_seg_t shmseg,
+ uint32_t size,
+ uint8_t read_only);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_shm_create_segment_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_shm_create_segment_reply_t *
+xcb_shm_create_segment_reply (xcb_connection_t *c,
+ xcb_shm_create_segment_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Return the reply fds
+ * @param c The connection
+ * @param reply The reply
+ *
+ * Returns a pointer to the array of reply fds of the reply.
+ *
+ * The returned value points into the reply and must not be free().
+ * The fds are not managed by xcb. You must close() them before freeing the reply.
+ */
+int *
+xcb_shm_create_segment_reply_fds (xcb_connection_t *c /**< */,
+ xcb_shm_create_segment_reply_t *reply);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/sync.h b/depends/libxcb/include/xcb/sync.h
new file mode 100644
index 0000000..47796e9
--- /dev/null
+++ b/depends/libxcb/include/xcb/sync.h
@@ -0,0 +1,1628 @@
+/*
+ * This file generated automatically from sync.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Sync_API XCB Sync API
+ * @brief Sync XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __SYNC_H
+#define __SYNC_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_SYNC_MAJOR_VERSION 3
+#define XCB_SYNC_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_sync_id;
+
+typedef uint32_t xcb_sync_alarm_t;
+
+/**
+ * @brief xcb_sync_alarm_iterator_t
+ **/
+typedef struct xcb_sync_alarm_iterator_t {
+ xcb_sync_alarm_t *data;
+ int rem;
+ int index;
+} xcb_sync_alarm_iterator_t;
+
+typedef enum xcb_sync_alarmstate_t {
+ XCB_SYNC_ALARMSTATE_ACTIVE = 0,
+ XCB_SYNC_ALARMSTATE_INACTIVE = 1,
+ XCB_SYNC_ALARMSTATE_DESTROYED = 2
+} xcb_sync_alarmstate_t;
+
+typedef uint32_t xcb_sync_counter_t;
+
+/**
+ * @brief xcb_sync_counter_iterator_t
+ **/
+typedef struct xcb_sync_counter_iterator_t {
+ xcb_sync_counter_t *data;
+ int rem;
+ int index;
+} xcb_sync_counter_iterator_t;
+
+typedef uint32_t xcb_sync_fence_t;
+
+/**
+ * @brief xcb_sync_fence_iterator_t
+ **/
+typedef struct xcb_sync_fence_iterator_t {
+ xcb_sync_fence_t *data;
+ int rem;
+ int index;
+} xcb_sync_fence_iterator_t;
+
+typedef enum xcb_sync_testtype_t {
+ XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION = 0,
+ XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION = 1,
+ XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON = 2,
+ XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON = 3
+} xcb_sync_testtype_t;
+
+typedef enum xcb_sync_valuetype_t {
+ XCB_SYNC_VALUETYPE_ABSOLUTE = 0,
+ XCB_SYNC_VALUETYPE_RELATIVE = 1
+} xcb_sync_valuetype_t;
+
+typedef enum xcb_sync_ca_t {
+ XCB_SYNC_CA_COUNTER = 1,
+ XCB_SYNC_CA_VALUE_TYPE = 2,
+ XCB_SYNC_CA_VALUE = 4,
+ XCB_SYNC_CA_TEST_TYPE = 8,
+ XCB_SYNC_CA_DELTA = 16,
+ XCB_SYNC_CA_EVENTS = 32
+} xcb_sync_ca_t;
+
+/**
+ * @brief xcb_sync_int64_t
+ **/
+typedef struct xcb_sync_int64_t {
+ int32_t hi;
+ uint32_t lo;
+} xcb_sync_int64_t;
+
+/**
+ * @brief xcb_sync_int64_iterator_t
+ **/
+typedef struct xcb_sync_int64_iterator_t {
+ xcb_sync_int64_t *data;
+ int rem;
+ int index;
+} xcb_sync_int64_iterator_t;
+
+/**
+ * @brief xcb_sync_systemcounter_t
+ **/
+typedef struct xcb_sync_systemcounter_t {
+ xcb_sync_counter_t counter;
+ xcb_sync_int64_t resolution;
+ uint16_t name_len;
+} xcb_sync_systemcounter_t;
+
+/**
+ * @brief xcb_sync_systemcounter_iterator_t
+ **/
+typedef struct xcb_sync_systemcounter_iterator_t {
+ xcb_sync_systemcounter_t *data;
+ int rem;
+ int index;
+} xcb_sync_systemcounter_iterator_t;
+
+/**
+ * @brief xcb_sync_trigger_t
+ **/
+typedef struct xcb_sync_trigger_t {
+ xcb_sync_counter_t counter;
+ uint32_t wait_type;
+ xcb_sync_int64_t wait_value;
+ uint32_t test_type;
+} xcb_sync_trigger_t;
+
+/**
+ * @brief xcb_sync_trigger_iterator_t
+ **/
+typedef struct xcb_sync_trigger_iterator_t {
+ xcb_sync_trigger_t *data;
+ int rem;
+ int index;
+} xcb_sync_trigger_iterator_t;
+
+/**
+ * @brief xcb_sync_waitcondition_t
+ **/
+typedef struct xcb_sync_waitcondition_t {
+ xcb_sync_trigger_t trigger;
+ xcb_sync_int64_t event_threshold;
+} xcb_sync_waitcondition_t;
+
+/**
+ * @brief xcb_sync_waitcondition_iterator_t
+ **/
+typedef struct xcb_sync_waitcondition_iterator_t {
+ xcb_sync_waitcondition_t *data;
+ int rem;
+ int index;
+} xcb_sync_waitcondition_iterator_t;
+
+/** Opcode for xcb_sync_counter. */
+#define XCB_SYNC_COUNTER 0
+
+/**
+ * @brief xcb_sync_counter_error_t
+ **/
+typedef struct xcb_sync_counter_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_counter;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_sync_counter_error_t;
+
+/** Opcode for xcb_sync_alarm. */
+#define XCB_SYNC_ALARM 1
+
+/**
+ * @brief xcb_sync_alarm_error_t
+ **/
+typedef struct xcb_sync_alarm_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_alarm;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_sync_alarm_error_t;
+
+/**
+ * @brief xcb_sync_initialize_cookie_t
+ **/
+typedef struct xcb_sync_initialize_cookie_t {
+ unsigned int sequence;
+} xcb_sync_initialize_cookie_t;
+
+/** Opcode for xcb_sync_initialize. */
+#define XCB_SYNC_INITIALIZE 0
+
+/**
+ * @brief xcb_sync_initialize_request_t
+ **/
+typedef struct xcb_sync_initialize_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t desired_major_version;
+ uint8_t desired_minor_version;
+} xcb_sync_initialize_request_t;
+
+/**
+ * @brief xcb_sync_initialize_reply_t
+ **/
+typedef struct xcb_sync_initialize_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t major_version;
+ uint8_t minor_version;
+ uint8_t pad1[22];
+} xcb_sync_initialize_reply_t;
+
+/**
+ * @brief xcb_sync_list_system_counters_cookie_t
+ **/
+typedef struct xcb_sync_list_system_counters_cookie_t {
+ unsigned int sequence;
+} xcb_sync_list_system_counters_cookie_t;
+
+/** Opcode for xcb_sync_list_system_counters. */
+#define XCB_SYNC_LIST_SYSTEM_COUNTERS 1
+
+/**
+ * @brief xcb_sync_list_system_counters_request_t
+ **/
+typedef struct xcb_sync_list_system_counters_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_sync_list_system_counters_request_t;
+
+/**
+ * @brief xcb_sync_list_system_counters_reply_t
+ **/
+typedef struct xcb_sync_list_system_counters_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t counters_len;
+ uint8_t pad1[20];
+} xcb_sync_list_system_counters_reply_t;
+
+/** Opcode for xcb_sync_create_counter. */
+#define XCB_SYNC_CREATE_COUNTER 2
+
+/**
+ * @brief xcb_sync_create_counter_request_t
+ **/
+typedef struct xcb_sync_create_counter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_counter_t id;
+ xcb_sync_int64_t initial_value;
+} xcb_sync_create_counter_request_t;
+
+/** Opcode for xcb_sync_destroy_counter. */
+#define XCB_SYNC_DESTROY_COUNTER 6
+
+/**
+ * @brief xcb_sync_destroy_counter_request_t
+ **/
+typedef struct xcb_sync_destroy_counter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_counter_t counter;
+} xcb_sync_destroy_counter_request_t;
+
+/**
+ * @brief xcb_sync_query_counter_cookie_t
+ **/
+typedef struct xcb_sync_query_counter_cookie_t {
+ unsigned int sequence;
+} xcb_sync_query_counter_cookie_t;
+
+/** Opcode for xcb_sync_query_counter. */
+#define XCB_SYNC_QUERY_COUNTER 5
+
+/**
+ * @brief xcb_sync_query_counter_request_t
+ **/
+typedef struct xcb_sync_query_counter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_counter_t counter;
+} xcb_sync_query_counter_request_t;
+
+/**
+ * @brief xcb_sync_query_counter_reply_t
+ **/
+typedef struct xcb_sync_query_counter_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_sync_int64_t counter_value;
+} xcb_sync_query_counter_reply_t;
+
+/** Opcode for xcb_sync_await. */
+#define XCB_SYNC_AWAIT 7
+
+/**
+ * @brief xcb_sync_await_request_t
+ **/
+typedef struct xcb_sync_await_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_sync_await_request_t;
+
+/** Opcode for xcb_sync_change_counter. */
+#define XCB_SYNC_CHANGE_COUNTER 4
+
+/**
+ * @brief xcb_sync_change_counter_request_t
+ **/
+typedef struct xcb_sync_change_counter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_counter_t counter;
+ xcb_sync_int64_t amount;
+} xcb_sync_change_counter_request_t;
+
+/** Opcode for xcb_sync_set_counter. */
+#define XCB_SYNC_SET_COUNTER 3
+
+/**
+ * @brief xcb_sync_set_counter_request_t
+ **/
+typedef struct xcb_sync_set_counter_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_counter_t counter;
+ xcb_sync_int64_t value;
+} xcb_sync_set_counter_request_t;
+
+/**
+ * @brief xcb_sync_create_alarm_value_list_t
+ **/
+typedef struct xcb_sync_create_alarm_value_list_t {
+ xcb_sync_counter_t counter;
+ uint32_t valueType;
+ xcb_sync_int64_t value;
+ uint32_t testType;
+ xcb_sync_int64_t delta;
+ uint32_t events;
+} xcb_sync_create_alarm_value_list_t;
+
+/** Opcode for xcb_sync_create_alarm. */
+#define XCB_SYNC_CREATE_ALARM 8
+
+/**
+ * @brief xcb_sync_create_alarm_request_t
+ **/
+typedef struct xcb_sync_create_alarm_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_alarm_t id;
+ uint32_t value_mask;
+} xcb_sync_create_alarm_request_t;
+
+/**
+ * @brief xcb_sync_change_alarm_value_list_t
+ **/
+typedef struct xcb_sync_change_alarm_value_list_t {
+ xcb_sync_counter_t counter;
+ uint32_t valueType;
+ xcb_sync_int64_t value;
+ uint32_t testType;
+ xcb_sync_int64_t delta;
+ uint32_t events;
+} xcb_sync_change_alarm_value_list_t;
+
+/** Opcode for xcb_sync_change_alarm. */
+#define XCB_SYNC_CHANGE_ALARM 9
+
+/**
+ * @brief xcb_sync_change_alarm_request_t
+ **/
+typedef struct xcb_sync_change_alarm_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_alarm_t id;
+ uint32_t value_mask;
+} xcb_sync_change_alarm_request_t;
+
+/** Opcode for xcb_sync_destroy_alarm. */
+#define XCB_SYNC_DESTROY_ALARM 11
+
+/**
+ * @brief xcb_sync_destroy_alarm_request_t
+ **/
+typedef struct xcb_sync_destroy_alarm_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_alarm_t alarm;
+} xcb_sync_destroy_alarm_request_t;
+
+/**
+ * @brief xcb_sync_query_alarm_cookie_t
+ **/
+typedef struct xcb_sync_query_alarm_cookie_t {
+ unsigned int sequence;
+} xcb_sync_query_alarm_cookie_t;
+
+/** Opcode for xcb_sync_query_alarm. */
+#define XCB_SYNC_QUERY_ALARM 10
+
+/**
+ * @brief xcb_sync_query_alarm_request_t
+ **/
+typedef struct xcb_sync_query_alarm_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_alarm_t alarm;
+} xcb_sync_query_alarm_request_t;
+
+/**
+ * @brief xcb_sync_query_alarm_reply_t
+ **/
+typedef struct xcb_sync_query_alarm_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_sync_trigger_t trigger;
+ xcb_sync_int64_t delta;
+ uint8_t events;
+ uint8_t state;
+ uint8_t pad1[2];
+} xcb_sync_query_alarm_reply_t;
+
+/** Opcode for xcb_sync_set_priority. */
+#define XCB_SYNC_SET_PRIORITY 12
+
+/**
+ * @brief xcb_sync_set_priority_request_t
+ **/
+typedef struct xcb_sync_set_priority_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t id;
+ int32_t priority;
+} xcb_sync_set_priority_request_t;
+
+/**
+ * @brief xcb_sync_get_priority_cookie_t
+ **/
+typedef struct xcb_sync_get_priority_cookie_t {
+ unsigned int sequence;
+} xcb_sync_get_priority_cookie_t;
+
+/** Opcode for xcb_sync_get_priority. */
+#define XCB_SYNC_GET_PRIORITY 13
+
+/**
+ * @brief xcb_sync_get_priority_request_t
+ **/
+typedef struct xcb_sync_get_priority_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t id;
+} xcb_sync_get_priority_request_t;
+
+/**
+ * @brief xcb_sync_get_priority_reply_t
+ **/
+typedef struct xcb_sync_get_priority_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ int32_t priority;
+} xcb_sync_get_priority_reply_t;
+
+/** Opcode for xcb_sync_create_fence. */
+#define XCB_SYNC_CREATE_FENCE 14
+
+/**
+ * @brief xcb_sync_create_fence_request_t
+ **/
+typedef struct xcb_sync_create_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_sync_fence_t fence;
+ uint8_t initially_triggered;
+} xcb_sync_create_fence_request_t;
+
+/** Opcode for xcb_sync_trigger_fence. */
+#define XCB_SYNC_TRIGGER_FENCE 15
+
+/**
+ * @brief xcb_sync_trigger_fence_request_t
+ **/
+typedef struct xcb_sync_trigger_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_fence_t fence;
+} xcb_sync_trigger_fence_request_t;
+
+/** Opcode for xcb_sync_reset_fence. */
+#define XCB_SYNC_RESET_FENCE 16
+
+/**
+ * @brief xcb_sync_reset_fence_request_t
+ **/
+typedef struct xcb_sync_reset_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_fence_t fence;
+} xcb_sync_reset_fence_request_t;
+
+/** Opcode for xcb_sync_destroy_fence. */
+#define XCB_SYNC_DESTROY_FENCE 17
+
+/**
+ * @brief xcb_sync_destroy_fence_request_t
+ **/
+typedef struct xcb_sync_destroy_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_fence_t fence;
+} xcb_sync_destroy_fence_request_t;
+
+/**
+ * @brief xcb_sync_query_fence_cookie_t
+ **/
+typedef struct xcb_sync_query_fence_cookie_t {
+ unsigned int sequence;
+} xcb_sync_query_fence_cookie_t;
+
+/** Opcode for xcb_sync_query_fence. */
+#define XCB_SYNC_QUERY_FENCE 18
+
+/**
+ * @brief xcb_sync_query_fence_request_t
+ **/
+typedef struct xcb_sync_query_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_sync_fence_t fence;
+} xcb_sync_query_fence_request_t;
+
+/**
+ * @brief xcb_sync_query_fence_reply_t
+ **/
+typedef struct xcb_sync_query_fence_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t triggered;
+ uint8_t pad1[23];
+} xcb_sync_query_fence_reply_t;
+
+/** Opcode for xcb_sync_await_fence. */
+#define XCB_SYNC_AWAIT_FENCE 19
+
+/**
+ * @brief xcb_sync_await_fence_request_t
+ **/
+typedef struct xcb_sync_await_fence_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_sync_await_fence_request_t;
+
+/** Opcode for xcb_sync_counter_notify. */
+#define XCB_SYNC_COUNTER_NOTIFY 0
+
+/**
+ * @brief xcb_sync_counter_notify_event_t
+ **/
+typedef struct xcb_sync_counter_notify_event_t {
+ uint8_t response_type;
+ uint8_t kind;
+ uint16_t sequence;
+ xcb_sync_counter_t counter;
+ xcb_sync_int64_t wait_value;
+ xcb_sync_int64_t counter_value;
+ xcb_timestamp_t timestamp;
+ uint16_t count;
+ uint8_t destroyed;
+ uint8_t pad0;
+} xcb_sync_counter_notify_event_t;
+
+/** Opcode for xcb_sync_alarm_notify. */
+#define XCB_SYNC_ALARM_NOTIFY 1
+
+/**
+ * @brief xcb_sync_alarm_notify_event_t
+ **/
+typedef struct xcb_sync_alarm_notify_event_t {
+ uint8_t response_type;
+ uint8_t kind;
+ uint16_t sequence;
+ xcb_sync_alarm_t alarm;
+ xcb_sync_int64_t counter_value;
+ xcb_sync_int64_t alarm_value;
+ xcb_timestamp_t timestamp;
+ uint8_t state;
+ uint8_t pad0[3];
+} xcb_sync_alarm_notify_event_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_alarm_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_alarm_t)
+ */
+void
+xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_alarm_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_counter_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_counter_t)
+ */
+void
+xcb_sync_counter_next (xcb_sync_counter_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_counter_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_counter_end (xcb_sync_counter_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_fence_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_fence_t)
+ */
+void
+xcb_sync_fence_next (xcb_sync_fence_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_fence_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_fence_end (xcb_sync_fence_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_int64_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_int64_t)
+ */
+void
+xcb_sync_int64_next (xcb_sync_int64_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_int64_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_int64_end (xcb_sync_int64_iterator_t i);
+
+int
+xcb_sync_systemcounter_sizeof (const void *_buffer);
+
+char *
+xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R);
+
+int
+xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R);
+
+xcb_generic_iterator_t
+xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_systemcounter_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_systemcounter_t)
+ */
+void
+xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_systemcounter_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_trigger_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_trigger_t)
+ */
+void
+xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_trigger_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_sync_waitcondition_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_sync_waitcondition_t)
+ */
+void
+xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_sync_waitcondition_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_sync_initialize_cookie_t
+xcb_sync_initialize (xcb_connection_t *c,
+ uint8_t desired_major_version,
+ uint8_t desired_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_sync_initialize_cookie_t
+xcb_sync_initialize_unchecked (xcb_connection_t *c,
+ uint8_t desired_major_version,
+ uint8_t desired_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_sync_initialize_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_sync_initialize_reply_t *
+xcb_sync_initialize_reply (xcb_connection_t *c,
+ xcb_sync_initialize_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_sync_list_system_counters_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_sync_list_system_counters_cookie_t
+xcb_sync_list_system_counters (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_sync_list_system_counters_cookie_t
+xcb_sync_list_system_counters_unchecked (xcb_connection_t *c);
+
+int
+xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R);
+
+xcb_sync_systemcounter_iterator_t
+xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_sync_list_system_counters_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_sync_list_system_counters_reply_t *
+xcb_sync_list_system_counters_reply (xcb_connection_t *c,
+ xcb_sync_list_system_counters_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_create_counter_checked (xcb_connection_t *c,
+ xcb_sync_counter_t id,
+ xcb_sync_int64_t initial_value);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_create_counter (xcb_connection_t *c,
+ xcb_sync_counter_t id,
+ xcb_sync_int64_t initial_value);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_destroy_counter_checked (xcb_connection_t *c,
+ xcb_sync_counter_t counter);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_destroy_counter (xcb_connection_t *c,
+ xcb_sync_counter_t counter);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_sync_query_counter_cookie_t
+xcb_sync_query_counter (xcb_connection_t *c,
+ xcb_sync_counter_t counter);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_sync_query_counter_cookie_t
+xcb_sync_query_counter_unchecked (xcb_connection_t *c,
+ xcb_sync_counter_t counter);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_sync_query_counter_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_sync_query_counter_reply_t *
+xcb_sync_query_counter_reply (xcb_connection_t *c,
+ xcb_sync_query_counter_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_sync_await_sizeof (const void *_buffer,
+ uint32_t wait_list_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_await_checked (xcb_connection_t *c,
+ uint32_t wait_list_len,
+ const xcb_sync_waitcondition_t *wait_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_await (xcb_connection_t *c,
+ uint32_t wait_list_len,
+ const xcb_sync_waitcondition_t *wait_list);
+
+xcb_sync_waitcondition_t *
+xcb_sync_await_wait_list (const xcb_sync_await_request_t *R);
+
+int
+xcb_sync_await_wait_list_length (const xcb_sync_await_request_t *R);
+
+xcb_sync_waitcondition_iterator_t
+xcb_sync_await_wait_list_iterator (const xcb_sync_await_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_change_counter_checked (xcb_connection_t *c,
+ xcb_sync_counter_t counter,
+ xcb_sync_int64_t amount);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_change_counter (xcb_connection_t *c,
+ xcb_sync_counter_t counter,
+ xcb_sync_int64_t amount);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_set_counter_checked (xcb_connection_t *c,
+ xcb_sync_counter_t counter,
+ xcb_sync_int64_t value);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_set_counter (xcb_connection_t *c,
+ xcb_sync_counter_t counter,
+ xcb_sync_int64_t value);
+
+int
+xcb_sync_create_alarm_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_sync_create_alarm_value_list_t *_aux);
+
+int
+xcb_sync_create_alarm_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_sync_create_alarm_value_list_t *_aux);
+
+int
+xcb_sync_create_alarm_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_sync_create_alarm_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_create_alarm_checked (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_create_alarm (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_create_alarm_aux_checked (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const xcb_sync_create_alarm_value_list_t *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_create_alarm_aux (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const xcb_sync_create_alarm_value_list_t *value_list);
+
+void *
+xcb_sync_create_alarm_value_list (const xcb_sync_create_alarm_request_t *R);
+
+int
+xcb_sync_change_alarm_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_sync_change_alarm_value_list_t *_aux);
+
+int
+xcb_sync_change_alarm_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_sync_change_alarm_value_list_t *_aux);
+
+int
+xcb_sync_change_alarm_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_sync_change_alarm_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_change_alarm_checked (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_change_alarm (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_change_alarm_aux_checked (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const xcb_sync_change_alarm_value_list_t *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_change_alarm_aux (xcb_connection_t *c,
+ xcb_sync_alarm_t id,
+ uint32_t value_mask,
+ const xcb_sync_change_alarm_value_list_t *value_list);
+
+void *
+xcb_sync_change_alarm_value_list (const xcb_sync_change_alarm_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_destroy_alarm_checked (xcb_connection_t *c,
+ xcb_sync_alarm_t alarm);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_destroy_alarm (xcb_connection_t *c,
+ xcb_sync_alarm_t alarm);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_sync_query_alarm_cookie_t
+xcb_sync_query_alarm (xcb_connection_t *c,
+ xcb_sync_alarm_t alarm);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_sync_query_alarm_cookie_t
+xcb_sync_query_alarm_unchecked (xcb_connection_t *c,
+ xcb_sync_alarm_t alarm);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_sync_query_alarm_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_sync_query_alarm_reply_t *
+xcb_sync_query_alarm_reply (xcb_connection_t *c,
+ xcb_sync_query_alarm_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_set_priority_checked (xcb_connection_t *c,
+ uint32_t id,
+ int32_t priority);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_set_priority (xcb_connection_t *c,
+ uint32_t id,
+ int32_t priority);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_sync_get_priority_cookie_t
+xcb_sync_get_priority (xcb_connection_t *c,
+ uint32_t id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_sync_get_priority_cookie_t
+xcb_sync_get_priority_unchecked (xcb_connection_t *c,
+ uint32_t id);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_sync_get_priority_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_sync_get_priority_reply_t *
+xcb_sync_get_priority_reply (xcb_connection_t *c,
+ xcb_sync_get_priority_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_create_fence_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_sync_fence_t fence,
+ uint8_t initially_triggered);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_create_fence (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_sync_fence_t fence,
+ uint8_t initially_triggered);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_trigger_fence_checked (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_trigger_fence (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_reset_fence_checked (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_reset_fence (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_destroy_fence_checked (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_destroy_fence (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_sync_query_fence_cookie_t
+xcb_sync_query_fence (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_sync_query_fence_cookie_t
+xcb_sync_query_fence_unchecked (xcb_connection_t *c,
+ xcb_sync_fence_t fence);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_sync_query_fence_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_sync_query_fence_reply_t *
+xcb_sync_query_fence_reply (xcb_connection_t *c,
+ xcb_sync_query_fence_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_sync_await_fence_sizeof (const void *_buffer,
+ uint32_t fence_list_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_sync_await_fence_checked (xcb_connection_t *c,
+ uint32_t fence_list_len,
+ const xcb_sync_fence_t *fence_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_sync_await_fence (xcb_connection_t *c,
+ uint32_t fence_list_len,
+ const xcb_sync_fence_t *fence_list);
+
+xcb_sync_fence_t *
+xcb_sync_await_fence_fence_list (const xcb_sync_await_fence_request_t *R);
+
+int
+xcb_sync_await_fence_fence_list_length (const xcb_sync_await_fence_request_t *R);
+
+xcb_generic_iterator_t
+xcb_sync_await_fence_fence_list_end (const xcb_sync_await_fence_request_t *R);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xc_misc.h b/depends/libxcb/include/xcb/xc_misc.h
new file mode 100644
index 0000000..866c879
--- /dev/null
+++ b/depends/libxcb/include/xcb/xc_misc.h
@@ -0,0 +1,281 @@
+/*
+ * This file generated automatically from xc_misc.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_XCMisc_API XCB XCMisc API
+ * @brief XCMisc XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XC_MISC_H
+#define __XC_MISC_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XCMISC_MAJOR_VERSION 1
+#define XCB_XCMISC_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_xc_misc_id;
+
+/**
+ * @brief xcb_xc_misc_get_version_cookie_t
+ **/
+typedef struct xcb_xc_misc_get_version_cookie_t {
+ unsigned int sequence;
+} xcb_xc_misc_get_version_cookie_t;
+
+/** Opcode for xcb_xc_misc_get_version. */
+#define XCB_XC_MISC_GET_VERSION 0
+
+/**
+ * @brief xcb_xc_misc_get_version_request_t
+ **/
+typedef struct xcb_xc_misc_get_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t client_major_version;
+ uint16_t client_minor_version;
+} xcb_xc_misc_get_version_request_t;
+
+/**
+ * @brief xcb_xc_misc_get_version_reply_t
+ **/
+typedef struct xcb_xc_misc_get_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major_version;
+ uint16_t server_minor_version;
+} xcb_xc_misc_get_version_reply_t;
+
+/**
+ * @brief xcb_xc_misc_get_xid_range_cookie_t
+ **/
+typedef struct xcb_xc_misc_get_xid_range_cookie_t {
+ unsigned int sequence;
+} xcb_xc_misc_get_xid_range_cookie_t;
+
+/** Opcode for xcb_xc_misc_get_xid_range. */
+#define XCB_XC_MISC_GET_XID_RANGE 1
+
+/**
+ * @brief xcb_xc_misc_get_xid_range_request_t
+ **/
+typedef struct xcb_xc_misc_get_xid_range_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xc_misc_get_xid_range_request_t;
+
+/**
+ * @brief xcb_xc_misc_get_xid_range_reply_t
+ **/
+typedef struct xcb_xc_misc_get_xid_range_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t start_id;
+ uint32_t count;
+} xcb_xc_misc_get_xid_range_reply_t;
+
+/**
+ * @brief xcb_xc_misc_get_xid_list_cookie_t
+ **/
+typedef struct xcb_xc_misc_get_xid_list_cookie_t {
+ unsigned int sequence;
+} xcb_xc_misc_get_xid_list_cookie_t;
+
+/** Opcode for xcb_xc_misc_get_xid_list. */
+#define XCB_XC_MISC_GET_XID_LIST 2
+
+/**
+ * @brief xcb_xc_misc_get_xid_list_request_t
+ **/
+typedef struct xcb_xc_misc_get_xid_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t count;
+} xcb_xc_misc_get_xid_list_request_t;
+
+/**
+ * @brief xcb_xc_misc_get_xid_list_reply_t
+ **/
+typedef struct xcb_xc_misc_get_xid_list_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t ids_len;
+ uint8_t pad1[20];
+} xcb_xc_misc_get_xid_list_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xc_misc_get_version_cookie_t
+xcb_xc_misc_get_version (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xc_misc_get_version_cookie_t
+xcb_xc_misc_get_version_unchecked (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xc_misc_get_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xc_misc_get_version_reply_t *
+xcb_xc_misc_get_version_reply (xcb_connection_t *c,
+ xcb_xc_misc_get_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xc_misc_get_xid_range_cookie_t
+xcb_xc_misc_get_xid_range (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xc_misc_get_xid_range_cookie_t
+xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xc_misc_get_xid_range_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xc_misc_get_xid_range_reply_t *
+xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c,
+ xcb_xc_misc_get_xid_range_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xc_misc_get_xid_list_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xc_misc_get_xid_list_cookie_t
+xcb_xc_misc_get_xid_list (xcb_connection_t *c,
+ uint32_t count);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xc_misc_get_xid_list_cookie_t
+xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c,
+ uint32_t count);
+
+uint32_t *
+xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R);
+
+int
+xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xc_misc_get_xid_list_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xc_misc_get_xid_list_reply_t *
+xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c,
+ xcb_xc_misc_get_xid_list_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xcb.h b/depends/libxcb/include/xcb/xcb.h
new file mode 100644
index 0000000..3f39bb4
--- /dev/null
+++ b/depends/libxcb/include/xcb/xcb.h
@@ -0,0 +1,644 @@
+/*
+ * Copyright (C) 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the names of the authors or their
+ * institutions shall not be used in advertising or otherwise to promote the
+ * sale, use or other dealings in this Software without prior written
+ * authorization from the authors.
+ */
+
+#ifndef __XCB_H__
+#define __XCB_H__
+#include <sys/types.h>
+
+#if defined(__solaris__)
+#include <inttypes.h>
+#else
+#include <stdint.h>
+#endif
+
+#ifndef _WIN32
+#include <sys/uio.h>
+#else
+#include "xcb_windefs.h"
+#endif
+#include <pthread.h>
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file xcb.h
+ */
+
+#ifdef __GNUC__
+#define XCB_PACKED __attribute__((__packed__))
+#else
+#define XCB_PACKED
+#endif
+
+/**
+ * @defgroup XCB_Core_API XCB Core API
+ * @brief Core API of the XCB library.
+ *
+ * @{
+ */
+
+/* Pre-defined constants */
+
+/** Current protocol version */
+#define X_PROTOCOL 11
+
+/** Current minor version */
+#define X_PROTOCOL_REVISION 0
+
+/** X_TCP_PORT + display number = server port for TCP transport */
+#define X_TCP_PORT 6000
+
+/** xcb connection errors because of socket, pipe and other stream errors. */
+#define XCB_CONN_ERROR 1
+
+/** xcb connection shutdown because of extension not supported */
+#define XCB_CONN_CLOSED_EXT_NOTSUPPORTED 2
+
+/** malloc(), calloc() and realloc() error upon failure, for eg ENOMEM */
+#define XCB_CONN_CLOSED_MEM_INSUFFICIENT 3
+
+/** Connection closed, exceeding request length that server accepts. */
+#define XCB_CONN_CLOSED_REQ_LEN_EXCEED 4
+
+/** Connection closed, error during parsing display string. */
+#define XCB_CONN_CLOSED_PARSE_ERR 5
+
+/** Connection closed because the server does not have a screen matching the display. */
+#define XCB_CONN_CLOSED_INVALID_SCREEN 6
+
+/** Connection closed because some FD passing operation failed */
+#define XCB_CONN_CLOSED_FDPASSING_FAILED 7
+
+#define XCB_TYPE_PAD(T,I) (-(I) & (sizeof(T) > 4 ? 3 : sizeof(T) - 1))
+
+/* Opaque structures */
+
+/**
+ * @brief XCB Connection structure.
+ *
+ * A structure that contain all data that XCB needs to communicate with an X server.
+ */
+typedef struct xcb_connection_t xcb_connection_t; /**< Opaque structure containing all data that XCB needs to communicate with an X server. */
+
+
+/* Other types */
+
+/**
+ * @brief Generic iterator.
+ *
+ * A generic iterator structure.
+ */
+typedef struct {
+ void *data; /**< Data of the current iterator */
+ int rem; /**< remaining elements */
+ int index; /**< index of the current iterator */
+} xcb_generic_iterator_t;
+
+/**
+ * @brief Generic reply.
+ *
+ * A generic reply structure.
+ */
+typedef struct {
+ uint8_t response_type; /**< Type of the response */
+ uint8_t pad0; /**< Padding */
+ uint16_t sequence; /**< Sequence number */
+ uint32_t length; /**< Length of the response */
+} xcb_generic_reply_t;
+
+/**
+ * @brief Generic event.
+ *
+ * A generic event structure.
+ */
+typedef struct {
+ uint8_t response_type; /**< Type of the response */
+ uint8_t pad0; /**< Padding */
+ uint16_t sequence; /**< Sequence number */
+ uint32_t pad[7]; /**< Padding */
+ uint32_t full_sequence; /**< full sequence */
+} xcb_generic_event_t;
+
+/**
+ * @brief Raw Generic event.
+ *
+ * A generic event structure as used on the wire, i.e., without the full_sequence field
+ */
+typedef struct {
+ uint8_t response_type; /**< Type of the response */
+ uint8_t pad0; /**< Padding */
+ uint16_t sequence; /**< Sequence number */
+ uint32_t pad[7]; /**< Padding */
+} xcb_raw_generic_event_t;
+
+/**
+ * @brief GE event
+ *
+ * An event as sent by the XGE extension. The length field specifies the
+ * number of 4-byte blocks trailing the struct.
+ *
+ * @deprecated Since some fields in this struct have unfortunate names, it is
+ * recommended to use xcb_ge_generic_event_t instead.
+ */
+typedef struct {
+ uint8_t response_type; /**< Type of the response */
+ uint8_t pad0; /**< Padding */
+ uint16_t sequence; /**< Sequence number */
+ uint32_t length;
+ uint16_t event_type;
+ uint16_t pad1;
+ uint32_t pad[5]; /**< Padding */
+ uint32_t full_sequence; /**< full sequence */
+} xcb_ge_event_t;
+
+/**
+ * @brief Generic error.
+ *
+ * A generic error structure.
+ */
+typedef struct {
+ uint8_t response_type; /**< Type of the response */
+ uint8_t error_code; /**< Error code */
+ uint16_t sequence; /**< Sequence number */
+ uint32_t resource_id; /** < Resource ID for requests with side effects only */
+ uint16_t minor_code; /** < Minor opcode of the failed request */
+ uint8_t major_code; /** < Major opcode of the failed request */
+ uint8_t pad0;
+ uint32_t pad[5]; /**< Padding */
+ uint32_t full_sequence; /**< full sequence */
+} xcb_generic_error_t;
+
+/**
+ * @brief Generic cookie.
+ *
+ * A generic cookie structure.
+ */
+typedef struct {
+ unsigned int sequence; /**< Sequence number */
+} xcb_void_cookie_t;
+
+
+/* Include the generated xproto header. */
+#include "xproto.h"
+
+
+/** XCB_NONE is the universal null resource or null atom parameter value for many core X requests */
+#define XCB_NONE 0L
+
+/** XCB_COPY_FROM_PARENT can be used for many xcb_create_window parameters */
+#define XCB_COPY_FROM_PARENT 0L
+
+/** XCB_CURRENT_TIME can be used in most requests that take an xcb_timestamp_t */
+#define XCB_CURRENT_TIME 0L
+
+/** XCB_NO_SYMBOL fills in unused entries in xcb_keysym_t tables */
+#define XCB_NO_SYMBOL 0L
+
+
+/* xcb_auth.c */
+
+/**
+ * @brief Container for authorization information.
+ *
+ * A container for authorization information to be sent to the X server.
+ */
+typedef struct xcb_auth_info_t {
+ int namelen; /**< Length of the string name (as returned by strlen). */
+ char *name; /**< String containing the authentication protocol name, such as "MIT-MAGIC-COOKIE-1" or "XDM-AUTHORIZATION-1". */
+ int datalen; /**< Length of the data member. */
+ char *data; /**< Data interpreted in a protocol-specific manner. */
+} xcb_auth_info_t;
+
+
+/* xcb_out.c */
+
+/**
+ * @brief Forces any buffered output to be written to the server.
+ * @param c The connection to the X server.
+ * @return > @c 0 on success, <= @c 0 otherwise.
+ *
+ * Forces any buffered output to be written to the server. Blocks
+ * until the write is complete.
+ */
+int xcb_flush(xcb_connection_t *c);
+
+/**
+ * @brief Returns the maximum request length that this server accepts.
+ * @param c The connection to the X server.
+ * @return The maximum request length field.
+ *
+ * In the absence of the BIG-REQUESTS extension, returns the
+ * maximum request length field from the connection setup data, which
+ * may be as much as 65535. If the server supports BIG-REQUESTS, then
+ * the maximum request length field from the reply to the
+ * BigRequestsEnable request will be returned instead.
+ *
+ * Note that this length is measured in four-byte units, making the
+ * theoretical maximum lengths roughly 256kB without BIG-REQUESTS and
+ * 16GB with.
+ */
+uint32_t xcb_get_maximum_request_length(xcb_connection_t *c);
+
+/**
+ * @brief Prefetch the maximum request length without blocking.
+ * @param c The connection to the X server.
+ *
+ * Without blocking, does as much work as possible toward computing
+ * the maximum request length accepted by the X server.
+ *
+ * Invoking this function may cause a call to xcb_big_requests_enable,
+ * but will not block waiting for the reply.
+ * xcb_get_maximum_request_length will return the prefetched data
+ * after possibly blocking while the reply is retrieved.
+ *
+ * Note that in order for this function to be fully non-blocking, the
+ * application must previously have called
+ * xcb_prefetch_extension_data(c, &xcb_big_requests_id) and the reply
+ * must have already arrived.
+ */
+void xcb_prefetch_maximum_request_length(xcb_connection_t *c);
+
+
+/* xcb_in.c */
+
+/**
+ * @brief Returns the next event or error from the server.
+ * @param c The connection to the X server.
+ * @return The next event from the server.
+ *
+ * Returns the next event or error from the server, or returns null in
+ * the event of an I/O error. Blocks until either an event or error
+ * arrive, or an I/O error occurs.
+ */
+xcb_generic_event_t *xcb_wait_for_event(xcb_connection_t *c);
+
+/**
+ * @brief Returns the next event or error from the server.
+ * @param c The connection to the X server.
+ * @return The next event from the server.
+ *
+ * Returns the next event or error from the server, if one is
+ * available, or returns @c NULL otherwise. If no event is available, that
+ * might be because an I/O error like connection close occurred while
+ * attempting to read the next event, in which case the connection is
+ * shut down when this function returns.
+ */
+xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c);
+
+/**
+ * @brief Returns the next event without reading from the connection.
+ * @param c The connection to the X server.
+ * @return The next already queued event from the server.
+ *
+ * This is a version of xcb_poll_for_event that only examines the
+ * event queue for new events. The function doesn't try to read new
+ * events from the connection if no queued events are found.
+ *
+ * This function is useful for callers that know in advance that all
+ * interesting events have already been read from the connection. For
+ * example, callers might use xcb_wait_for_reply and be interested
+ * only of events that preceded a specific reply.
+ */
+xcb_generic_event_t *xcb_poll_for_queued_event(xcb_connection_t *c);
+
+typedef struct xcb_special_event xcb_special_event_t;
+
+/**
+ * @brief Returns the next event from a special queue
+ */
+xcb_generic_event_t *xcb_poll_for_special_event(xcb_connection_t *c,
+ xcb_special_event_t *se);
+
+/**
+ * @brief Returns the next event from a special queue, blocking until one arrives
+ */
+xcb_generic_event_t *xcb_wait_for_special_event(xcb_connection_t *c,
+ xcb_special_event_t *se);
+/**
+ * @typedef typedef struct xcb_extension_t xcb_extension_t
+ */
+typedef struct xcb_extension_t xcb_extension_t; /**< Opaque structure used as key for xcb_get_extension_data_t. */
+
+/**
+ * @brief Listen for a special event
+ */
+xcb_special_event_t *xcb_register_for_special_xge(xcb_connection_t *c,
+ xcb_extension_t *ext,
+ uint32_t eid,
+ uint32_t *stamp);
+
+/**
+ * @brief Stop listening for a special event
+ */
+void xcb_unregister_for_special_event(xcb_connection_t *c,
+ xcb_special_event_t *se);
+
+/**
+ * @brief Return the error for a request, or NULL if none can ever arrive.
+ * @param c The connection to the X server.
+ * @param cookie The request cookie.
+ * @return The error for the request, or NULL if none can ever arrive.
+ *
+ * The xcb_void_cookie_t cookie supplied to this function must have resulted
+ * from a call to xcb_[request_name]_checked(). This function will block
+ * until one of two conditions happens. If an error is received, it will be
+ * returned. If a reply to a subsequent request has already arrived, no error
+ * can arrive for this request, so this function will return NULL.
+ *
+ * Note that this function will perform a sync if needed to ensure that the
+ * sequence number will advance beyond that provided in cookie; this is a
+ * convenience to avoid races in determining whether the sync is needed.
+ */
+xcb_generic_error_t *xcb_request_check(xcb_connection_t *c, xcb_void_cookie_t cookie);
+
+/**
+ * @brief Discards the reply for a request.
+ * @param c The connection to the X server.
+ * @param sequence The request sequence number from a cookie.
+ *
+ * Discards the reply for a request. Additionally, any error generated
+ * by the request is also discarded (unless it was an _unchecked request
+ * and the error has already arrived).
+ *
+ * This function will not block even if the reply is not yet available.
+ *
+ * Note that the sequence really does have to come from an xcb cookie;
+ * this function is not designed to operate on socket-handoff replies.
+ */
+void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence);
+
+/**
+ * @brief Discards the reply for a request, given by a 64bit sequence number
+ * @param c The connection to the X server.
+ * @param sequence 64-bit sequence number as returned by xcb_send_request64().
+ *
+ * Discards the reply for a request. Additionally, any error generated
+ * by the request is also discarded (unless it was an _unchecked request
+ * and the error has already arrived).
+ *
+ * This function will not block even if the reply is not yet available.
+ *
+ * Note that the sequence really does have to come from xcb_send_request64();
+ * the cookie sequence number is defined as "unsigned" int and therefore
+ * not 64-bit on all platforms.
+ * This function is not designed to operate on socket-handoff replies.
+ *
+ * Unlike its xcb_discard_reply() counterpart, the given sequence number is not
+ * automatically "widened" to 64-bit.
+ */
+void xcb_discard_reply64(xcb_connection_t *c, uint64_t sequence);
+
+/* xcb_ext.c */
+
+/**
+ * @brief Caches reply information from QueryExtension requests.
+ * @param c The connection.
+ * @param ext The extension data.
+ * @return A pointer to the xcb_query_extension_reply_t for the extension.
+ *
+ * This function is the primary interface to the "extension cache",
+ * which caches reply information from QueryExtension
+ * requests. Invoking this function may cause a call to
+ * xcb_query_extension to retrieve extension information from the
+ * server, and may block until extension data is received from the
+ * server.
+ *
+ * The result must not be freed. This storage is managed by the cache
+ * itself.
+ */
+const struct xcb_query_extension_reply_t *xcb_get_extension_data(xcb_connection_t *c, xcb_extension_t *ext);
+
+/**
+ * @brief Prefetch of extension data into the extension cache
+ * @param c The connection.
+ * @param ext The extension data.
+ *
+ * This function allows a "prefetch" of extension data into the
+ * extension cache. Invoking the function may cause a call to
+ * xcb_query_extension, but will not block waiting for the
+ * reply. xcb_get_extension_data will return the prefetched data after
+ * possibly blocking while it is retrieved.
+ */
+void xcb_prefetch_extension_data(xcb_connection_t *c, xcb_extension_t *ext);
+
+
+/* xcb_conn.c */
+
+/**
+ * @brief Access the data returned by the server.
+ * @param c The connection.
+ * @return A pointer to an xcb_setup_t structure.
+ *
+ * Accessor for the data returned by the server when the xcb_connection_t
+ * was initialized. This data includes
+ * - the server's required format for images,
+ * - a list of available visuals,
+ * - a list of available screens,
+ * - the server's maximum request length (in the absence of the
+ * BIG-REQUESTS extension),
+ * - and other assorted information.
+ *
+ * See the X protocol specification for more details.
+ *
+ * The result must not be freed.
+ */
+const struct xcb_setup_t *xcb_get_setup(xcb_connection_t *c);
+
+/**
+ * @brief Access the file descriptor of the connection.
+ * @param c The connection.
+ * @return The file descriptor.
+ *
+ * Accessor for the file descriptor that was passed to the
+ * xcb_connect_to_fd call that returned @p c.
+ */
+int xcb_get_file_descriptor(xcb_connection_t *c);
+
+/**
+ * @brief Test whether the connection has shut down due to a fatal error.
+ * @param c The connection.
+ * @return > 0 if the connection is in an error state; 0 otherwise.
+ *
+ * Some errors that occur in the context of an xcb_connection_t
+ * are unrecoverable. When such an error occurs, the
+ * connection is shut down and further operations on the
+ * xcb_connection_t have no effect, but memory will not be freed until
+ * xcb_disconnect() is called on the xcb_connection_t.
+ *
+ * @return XCB_CONN_ERROR, because of socket errors, pipe errors or other stream errors.
+ * @return XCB_CONN_CLOSED_EXT_NOTSUPPORTED, when extension not supported.
+ * @return XCB_CONN_CLOSED_MEM_INSUFFICIENT, when memory not available.
+ * @return XCB_CONN_CLOSED_REQ_LEN_EXCEED, exceeding request length that server accepts.
+ * @return XCB_CONN_CLOSED_PARSE_ERR, error during parsing display string.
+ * @return XCB_CONN_CLOSED_INVALID_SCREEN, because the server does not have a screen matching the display.
+ */
+int xcb_connection_has_error(xcb_connection_t *c);
+
+/**
+ * @brief Connects to the X server.
+ * @param fd The file descriptor.
+ * @param auth_info Authentication data.
+ * @return A newly allocated xcb_connection_t structure.
+ *
+ * Connects to an X server, given the open socket @p fd and the
+ * xcb_auth_info_t @p auth_info. The file descriptor @p fd is
+ * bidirectionally connected to an X server. If the connection
+ * should be unauthenticated, @p auth_info must be @c
+ * NULL.
+ *
+ * Always returns a non-NULL pointer to a xcb_connection_t, even on failure.
+ * Callers need to use xcb_connection_has_error() to check for failure.
+ * When finished, use xcb_disconnect() to close the connection and free
+ * the structure.
+ */
+xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info);
+
+/**
+ * @brief Closes the connection.
+ * @param c The connection.
+ *
+ * Closes the file descriptor and frees all memory associated with the
+ * connection @c c. If @p c is @c NULL, nothing is done.
+ */
+void xcb_disconnect(xcb_connection_t *c);
+
+
+/* xcb_util.c */
+
+/**
+ * @brief Parses a display string name in the form documented by X(7x).
+ * @param name The name of the display.
+ * @param host A pointer to a malloc'd copy of the hostname.
+ * @param display A pointer to the display number.
+ * @param screen A pointer to the screen number.
+ * @return 0 on failure, non 0 otherwise.
+ *
+ * Parses the display string name @p display_name in the form
+ * documented by X(7x). Has no side effects on failure. If
+ * @p displayname is @c NULL or empty, it uses the environment
+ * variable DISPLAY. @p hostp is a pointer to a newly allocated string
+ * that contain the host name. @p displayp is set to the display
+ * number and @p screenp to the preferred screen number. @p screenp
+ * can be @c NULL. If @p displayname does not contain a screen number,
+ * it is set to @c 0.
+ */
+int xcb_parse_display(const char *name, char **host, int *display, int *screen);
+
+/**
+ * @brief Connects to the X server.
+ * @param displayname The name of the display.
+ * @param screenp A pointer to a preferred screen number.
+ * @return A newly allocated xcb_connection_t structure.
+ *
+ * Connects to the X server specified by @p displayname. If @p
+ * displayname is @c NULL, uses the value of the DISPLAY environment
+ * variable. If a particular screen on that server is preferred, the
+ * int pointed to by @p screenp (if not @c NULL) will be set to that
+ * screen; otherwise the screen will be set to 0.
+ *
+ * Always returns a non-NULL pointer to a xcb_connection_t, even on failure.
+ * Callers need to use xcb_connection_has_error() to check for failure.
+ * When finished, use xcb_disconnect() to close the connection and free
+ * the structure.
+ */
+xcb_connection_t *xcb_connect(const char *displayname, int *screenp);
+
+/**
+ * @brief Connects to the X server, using an authorization information.
+ * @param display The name of the display.
+ * @param auth The authorization information.
+ * @param screen A pointer to a preferred screen number.
+ * @return A newly allocated xcb_connection_t structure.
+ *
+ * Connects to the X server specified by @p displayname, using the
+ * authorization @p auth. If a particular screen on that server is
+ * preferred, the int pointed to by @p screenp (if not @c NULL) will
+ * be set to that screen; otherwise @p screenp will be set to 0.
+ *
+ * Always returns a non-NULL pointer to a xcb_connection_t, even on failure.
+ * Callers need to use xcb_connection_has_error() to check for failure.
+ * When finished, use xcb_disconnect() to close the connection and free
+ * the structure.
+ */
+xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *display, xcb_auth_info_t *auth, int *screen);
+
+
+/* xcb_xid.c */
+
+/**
+ * @brief Allocates an XID for a new object.
+ * @param c The connection.
+ * @return A newly allocated XID, or -1 on failure.
+ *
+ * Allocates an XID for a new object. Typically used just prior to
+ * various object creation functions, such as xcb_create_window.
+ */
+uint32_t xcb_generate_id(xcb_connection_t *c);
+
+
+/**
+ * @brief Obtain number of bytes read from the connection.
+ * @param c The connection
+ * @return Number of bytes read from the server.
+ *
+ * Returns cumulative number of bytes received from the connection.
+ *
+ * This retrieves the total number of bytes read from this connection,
+ * to be used for diagnostic/monitoring/informative purposes.
+ */
+
+uint64_t
+xcb_total_read(xcb_connection_t *c);
+
+/**
+ *
+ * @brief Obtain number of bytes written to the connection.
+ * @param c The connection
+ * @return Number of bytes written to the server.
+ *
+ * Returns cumulative number of bytes sent to the connection.
+ *
+ * This retrieves the total number of bytes written to this connection,
+ * to be used for diagnostic/monitoring/informative purposes.
+ */
+
+uint64_t
+xcb_total_written(xcb_connection_t *c);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* __XCB_H__ */
diff --git a/depends/libxcb/include/xcb/xcb_windefs.h b/depends/libxcb/include/xcb/xcb_windefs.h
new file mode 100644
index 0000000..df6026d
--- /dev/null
+++ b/depends/libxcb/include/xcb/xcb_windefs.h
@@ -0,0 +1,45 @@
+/* Copyright (C) 2009 Jatin Golani.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the names of the authors or their
+ * institutions shall not be used in advertising or otherwise to promote the
+ * sale, use or other dealings in this Software without prior written
+ * authorization from the authors.
+ */
+
+
+#ifndef _XCB_WINDEFS_H
+#define _XCB_WINDEFS_H
+
+#ifndef WINVER
+#define WINVER 0x0501 /* required for getaddrinfo/freeaddrinfo defined only for WinXP and above */
+#endif
+
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#include <windef.h>
+
+struct iovec {
+ void *iov_base; /* Pointer to data. */
+ int iov_len; /* Length of data. */
+};
+
+typedef unsigned int in_addr_t;
+
+#endif /* xcb_windefs.h */
diff --git a/depends/libxcb/include/xcb/xcbext.h b/depends/libxcb/include/xcb/xcbext.h
new file mode 100644
index 0000000..90f9d58
--- /dev/null
+++ b/depends/libxcb/include/xcb/xcbext.h
@@ -0,0 +1,322 @@
+/*
+ * Copyright (C) 2001-2004 Bart Massey and Jamey Sharp.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the names of the authors or their
+ * institutions shall not be used in advertising or otherwise to promote the
+ * sale, use or other dealings in this Software without prior written
+ * authorization from the authors.
+ */
+
+#ifndef __XCBEXT_H
+#define __XCBEXT_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* xcb_ext.c */
+
+struct xcb_extension_t {
+ const char *name;
+ int global_id;
+};
+
+
+/* xcb_out.c */
+
+typedef struct {
+ size_t count;
+ xcb_extension_t *ext;
+ uint8_t opcode;
+ uint8_t isvoid;
+} xcb_protocol_request_t;
+
+enum xcb_send_request_flags_t {
+ XCB_REQUEST_CHECKED = 1 << 0,
+ XCB_REQUEST_RAW = 1 << 1,
+ XCB_REQUEST_DISCARD_REPLY = 1 << 2,
+ XCB_REQUEST_REPLY_FDS = 1 << 3
+};
+
+/**
+ * @brief Send a request to the server.
+ * @param c The connection to the X server.
+ * @param flags A combination of flags from the xcb_send_request_flags_t enumeration.
+ * @param vector Data to send; must have two iovecs before start for internal use.
+ * @param request Information about the request to be sent.
+ * @return The request's sequence number on success, 0 otherwise.
+ *
+ * This function sends a new request to the X server. The data of the request is
+ * given as an array of @c iovecs in the @p vector argument. The length of that
+ * array and the necessary management information are given in the @p request
+ * argument.
+ *
+ * When this function returns, the request might or might not be sent already.
+ * Use xcb_flush() to make sure that it really was sent.
+ *
+ * Please note that this function is not the preferred way for sending requests.
+ * It's better to use the generated wrapper functions.
+ *
+ * Please note that xcb might use index -1 and -2 of the @p vector array internally,
+ * so they must be valid!
+ */
+unsigned int xcb_send_request(xcb_connection_t *c, int flags, struct iovec *vector, const xcb_protocol_request_t *request);
+
+/**
+ * @brief Send a request to the server.
+ * @param c The connection to the X server.
+ * @param flags A combination of flags from the xcb_send_request_flags_t enumeration.
+ * @param vector Data to send; must have two iovecs before start for internal use.
+ * @param request Information about the request to be sent.
+ * @param num_fds Number of additional file descriptors to send to the server
+ * @param fds Additional file descriptors that should be send to the server.
+ * @return The request's sequence number on success, 0 otherwise.
+ *
+ * This function sends a new request to the X server. The data of the request is
+ * given as an array of @c iovecs in the @p vector argument. The length of that
+ * array and the necessary management information are given in the @p request
+ * argument.
+ *
+ * If @p num_fds is non-zero, @p fds points to an array of file descriptors that
+ * will be sent to the X server along with this request. After this function
+ * returns, all file descriptors sent are owned by xcb and will be closed
+ * eventually.
+ *
+ * When this function returns, the request might or might not be sent already.
+ * Use xcb_flush() to make sure that it really was sent.
+ *
+ * Please note that this function is not the preferred way for sending requests.
+ *
+ * Please note that xcb might use index -1 and -2 of the @p vector array internally,
+ * so they must be valid!
+ */
+unsigned int xcb_send_request_with_fds(xcb_connection_t *c, int flags, struct iovec *vector,
+ const xcb_protocol_request_t *request, unsigned int num_fds, int *fds);
+
+/**
+ * @brief Send a request to the server, with 64-bit sequence number returned.
+ * @param c The connection to the X server.
+ * @param flags A combination of flags from the xcb_send_request_flags_t enumeration.
+ * @param vector Data to send; must have two iovecs before start for internal use.
+ * @param request Information about the request to be sent.
+ * @return The request's sequence number on success, 0 otherwise.
+ *
+ * This function sends a new request to the X server. The data of the request is
+ * given as an array of @c iovecs in the @p vector argument. The length of that
+ * array and the necessary management information are given in the @p request
+ * argument.
+ *
+ * When this function returns, the request might or might not be sent already.
+ * Use xcb_flush() to make sure that it really was sent.
+ *
+ * Please note that this function is not the preferred way for sending requests.
+ * It's better to use the generated wrapper functions.
+ *
+ * Please note that xcb might use index -1 and -2 of the @p vector array internally,
+ * so they must be valid!
+ */
+uint64_t xcb_send_request64(xcb_connection_t *c, int flags, struct iovec *vector, const xcb_protocol_request_t *request);
+
+/**
+ * @brief Send a request to the server, with 64-bit sequence number returned.
+ * @param c The connection to the X server.
+ * @param flags A combination of flags from the xcb_send_request_flags_t enumeration.
+ * @param vector Data to send; must have two iovecs before start for internal use.
+ * @param request Information about the request to be sent.
+ * @param num_fds Number of additional file descriptors to send to the server
+ * @param fds Additional file descriptors that should be send to the server.
+ * @return The request's sequence number on success, 0 otherwise.
+ *
+ * This function sends a new request to the X server. The data of the request is
+ * given as an array of @c iovecs in the @p vector argument. The length of that
+ * array and the necessary management information are given in the @p request
+ * argument.
+ *
+ * If @p num_fds is non-zero, @p fds points to an array of file descriptors that
+ * will be sent to the X server along with this request. After this function
+ * returns, all file descriptors sent are owned by xcb and will be closed
+ * eventually.
+ *
+ * When this function returns, the request might or might not be sent already.
+ * Use xcb_flush() to make sure that it really was sent.
+ *
+ * Please note that this function is not the preferred way for sending requests.
+ * It's better to use the generated wrapper functions.
+ *
+ * Please note that xcb might use index -1 and -2 of the @p vector array internally,
+ * so they must be valid!
+ */
+uint64_t xcb_send_request_with_fds64(xcb_connection_t *c, int flags, struct iovec *vector,
+ const xcb_protocol_request_t *request, unsigned int num_fds, int *fds);
+
+/**
+ * @brief Send a file descriptor to the server in the next call to xcb_send_request.
+ * @param c The connection to the X server.
+ * @param fd The file descriptor to send.
+ *
+ * After this function returns, the file descriptor given is owned by xcb and
+ * will be closed eventually.
+ *
+ * @deprecated This function cannot be used in a thread-safe way. Two threads
+ * that run xcb_send_fd(); xcb_send_request(); could mix up their file
+ * descriptors. Instead, xcb_send_request_with_fds() should be used.
+ */
+void xcb_send_fd(xcb_connection_t *c, int fd);
+
+/**
+ * @brief Take over the write side of the socket
+ * @param c The connection to the X server.
+ * @param return_socket Callback function that will be called when xcb wants
+ * to use the socket again.
+ * @param closure Argument to the callback function.
+ * @param flags A combination of flags from the xcb_send_request_flags_t enumeration.
+ * @param sent Location to the sequence number of the last sequence request.
+ * Must not be NULL.
+ * @return 1 on success, else 0.
+ *
+ * xcb_take_socket allows external code to ask XCB for permission to
+ * take over the write side of the socket and send raw data with
+ * xcb_writev. xcb_take_socket provides the sequence number of the last
+ * request XCB sent. The caller of xcb_take_socket must supply a
+ * callback which XCB can call when it wants the write side of the
+ * socket back to make a request. This callback synchronizes with the
+ * external socket owner and flushes any output queues if appropriate.
+ * If you are sending requests which won't cause a reply, please note the
+ * comment for xcb_writev which explains some sequence number wrap issues.
+ *
+ * All replies that are generated while the socket is owned externally have
+ * @p flags applied to them. For example, use XCB_REQUEST_CHECK if you don't
+ * want errors to go to xcb's normal error handling, but instead having to be
+ * picked up via xcb_wait_for_reply(), xcb_poll_for_reply() or
+ * xcb_request_check().
+ */
+int xcb_take_socket(xcb_connection_t *c, void (*return_socket)(void *closure), void *closure, int flags, uint64_t *sent);
+
+/**
+ * @brief Send raw data to the X server.
+ * @param c The connection to the X server.
+ * @param vector Array of data to be sent.
+ * @param count Number of entries in @p vector.
+ * @param requests Number of requests that are being sent.
+ * @return 1 on success, else 0.
+ *
+ * You must own the write-side of the socket (you've called
+ * xcb_take_socket, and haven't returned from return_socket yet) to call
+ * xcb_writev. Also, the iovec must have at least 1 byte of data in it.
+ * You have to make sure that xcb can detect sequence number wraps correctly.
+ * This means that the first request you send after xcb_take_socket must cause a
+ * reply (e.g. just insert a GetInputFocus request). After every (1 << 16) - 1
+ * requests without a reply, you have to insert a request which will cause a
+ * reply. You can again use GetInputFocus for this. You do not have to wait for
+ * any of the GetInputFocus replies, but can instead handle them via
+ * xcb_discard_reply().
+ */
+int xcb_writev(xcb_connection_t *c, struct iovec *vector, int count, uint64_t requests);
+
+
+/* xcb_in.c */
+
+/**
+ * @brief Wait for the reply of a given request.
+ * @param c The connection to the X server.
+ * @param request Sequence number of the request as returned by xcb_send_request().
+ * @param e Location to store errors in, or NULL. Ignored for unchecked requests.
+ *
+ * Returns the reply to the given request or returns null in the event of
+ * errors. Blocks until the reply or error for the request arrives, or an I/O
+ * error occurs.
+ */
+void *xcb_wait_for_reply(xcb_connection_t *c, unsigned int request, xcb_generic_error_t **e);
+
+/**
+ * @brief Wait for the reply of a given request, with 64-bit sequence number
+ * @param c The connection to the X server.
+ * @param request 64-bit sequence number of the request as returned by xcb_send_request64().
+ * @param e Location to store errors in, or NULL. Ignored for unchecked requests.
+ *
+ * Returns the reply to the given request or returns null in the event of
+ * errors. Blocks until the reply or error for the request arrives, or an I/O
+ * error occurs.
+ *
+ * Unlike its xcb_wait_for_reply() counterpart, the given sequence number is not
+ * automatically "widened" to 64-bit.
+ */
+void *xcb_wait_for_reply64(xcb_connection_t *c, uint64_t request, xcb_generic_error_t **e);
+
+/**
+ * @brief Poll for the reply of a given request.
+ * @param c The connection to the X server.
+ * @param request Sequence number of the request as returned by xcb_send_request().
+ * @param reply Location to store the reply in, must not be NULL.
+ * @param error Location to store errors in, or NULL. Ignored for unchecked requests.
+ * @return 1 when the reply to the request was returned, else 0.
+ *
+ * Checks if the reply to the given request already received. Does not block.
+ */
+int xcb_poll_for_reply(xcb_connection_t *c, unsigned int request, void **reply, xcb_generic_error_t **error);
+
+/**
+ * @brief Poll for the reply of a given request, with 64-bit sequence number.
+ * @param c The connection to the X server.
+ * @param request 64-bit sequence number of the request as returned by xcb_send_request().
+ * @param reply Location to store the reply in, must not be NULL.
+ * @param error Location to store errors in, or NULL. Ignored for unchecked requests.
+ * @return 1 when the reply to the request was returned, else 0.
+ *
+ * Checks if the reply to the given request already received. Does not block.
+ *
+ * Unlike its xcb_poll_for_reply() counterpart, the given sequence number is not
+ * automatically "widened" to 64-bit.
+ */
+int xcb_poll_for_reply64(xcb_connection_t *c, uint64_t request, void **reply, xcb_generic_error_t **error);
+
+/**
+ * @brief Don't use this, only needed by the generated code.
+ * @param c The connection to the X server.
+ * @param reply A reply that was received from the server
+ * @param replylen The size of the reply.
+ * @return Pointer to the location where received file descriptors are stored.
+ */
+int *xcb_get_reply_fds(xcb_connection_t *c, void *reply, size_t replylen);
+
+
+/* xcb_util.c */
+
+/**
+ * @param mask The mask to check
+ * @return The number of set bits in the mask
+ */
+int xcb_popcount(uint32_t mask);
+
+/**
+ * @param list The base of an array
+ * @param len The length of the array
+ * @return The sum of all entries in the array.
+ */
+int xcb_sumof(uint8_t *list, int len);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/depends/libxcb/include/xcb/xcbint.h b/depends/libxcb/include/xcb/xcbint.h
new file mode 100644
index 0000000..235c848
--- /dev/null
+++ b/depends/libxcb/include/xcb/xcbint.h
@@ -0,0 +1,241 @@
+/*
+ * Copyright (C) 2001-2004 Bart Massey and Jamey Sharp.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the names of the authors or their
+ * institutions shall not be used in advertising or otherwise to promote the
+ * sale, use or other dealings in this Software without prior written
+ * authorization from the authors.
+ */
+
+#ifndef __XCBINT_H
+#define __XCBINT_H
+
+#include "bigreq.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef GCC_HAS_VISIBILITY
+#pragma GCC visibility push(hidden)
+#endif
+
+#ifndef __has_attribute
+# define __has_attribute(x) 0 /* Compatibility with older compilers. */
+#endif
+
+#if __has_attribute(fallthrough)
+# define XCB_ALLOW_FALLTHRU __attribute__ ((fallthrough));
+#else
+# define XCB_ALLOW_FALLTHRU /* FALLTHRU */
+#endif
+
+enum workarounds {
+ WORKAROUND_NONE,
+ WORKAROUND_GLX_GET_FB_CONFIGS_BUG,
+ WORKAROUND_EXTERNAL_SOCKET_OWNER
+};
+
+enum lazy_reply_tag
+{
+ LAZY_NONE = 0,
+ LAZY_COOKIE,
+ LAZY_FORCED
+};
+
+#define XCB_PAD(i) (-(i) & 3)
+
+#define XCB_SEQUENCE_COMPARE(a,op,b) ((int64_t) ((a) - (b)) op 0)
+
+#ifndef offsetof
+#define offsetof(type,member) ((size_t) &((type *)0)->member)
+#endif
+
+#ifndef MIN
+#define MIN(x,y) ((x) < (y) ? (x) : (y))
+#endif
+
+#define container_of(pointer,type,member) ((type *)(((char *)(pointer)) - offsetof(type, member)))
+
+/* xcb_list.c */
+
+typedef void (*xcb_list_free_func_t)(void *);
+
+typedef struct _xcb_map _xcb_map;
+
+_xcb_map *_xcb_map_new(void);
+void _xcb_map_delete(_xcb_map *q, xcb_list_free_func_t do_free);
+int _xcb_map_put(_xcb_map *q, uint64_t key, void *data);
+void *_xcb_map_remove(_xcb_map *q, uint64_t key);
+
+
+/* xcb_out.c */
+
+#if HAVE_SENDMSG
+#define XCB_MAX_PASS_FD 16
+
+typedef struct _xcb_fd {
+ int fd[XCB_MAX_PASS_FD];
+ int nfd;
+ int ifd;
+} _xcb_fd;
+#endif
+
+typedef struct _xcb_out {
+ pthread_cond_t cond;
+ int writing;
+
+ pthread_cond_t socket_cond;
+ void (*return_socket)(void *closure);
+ void *socket_closure;
+ int socket_moving;
+
+ char queue[XCB_QUEUE_BUFFER_SIZE];
+ int queue_len;
+
+ uint64_t request;
+ uint64_t request_written;
+ uint64_t request_expected_written;
+ uint64_t total_written;
+
+ pthread_mutex_t reqlenlock;
+ enum lazy_reply_tag maximum_request_length_tag;
+ union {
+ xcb_big_requests_enable_cookie_t cookie;
+ uint32_t value;
+ } maximum_request_length;
+#if HAVE_SENDMSG
+ _xcb_fd out_fd;
+#endif
+} _xcb_out;
+
+int _xcb_out_init(_xcb_out *out);
+void _xcb_out_destroy(_xcb_out *out);
+
+int _xcb_out_send(xcb_connection_t *c, struct iovec *vector, int count);
+void _xcb_out_send_sync(xcb_connection_t *c);
+int _xcb_out_flush_to(xcb_connection_t *c, uint64_t request);
+
+
+/* xcb_in.c */
+
+typedef struct _xcb_in {
+ pthread_cond_t event_cond;
+ int reading;
+
+ char queue[4096];
+ int queue_len;
+
+ uint64_t request_expected;
+ uint64_t request_read;
+ uint64_t request_completed;
+ uint64_t total_read;
+ struct reply_list *current_reply;
+ struct reply_list **current_reply_tail;
+
+ _xcb_map *replies;
+ struct event_list *events;
+ struct event_list **events_tail;
+ struct reader_list *readers;
+ struct special_list *special_waiters;
+
+ struct pending_reply *pending_replies;
+ struct pending_reply **pending_replies_tail;
+#if HAVE_SENDMSG
+ _xcb_fd in_fd;
+#endif
+ struct xcb_special_event *special_events;
+} _xcb_in;
+
+int _xcb_in_init(_xcb_in *in);
+void _xcb_in_destroy(_xcb_in *in);
+
+void _xcb_in_wake_up_next_reader(xcb_connection_t *c);
+
+int _xcb_in_expect_reply(xcb_connection_t *c, uint64_t request, enum workarounds workaround, int flags);
+void _xcb_in_replies_done(xcb_connection_t *c);
+
+int _xcb_in_read(xcb_connection_t *c);
+int _xcb_in_read_block(xcb_connection_t *c, void *buf, int nread);
+
+
+/* xcb_xid.c */
+
+typedef struct _xcb_xid {
+ pthread_mutex_t lock;
+ uint32_t last;
+ uint32_t base;
+ uint32_t max;
+ uint32_t inc;
+} _xcb_xid;
+
+int _xcb_xid_init(xcb_connection_t *c);
+void _xcb_xid_destroy(xcb_connection_t *c);
+
+
+/* xcb_ext.c */
+
+typedef struct _xcb_ext {
+ pthread_mutex_t lock;
+ struct lazyreply *extensions;
+ int extensions_size;
+} _xcb_ext;
+
+int _xcb_ext_init(xcb_connection_t *c);
+void _xcb_ext_destroy(xcb_connection_t *c);
+
+
+/* xcb_conn.c */
+
+struct xcb_connection_t {
+ /* This must be the first field; see _xcb_conn_ret_error(). */
+ int has_error;
+
+ /* constant data */
+ xcb_setup_t *setup;
+ int fd;
+
+ /* I/O data */
+ pthread_mutex_t iolock;
+ _xcb_in in;
+ _xcb_out out;
+
+ /* misc data */
+ _xcb_ext ext;
+ _xcb_xid xid;
+};
+
+void _xcb_conn_shutdown(xcb_connection_t *c, int err);
+
+xcb_connection_t *_xcb_conn_ret_error(int err);
+
+int _xcb_conn_wait(xcb_connection_t *c, pthread_cond_t *cond, struct iovec **vector, int *count);
+
+
+/* xcb_auth.c */
+
+int _xcb_get_auth_info(int fd, xcb_auth_info_t *info, int display);
+
+#ifdef GCC_HAS_VISIBILITY
+#pragma GCC visibility pop
+#endif
+
+#endif
diff --git a/depends/libxcb/include/xcb/xevie.h b/depends/libxcb/include/xcb/xevie.h
new file mode 100644
index 0000000..d6b7825
--- /dev/null
+++ b/depends/libxcb/include/xcb/xevie.h
@@ -0,0 +1,473 @@
+/*
+ * This file generated automatically from xevie.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Xevie_API XCB Xevie API
+ * @brief Xevie XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XEVIE_H
+#define __XEVIE_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XEVIE_MAJOR_VERSION 1
+#define XCB_XEVIE_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_xevie_id;
+
+/**
+ * @brief xcb_xevie_query_version_cookie_t
+ **/
+typedef struct xcb_xevie_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_xevie_query_version_cookie_t;
+
+/** Opcode for xcb_xevie_query_version. */
+#define XCB_XEVIE_QUERY_VERSION 0
+
+/**
+ * @brief xcb_xevie_query_version_request_t
+ **/
+typedef struct xcb_xevie_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t client_major_version;
+ uint16_t client_minor_version;
+} xcb_xevie_query_version_request_t;
+
+/**
+ * @brief xcb_xevie_query_version_reply_t
+ **/
+typedef struct xcb_xevie_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major_version;
+ uint16_t server_minor_version;
+ uint8_t pad1[20];
+} xcb_xevie_query_version_reply_t;
+
+/**
+ * @brief xcb_xevie_start_cookie_t
+ **/
+typedef struct xcb_xevie_start_cookie_t {
+ unsigned int sequence;
+} xcb_xevie_start_cookie_t;
+
+/** Opcode for xcb_xevie_start. */
+#define XCB_XEVIE_START 1
+
+/**
+ * @brief xcb_xevie_start_request_t
+ **/
+typedef struct xcb_xevie_start_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_xevie_start_request_t;
+
+/**
+ * @brief xcb_xevie_start_reply_t
+ **/
+typedef struct xcb_xevie_start_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_xevie_start_reply_t;
+
+/**
+ * @brief xcb_xevie_end_cookie_t
+ **/
+typedef struct xcb_xevie_end_cookie_t {
+ unsigned int sequence;
+} xcb_xevie_end_cookie_t;
+
+/** Opcode for xcb_xevie_end. */
+#define XCB_XEVIE_END 2
+
+/**
+ * @brief xcb_xevie_end_request_t
+ **/
+typedef struct xcb_xevie_end_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t cmap;
+} xcb_xevie_end_request_t;
+
+/**
+ * @brief xcb_xevie_end_reply_t
+ **/
+typedef struct xcb_xevie_end_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_xevie_end_reply_t;
+
+typedef enum xcb_xevie_datatype_t {
+ XCB_XEVIE_DATATYPE_UNMODIFIED = 0,
+ XCB_XEVIE_DATATYPE_MODIFIED = 1
+} xcb_xevie_datatype_t;
+
+/**
+ * @brief xcb_xevie_event_t
+ **/
+typedef struct xcb_xevie_event_t {
+ uint8_t pad0[32];
+} xcb_xevie_event_t;
+
+/**
+ * @brief xcb_xevie_event_iterator_t
+ **/
+typedef struct xcb_xevie_event_iterator_t {
+ xcb_xevie_event_t *data;
+ int rem;
+ int index;
+} xcb_xevie_event_iterator_t;
+
+/**
+ * @brief xcb_xevie_send_cookie_t
+ **/
+typedef struct xcb_xevie_send_cookie_t {
+ unsigned int sequence;
+} xcb_xevie_send_cookie_t;
+
+/** Opcode for xcb_xevie_send. */
+#define XCB_XEVIE_SEND 3
+
+/**
+ * @brief xcb_xevie_send_request_t
+ **/
+typedef struct xcb_xevie_send_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xevie_event_t event;
+ uint32_t data_type;
+ uint8_t pad0[64];
+} xcb_xevie_send_request_t;
+
+/**
+ * @brief xcb_xevie_send_reply_t
+ **/
+typedef struct xcb_xevie_send_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_xevie_send_reply_t;
+
+/**
+ * @brief xcb_xevie_select_input_cookie_t
+ **/
+typedef struct xcb_xevie_select_input_cookie_t {
+ unsigned int sequence;
+} xcb_xevie_select_input_cookie_t;
+
+/** Opcode for xcb_xevie_select_input. */
+#define XCB_XEVIE_SELECT_INPUT 4
+
+/**
+ * @brief xcb_xevie_select_input_request_t
+ **/
+typedef struct xcb_xevie_select_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t event_mask;
+} xcb_xevie_select_input_request_t;
+
+/**
+ * @brief xcb_xevie_select_input_reply_t
+ **/
+typedef struct xcb_xevie_select_input_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_xevie_select_input_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xevie_query_version_cookie_t
+xcb_xevie_query_version (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xevie_query_version_cookie_t
+xcb_xevie_query_version_unchecked (xcb_connection_t *c,
+ uint16_t client_major_version,
+ uint16_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xevie_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xevie_query_version_reply_t *
+xcb_xevie_query_version_reply (xcb_connection_t *c,
+ xcb_xevie_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xevie_start_cookie_t
+xcb_xevie_start (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xevie_start_cookie_t
+xcb_xevie_start_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xevie_start_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xevie_start_reply_t *
+xcb_xevie_start_reply (xcb_connection_t *c,
+ xcb_xevie_start_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xevie_end_cookie_t
+xcb_xevie_end (xcb_connection_t *c,
+ uint32_t cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xevie_end_cookie_t
+xcb_xevie_end_unchecked (xcb_connection_t *c,
+ uint32_t cmap);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xevie_end_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xevie_end_reply_t *
+xcb_xevie_end_reply (xcb_connection_t *c,
+ xcb_xevie_end_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xevie_event_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xevie_event_t)
+ */
+void
+xcb_xevie_event_next (xcb_xevie_event_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xevie_event_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xevie_event_end (xcb_xevie_event_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xevie_send_cookie_t
+xcb_xevie_send (xcb_connection_t *c,
+ xcb_xevie_event_t event,
+ uint32_t data_type);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xevie_send_cookie_t
+xcb_xevie_send_unchecked (xcb_connection_t *c,
+ xcb_xevie_event_t event,
+ uint32_t data_type);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xevie_send_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xevie_send_reply_t *
+xcb_xevie_send_reply (xcb_connection_t *c,
+ xcb_xevie_send_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xevie_select_input_cookie_t
+xcb_xevie_select_input (xcb_connection_t *c,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xevie_select_input_cookie_t
+xcb_xevie_select_input_unchecked (xcb_connection_t *c,
+ uint32_t event_mask);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xevie_select_input_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xevie_select_input_reply_t *
+xcb_xevie_select_input_reply (xcb_connection_t *c,
+ xcb_xevie_select_input_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xf86dri.h b/depends/libxcb/include/xcb/xf86dri.h
new file mode 100644
index 0000000..fbe1b0e
--- /dev/null
+++ b/depends/libxcb/include/xcb/xf86dri.h
@@ -0,0 +1,988 @@
+/*
+ * This file generated automatically from xf86dri.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_XF86Dri_API XCB XF86Dri API
+ * @brief XF86Dri XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XF86DRI_H
+#define __XF86DRI_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XF86DRI_MAJOR_VERSION 4
+#define XCB_XF86DRI_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_xf86dri_id;
+
+/**
+ * @brief xcb_xf86dri_drm_clip_rect_t
+ **/
+typedef struct xcb_xf86dri_drm_clip_rect_t {
+ int16_t x1;
+ int16_t y1;
+ int16_t x2;
+ int16_t x3;
+} xcb_xf86dri_drm_clip_rect_t;
+
+/**
+ * @brief xcb_xf86dri_drm_clip_rect_iterator_t
+ **/
+typedef struct xcb_xf86dri_drm_clip_rect_iterator_t {
+ xcb_xf86dri_drm_clip_rect_t *data;
+ int rem;
+ int index;
+} xcb_xf86dri_drm_clip_rect_iterator_t;
+
+/**
+ * @brief xcb_xf86dri_query_version_cookie_t
+ **/
+typedef struct xcb_xf86dri_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_query_version_cookie_t;
+
+/** Opcode for xcb_xf86dri_query_version. */
+#define XCB_XF86DRI_QUERY_VERSION 0
+
+/**
+ * @brief xcb_xf86dri_query_version_request_t
+ **/
+typedef struct xcb_xf86dri_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xf86dri_query_version_request_t;
+
+/**
+ * @brief xcb_xf86dri_query_version_reply_t
+ **/
+typedef struct xcb_xf86dri_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t dri_major_version;
+ uint16_t dri_minor_version;
+ uint32_t dri_minor_patch;
+} xcb_xf86dri_query_version_reply_t;
+
+/**
+ * @brief xcb_xf86dri_query_direct_rendering_capable_cookie_t
+ **/
+typedef struct xcb_xf86dri_query_direct_rendering_capable_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_query_direct_rendering_capable_cookie_t;
+
+/** Opcode for xcb_xf86dri_query_direct_rendering_capable. */
+#define XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE 1
+
+/**
+ * @brief xcb_xf86dri_query_direct_rendering_capable_request_t
+ **/
+typedef struct xcb_xf86dri_query_direct_rendering_capable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_xf86dri_query_direct_rendering_capable_request_t;
+
+/**
+ * @brief xcb_xf86dri_query_direct_rendering_capable_reply_t
+ **/
+typedef struct xcb_xf86dri_query_direct_rendering_capable_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t is_capable;
+} xcb_xf86dri_query_direct_rendering_capable_reply_t;
+
+/**
+ * @brief xcb_xf86dri_open_connection_cookie_t
+ **/
+typedef struct xcb_xf86dri_open_connection_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_open_connection_cookie_t;
+
+/** Opcode for xcb_xf86dri_open_connection. */
+#define XCB_XF86DRI_OPEN_CONNECTION 2
+
+/**
+ * @brief xcb_xf86dri_open_connection_request_t
+ **/
+typedef struct xcb_xf86dri_open_connection_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_xf86dri_open_connection_request_t;
+
+/**
+ * @brief xcb_xf86dri_open_connection_reply_t
+ **/
+typedef struct xcb_xf86dri_open_connection_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t sarea_handle_low;
+ uint32_t sarea_handle_high;
+ uint32_t bus_id_len;
+ uint8_t pad1[12];
+} xcb_xf86dri_open_connection_reply_t;
+
+/** Opcode for xcb_xf86dri_close_connection. */
+#define XCB_XF86DRI_CLOSE_CONNECTION 3
+
+/**
+ * @brief xcb_xf86dri_close_connection_request_t
+ **/
+typedef struct xcb_xf86dri_close_connection_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_xf86dri_close_connection_request_t;
+
+/**
+ * @brief xcb_xf86dri_get_client_driver_name_cookie_t
+ **/
+typedef struct xcb_xf86dri_get_client_driver_name_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_get_client_driver_name_cookie_t;
+
+/** Opcode for xcb_xf86dri_get_client_driver_name. */
+#define XCB_XF86DRI_GET_CLIENT_DRIVER_NAME 4
+
+/**
+ * @brief xcb_xf86dri_get_client_driver_name_request_t
+ **/
+typedef struct xcb_xf86dri_get_client_driver_name_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_xf86dri_get_client_driver_name_request_t;
+
+/**
+ * @brief xcb_xf86dri_get_client_driver_name_reply_t
+ **/
+typedef struct xcb_xf86dri_get_client_driver_name_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t client_driver_major_version;
+ uint32_t client_driver_minor_version;
+ uint32_t client_driver_patch_version;
+ uint32_t client_driver_name_len;
+ uint8_t pad1[8];
+} xcb_xf86dri_get_client_driver_name_reply_t;
+
+/**
+ * @brief xcb_xf86dri_create_context_cookie_t
+ **/
+typedef struct xcb_xf86dri_create_context_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_create_context_cookie_t;
+
+/** Opcode for xcb_xf86dri_create_context. */
+#define XCB_XF86DRI_CREATE_CONTEXT 5
+
+/**
+ * @brief xcb_xf86dri_create_context_request_t
+ **/
+typedef struct xcb_xf86dri_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t visual;
+ uint32_t context;
+} xcb_xf86dri_create_context_request_t;
+
+/**
+ * @brief xcb_xf86dri_create_context_reply_t
+ **/
+typedef struct xcb_xf86dri_create_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t hw_context;
+} xcb_xf86dri_create_context_reply_t;
+
+/** Opcode for xcb_xf86dri_destroy_context. */
+#define XCB_XF86DRI_DESTROY_CONTEXT 6
+
+/**
+ * @brief xcb_xf86dri_destroy_context_request_t
+ **/
+typedef struct xcb_xf86dri_destroy_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t context;
+} xcb_xf86dri_destroy_context_request_t;
+
+/**
+ * @brief xcb_xf86dri_create_drawable_cookie_t
+ **/
+typedef struct xcb_xf86dri_create_drawable_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_create_drawable_cookie_t;
+
+/** Opcode for xcb_xf86dri_create_drawable. */
+#define XCB_XF86DRI_CREATE_DRAWABLE 7
+
+/**
+ * @brief xcb_xf86dri_create_drawable_request_t
+ **/
+typedef struct xcb_xf86dri_create_drawable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t drawable;
+} xcb_xf86dri_create_drawable_request_t;
+
+/**
+ * @brief xcb_xf86dri_create_drawable_reply_t
+ **/
+typedef struct xcb_xf86dri_create_drawable_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t hw_drawable_handle;
+} xcb_xf86dri_create_drawable_reply_t;
+
+/** Opcode for xcb_xf86dri_destroy_drawable. */
+#define XCB_XF86DRI_DESTROY_DRAWABLE 8
+
+/**
+ * @brief xcb_xf86dri_destroy_drawable_request_t
+ **/
+typedef struct xcb_xf86dri_destroy_drawable_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t drawable;
+} xcb_xf86dri_destroy_drawable_request_t;
+
+/**
+ * @brief xcb_xf86dri_get_drawable_info_cookie_t
+ **/
+typedef struct xcb_xf86dri_get_drawable_info_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_get_drawable_info_cookie_t;
+
+/** Opcode for xcb_xf86dri_get_drawable_info. */
+#define XCB_XF86DRI_GET_DRAWABLE_INFO 9
+
+/**
+ * @brief xcb_xf86dri_get_drawable_info_request_t
+ **/
+typedef struct xcb_xf86dri_get_drawable_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t drawable;
+} xcb_xf86dri_get_drawable_info_request_t;
+
+/**
+ * @brief xcb_xf86dri_get_drawable_info_reply_t
+ **/
+typedef struct xcb_xf86dri_get_drawable_info_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t drawable_table_index;
+ uint32_t drawable_table_stamp;
+ int16_t drawable_origin_X;
+ int16_t drawable_origin_Y;
+ int16_t drawable_size_W;
+ int16_t drawable_size_H;
+ uint32_t num_clip_rects;
+ int16_t back_x;
+ int16_t back_y;
+ uint32_t num_back_clip_rects;
+} xcb_xf86dri_get_drawable_info_reply_t;
+
+/**
+ * @brief xcb_xf86dri_get_device_info_cookie_t
+ **/
+typedef struct xcb_xf86dri_get_device_info_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_get_device_info_cookie_t;
+
+/** Opcode for xcb_xf86dri_get_device_info. */
+#define XCB_XF86DRI_GET_DEVICE_INFO 10
+
+/**
+ * @brief xcb_xf86dri_get_device_info_request_t
+ **/
+typedef struct xcb_xf86dri_get_device_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+} xcb_xf86dri_get_device_info_request_t;
+
+/**
+ * @brief xcb_xf86dri_get_device_info_reply_t
+ **/
+typedef struct xcb_xf86dri_get_device_info_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t framebuffer_handle_low;
+ uint32_t framebuffer_handle_high;
+ uint32_t framebuffer_origin_offset;
+ uint32_t framebuffer_size;
+ uint32_t framebuffer_stride;
+ uint32_t device_private_size;
+} xcb_xf86dri_get_device_info_reply_t;
+
+/**
+ * @brief xcb_xf86dri_auth_connection_cookie_t
+ **/
+typedef struct xcb_xf86dri_auth_connection_cookie_t {
+ unsigned int sequence;
+} xcb_xf86dri_auth_connection_cookie_t;
+
+/** Opcode for xcb_xf86dri_auth_connection. */
+#define XCB_XF86DRI_AUTH_CONNECTION 11
+
+/**
+ * @brief xcb_xf86dri_auth_connection_request_t
+ **/
+typedef struct xcb_xf86dri_auth_connection_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t screen;
+ uint32_t magic;
+} xcb_xf86dri_auth_connection_request_t;
+
+/**
+ * @brief xcb_xf86dri_auth_connection_reply_t
+ **/
+typedef struct xcb_xf86dri_auth_connection_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t authenticated;
+} xcb_xf86dri_auth_connection_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xf86dri_drm_clip_rect_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xf86dri_drm_clip_rect_t)
+ */
+void
+xcb_xf86dri_drm_clip_rect_next (xcb_xf86dri_drm_clip_rect_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xf86dri_drm_clip_rect_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xf86dri_drm_clip_rect_end (xcb_xf86dri_drm_clip_rect_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_query_version_cookie_t
+xcb_xf86dri_query_version (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_query_version_cookie_t
+xcb_xf86dri_query_version_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_query_version_reply_t *
+xcb_xf86dri_query_version_reply (xcb_connection_t *c,
+ xcb_xf86dri_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_query_direct_rendering_capable_cookie_t
+xcb_xf86dri_query_direct_rendering_capable (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_query_direct_rendering_capable_cookie_t
+xcb_xf86dri_query_direct_rendering_capable_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_query_direct_rendering_capable_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_query_direct_rendering_capable_reply_t *
+xcb_xf86dri_query_direct_rendering_capable_reply (xcb_connection_t *c,
+ xcb_xf86dri_query_direct_rendering_capable_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xf86dri_open_connection_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_open_connection_cookie_t
+xcb_xf86dri_open_connection (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_open_connection_cookie_t
+xcb_xf86dri_open_connection_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+char *
+xcb_xf86dri_open_connection_bus_id (const xcb_xf86dri_open_connection_reply_t *R);
+
+int
+xcb_xf86dri_open_connection_bus_id_length (const xcb_xf86dri_open_connection_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xf86dri_open_connection_bus_id_end (const xcb_xf86dri_open_connection_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_open_connection_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_open_connection_reply_t *
+xcb_xf86dri_open_connection_reply (xcb_connection_t *c,
+ xcb_xf86dri_open_connection_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xf86dri_close_connection_checked (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xf86dri_close_connection (xcb_connection_t *c,
+ uint32_t screen);
+
+int
+xcb_xf86dri_get_client_driver_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_get_client_driver_name_cookie_t
+xcb_xf86dri_get_client_driver_name (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_get_client_driver_name_cookie_t
+xcb_xf86dri_get_client_driver_name_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+char *
+xcb_xf86dri_get_client_driver_name_client_driver_name (const xcb_xf86dri_get_client_driver_name_reply_t *R);
+
+int
+xcb_xf86dri_get_client_driver_name_client_driver_name_length (const xcb_xf86dri_get_client_driver_name_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xf86dri_get_client_driver_name_client_driver_name_end (const xcb_xf86dri_get_client_driver_name_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_get_client_driver_name_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_get_client_driver_name_reply_t *
+xcb_xf86dri_get_client_driver_name_reply (xcb_connection_t *c,
+ xcb_xf86dri_get_client_driver_name_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_create_context_cookie_t
+xcb_xf86dri_create_context (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t visual,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_create_context_cookie_t
+xcb_xf86dri_create_context_unchecked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t visual,
+ uint32_t context);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_create_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_create_context_reply_t *
+xcb_xf86dri_create_context_reply (xcb_connection_t *c,
+ xcb_xf86dri_create_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xf86dri_destroy_context_checked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xf86dri_destroy_context (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_create_drawable_cookie_t
+xcb_xf86dri_create_drawable (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_create_drawable_cookie_t
+xcb_xf86dri_create_drawable_unchecked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t drawable);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_create_drawable_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_create_drawable_reply_t *
+xcb_xf86dri_create_drawable_reply (xcb_connection_t *c,
+ xcb_xf86dri_create_drawable_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xf86dri_destroy_drawable_checked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xf86dri_destroy_drawable (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t drawable);
+
+int
+xcb_xf86dri_get_drawable_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_get_drawable_info_cookie_t
+xcb_xf86dri_get_drawable_info (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_get_drawable_info_cookie_t
+xcb_xf86dri_get_drawable_info_unchecked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t drawable);
+
+xcb_xf86dri_drm_clip_rect_t *
+xcb_xf86dri_get_drawable_info_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R);
+
+int
+xcb_xf86dri_get_drawable_info_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R);
+
+xcb_xf86dri_drm_clip_rect_iterator_t
+xcb_xf86dri_get_drawable_info_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R);
+
+xcb_xf86dri_drm_clip_rect_t *
+xcb_xf86dri_get_drawable_info_back_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R);
+
+int
+xcb_xf86dri_get_drawable_info_back_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R);
+
+xcb_xf86dri_drm_clip_rect_iterator_t
+xcb_xf86dri_get_drawable_info_back_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_get_drawable_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_get_drawable_info_reply_t *
+xcb_xf86dri_get_drawable_info_reply (xcb_connection_t *c,
+ xcb_xf86dri_get_drawable_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xf86dri_get_device_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_get_device_info_cookie_t
+xcb_xf86dri_get_device_info (xcb_connection_t *c,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_get_device_info_cookie_t
+xcb_xf86dri_get_device_info_unchecked (xcb_connection_t *c,
+ uint32_t screen);
+
+uint32_t *
+xcb_xf86dri_get_device_info_device_private (const xcb_xf86dri_get_device_info_reply_t *R);
+
+int
+xcb_xf86dri_get_device_info_device_private_length (const xcb_xf86dri_get_device_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xf86dri_get_device_info_device_private_end (const xcb_xf86dri_get_device_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_get_device_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_get_device_info_reply_t *
+xcb_xf86dri_get_device_info_reply (xcb_connection_t *c,
+ xcb_xf86dri_get_device_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xf86dri_auth_connection_cookie_t
+xcb_xf86dri_auth_connection (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t magic);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xf86dri_auth_connection_cookie_t
+xcb_xf86dri_auth_connection_unchecked (xcb_connection_t *c,
+ uint32_t screen,
+ uint32_t magic);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xf86dri_auth_connection_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xf86dri_auth_connection_reply_t *
+xcb_xf86dri_auth_connection_reply (xcb_connection_t *c,
+ xcb_xf86dri_auth_connection_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xfixes.h b/depends/libxcb/include/xcb/xfixes.h
new file mode 100644
index 0000000..cf95f63
--- /dev/null
+++ b/depends/libxcb/include/xcb/xfixes.h
@@ -0,0 +1,2128 @@
+/*
+ * This file generated automatically from xfixes.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_XFixes_API XCB XFixes API
+ * @brief XFixes XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XFIXES_H
+#define __XFIXES_H
+
+#include "xcb.h"
+#include "xproto.h"
+#include "render.h"
+#include "shape.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XFIXES_MAJOR_VERSION 6
+#define XCB_XFIXES_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_xfixes_id;
+
+/**
+ * @brief xcb_xfixes_query_version_cookie_t
+ **/
+typedef struct xcb_xfixes_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_xfixes_query_version_cookie_t;
+
+/** Opcode for xcb_xfixes_query_version. */
+#define XCB_XFIXES_QUERY_VERSION 0
+
+/**
+ * @brief xcb_xfixes_query_version_request_t
+ **/
+typedef struct xcb_xfixes_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t client_major_version;
+ uint32_t client_minor_version;
+} xcb_xfixes_query_version_request_t;
+
+/**
+ * @brief xcb_xfixes_query_version_reply_t
+ **/
+typedef struct xcb_xfixes_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major_version;
+ uint32_t minor_version;
+ uint8_t pad1[16];
+} xcb_xfixes_query_version_reply_t;
+
+typedef enum xcb_xfixes_save_set_mode_t {
+ XCB_XFIXES_SAVE_SET_MODE_INSERT = 0,
+ XCB_XFIXES_SAVE_SET_MODE_DELETE = 1
+} xcb_xfixes_save_set_mode_t;
+
+typedef enum xcb_xfixes_save_set_target_t {
+ XCB_XFIXES_SAVE_SET_TARGET_NEAREST = 0,
+ XCB_XFIXES_SAVE_SET_TARGET_ROOT = 1
+} xcb_xfixes_save_set_target_t;
+
+typedef enum xcb_xfixes_save_set_mapping_t {
+ XCB_XFIXES_SAVE_SET_MAPPING_MAP = 0,
+ XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = 1
+} xcb_xfixes_save_set_mapping_t;
+
+/** Opcode for xcb_xfixes_change_save_set. */
+#define XCB_XFIXES_CHANGE_SAVE_SET 1
+
+/**
+ * @brief xcb_xfixes_change_save_set_request_t
+ **/
+typedef struct xcb_xfixes_change_save_set_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t mode;
+ uint8_t target;
+ uint8_t map;
+ uint8_t pad0;
+ xcb_window_t window;
+} xcb_xfixes_change_save_set_request_t;
+
+typedef enum xcb_xfixes_selection_event_t {
+ XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = 0,
+ XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = 1,
+ XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = 2
+} xcb_xfixes_selection_event_t;
+
+typedef enum xcb_xfixes_selection_event_mask_t {
+ XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = 1,
+ XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = 2,
+ XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = 4
+} xcb_xfixes_selection_event_mask_t;
+
+/** Opcode for xcb_xfixes_selection_notify. */
+#define XCB_XFIXES_SELECTION_NOTIFY 0
+
+/**
+ * @brief xcb_xfixes_selection_notify_event_t
+ **/
+typedef struct xcb_xfixes_selection_notify_event_t {
+ uint8_t response_type;
+ uint8_t subtype;
+ uint16_t sequence;
+ xcb_window_t window;
+ xcb_window_t owner;
+ xcb_atom_t selection;
+ xcb_timestamp_t timestamp;
+ xcb_timestamp_t selection_timestamp;
+ uint8_t pad0[8];
+} xcb_xfixes_selection_notify_event_t;
+
+/** Opcode for xcb_xfixes_select_selection_input. */
+#define XCB_XFIXES_SELECT_SELECTION_INPUT 2
+
+/**
+ * @brief xcb_xfixes_select_selection_input_request_t
+ **/
+typedef struct xcb_xfixes_select_selection_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t selection;
+ uint32_t event_mask;
+} xcb_xfixes_select_selection_input_request_t;
+
+typedef enum xcb_xfixes_cursor_notify_t {
+ XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = 0
+} xcb_xfixes_cursor_notify_t;
+
+typedef enum xcb_xfixes_cursor_notify_mask_t {
+ XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = 1
+} xcb_xfixes_cursor_notify_mask_t;
+
+/** Opcode for xcb_xfixes_cursor_notify. */
+#define XCB_XFIXES_CURSOR_NOTIFY 1
+
+/**
+ * @brief xcb_xfixes_cursor_notify_event_t
+ **/
+typedef struct xcb_xfixes_cursor_notify_event_t {
+ uint8_t response_type;
+ uint8_t subtype;
+ uint16_t sequence;
+ xcb_window_t window;
+ uint32_t cursor_serial;
+ xcb_timestamp_t timestamp;
+ xcb_atom_t name;
+ uint8_t pad0[12];
+} xcb_xfixes_cursor_notify_event_t;
+
+/** Opcode for xcb_xfixes_select_cursor_input. */
+#define XCB_XFIXES_SELECT_CURSOR_INPUT 3
+
+/**
+ * @brief xcb_xfixes_select_cursor_input_request_t
+ **/
+typedef struct xcb_xfixes_select_cursor_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t event_mask;
+} xcb_xfixes_select_cursor_input_request_t;
+
+/**
+ * @brief xcb_xfixes_get_cursor_image_cookie_t
+ **/
+typedef struct xcb_xfixes_get_cursor_image_cookie_t {
+ unsigned int sequence;
+} xcb_xfixes_get_cursor_image_cookie_t;
+
+/** Opcode for xcb_xfixes_get_cursor_image. */
+#define XCB_XFIXES_GET_CURSOR_IMAGE 4
+
+/**
+ * @brief xcb_xfixes_get_cursor_image_request_t
+ **/
+typedef struct xcb_xfixes_get_cursor_image_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xfixes_get_cursor_image_request_t;
+
+/**
+ * @brief xcb_xfixes_get_cursor_image_reply_t
+ **/
+typedef struct xcb_xfixes_get_cursor_image_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t xhot;
+ uint16_t yhot;
+ uint32_t cursor_serial;
+ uint8_t pad1[8];
+} xcb_xfixes_get_cursor_image_reply_t;
+
+typedef uint32_t xcb_xfixes_region_t;
+
+/**
+ * @brief xcb_xfixes_region_iterator_t
+ **/
+typedef struct xcb_xfixes_region_iterator_t {
+ xcb_xfixes_region_t *data;
+ int rem;
+ int index;
+} xcb_xfixes_region_iterator_t;
+
+/** Opcode for xcb_xfixes_bad_region. */
+#define XCB_XFIXES_BAD_REGION 0
+
+/**
+ * @brief xcb_xfixes_bad_region_error_t
+ **/
+typedef struct xcb_xfixes_bad_region_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_xfixes_bad_region_error_t;
+
+typedef enum xcb_xfixes_region_enum_t {
+ XCB_XFIXES_REGION_NONE = 0
+} xcb_xfixes_region_enum_t;
+
+/** Opcode for xcb_xfixes_create_region. */
+#define XCB_XFIXES_CREATE_REGION 5
+
+/**
+ * @brief xcb_xfixes_create_region_request_t
+ **/
+typedef struct xcb_xfixes_create_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+} xcb_xfixes_create_region_request_t;
+
+/** Opcode for xcb_xfixes_create_region_from_bitmap. */
+#define XCB_XFIXES_CREATE_REGION_FROM_BITMAP 6
+
+/**
+ * @brief xcb_xfixes_create_region_from_bitmap_request_t
+ **/
+typedef struct xcb_xfixes_create_region_from_bitmap_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+ xcb_pixmap_t bitmap;
+} xcb_xfixes_create_region_from_bitmap_request_t;
+
+/** Opcode for xcb_xfixes_create_region_from_window. */
+#define XCB_XFIXES_CREATE_REGION_FROM_WINDOW 7
+
+/**
+ * @brief xcb_xfixes_create_region_from_window_request_t
+ **/
+typedef struct xcb_xfixes_create_region_from_window_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+ xcb_window_t window;
+ xcb_shape_kind_t kind;
+ uint8_t pad0[3];
+} xcb_xfixes_create_region_from_window_request_t;
+
+/** Opcode for xcb_xfixes_create_region_from_gc. */
+#define XCB_XFIXES_CREATE_REGION_FROM_GC 8
+
+/**
+ * @brief xcb_xfixes_create_region_from_gc_request_t
+ **/
+typedef struct xcb_xfixes_create_region_from_gc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+ xcb_gcontext_t gc;
+} xcb_xfixes_create_region_from_gc_request_t;
+
+/** Opcode for xcb_xfixes_create_region_from_picture. */
+#define XCB_XFIXES_CREATE_REGION_FROM_PICTURE 9
+
+/**
+ * @brief xcb_xfixes_create_region_from_picture_request_t
+ **/
+typedef struct xcb_xfixes_create_region_from_picture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+ xcb_render_picture_t picture;
+} xcb_xfixes_create_region_from_picture_request_t;
+
+/** Opcode for xcb_xfixes_destroy_region. */
+#define XCB_XFIXES_DESTROY_REGION 10
+
+/**
+ * @brief xcb_xfixes_destroy_region_request_t
+ **/
+typedef struct xcb_xfixes_destroy_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+} xcb_xfixes_destroy_region_request_t;
+
+/** Opcode for xcb_xfixes_set_region. */
+#define XCB_XFIXES_SET_REGION 11
+
+/**
+ * @brief xcb_xfixes_set_region_request_t
+ **/
+typedef struct xcb_xfixes_set_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+} xcb_xfixes_set_region_request_t;
+
+/** Opcode for xcb_xfixes_copy_region. */
+#define XCB_XFIXES_COPY_REGION 12
+
+/**
+ * @brief xcb_xfixes_copy_region_request_t
+ **/
+typedef struct xcb_xfixes_copy_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source;
+ xcb_xfixes_region_t destination;
+} xcb_xfixes_copy_region_request_t;
+
+/** Opcode for xcb_xfixes_union_region. */
+#define XCB_XFIXES_UNION_REGION 13
+
+/**
+ * @brief xcb_xfixes_union_region_request_t
+ **/
+typedef struct xcb_xfixes_union_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source1;
+ xcb_xfixes_region_t source2;
+ xcb_xfixes_region_t destination;
+} xcb_xfixes_union_region_request_t;
+
+/** Opcode for xcb_xfixes_intersect_region. */
+#define XCB_XFIXES_INTERSECT_REGION 14
+
+/**
+ * @brief xcb_xfixes_intersect_region_request_t
+ **/
+typedef struct xcb_xfixes_intersect_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source1;
+ xcb_xfixes_region_t source2;
+ xcb_xfixes_region_t destination;
+} xcb_xfixes_intersect_region_request_t;
+
+/** Opcode for xcb_xfixes_subtract_region. */
+#define XCB_XFIXES_SUBTRACT_REGION 15
+
+/**
+ * @brief xcb_xfixes_subtract_region_request_t
+ **/
+typedef struct xcb_xfixes_subtract_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source1;
+ xcb_xfixes_region_t source2;
+ xcb_xfixes_region_t destination;
+} xcb_xfixes_subtract_region_request_t;
+
+/** Opcode for xcb_xfixes_invert_region. */
+#define XCB_XFIXES_INVERT_REGION 16
+
+/**
+ * @brief xcb_xfixes_invert_region_request_t
+ **/
+typedef struct xcb_xfixes_invert_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source;
+ xcb_rectangle_t bounds;
+ xcb_xfixes_region_t destination;
+} xcb_xfixes_invert_region_request_t;
+
+/** Opcode for xcb_xfixes_translate_region. */
+#define XCB_XFIXES_TRANSLATE_REGION 17
+
+/**
+ * @brief xcb_xfixes_translate_region_request_t
+ **/
+typedef struct xcb_xfixes_translate_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+ int16_t dx;
+ int16_t dy;
+} xcb_xfixes_translate_region_request_t;
+
+/** Opcode for xcb_xfixes_region_extents. */
+#define XCB_XFIXES_REGION_EXTENTS 18
+
+/**
+ * @brief xcb_xfixes_region_extents_request_t
+ **/
+typedef struct xcb_xfixes_region_extents_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source;
+ xcb_xfixes_region_t destination;
+} xcb_xfixes_region_extents_request_t;
+
+/**
+ * @brief xcb_xfixes_fetch_region_cookie_t
+ **/
+typedef struct xcb_xfixes_fetch_region_cookie_t {
+ unsigned int sequence;
+} xcb_xfixes_fetch_region_cookie_t;
+
+/** Opcode for xcb_xfixes_fetch_region. */
+#define XCB_XFIXES_FETCH_REGION 19
+
+/**
+ * @brief xcb_xfixes_fetch_region_request_t
+ **/
+typedef struct xcb_xfixes_fetch_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t region;
+} xcb_xfixes_fetch_region_request_t;
+
+/**
+ * @brief xcb_xfixes_fetch_region_reply_t
+ **/
+typedef struct xcb_xfixes_fetch_region_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_rectangle_t extents;
+ uint8_t pad1[16];
+} xcb_xfixes_fetch_region_reply_t;
+
+/** Opcode for xcb_xfixes_set_gc_clip_region. */
+#define XCB_XFIXES_SET_GC_CLIP_REGION 20
+
+/**
+ * @brief xcb_xfixes_set_gc_clip_region_request_t
+ **/
+typedef struct xcb_xfixes_set_gc_clip_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_gcontext_t gc;
+ xcb_xfixes_region_t region;
+ int16_t x_origin;
+ int16_t y_origin;
+} xcb_xfixes_set_gc_clip_region_request_t;
+
+/** Opcode for xcb_xfixes_set_window_shape_region. */
+#define XCB_XFIXES_SET_WINDOW_SHAPE_REGION 21
+
+/**
+ * @brief xcb_xfixes_set_window_shape_region_request_t
+ **/
+typedef struct xcb_xfixes_set_window_shape_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t dest;
+ xcb_shape_kind_t dest_kind;
+ uint8_t pad0[3];
+ int16_t x_offset;
+ int16_t y_offset;
+ xcb_xfixes_region_t region;
+} xcb_xfixes_set_window_shape_region_request_t;
+
+/** Opcode for xcb_xfixes_set_picture_clip_region. */
+#define XCB_XFIXES_SET_PICTURE_CLIP_REGION 22
+
+/**
+ * @brief xcb_xfixes_set_picture_clip_region_request_t
+ **/
+typedef struct xcb_xfixes_set_picture_clip_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_render_picture_t picture;
+ xcb_xfixes_region_t region;
+ int16_t x_origin;
+ int16_t y_origin;
+} xcb_xfixes_set_picture_clip_region_request_t;
+
+/** Opcode for xcb_xfixes_set_cursor_name. */
+#define XCB_XFIXES_SET_CURSOR_NAME 23
+
+/**
+ * @brief xcb_xfixes_set_cursor_name_request_t
+ **/
+typedef struct xcb_xfixes_set_cursor_name_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_cursor_t cursor;
+ uint16_t nbytes;
+ uint8_t pad0[2];
+} xcb_xfixes_set_cursor_name_request_t;
+
+/**
+ * @brief xcb_xfixes_get_cursor_name_cookie_t
+ **/
+typedef struct xcb_xfixes_get_cursor_name_cookie_t {
+ unsigned int sequence;
+} xcb_xfixes_get_cursor_name_cookie_t;
+
+/** Opcode for xcb_xfixes_get_cursor_name. */
+#define XCB_XFIXES_GET_CURSOR_NAME 24
+
+/**
+ * @brief xcb_xfixes_get_cursor_name_request_t
+ **/
+typedef struct xcb_xfixes_get_cursor_name_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_cursor_t cursor;
+} xcb_xfixes_get_cursor_name_request_t;
+
+/**
+ * @brief xcb_xfixes_get_cursor_name_reply_t
+ **/
+typedef struct xcb_xfixes_get_cursor_name_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t atom;
+ uint16_t nbytes;
+ uint8_t pad1[18];
+} xcb_xfixes_get_cursor_name_reply_t;
+
+/**
+ * @brief xcb_xfixes_get_cursor_image_and_name_cookie_t
+ **/
+typedef struct xcb_xfixes_get_cursor_image_and_name_cookie_t {
+ unsigned int sequence;
+} xcb_xfixes_get_cursor_image_and_name_cookie_t;
+
+/** Opcode for xcb_xfixes_get_cursor_image_and_name. */
+#define XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME 25
+
+/**
+ * @brief xcb_xfixes_get_cursor_image_and_name_request_t
+ **/
+typedef struct xcb_xfixes_get_cursor_image_and_name_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xfixes_get_cursor_image_and_name_request_t;
+
+/**
+ * @brief xcb_xfixes_get_cursor_image_and_name_reply_t
+ **/
+typedef struct xcb_xfixes_get_cursor_image_and_name_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t xhot;
+ uint16_t yhot;
+ uint32_t cursor_serial;
+ xcb_atom_t cursor_atom;
+ uint16_t nbytes;
+ uint8_t pad1[2];
+} xcb_xfixes_get_cursor_image_and_name_reply_t;
+
+/** Opcode for xcb_xfixes_change_cursor. */
+#define XCB_XFIXES_CHANGE_CURSOR 26
+
+/**
+ * @brief xcb_xfixes_change_cursor_request_t
+ **/
+typedef struct xcb_xfixes_change_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_cursor_t source;
+ xcb_cursor_t destination;
+} xcb_xfixes_change_cursor_request_t;
+
+/** Opcode for xcb_xfixes_change_cursor_by_name. */
+#define XCB_XFIXES_CHANGE_CURSOR_BY_NAME 27
+
+/**
+ * @brief xcb_xfixes_change_cursor_by_name_request_t
+ **/
+typedef struct xcb_xfixes_change_cursor_by_name_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_cursor_t src;
+ uint16_t nbytes;
+ uint8_t pad0[2];
+} xcb_xfixes_change_cursor_by_name_request_t;
+
+/** Opcode for xcb_xfixes_expand_region. */
+#define XCB_XFIXES_EXPAND_REGION 28
+
+/**
+ * @brief xcb_xfixes_expand_region_request_t
+ **/
+typedef struct xcb_xfixes_expand_region_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_region_t source;
+ xcb_xfixes_region_t destination;
+ uint16_t left;
+ uint16_t right;
+ uint16_t top;
+ uint16_t bottom;
+} xcb_xfixes_expand_region_request_t;
+
+/** Opcode for xcb_xfixes_hide_cursor. */
+#define XCB_XFIXES_HIDE_CURSOR 29
+
+/**
+ * @brief xcb_xfixes_hide_cursor_request_t
+ **/
+typedef struct xcb_xfixes_hide_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_xfixes_hide_cursor_request_t;
+
+/** Opcode for xcb_xfixes_show_cursor. */
+#define XCB_XFIXES_SHOW_CURSOR 30
+
+/**
+ * @brief xcb_xfixes_show_cursor_request_t
+ **/
+typedef struct xcb_xfixes_show_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_xfixes_show_cursor_request_t;
+
+typedef uint32_t xcb_xfixes_barrier_t;
+
+/**
+ * @brief xcb_xfixes_barrier_iterator_t
+ **/
+typedef struct xcb_xfixes_barrier_iterator_t {
+ xcb_xfixes_barrier_t *data;
+ int rem;
+ int index;
+} xcb_xfixes_barrier_iterator_t;
+
+typedef enum xcb_xfixes_barrier_directions_t {
+ XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = 1,
+ XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = 2,
+ XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = 4,
+ XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = 8
+} xcb_xfixes_barrier_directions_t;
+
+/** Opcode for xcb_xfixes_create_pointer_barrier. */
+#define XCB_XFIXES_CREATE_POINTER_BARRIER 31
+
+/**
+ * @brief xcb_xfixes_create_pointer_barrier_request_t
+ **/
+typedef struct xcb_xfixes_create_pointer_barrier_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_barrier_t barrier;
+ xcb_window_t window;
+ uint16_t x1;
+ uint16_t y1;
+ uint16_t x2;
+ uint16_t y2;
+ uint32_t directions;
+ uint8_t pad0[2];
+ uint16_t num_devices;
+} xcb_xfixes_create_pointer_barrier_request_t;
+
+/** Opcode for xcb_xfixes_delete_pointer_barrier. */
+#define XCB_XFIXES_DELETE_POINTER_BARRIER 32
+
+/**
+ * @brief xcb_xfixes_delete_pointer_barrier_request_t
+ **/
+typedef struct xcb_xfixes_delete_pointer_barrier_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xfixes_barrier_t barrier;
+} xcb_xfixes_delete_pointer_barrier_request_t;
+
+typedef enum xcb_xfixes_client_disconnect_flags_t {
+ XCB_XFIXES_CLIENT_DISCONNECT_FLAGS_DEFAULT = 0,
+ XCB_XFIXES_CLIENT_DISCONNECT_FLAGS_TERMINATE = 1
+} xcb_xfixes_client_disconnect_flags_t;
+
+/** Opcode for xcb_xfixes_set_client_disconnect_mode. */
+#define XCB_XFIXES_SET_CLIENT_DISCONNECT_MODE 33
+
+/**
+ * @brief xcb_xfixes_set_client_disconnect_mode_request_t
+ **/
+typedef struct xcb_xfixes_set_client_disconnect_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t disconnect_mode;
+} xcb_xfixes_set_client_disconnect_mode_request_t;
+
+/**
+ * @brief xcb_xfixes_get_client_disconnect_mode_cookie_t
+ **/
+typedef struct xcb_xfixes_get_client_disconnect_mode_cookie_t {
+ unsigned int sequence;
+} xcb_xfixes_get_client_disconnect_mode_cookie_t;
+
+/** Opcode for xcb_xfixes_get_client_disconnect_mode. */
+#define XCB_XFIXES_GET_CLIENT_DISCONNECT_MODE 34
+
+/**
+ * @brief xcb_xfixes_get_client_disconnect_mode_request_t
+ **/
+typedef struct xcb_xfixes_get_client_disconnect_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xfixes_get_client_disconnect_mode_request_t;
+
+/**
+ * @brief xcb_xfixes_get_client_disconnect_mode_reply_t
+ **/
+typedef struct xcb_xfixes_get_client_disconnect_mode_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t disconnect_mode;
+ uint8_t pad1[20];
+} xcb_xfixes_get_client_disconnect_mode_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xfixes_query_version_cookie_t
+xcb_xfixes_query_version (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xfixes_query_version_cookie_t
+xcb_xfixes_query_version_unchecked (xcb_connection_t *c,
+ uint32_t client_major_version,
+ uint32_t client_minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xfixes_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xfixes_query_version_reply_t *
+xcb_xfixes_query_version_reply (xcb_connection_t *c,
+ xcb_xfixes_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_change_save_set_checked (xcb_connection_t *c,
+ uint8_t mode,
+ uint8_t target,
+ uint8_t map,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_change_save_set (xcb_connection_t *c,
+ uint8_t mode,
+ uint8_t target,
+ uint8_t map,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_select_selection_input_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t selection,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_select_selection_input (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t selection,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_select_cursor_input_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_select_cursor_input (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t event_mask);
+
+int
+xcb_xfixes_get_cursor_image_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xfixes_get_cursor_image_cookie_t
+xcb_xfixes_get_cursor_image (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xfixes_get_cursor_image_cookie_t
+xcb_xfixes_get_cursor_image_unchecked (xcb_connection_t *c);
+
+uint32_t *
+xcb_xfixes_get_cursor_image_cursor_image (const xcb_xfixes_get_cursor_image_reply_t *R);
+
+int
+xcb_xfixes_get_cursor_image_cursor_image_length (const xcb_xfixes_get_cursor_image_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_get_cursor_image_cursor_image_end (const xcb_xfixes_get_cursor_image_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xfixes_get_cursor_image_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xfixes_get_cursor_image_reply_t *
+xcb_xfixes_get_cursor_image_reply (xcb_connection_t *c,
+ xcb_xfixes_get_cursor_image_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xfixes_region_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xfixes_region_t)
+ */
+void
+xcb_xfixes_region_next (xcb_xfixes_region_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xfixes_region_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xfixes_region_end (xcb_xfixes_region_iterator_t i);
+
+int
+xcb_xfixes_create_region_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_xfixes_create_region_rectangles (const xcb_xfixes_create_region_request_t *R);
+
+int
+xcb_xfixes_create_region_rectangles_length (const xcb_xfixes_create_region_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_xfixes_create_region_rectangles_iterator (const xcb_xfixes_create_region_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_bitmap_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_pixmap_t bitmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_bitmap (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_pixmap_t bitmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_window_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_window_t window,
+ xcb_shape_kind_t kind);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_window (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_window_t window,
+ xcb_shape_kind_t kind);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_gc_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_gcontext_t gc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_gc (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_gcontext_t gc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_picture_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_render_picture_t picture);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_region_from_picture (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ xcb_render_picture_t picture);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_destroy_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_destroy_region (xcb_connection_t *c,
+ xcb_xfixes_region_t region);
+
+int
+xcb_xfixes_set_region_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_region (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_xfixes_set_region_rectangles (const xcb_xfixes_set_region_request_t *R);
+
+int
+xcb_xfixes_set_region_rectangles_length (const xcb_xfixes_set_region_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_xfixes_set_region_rectangles_iterator (const xcb_xfixes_set_region_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_copy_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_copy_region (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_union_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source1,
+ xcb_xfixes_region_t source2,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_union_region (xcb_connection_t *c,
+ xcb_xfixes_region_t source1,
+ xcb_xfixes_region_t source2,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_intersect_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source1,
+ xcb_xfixes_region_t source2,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_intersect_region (xcb_connection_t *c,
+ xcb_xfixes_region_t source1,
+ xcb_xfixes_region_t source2,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_subtract_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source1,
+ xcb_xfixes_region_t source2,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_subtract_region (xcb_connection_t *c,
+ xcb_xfixes_region_t source1,
+ xcb_xfixes_region_t source2,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_invert_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_rectangle_t bounds,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_invert_region (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_rectangle_t bounds,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_translate_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ int16_t dx,
+ int16_t dy);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_translate_region (xcb_connection_t *c,
+ xcb_xfixes_region_t region,
+ int16_t dx,
+ int16_t dy);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_region_extents_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_xfixes_region_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_region_extents (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_xfixes_region_t destination);
+
+int
+xcb_xfixes_fetch_region_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xfixes_fetch_region_cookie_t
+xcb_xfixes_fetch_region (xcb_connection_t *c,
+ xcb_xfixes_region_t region);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xfixes_fetch_region_cookie_t
+xcb_xfixes_fetch_region_unchecked (xcb_connection_t *c,
+ xcb_xfixes_region_t region);
+
+xcb_rectangle_t *
+xcb_xfixes_fetch_region_rectangles (const xcb_xfixes_fetch_region_reply_t *R);
+
+int
+xcb_xfixes_fetch_region_rectangles_length (const xcb_xfixes_fetch_region_reply_t *R);
+
+xcb_rectangle_iterator_t
+xcb_xfixes_fetch_region_rectangles_iterator (const xcb_xfixes_fetch_region_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xfixes_fetch_region_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xfixes_fetch_region_reply_t *
+xcb_xfixes_fetch_region_reply (xcb_connection_t *c,
+ xcb_xfixes_fetch_region_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_gc_clip_region_checked (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ xcb_xfixes_region_t region,
+ int16_t x_origin,
+ int16_t y_origin);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_gc_clip_region (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ xcb_xfixes_region_t region,
+ int16_t x_origin,
+ int16_t y_origin);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_window_shape_region_checked (xcb_connection_t *c,
+ xcb_window_t dest,
+ xcb_shape_kind_t dest_kind,
+ int16_t x_offset,
+ int16_t y_offset,
+ xcb_xfixes_region_t region);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_window_shape_region (xcb_connection_t *c,
+ xcb_window_t dest,
+ xcb_shape_kind_t dest_kind,
+ int16_t x_offset,
+ int16_t y_offset,
+ xcb_xfixes_region_t region);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_picture_clip_region_checked (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_xfixes_region_t region,
+ int16_t x_origin,
+ int16_t y_origin);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_picture_clip_region (xcb_connection_t *c,
+ xcb_render_picture_t picture,
+ xcb_xfixes_region_t region,
+ int16_t x_origin,
+ int16_t y_origin);
+
+int
+xcb_xfixes_set_cursor_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_cursor_name_checked (xcb_connection_t *c,
+ xcb_cursor_t cursor,
+ uint16_t nbytes,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_cursor_name (xcb_connection_t *c,
+ xcb_cursor_t cursor,
+ uint16_t nbytes,
+ const char *name);
+
+char *
+xcb_xfixes_set_cursor_name_name (const xcb_xfixes_set_cursor_name_request_t *R);
+
+int
+xcb_xfixes_set_cursor_name_name_length (const xcb_xfixes_set_cursor_name_request_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_set_cursor_name_name_end (const xcb_xfixes_set_cursor_name_request_t *R);
+
+int
+xcb_xfixes_get_cursor_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xfixes_get_cursor_name_cookie_t
+xcb_xfixes_get_cursor_name (xcb_connection_t *c,
+ xcb_cursor_t cursor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xfixes_get_cursor_name_cookie_t
+xcb_xfixes_get_cursor_name_unchecked (xcb_connection_t *c,
+ xcb_cursor_t cursor);
+
+char *
+xcb_xfixes_get_cursor_name_name (const xcb_xfixes_get_cursor_name_reply_t *R);
+
+int
+xcb_xfixes_get_cursor_name_name_length (const xcb_xfixes_get_cursor_name_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_get_cursor_name_name_end (const xcb_xfixes_get_cursor_name_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xfixes_get_cursor_name_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xfixes_get_cursor_name_reply_t *
+xcb_xfixes_get_cursor_name_reply (xcb_connection_t *c,
+ xcb_xfixes_get_cursor_name_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xfixes_get_cursor_image_and_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xfixes_get_cursor_image_and_name_cookie_t
+xcb_xfixes_get_cursor_image_and_name (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xfixes_get_cursor_image_and_name_cookie_t
+xcb_xfixes_get_cursor_image_and_name_unchecked (xcb_connection_t *c);
+
+uint32_t *
+xcb_xfixes_get_cursor_image_and_name_cursor_image (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
+
+int
+xcb_xfixes_get_cursor_image_and_name_cursor_image_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_get_cursor_image_and_name_cursor_image_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
+
+char *
+xcb_xfixes_get_cursor_image_and_name_name (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
+
+int
+xcb_xfixes_get_cursor_image_and_name_name_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_get_cursor_image_and_name_name_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xfixes_get_cursor_image_and_name_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xfixes_get_cursor_image_and_name_reply_t *
+xcb_xfixes_get_cursor_image_and_name_reply (xcb_connection_t *c,
+ xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_change_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t source,
+ xcb_cursor_t destination);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_change_cursor (xcb_connection_t *c,
+ xcb_cursor_t source,
+ xcb_cursor_t destination);
+
+int
+xcb_xfixes_change_cursor_by_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_change_cursor_by_name_checked (xcb_connection_t *c,
+ xcb_cursor_t src,
+ uint16_t nbytes,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_change_cursor_by_name (xcb_connection_t *c,
+ xcb_cursor_t src,
+ uint16_t nbytes,
+ const char *name);
+
+char *
+xcb_xfixes_change_cursor_by_name_name (const xcb_xfixes_change_cursor_by_name_request_t *R);
+
+int
+xcb_xfixes_change_cursor_by_name_name_length (const xcb_xfixes_change_cursor_by_name_request_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_change_cursor_by_name_name_end (const xcb_xfixes_change_cursor_by_name_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_expand_region_checked (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_xfixes_region_t destination,
+ uint16_t left,
+ uint16_t right,
+ uint16_t top,
+ uint16_t bottom);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_expand_region (xcb_connection_t *c,
+ xcb_xfixes_region_t source,
+ xcb_xfixes_region_t destination,
+ uint16_t left,
+ uint16_t right,
+ uint16_t top,
+ uint16_t bottom);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_hide_cursor_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_hide_cursor (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_show_cursor_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_show_cursor (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xfixes_barrier_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xfixes_barrier_t)
+ */
+void
+xcb_xfixes_barrier_next (xcb_xfixes_barrier_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xfixes_barrier_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xfixes_barrier_end (xcb_xfixes_barrier_iterator_t i);
+
+int
+xcb_xfixes_create_pointer_barrier_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_pointer_barrier_checked (xcb_connection_t *c,
+ xcb_xfixes_barrier_t barrier,
+ xcb_window_t window,
+ uint16_t x1,
+ uint16_t y1,
+ uint16_t x2,
+ uint16_t y2,
+ uint32_t directions,
+ uint16_t num_devices,
+ const uint16_t *devices);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_create_pointer_barrier (xcb_connection_t *c,
+ xcb_xfixes_barrier_t barrier,
+ xcb_window_t window,
+ uint16_t x1,
+ uint16_t y1,
+ uint16_t x2,
+ uint16_t y2,
+ uint32_t directions,
+ uint16_t num_devices,
+ const uint16_t *devices);
+
+uint16_t *
+xcb_xfixes_create_pointer_barrier_devices (const xcb_xfixes_create_pointer_barrier_request_t *R);
+
+int
+xcb_xfixes_create_pointer_barrier_devices_length (const xcb_xfixes_create_pointer_barrier_request_t *R);
+
+xcb_generic_iterator_t
+xcb_xfixes_create_pointer_barrier_devices_end (const xcb_xfixes_create_pointer_barrier_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_delete_pointer_barrier_checked (xcb_connection_t *c,
+ xcb_xfixes_barrier_t barrier);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_delete_pointer_barrier (xcb_connection_t *c,
+ xcb_xfixes_barrier_t barrier);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_client_disconnect_mode_checked (xcb_connection_t *c,
+ uint32_t disconnect_mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xfixes_set_client_disconnect_mode (xcb_connection_t *c,
+ uint32_t disconnect_mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xfixes_get_client_disconnect_mode_cookie_t
+xcb_xfixes_get_client_disconnect_mode (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xfixes_get_client_disconnect_mode_cookie_t
+xcb_xfixes_get_client_disconnect_mode_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xfixes_get_client_disconnect_mode_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xfixes_get_client_disconnect_mode_reply_t *
+xcb_xfixes_get_client_disconnect_mode_reply (xcb_connection_t *c,
+ xcb_xfixes_get_client_disconnect_mode_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xinerama.h b/depends/libxcb/include/xcb/xinerama.h
new file mode 100644
index 0000000..17a8212
--- /dev/null
+++ b/depends/libxcb/include/xcb/xinerama.h
@@ -0,0 +1,557 @@
+/*
+ * This file generated automatically from xinerama.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Xinerama_API XCB Xinerama API
+ * @brief Xinerama XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XINERAMA_H
+#define __XINERAMA_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XINERAMA_MAJOR_VERSION 1
+#define XCB_XINERAMA_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_xinerama_id;
+
+/**
+ * @brief xcb_xinerama_screen_info_t
+ **/
+typedef struct xcb_xinerama_screen_info_t {
+ int16_t x_org;
+ int16_t y_org;
+ uint16_t width;
+ uint16_t height;
+} xcb_xinerama_screen_info_t;
+
+/**
+ * @brief xcb_xinerama_screen_info_iterator_t
+ **/
+typedef struct xcb_xinerama_screen_info_iterator_t {
+ xcb_xinerama_screen_info_t *data;
+ int rem;
+ int index;
+} xcb_xinerama_screen_info_iterator_t;
+
+/**
+ * @brief xcb_xinerama_query_version_cookie_t
+ **/
+typedef struct xcb_xinerama_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_xinerama_query_version_cookie_t;
+
+/** Opcode for xcb_xinerama_query_version. */
+#define XCB_XINERAMA_QUERY_VERSION 0
+
+/**
+ * @brief xcb_xinerama_query_version_request_t
+ **/
+typedef struct xcb_xinerama_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t major;
+ uint8_t minor;
+} xcb_xinerama_query_version_request_t;
+
+/**
+ * @brief xcb_xinerama_query_version_reply_t
+ **/
+typedef struct xcb_xinerama_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major;
+ uint16_t minor;
+} xcb_xinerama_query_version_reply_t;
+
+/**
+ * @brief xcb_xinerama_get_state_cookie_t
+ **/
+typedef struct xcb_xinerama_get_state_cookie_t {
+ unsigned int sequence;
+} xcb_xinerama_get_state_cookie_t;
+
+/** Opcode for xcb_xinerama_get_state. */
+#define XCB_XINERAMA_GET_STATE 1
+
+/**
+ * @brief xcb_xinerama_get_state_request_t
+ **/
+typedef struct xcb_xinerama_get_state_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_xinerama_get_state_request_t;
+
+/**
+ * @brief xcb_xinerama_get_state_reply_t
+ **/
+typedef struct xcb_xinerama_get_state_reply_t {
+ uint8_t response_type;
+ uint8_t state;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t window;
+} xcb_xinerama_get_state_reply_t;
+
+/**
+ * @brief xcb_xinerama_get_screen_count_cookie_t
+ **/
+typedef struct xcb_xinerama_get_screen_count_cookie_t {
+ unsigned int sequence;
+} xcb_xinerama_get_screen_count_cookie_t;
+
+/** Opcode for xcb_xinerama_get_screen_count. */
+#define XCB_XINERAMA_GET_SCREEN_COUNT 2
+
+/**
+ * @brief xcb_xinerama_get_screen_count_request_t
+ **/
+typedef struct xcb_xinerama_get_screen_count_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_xinerama_get_screen_count_request_t;
+
+/**
+ * @brief xcb_xinerama_get_screen_count_reply_t
+ **/
+typedef struct xcb_xinerama_get_screen_count_reply_t {
+ uint8_t response_type;
+ uint8_t screen_count;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t window;
+} xcb_xinerama_get_screen_count_reply_t;
+
+/**
+ * @brief xcb_xinerama_get_screen_size_cookie_t
+ **/
+typedef struct xcb_xinerama_get_screen_size_cookie_t {
+ unsigned int sequence;
+} xcb_xinerama_get_screen_size_cookie_t;
+
+/** Opcode for xcb_xinerama_get_screen_size. */
+#define XCB_XINERAMA_GET_SCREEN_SIZE 3
+
+/**
+ * @brief xcb_xinerama_get_screen_size_request_t
+ **/
+typedef struct xcb_xinerama_get_screen_size_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t screen;
+} xcb_xinerama_get_screen_size_request_t;
+
+/**
+ * @brief xcb_xinerama_get_screen_size_reply_t
+ **/
+typedef struct xcb_xinerama_get_screen_size_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t width;
+ uint32_t height;
+ xcb_window_t window;
+ uint32_t screen;
+} xcb_xinerama_get_screen_size_reply_t;
+
+/**
+ * @brief xcb_xinerama_is_active_cookie_t
+ **/
+typedef struct xcb_xinerama_is_active_cookie_t {
+ unsigned int sequence;
+} xcb_xinerama_is_active_cookie_t;
+
+/** Opcode for xcb_xinerama_is_active. */
+#define XCB_XINERAMA_IS_ACTIVE 4
+
+/**
+ * @brief xcb_xinerama_is_active_request_t
+ **/
+typedef struct xcb_xinerama_is_active_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xinerama_is_active_request_t;
+
+/**
+ * @brief xcb_xinerama_is_active_reply_t
+ **/
+typedef struct xcb_xinerama_is_active_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t state;
+} xcb_xinerama_is_active_reply_t;
+
+/**
+ * @brief xcb_xinerama_query_screens_cookie_t
+ **/
+typedef struct xcb_xinerama_query_screens_cookie_t {
+ unsigned int sequence;
+} xcb_xinerama_query_screens_cookie_t;
+
+/** Opcode for xcb_xinerama_query_screens. */
+#define XCB_XINERAMA_QUERY_SCREENS 5
+
+/**
+ * @brief xcb_xinerama_query_screens_request_t
+ **/
+typedef struct xcb_xinerama_query_screens_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xinerama_query_screens_request_t;
+
+/**
+ * @brief xcb_xinerama_query_screens_reply_t
+ **/
+typedef struct xcb_xinerama_query_screens_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t number;
+ uint8_t pad1[20];
+} xcb_xinerama_query_screens_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xinerama_screen_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xinerama_screen_info_t)
+ */
+void
+xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xinerama_screen_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xinerama_query_version_cookie_t
+xcb_xinerama_query_version (xcb_connection_t *c,
+ uint8_t major,
+ uint8_t minor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xinerama_query_version_cookie_t
+xcb_xinerama_query_version_unchecked (xcb_connection_t *c,
+ uint8_t major,
+ uint8_t minor);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xinerama_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xinerama_query_version_reply_t *
+xcb_xinerama_query_version_reply (xcb_connection_t *c,
+ xcb_xinerama_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xinerama_get_state_cookie_t
+xcb_xinerama_get_state (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xinerama_get_state_cookie_t
+xcb_xinerama_get_state_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xinerama_get_state_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xinerama_get_state_reply_t *
+xcb_xinerama_get_state_reply (xcb_connection_t *c,
+ xcb_xinerama_get_state_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xinerama_get_screen_count_cookie_t
+xcb_xinerama_get_screen_count (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xinerama_get_screen_count_cookie_t
+xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xinerama_get_screen_count_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xinerama_get_screen_count_reply_t *
+xcb_xinerama_get_screen_count_reply (xcb_connection_t *c,
+ xcb_xinerama_get_screen_count_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xinerama_get_screen_size_cookie_t
+xcb_xinerama_get_screen_size (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t screen);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xinerama_get_screen_size_cookie_t
+xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t screen);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xinerama_get_screen_size_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xinerama_get_screen_size_reply_t *
+xcb_xinerama_get_screen_size_reply (xcb_connection_t *c,
+ xcb_xinerama_get_screen_size_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xinerama_is_active_cookie_t
+xcb_xinerama_is_active (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xinerama_is_active_cookie_t
+xcb_xinerama_is_active_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xinerama_is_active_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xinerama_is_active_reply_t *
+xcb_xinerama_is_active_reply (xcb_connection_t *c,
+ xcb_xinerama_is_active_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xinerama_query_screens_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xinerama_query_screens_cookie_t
+xcb_xinerama_query_screens (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xinerama_query_screens_cookie_t
+xcb_xinerama_query_screens_unchecked (xcb_connection_t *c);
+
+xcb_xinerama_screen_info_t *
+xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R);
+
+int
+xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R);
+
+xcb_xinerama_screen_info_iterator_t
+xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xinerama_query_screens_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xinerama_query_screens_reply_t *
+xcb_xinerama_query_screens_reply (xcb_connection_t *c,
+ xcb_xinerama_query_screens_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xinput.h b/depends/libxcb/include/xcb/xinput.h
new file mode 100644
index 0000000..2e40be1
--- /dev/null
+++ b/depends/libxcb/include/xcb/xinput.h
@@ -0,0 +1,9732 @@
+/*
+ * This file generated automatically from xinput.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Input_API XCB Input API
+ * @brief Input XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XINPUT_H
+#define __XINPUT_H
+
+#include "xcb.h"
+#include "xfixes.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_INPUT_MAJOR_VERSION 2
+#define XCB_INPUT_MINOR_VERSION 4
+
+extern xcb_extension_t xcb_input_id;
+
+typedef uint32_t xcb_input_event_class_t;
+
+/**
+ * @brief xcb_input_event_class_iterator_t
+ **/
+typedef struct xcb_input_event_class_iterator_t {
+ xcb_input_event_class_t *data;
+ int rem;
+ int index;
+} xcb_input_event_class_iterator_t;
+
+typedef uint8_t xcb_input_key_code_t;
+
+/**
+ * @brief xcb_input_key_code_iterator_t
+ **/
+typedef struct xcb_input_key_code_iterator_t {
+ xcb_input_key_code_t *data;
+ int rem;
+ int index;
+} xcb_input_key_code_iterator_t;
+
+typedef uint16_t xcb_input_device_id_t;
+
+/**
+ * @brief xcb_input_device_id_iterator_t
+ **/
+typedef struct xcb_input_device_id_iterator_t {
+ xcb_input_device_id_t *data;
+ int rem;
+ int index;
+} xcb_input_device_id_iterator_t;
+
+typedef int32_t xcb_input_fp1616_t;
+
+/**
+ * @brief xcb_input_fp1616_iterator_t
+ **/
+typedef struct xcb_input_fp1616_iterator_t {
+ xcb_input_fp1616_t *data;
+ int rem;
+ int index;
+} xcb_input_fp1616_iterator_t;
+
+/**
+ * @brief xcb_input_fp3232_t
+ **/
+typedef struct xcb_input_fp3232_t {
+ int32_t integral;
+ uint32_t frac;
+} xcb_input_fp3232_t;
+
+/**
+ * @brief xcb_input_fp3232_iterator_t
+ **/
+typedef struct xcb_input_fp3232_iterator_t {
+ xcb_input_fp3232_t *data;
+ int rem;
+ int index;
+} xcb_input_fp3232_iterator_t;
+
+/**
+ * @brief xcb_input_get_extension_version_cookie_t
+ **/
+typedef struct xcb_input_get_extension_version_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_extension_version_cookie_t;
+
+/** Opcode for xcb_input_get_extension_version. */
+#define XCB_INPUT_GET_EXTENSION_VERSION 1
+
+/**
+ * @brief xcb_input_get_extension_version_request_t
+ **/
+typedef struct xcb_input_get_extension_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t name_len;
+ uint8_t pad0[2];
+} xcb_input_get_extension_version_request_t;
+
+/**
+ * @brief xcb_input_get_extension_version_reply_t
+ **/
+typedef struct xcb_input_get_extension_version_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major;
+ uint16_t server_minor;
+ uint8_t present;
+ uint8_t pad0[19];
+} xcb_input_get_extension_version_reply_t;
+
+typedef enum xcb_input_device_use_t {
+ XCB_INPUT_DEVICE_USE_IS_X_POINTER = 0,
+ XCB_INPUT_DEVICE_USE_IS_X_KEYBOARD = 1,
+ XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_DEVICE = 2,
+ XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_KEYBOARD = 3,
+ XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_POINTER = 4
+} xcb_input_device_use_t;
+
+typedef enum xcb_input_input_class_t {
+ XCB_INPUT_INPUT_CLASS_KEY = 0,
+ XCB_INPUT_INPUT_CLASS_BUTTON = 1,
+ XCB_INPUT_INPUT_CLASS_VALUATOR = 2,
+ XCB_INPUT_INPUT_CLASS_FEEDBACK = 3,
+ XCB_INPUT_INPUT_CLASS_PROXIMITY = 4,
+ XCB_INPUT_INPUT_CLASS_FOCUS = 5,
+ XCB_INPUT_INPUT_CLASS_OTHER = 6
+} xcb_input_input_class_t;
+
+typedef enum xcb_input_valuator_mode_t {
+ XCB_INPUT_VALUATOR_MODE_RELATIVE = 0,
+ XCB_INPUT_VALUATOR_MODE_ABSOLUTE = 1
+} xcb_input_valuator_mode_t;
+
+/**
+ * @brief xcb_input_device_info_t
+ **/
+typedef struct xcb_input_device_info_t {
+ xcb_atom_t device_type;
+ uint8_t device_id;
+ uint8_t num_class_info;
+ uint8_t device_use;
+ uint8_t pad0;
+} xcb_input_device_info_t;
+
+/**
+ * @brief xcb_input_device_info_iterator_t
+ **/
+typedef struct xcb_input_device_info_iterator_t {
+ xcb_input_device_info_t *data;
+ int rem;
+ int index;
+} xcb_input_device_info_iterator_t;
+
+/**
+ * @brief xcb_input_key_info_t
+ **/
+typedef struct xcb_input_key_info_t {
+ uint8_t class_id;
+ uint8_t len;
+ xcb_input_key_code_t min_keycode;
+ xcb_input_key_code_t max_keycode;
+ uint16_t num_keys;
+ uint8_t pad0[2];
+} xcb_input_key_info_t;
+
+/**
+ * @brief xcb_input_key_info_iterator_t
+ **/
+typedef struct xcb_input_key_info_iterator_t {
+ xcb_input_key_info_t *data;
+ int rem;
+ int index;
+} xcb_input_key_info_iterator_t;
+
+/**
+ * @brief xcb_input_button_info_t
+ **/
+typedef struct xcb_input_button_info_t {
+ uint8_t class_id;
+ uint8_t len;
+ uint16_t num_buttons;
+} xcb_input_button_info_t;
+
+/**
+ * @brief xcb_input_button_info_iterator_t
+ **/
+typedef struct xcb_input_button_info_iterator_t {
+ xcb_input_button_info_t *data;
+ int rem;
+ int index;
+} xcb_input_button_info_iterator_t;
+
+/**
+ * @brief xcb_input_axis_info_t
+ **/
+typedef struct xcb_input_axis_info_t {
+ uint32_t resolution;
+ int32_t minimum;
+ int32_t maximum;
+} xcb_input_axis_info_t;
+
+/**
+ * @brief xcb_input_axis_info_iterator_t
+ **/
+typedef struct xcb_input_axis_info_iterator_t {
+ xcb_input_axis_info_t *data;
+ int rem;
+ int index;
+} xcb_input_axis_info_iterator_t;
+
+/**
+ * @brief xcb_input_valuator_info_t
+ **/
+typedef struct xcb_input_valuator_info_t {
+ uint8_t class_id;
+ uint8_t len;
+ uint8_t axes_len;
+ uint8_t mode;
+ uint32_t motion_size;
+} xcb_input_valuator_info_t;
+
+/**
+ * @brief xcb_input_valuator_info_iterator_t
+ **/
+typedef struct xcb_input_valuator_info_iterator_t {
+ xcb_input_valuator_info_t *data;
+ int rem;
+ int index;
+} xcb_input_valuator_info_iterator_t;
+
+/**
+ * @brief xcb_input_input_info_info_t
+ **/
+typedef struct xcb_input_input_info_info_t {
+ struct {
+ xcb_input_key_code_t min_keycode;
+ xcb_input_key_code_t max_keycode;
+ uint16_t num_keys;
+ uint8_t pad0[2];
+ } key;
+ struct {
+ uint16_t num_buttons;
+ } button;
+ struct {
+ uint8_t axes_len;
+ uint8_t mode;
+ uint32_t motion_size;
+ xcb_input_axis_info_t *axes;
+ } valuator;
+} xcb_input_input_info_info_t;
+
+/**
+ * @brief xcb_input_input_info_t
+ **/
+typedef struct xcb_input_input_info_t {
+ uint8_t class_id;
+ uint8_t len;
+} xcb_input_input_info_t;
+
+void *
+xcb_input_input_info_info (const xcb_input_input_info_t *R);
+
+/**
+ * @brief xcb_input_input_info_iterator_t
+ **/
+typedef struct xcb_input_input_info_iterator_t {
+ xcb_input_input_info_t *data;
+ int rem;
+ int index;
+} xcb_input_input_info_iterator_t;
+
+/**
+ * @brief xcb_input_device_name_t
+ **/
+typedef struct xcb_input_device_name_t {
+ uint8_t len;
+} xcb_input_device_name_t;
+
+/**
+ * @brief xcb_input_device_name_iterator_t
+ **/
+typedef struct xcb_input_device_name_iterator_t {
+ xcb_input_device_name_t *data;
+ int rem;
+ int index;
+} xcb_input_device_name_iterator_t;
+
+/**
+ * @brief xcb_input_list_input_devices_cookie_t
+ **/
+typedef struct xcb_input_list_input_devices_cookie_t {
+ unsigned int sequence;
+} xcb_input_list_input_devices_cookie_t;
+
+/** Opcode for xcb_input_list_input_devices. */
+#define XCB_INPUT_LIST_INPUT_DEVICES 2
+
+/**
+ * @brief xcb_input_list_input_devices_request_t
+ **/
+typedef struct xcb_input_list_input_devices_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_input_list_input_devices_request_t;
+
+/**
+ * @brief xcb_input_list_input_devices_reply_t
+ **/
+typedef struct xcb_input_list_input_devices_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t devices_len;
+ uint8_t pad0[23];
+} xcb_input_list_input_devices_reply_t;
+
+typedef uint8_t xcb_input_event_type_base_t;
+
+/**
+ * @brief xcb_input_event_type_base_iterator_t
+ **/
+typedef struct xcb_input_event_type_base_iterator_t {
+ xcb_input_event_type_base_t *data;
+ int rem;
+ int index;
+} xcb_input_event_type_base_iterator_t;
+
+/**
+ * @brief xcb_input_input_class_info_t
+ **/
+typedef struct xcb_input_input_class_info_t {
+ uint8_t class_id;
+ xcb_input_event_type_base_t event_type_base;
+} xcb_input_input_class_info_t;
+
+/**
+ * @brief xcb_input_input_class_info_iterator_t
+ **/
+typedef struct xcb_input_input_class_info_iterator_t {
+ xcb_input_input_class_info_t *data;
+ int rem;
+ int index;
+} xcb_input_input_class_info_iterator_t;
+
+/**
+ * @brief xcb_input_open_device_cookie_t
+ **/
+typedef struct xcb_input_open_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_open_device_cookie_t;
+
+/** Opcode for xcb_input_open_device. */
+#define XCB_INPUT_OPEN_DEVICE 3
+
+/**
+ * @brief xcb_input_open_device_request_t
+ **/
+typedef struct xcb_input_open_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_open_device_request_t;
+
+/**
+ * @brief xcb_input_open_device_reply_t
+ **/
+typedef struct xcb_input_open_device_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t num_classes;
+ uint8_t pad0[23];
+} xcb_input_open_device_reply_t;
+
+/** Opcode for xcb_input_close_device. */
+#define XCB_INPUT_CLOSE_DEVICE 4
+
+/**
+ * @brief xcb_input_close_device_request_t
+ **/
+typedef struct xcb_input_close_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_close_device_request_t;
+
+/**
+ * @brief xcb_input_set_device_mode_cookie_t
+ **/
+typedef struct xcb_input_set_device_mode_cookie_t {
+ unsigned int sequence;
+} xcb_input_set_device_mode_cookie_t;
+
+/** Opcode for xcb_input_set_device_mode. */
+#define XCB_INPUT_SET_DEVICE_MODE 5
+
+/**
+ * @brief xcb_input_set_device_mode_request_t
+ **/
+typedef struct xcb_input_set_device_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t mode;
+ uint8_t pad0[2];
+} xcb_input_set_device_mode_request_t;
+
+/**
+ * @brief xcb_input_set_device_mode_reply_t
+ **/
+typedef struct xcb_input_set_device_mode_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_set_device_mode_reply_t;
+
+/** Opcode for xcb_input_select_extension_event. */
+#define XCB_INPUT_SELECT_EXTENSION_EVENT 6
+
+/**
+ * @brief xcb_input_select_extension_event_request_t
+ **/
+typedef struct xcb_input_select_extension_event_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t num_classes;
+ uint8_t pad0[2];
+} xcb_input_select_extension_event_request_t;
+
+/**
+ * @brief xcb_input_get_selected_extension_events_cookie_t
+ **/
+typedef struct xcb_input_get_selected_extension_events_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_selected_extension_events_cookie_t;
+
+/** Opcode for xcb_input_get_selected_extension_events. */
+#define XCB_INPUT_GET_SELECTED_EXTENSION_EVENTS 7
+
+/**
+ * @brief xcb_input_get_selected_extension_events_request_t
+ **/
+typedef struct xcb_input_get_selected_extension_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_input_get_selected_extension_events_request_t;
+
+/**
+ * @brief xcb_input_get_selected_extension_events_reply_t
+ **/
+typedef struct xcb_input_get_selected_extension_events_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_this_classes;
+ uint16_t num_all_classes;
+ uint8_t pad0[20];
+} xcb_input_get_selected_extension_events_reply_t;
+
+typedef enum xcb_input_propagate_mode_t {
+ XCB_INPUT_PROPAGATE_MODE_ADD_TO_LIST = 0,
+ XCB_INPUT_PROPAGATE_MODE_DELETE_FROM_LIST = 1
+} xcb_input_propagate_mode_t;
+
+/** Opcode for xcb_input_change_device_dont_propagate_list. */
+#define XCB_INPUT_CHANGE_DEVICE_DONT_PROPAGATE_LIST 8
+
+/**
+ * @brief xcb_input_change_device_dont_propagate_list_request_t
+ **/
+typedef struct xcb_input_change_device_dont_propagate_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t num_classes;
+ uint8_t mode;
+ uint8_t pad0;
+} xcb_input_change_device_dont_propagate_list_request_t;
+
+/**
+ * @brief xcb_input_get_device_dont_propagate_list_cookie_t
+ **/
+typedef struct xcb_input_get_device_dont_propagate_list_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_dont_propagate_list_cookie_t;
+
+/** Opcode for xcb_input_get_device_dont_propagate_list. */
+#define XCB_INPUT_GET_DEVICE_DONT_PROPAGATE_LIST 9
+
+/**
+ * @brief xcb_input_get_device_dont_propagate_list_request_t
+ **/
+typedef struct xcb_input_get_device_dont_propagate_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_input_get_device_dont_propagate_list_request_t;
+
+/**
+ * @brief xcb_input_get_device_dont_propagate_list_reply_t
+ **/
+typedef struct xcb_input_get_device_dont_propagate_list_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_classes;
+ uint8_t pad0[22];
+} xcb_input_get_device_dont_propagate_list_reply_t;
+
+/**
+ * @brief xcb_input_device_time_coord_t
+ **/
+typedef struct xcb_input_device_time_coord_t {
+ xcb_timestamp_t time;
+} xcb_input_device_time_coord_t;
+
+/**
+ * @brief xcb_input_device_time_coord_iterator_t
+ **/
+typedef struct xcb_input_device_time_coord_iterator_t {
+ xcb_input_device_time_coord_t *data;
+ int rem;
+ int index;
+ uint8_t num_axes; /**< */
+} xcb_input_device_time_coord_iterator_t;
+
+/**
+ * @brief xcb_input_get_device_motion_events_cookie_t
+ **/
+typedef struct xcb_input_get_device_motion_events_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_motion_events_cookie_t;
+
+/** Opcode for xcb_input_get_device_motion_events. */
+#define XCB_INPUT_GET_DEVICE_MOTION_EVENTS 10
+
+/**
+ * @brief xcb_input_get_device_motion_events_request_t
+ **/
+typedef struct xcb_input_get_device_motion_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_timestamp_t start;
+ xcb_timestamp_t stop;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_get_device_motion_events_request_t;
+
+/**
+ * @brief xcb_input_get_device_motion_events_reply_t
+ **/
+typedef struct xcb_input_get_device_motion_events_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_events;
+ uint8_t num_axes;
+ uint8_t device_mode;
+ uint8_t pad0[18];
+} xcb_input_get_device_motion_events_reply_t;
+
+/**
+ * @brief xcb_input_change_keyboard_device_cookie_t
+ **/
+typedef struct xcb_input_change_keyboard_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_change_keyboard_device_cookie_t;
+
+/** Opcode for xcb_input_change_keyboard_device. */
+#define XCB_INPUT_CHANGE_KEYBOARD_DEVICE 11
+
+/**
+ * @brief xcb_input_change_keyboard_device_request_t
+ **/
+typedef struct xcb_input_change_keyboard_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_change_keyboard_device_request_t;
+
+/**
+ * @brief xcb_input_change_keyboard_device_reply_t
+ **/
+typedef struct xcb_input_change_keyboard_device_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_change_keyboard_device_reply_t;
+
+/**
+ * @brief xcb_input_change_pointer_device_cookie_t
+ **/
+typedef struct xcb_input_change_pointer_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_change_pointer_device_cookie_t;
+
+/** Opcode for xcb_input_change_pointer_device. */
+#define XCB_INPUT_CHANGE_POINTER_DEVICE 12
+
+/**
+ * @brief xcb_input_change_pointer_device_request_t
+ **/
+typedef struct xcb_input_change_pointer_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t x_axis;
+ uint8_t y_axis;
+ uint8_t device_id;
+ uint8_t pad0;
+} xcb_input_change_pointer_device_request_t;
+
+/**
+ * @brief xcb_input_change_pointer_device_reply_t
+ **/
+typedef struct xcb_input_change_pointer_device_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_change_pointer_device_reply_t;
+
+/**
+ * @brief xcb_input_grab_device_cookie_t
+ **/
+typedef struct xcb_input_grab_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_grab_device_cookie_t;
+
+/** Opcode for xcb_input_grab_device. */
+#define XCB_INPUT_GRAB_DEVICE 13
+
+/**
+ * @brief xcb_input_grab_device_request_t
+ **/
+typedef struct xcb_input_grab_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t grab_window;
+ xcb_timestamp_t time;
+ uint16_t num_classes;
+ uint8_t this_device_mode;
+ uint8_t other_device_mode;
+ uint8_t owner_events;
+ uint8_t device_id;
+ uint8_t pad0[2];
+} xcb_input_grab_device_request_t;
+
+/**
+ * @brief xcb_input_grab_device_reply_t
+ **/
+typedef struct xcb_input_grab_device_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_grab_device_reply_t;
+
+/** Opcode for xcb_input_ungrab_device. */
+#define XCB_INPUT_UNGRAB_DEVICE 14
+
+/**
+ * @brief xcb_input_ungrab_device_request_t
+ **/
+typedef struct xcb_input_ungrab_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_timestamp_t time;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_ungrab_device_request_t;
+
+typedef enum xcb_input_modifier_device_t {
+ XCB_INPUT_MODIFIER_DEVICE_USE_X_KEYBOARD = 255
+} xcb_input_modifier_device_t;
+
+/** Opcode for xcb_input_grab_device_key. */
+#define XCB_INPUT_GRAB_DEVICE_KEY 15
+
+/**
+ * @brief xcb_input_grab_device_key_request_t
+ **/
+typedef struct xcb_input_grab_device_key_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t num_classes;
+ uint16_t modifiers;
+ uint8_t modifier_device;
+ uint8_t grabbed_device;
+ uint8_t key;
+ uint8_t this_device_mode;
+ uint8_t other_device_mode;
+ uint8_t owner_events;
+ uint8_t pad0[2];
+} xcb_input_grab_device_key_request_t;
+
+/** Opcode for xcb_input_ungrab_device_key. */
+#define XCB_INPUT_UNGRAB_DEVICE_KEY 16
+
+/**
+ * @brief xcb_input_ungrab_device_key_request_t
+ **/
+typedef struct xcb_input_ungrab_device_key_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t grabWindow;
+ uint16_t modifiers;
+ uint8_t modifier_device;
+ uint8_t key;
+ uint8_t grabbed_device;
+} xcb_input_ungrab_device_key_request_t;
+
+/** Opcode for xcb_input_grab_device_button. */
+#define XCB_INPUT_GRAB_DEVICE_BUTTON 17
+
+/**
+ * @brief xcb_input_grab_device_button_request_t
+ **/
+typedef struct xcb_input_grab_device_button_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint8_t grabbed_device;
+ uint8_t modifier_device;
+ uint16_t num_classes;
+ uint16_t modifiers;
+ uint8_t this_device_mode;
+ uint8_t other_device_mode;
+ uint8_t button;
+ uint8_t owner_events;
+ uint8_t pad0[2];
+} xcb_input_grab_device_button_request_t;
+
+/** Opcode for xcb_input_ungrab_device_button. */
+#define XCB_INPUT_UNGRAB_DEVICE_BUTTON 18
+
+/**
+ * @brief xcb_input_ungrab_device_button_request_t
+ **/
+typedef struct xcb_input_ungrab_device_button_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t modifiers;
+ uint8_t modifier_device;
+ uint8_t button;
+ uint8_t grabbed_device;
+ uint8_t pad0[3];
+} xcb_input_ungrab_device_button_request_t;
+
+typedef enum xcb_input_device_input_mode_t {
+ XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_THIS_DEVICE = 0,
+ XCB_INPUT_DEVICE_INPUT_MODE_SYNC_THIS_DEVICE = 1,
+ XCB_INPUT_DEVICE_INPUT_MODE_REPLAY_THIS_DEVICE = 2,
+ XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_OTHER_DEVICES = 3,
+ XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_ALL = 4,
+ XCB_INPUT_DEVICE_INPUT_MODE_SYNC_ALL = 5
+} xcb_input_device_input_mode_t;
+
+/** Opcode for xcb_input_allow_device_events. */
+#define XCB_INPUT_ALLOW_DEVICE_EVENTS 19
+
+/**
+ * @brief xcb_input_allow_device_events_request_t
+ **/
+typedef struct xcb_input_allow_device_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_timestamp_t time;
+ uint8_t mode;
+ uint8_t device_id;
+ uint8_t pad0[2];
+} xcb_input_allow_device_events_request_t;
+
+/**
+ * @brief xcb_input_get_device_focus_cookie_t
+ **/
+typedef struct xcb_input_get_device_focus_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_focus_cookie_t;
+
+/** Opcode for xcb_input_get_device_focus. */
+#define XCB_INPUT_GET_DEVICE_FOCUS 20
+
+/**
+ * @brief xcb_input_get_device_focus_request_t
+ **/
+typedef struct xcb_input_get_device_focus_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_get_device_focus_request_t;
+
+/**
+ * @brief xcb_input_get_device_focus_reply_t
+ **/
+typedef struct xcb_input_get_device_focus_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t focus;
+ xcb_timestamp_t time;
+ uint8_t revert_to;
+ uint8_t pad0[15];
+} xcb_input_get_device_focus_reply_t;
+
+/** Opcode for xcb_input_set_device_focus. */
+#define XCB_INPUT_SET_DEVICE_FOCUS 21
+
+/**
+ * @brief xcb_input_set_device_focus_request_t
+ **/
+typedef struct xcb_input_set_device_focus_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t focus;
+ xcb_timestamp_t time;
+ uint8_t revert_to;
+ uint8_t device_id;
+ uint8_t pad0[2];
+} xcb_input_set_device_focus_request_t;
+
+typedef enum xcb_input_feedback_class_t {
+ XCB_INPUT_FEEDBACK_CLASS_KEYBOARD = 0,
+ XCB_INPUT_FEEDBACK_CLASS_POINTER = 1,
+ XCB_INPUT_FEEDBACK_CLASS_STRING = 2,
+ XCB_INPUT_FEEDBACK_CLASS_INTEGER = 3,
+ XCB_INPUT_FEEDBACK_CLASS_LED = 4,
+ XCB_INPUT_FEEDBACK_CLASS_BELL = 5
+} xcb_input_feedback_class_t;
+
+/**
+ * @brief xcb_input_kbd_feedback_state_t
+ **/
+typedef struct xcb_input_kbd_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint16_t pitch;
+ uint16_t duration;
+ uint32_t led_mask;
+ uint32_t led_values;
+ uint8_t global_auto_repeat;
+ uint8_t click;
+ uint8_t percent;
+ uint8_t pad0;
+ uint8_t auto_repeats[32];
+} xcb_input_kbd_feedback_state_t;
+
+/**
+ * @brief xcb_input_kbd_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_kbd_feedback_state_iterator_t {
+ xcb_input_kbd_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_kbd_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_ptr_feedback_state_t
+ **/
+typedef struct xcb_input_ptr_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint8_t pad0[2];
+ uint16_t accel_num;
+ uint16_t accel_denom;
+ uint16_t threshold;
+} xcb_input_ptr_feedback_state_t;
+
+/**
+ * @brief xcb_input_ptr_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_ptr_feedback_state_iterator_t {
+ xcb_input_ptr_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_ptr_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_integer_feedback_state_t
+ **/
+typedef struct xcb_input_integer_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint32_t resolution;
+ int32_t min_value;
+ int32_t max_value;
+} xcb_input_integer_feedback_state_t;
+
+/**
+ * @brief xcb_input_integer_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_integer_feedback_state_iterator_t {
+ xcb_input_integer_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_integer_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_string_feedback_state_t
+ **/
+typedef struct xcb_input_string_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint16_t max_symbols;
+ uint16_t num_keysyms;
+} xcb_input_string_feedback_state_t;
+
+/**
+ * @brief xcb_input_string_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_string_feedback_state_iterator_t {
+ xcb_input_string_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_string_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_bell_feedback_state_t
+ **/
+typedef struct xcb_input_bell_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint8_t percent;
+ uint8_t pad0[3];
+ uint16_t pitch;
+ uint16_t duration;
+} xcb_input_bell_feedback_state_t;
+
+/**
+ * @brief xcb_input_bell_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_bell_feedback_state_iterator_t {
+ xcb_input_bell_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_bell_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_led_feedback_state_t
+ **/
+typedef struct xcb_input_led_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint32_t led_mask;
+ uint32_t led_values;
+} xcb_input_led_feedback_state_t;
+
+/**
+ * @brief xcb_input_led_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_led_feedback_state_iterator_t {
+ xcb_input_led_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_led_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_feedback_state_data_t
+ **/
+typedef struct xcb_input_feedback_state_data_t {
+ struct {
+ uint16_t pitch;
+ uint16_t duration;
+ uint32_t led_mask;
+ uint32_t led_values;
+ uint8_t global_auto_repeat;
+ uint8_t click;
+ uint8_t percent;
+ uint8_t pad0;
+ uint8_t auto_repeats[32];
+ } keyboard;
+ struct {
+ uint8_t pad1[2];
+ uint16_t accel_num;
+ uint16_t accel_denom;
+ uint16_t threshold;
+ } pointer;
+ struct {
+ uint16_t max_symbols;
+ uint16_t num_keysyms;
+ xcb_keysym_t *keysyms;
+ } string;
+ struct {
+ uint32_t resolution;
+ int32_t min_value;
+ int32_t max_value;
+ } integer;
+ struct {
+ uint32_t led_mask;
+ uint32_t led_values;
+ } led;
+ struct {
+ uint8_t percent;
+ uint8_t pad2[3];
+ uint16_t pitch;
+ uint16_t duration;
+ } bell;
+} xcb_input_feedback_state_data_t;
+
+/**
+ * @brief xcb_input_feedback_state_t
+ **/
+typedef struct xcb_input_feedback_state_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+} xcb_input_feedback_state_t;
+
+void *
+xcb_input_feedback_state_data (const xcb_input_feedback_state_t *R);
+
+/**
+ * @brief xcb_input_feedback_state_iterator_t
+ **/
+typedef struct xcb_input_feedback_state_iterator_t {
+ xcb_input_feedback_state_t *data;
+ int rem;
+ int index;
+} xcb_input_feedback_state_iterator_t;
+
+/**
+ * @brief xcb_input_get_feedback_control_cookie_t
+ **/
+typedef struct xcb_input_get_feedback_control_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_feedback_control_cookie_t;
+
+/** Opcode for xcb_input_get_feedback_control. */
+#define XCB_INPUT_GET_FEEDBACK_CONTROL 22
+
+/**
+ * @brief xcb_input_get_feedback_control_request_t
+ **/
+typedef struct xcb_input_get_feedback_control_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_get_feedback_control_request_t;
+
+/**
+ * @brief xcb_input_get_feedback_control_reply_t
+ **/
+typedef struct xcb_input_get_feedback_control_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_feedbacks;
+ uint8_t pad0[22];
+} xcb_input_get_feedback_control_reply_t;
+
+/**
+ * @brief xcb_input_kbd_feedback_ctl_t
+ **/
+typedef struct xcb_input_kbd_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ xcb_input_key_code_t key;
+ uint8_t auto_repeat_mode;
+ int8_t key_click_percent;
+ int8_t bell_percent;
+ int16_t bell_pitch;
+ int16_t bell_duration;
+ uint32_t led_mask;
+ uint32_t led_values;
+} xcb_input_kbd_feedback_ctl_t;
+
+/**
+ * @brief xcb_input_kbd_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_kbd_feedback_ctl_iterator_t {
+ xcb_input_kbd_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_kbd_feedback_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_ptr_feedback_ctl_t
+ **/
+typedef struct xcb_input_ptr_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint8_t pad0[2];
+ int16_t num;
+ int16_t denom;
+ int16_t threshold;
+} xcb_input_ptr_feedback_ctl_t;
+
+/**
+ * @brief xcb_input_ptr_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_ptr_feedback_ctl_iterator_t {
+ xcb_input_ptr_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_ptr_feedback_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_integer_feedback_ctl_t
+ **/
+typedef struct xcb_input_integer_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ int32_t int_to_display;
+} xcb_input_integer_feedback_ctl_t;
+
+/**
+ * @brief xcb_input_integer_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_integer_feedback_ctl_iterator_t {
+ xcb_input_integer_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_integer_feedback_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_string_feedback_ctl_t
+ **/
+typedef struct xcb_input_string_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint8_t pad0[2];
+ uint16_t num_keysyms;
+} xcb_input_string_feedback_ctl_t;
+
+/**
+ * @brief xcb_input_string_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_string_feedback_ctl_iterator_t {
+ xcb_input_string_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_string_feedback_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_bell_feedback_ctl_t
+ **/
+typedef struct xcb_input_bell_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ int8_t percent;
+ uint8_t pad0[3];
+ int16_t pitch;
+ int16_t duration;
+} xcb_input_bell_feedback_ctl_t;
+
+/**
+ * @brief xcb_input_bell_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_bell_feedback_ctl_iterator_t {
+ xcb_input_bell_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_bell_feedback_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_led_feedback_ctl_t
+ **/
+typedef struct xcb_input_led_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+ uint32_t led_mask;
+ uint32_t led_values;
+} xcb_input_led_feedback_ctl_t;
+
+/**
+ * @brief xcb_input_led_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_led_feedback_ctl_iterator_t {
+ xcb_input_led_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_led_feedback_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_feedback_ctl_data_t
+ **/
+typedef struct xcb_input_feedback_ctl_data_t {
+ struct {
+ xcb_input_key_code_t key;
+ uint8_t auto_repeat_mode;
+ int8_t key_click_percent;
+ int8_t bell_percent;
+ int16_t bell_pitch;
+ int16_t bell_duration;
+ uint32_t led_mask;
+ uint32_t led_values;
+ } keyboard;
+ struct {
+ uint8_t pad0[2];
+ int16_t num;
+ int16_t denom;
+ int16_t threshold;
+ } pointer;
+ struct {
+ uint8_t pad1[2];
+ uint16_t num_keysyms;
+ xcb_keysym_t *keysyms;
+ } string;
+ struct {
+ int32_t int_to_display;
+ } integer;
+ struct {
+ uint32_t led_mask;
+ uint32_t led_values;
+ } led;
+ struct {
+ int8_t percent;
+ uint8_t pad2[3];
+ int16_t pitch;
+ int16_t duration;
+ } bell;
+} xcb_input_feedback_ctl_data_t;
+
+/**
+ * @brief xcb_input_feedback_ctl_t
+ **/
+typedef struct xcb_input_feedback_ctl_t {
+ uint8_t class_id;
+ uint8_t feedback_id;
+ uint16_t len;
+} xcb_input_feedback_ctl_t;
+
+void *
+xcb_input_feedback_ctl_data (const xcb_input_feedback_ctl_t *R);
+
+/**
+ * @brief xcb_input_feedback_ctl_iterator_t
+ **/
+typedef struct xcb_input_feedback_ctl_iterator_t {
+ xcb_input_feedback_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_feedback_ctl_iterator_t;
+
+typedef enum xcb_input_change_feedback_control_mask_t {
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_KEY_CLICK_PERCENT = 1,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_PERCENT = 2,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_PITCH = 4,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_DURATION = 8,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_LED = 16,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_LED_MODE = 32,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_KEY = 64,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_AUTO_REPEAT_MODE = 128,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_STRING = 1,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_INTEGER = 1,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_ACCEL_NUM = 1,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_ACCEL_DENOM = 2,
+ XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_THRESHOLD = 4
+} xcb_input_change_feedback_control_mask_t;
+
+/** Opcode for xcb_input_change_feedback_control. */
+#define XCB_INPUT_CHANGE_FEEDBACK_CONTROL 23
+
+/**
+ * @brief xcb_input_change_feedback_control_request_t
+ **/
+typedef struct xcb_input_change_feedback_control_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t mask;
+ uint8_t device_id;
+ uint8_t feedback_id;
+ uint8_t pad0[2];
+} xcb_input_change_feedback_control_request_t;
+
+/**
+ * @brief xcb_input_get_device_key_mapping_cookie_t
+ **/
+typedef struct xcb_input_get_device_key_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_key_mapping_cookie_t;
+
+/** Opcode for xcb_input_get_device_key_mapping. */
+#define XCB_INPUT_GET_DEVICE_KEY_MAPPING 24
+
+/**
+ * @brief xcb_input_get_device_key_mapping_request_t
+ **/
+typedef struct xcb_input_get_device_key_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ xcb_input_key_code_t first_keycode;
+ uint8_t count;
+ uint8_t pad0;
+} xcb_input_get_device_key_mapping_request_t;
+
+/**
+ * @brief xcb_input_get_device_key_mapping_reply_t
+ **/
+typedef struct xcb_input_get_device_key_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t keysyms_per_keycode;
+ uint8_t pad0[23];
+} xcb_input_get_device_key_mapping_reply_t;
+
+/** Opcode for xcb_input_change_device_key_mapping. */
+#define XCB_INPUT_CHANGE_DEVICE_KEY_MAPPING 25
+
+/**
+ * @brief xcb_input_change_device_key_mapping_request_t
+ **/
+typedef struct xcb_input_change_device_key_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ xcb_input_key_code_t first_keycode;
+ uint8_t keysyms_per_keycode;
+ uint8_t keycode_count;
+} xcb_input_change_device_key_mapping_request_t;
+
+/**
+ * @brief xcb_input_get_device_modifier_mapping_cookie_t
+ **/
+typedef struct xcb_input_get_device_modifier_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_modifier_mapping_cookie_t;
+
+/** Opcode for xcb_input_get_device_modifier_mapping. */
+#define XCB_INPUT_GET_DEVICE_MODIFIER_MAPPING 26
+
+/**
+ * @brief xcb_input_get_device_modifier_mapping_request_t
+ **/
+typedef struct xcb_input_get_device_modifier_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_get_device_modifier_mapping_request_t;
+
+/**
+ * @brief xcb_input_get_device_modifier_mapping_reply_t
+ **/
+typedef struct xcb_input_get_device_modifier_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t keycodes_per_modifier;
+ uint8_t pad0[23];
+} xcb_input_get_device_modifier_mapping_reply_t;
+
+/**
+ * @brief xcb_input_set_device_modifier_mapping_cookie_t
+ **/
+typedef struct xcb_input_set_device_modifier_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_input_set_device_modifier_mapping_cookie_t;
+
+/** Opcode for xcb_input_set_device_modifier_mapping. */
+#define XCB_INPUT_SET_DEVICE_MODIFIER_MAPPING 27
+
+/**
+ * @brief xcb_input_set_device_modifier_mapping_request_t
+ **/
+typedef struct xcb_input_set_device_modifier_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t keycodes_per_modifier;
+ uint8_t pad0[2];
+} xcb_input_set_device_modifier_mapping_request_t;
+
+/**
+ * @brief xcb_input_set_device_modifier_mapping_reply_t
+ **/
+typedef struct xcb_input_set_device_modifier_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_set_device_modifier_mapping_reply_t;
+
+/**
+ * @brief xcb_input_get_device_button_mapping_cookie_t
+ **/
+typedef struct xcb_input_get_device_button_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_button_mapping_cookie_t;
+
+/** Opcode for xcb_input_get_device_button_mapping. */
+#define XCB_INPUT_GET_DEVICE_BUTTON_MAPPING 28
+
+/**
+ * @brief xcb_input_get_device_button_mapping_request_t
+ **/
+typedef struct xcb_input_get_device_button_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_get_device_button_mapping_request_t;
+
+/**
+ * @brief xcb_input_get_device_button_mapping_reply_t
+ **/
+typedef struct xcb_input_get_device_button_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t map_size;
+ uint8_t pad0[23];
+} xcb_input_get_device_button_mapping_reply_t;
+
+/**
+ * @brief xcb_input_set_device_button_mapping_cookie_t
+ **/
+typedef struct xcb_input_set_device_button_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_input_set_device_button_mapping_cookie_t;
+
+/** Opcode for xcb_input_set_device_button_mapping. */
+#define XCB_INPUT_SET_DEVICE_BUTTON_MAPPING 29
+
+/**
+ * @brief xcb_input_set_device_button_mapping_request_t
+ **/
+typedef struct xcb_input_set_device_button_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t map_size;
+ uint8_t pad0[2];
+} xcb_input_set_device_button_mapping_request_t;
+
+/**
+ * @brief xcb_input_set_device_button_mapping_reply_t
+ **/
+typedef struct xcb_input_set_device_button_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_set_device_button_mapping_reply_t;
+
+/**
+ * @brief xcb_input_key_state_t
+ **/
+typedef struct xcb_input_key_state_t {
+ uint8_t class_id;
+ uint8_t len;
+ uint8_t num_keys;
+ uint8_t pad0;
+ uint8_t keys[32];
+} xcb_input_key_state_t;
+
+/**
+ * @brief xcb_input_key_state_iterator_t
+ **/
+typedef struct xcb_input_key_state_iterator_t {
+ xcb_input_key_state_t *data;
+ int rem;
+ int index;
+} xcb_input_key_state_iterator_t;
+
+/**
+ * @brief xcb_input_button_state_t
+ **/
+typedef struct xcb_input_button_state_t {
+ uint8_t class_id;
+ uint8_t len;
+ uint8_t num_buttons;
+ uint8_t pad0;
+ uint8_t buttons[32];
+} xcb_input_button_state_t;
+
+/**
+ * @brief xcb_input_button_state_iterator_t
+ **/
+typedef struct xcb_input_button_state_iterator_t {
+ xcb_input_button_state_t *data;
+ int rem;
+ int index;
+} xcb_input_button_state_iterator_t;
+
+typedef enum xcb_input_valuator_state_mode_mask_t {
+ XCB_INPUT_VALUATOR_STATE_MODE_MASK_DEVICE_MODE_ABSOLUTE = 1,
+ XCB_INPUT_VALUATOR_STATE_MODE_MASK_OUT_OF_PROXIMITY = 2
+} xcb_input_valuator_state_mode_mask_t;
+
+/**
+ * @brief xcb_input_valuator_state_t
+ **/
+typedef struct xcb_input_valuator_state_t {
+ uint8_t class_id;
+ uint8_t len;
+ uint8_t num_valuators;
+ uint8_t mode;
+} xcb_input_valuator_state_t;
+
+/**
+ * @brief xcb_input_valuator_state_iterator_t
+ **/
+typedef struct xcb_input_valuator_state_iterator_t {
+ xcb_input_valuator_state_t *data;
+ int rem;
+ int index;
+} xcb_input_valuator_state_iterator_t;
+
+/**
+ * @brief xcb_input_input_state_data_t
+ **/
+typedef struct xcb_input_input_state_data_t {
+ struct {
+ uint8_t num_keys;
+ uint8_t pad0;
+ uint8_t keys[32];
+ } key;
+ struct {
+ uint8_t num_buttons;
+ uint8_t pad1;
+ uint8_t buttons[32];
+ } button;
+ struct {
+ uint8_t num_valuators;
+ uint8_t mode;
+ int32_t *valuators;
+ } valuator;
+} xcb_input_input_state_data_t;
+
+/**
+ * @brief xcb_input_input_state_t
+ **/
+typedef struct xcb_input_input_state_t {
+ uint8_t class_id;
+ uint8_t len;
+} xcb_input_input_state_t;
+
+void *
+xcb_input_input_state_data (const xcb_input_input_state_t *R);
+
+/**
+ * @brief xcb_input_input_state_iterator_t
+ **/
+typedef struct xcb_input_input_state_iterator_t {
+ xcb_input_input_state_t *data;
+ int rem;
+ int index;
+} xcb_input_input_state_iterator_t;
+
+/**
+ * @brief xcb_input_query_device_state_cookie_t
+ **/
+typedef struct xcb_input_query_device_state_cookie_t {
+ unsigned int sequence;
+} xcb_input_query_device_state_cookie_t;
+
+/** Opcode for xcb_input_query_device_state. */
+#define XCB_INPUT_QUERY_DEVICE_STATE 30
+
+/**
+ * @brief xcb_input_query_device_state_request_t
+ **/
+typedef struct xcb_input_query_device_state_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_query_device_state_request_t;
+
+/**
+ * @brief xcb_input_query_device_state_reply_t
+ **/
+typedef struct xcb_input_query_device_state_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t num_classes;
+ uint8_t pad0[23];
+} xcb_input_query_device_state_reply_t;
+
+/** Opcode for xcb_input_device_bell. */
+#define XCB_INPUT_DEVICE_BELL 32
+
+/**
+ * @brief xcb_input_device_bell_request_t
+ **/
+typedef struct xcb_input_device_bell_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t feedback_id;
+ uint8_t feedback_class;
+ int8_t percent;
+} xcb_input_device_bell_request_t;
+
+/**
+ * @brief xcb_input_set_device_valuators_cookie_t
+ **/
+typedef struct xcb_input_set_device_valuators_cookie_t {
+ unsigned int sequence;
+} xcb_input_set_device_valuators_cookie_t;
+
+/** Opcode for xcb_input_set_device_valuators. */
+#define XCB_INPUT_SET_DEVICE_VALUATORS 33
+
+/**
+ * @brief xcb_input_set_device_valuators_request_t
+ **/
+typedef struct xcb_input_set_device_valuators_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t first_valuator;
+ uint8_t num_valuators;
+ uint8_t pad0;
+} xcb_input_set_device_valuators_request_t;
+
+/**
+ * @brief xcb_input_set_device_valuators_reply_t
+ **/
+typedef struct xcb_input_set_device_valuators_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_set_device_valuators_reply_t;
+
+typedef enum xcb_input_device_control_t {
+ XCB_INPUT_DEVICE_CONTROL_RESOLUTION = 1,
+ XCB_INPUT_DEVICE_CONTROL_ABS_CALIB = 2,
+ XCB_INPUT_DEVICE_CONTROL_CORE = 3,
+ XCB_INPUT_DEVICE_CONTROL_ENABLE = 4,
+ XCB_INPUT_DEVICE_CONTROL_ABS_AREA = 5
+} xcb_input_device_control_t;
+
+/**
+ * @brief xcb_input_device_resolution_state_t
+ **/
+typedef struct xcb_input_device_resolution_state_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint32_t num_valuators;
+} xcb_input_device_resolution_state_t;
+
+/**
+ * @brief xcb_input_device_resolution_state_iterator_t
+ **/
+typedef struct xcb_input_device_resolution_state_iterator_t {
+ xcb_input_device_resolution_state_t *data;
+ int rem;
+ int index;
+} xcb_input_device_resolution_state_iterator_t;
+
+/**
+ * @brief xcb_input_device_abs_calib_state_t
+ **/
+typedef struct xcb_input_device_abs_calib_state_t {
+ uint16_t control_id;
+ uint16_t len;
+ int32_t min_x;
+ int32_t max_x;
+ int32_t min_y;
+ int32_t max_y;
+ uint32_t flip_x;
+ uint32_t flip_y;
+ uint32_t rotation;
+ uint32_t button_threshold;
+} xcb_input_device_abs_calib_state_t;
+
+/**
+ * @brief xcb_input_device_abs_calib_state_iterator_t
+ **/
+typedef struct xcb_input_device_abs_calib_state_iterator_t {
+ xcb_input_device_abs_calib_state_t *data;
+ int rem;
+ int index;
+} xcb_input_device_abs_calib_state_iterator_t;
+
+/**
+ * @brief xcb_input_device_abs_area_state_t
+ **/
+typedef struct xcb_input_device_abs_area_state_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint32_t offset_x;
+ uint32_t offset_y;
+ uint32_t width;
+ uint32_t height;
+ uint32_t screen;
+ uint32_t following;
+} xcb_input_device_abs_area_state_t;
+
+/**
+ * @brief xcb_input_device_abs_area_state_iterator_t
+ **/
+typedef struct xcb_input_device_abs_area_state_iterator_t {
+ xcb_input_device_abs_area_state_t *data;
+ int rem;
+ int index;
+} xcb_input_device_abs_area_state_iterator_t;
+
+/**
+ * @brief xcb_input_device_core_state_t
+ **/
+typedef struct xcb_input_device_core_state_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint8_t status;
+ uint8_t iscore;
+ uint8_t pad0[2];
+} xcb_input_device_core_state_t;
+
+/**
+ * @brief xcb_input_device_core_state_iterator_t
+ **/
+typedef struct xcb_input_device_core_state_iterator_t {
+ xcb_input_device_core_state_t *data;
+ int rem;
+ int index;
+} xcb_input_device_core_state_iterator_t;
+
+/**
+ * @brief xcb_input_device_enable_state_t
+ **/
+typedef struct xcb_input_device_enable_state_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint8_t enable;
+ uint8_t pad0[3];
+} xcb_input_device_enable_state_t;
+
+/**
+ * @brief xcb_input_device_enable_state_iterator_t
+ **/
+typedef struct xcb_input_device_enable_state_iterator_t {
+ xcb_input_device_enable_state_t *data;
+ int rem;
+ int index;
+} xcb_input_device_enable_state_iterator_t;
+
+/**
+ * @brief xcb_input_device_state_data_t
+ **/
+typedef struct xcb_input_device_state_data_t {
+ struct {
+ uint32_t num_valuators;
+ uint32_t *resolution_values;
+ uint32_t *resolution_min;
+ uint32_t *resolution_max;
+ } resolution;
+ struct {
+ int32_t min_x;
+ int32_t max_x;
+ int32_t min_y;
+ int32_t max_y;
+ uint32_t flip_x;
+ uint32_t flip_y;
+ uint32_t rotation;
+ uint32_t button_threshold;
+ } abs_calib;
+ struct {
+ uint8_t status;
+ uint8_t iscore;
+ uint8_t pad0[2];
+ } core;
+ struct {
+ uint8_t enable;
+ uint8_t pad1[3];
+ } enable;
+ struct {
+ uint32_t offset_x;
+ uint32_t offset_y;
+ uint32_t width;
+ uint32_t height;
+ uint32_t screen;
+ uint32_t following;
+ } abs_area;
+} xcb_input_device_state_data_t;
+
+/**
+ * @brief xcb_input_device_state_t
+ **/
+typedef struct xcb_input_device_state_t {
+ uint16_t control_id;
+ uint16_t len;
+} xcb_input_device_state_t;
+
+void *
+xcb_input_device_state_data (const xcb_input_device_state_t *R);
+
+/**
+ * @brief xcb_input_device_state_iterator_t
+ **/
+typedef struct xcb_input_device_state_iterator_t {
+ xcb_input_device_state_t *data;
+ int rem;
+ int index;
+} xcb_input_device_state_iterator_t;
+
+/**
+ * @brief xcb_input_get_device_control_cookie_t
+ **/
+typedef struct xcb_input_get_device_control_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_control_cookie_t;
+
+/** Opcode for xcb_input_get_device_control. */
+#define XCB_INPUT_GET_DEVICE_CONTROL 34
+
+/**
+ * @brief xcb_input_get_device_control_request_t
+ **/
+typedef struct xcb_input_get_device_control_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t control_id;
+ uint8_t device_id;
+ uint8_t pad0;
+} xcb_input_get_device_control_request_t;
+
+/**
+ * @brief xcb_input_get_device_control_reply_t
+ **/
+typedef struct xcb_input_get_device_control_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_get_device_control_reply_t;
+
+/**
+ * @brief xcb_input_device_resolution_ctl_t
+ **/
+typedef struct xcb_input_device_resolution_ctl_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint8_t first_valuator;
+ uint8_t num_valuators;
+ uint8_t pad0[2];
+} xcb_input_device_resolution_ctl_t;
+
+/**
+ * @brief xcb_input_device_resolution_ctl_iterator_t
+ **/
+typedef struct xcb_input_device_resolution_ctl_iterator_t {
+ xcb_input_device_resolution_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_device_resolution_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_device_abs_calib_ctl_t
+ **/
+typedef struct xcb_input_device_abs_calib_ctl_t {
+ uint16_t control_id;
+ uint16_t len;
+ int32_t min_x;
+ int32_t max_x;
+ int32_t min_y;
+ int32_t max_y;
+ uint32_t flip_x;
+ uint32_t flip_y;
+ uint32_t rotation;
+ uint32_t button_threshold;
+} xcb_input_device_abs_calib_ctl_t;
+
+/**
+ * @brief xcb_input_device_abs_calib_ctl_iterator_t
+ **/
+typedef struct xcb_input_device_abs_calib_ctl_iterator_t {
+ xcb_input_device_abs_calib_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_device_abs_calib_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_device_abs_area_ctrl_t
+ **/
+typedef struct xcb_input_device_abs_area_ctrl_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint32_t offset_x;
+ uint32_t offset_y;
+ int32_t width;
+ int32_t height;
+ int32_t screen;
+ uint32_t following;
+} xcb_input_device_abs_area_ctrl_t;
+
+/**
+ * @brief xcb_input_device_abs_area_ctrl_iterator_t
+ **/
+typedef struct xcb_input_device_abs_area_ctrl_iterator_t {
+ xcb_input_device_abs_area_ctrl_t *data;
+ int rem;
+ int index;
+} xcb_input_device_abs_area_ctrl_iterator_t;
+
+/**
+ * @brief xcb_input_device_core_ctrl_t
+ **/
+typedef struct xcb_input_device_core_ctrl_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint8_t status;
+ uint8_t pad0[3];
+} xcb_input_device_core_ctrl_t;
+
+/**
+ * @brief xcb_input_device_core_ctrl_iterator_t
+ **/
+typedef struct xcb_input_device_core_ctrl_iterator_t {
+ xcb_input_device_core_ctrl_t *data;
+ int rem;
+ int index;
+} xcb_input_device_core_ctrl_iterator_t;
+
+/**
+ * @brief xcb_input_device_enable_ctrl_t
+ **/
+typedef struct xcb_input_device_enable_ctrl_t {
+ uint16_t control_id;
+ uint16_t len;
+ uint8_t enable;
+ uint8_t pad0[3];
+} xcb_input_device_enable_ctrl_t;
+
+/**
+ * @brief xcb_input_device_enable_ctrl_iterator_t
+ **/
+typedef struct xcb_input_device_enable_ctrl_iterator_t {
+ xcb_input_device_enable_ctrl_t *data;
+ int rem;
+ int index;
+} xcb_input_device_enable_ctrl_iterator_t;
+
+/**
+ * @brief xcb_input_device_ctl_data_t
+ **/
+typedef struct xcb_input_device_ctl_data_t {
+ struct {
+ uint8_t first_valuator;
+ uint8_t num_valuators;
+ uint8_t pad0[2];
+ uint32_t *resolution_values;
+ } resolution;
+ struct {
+ int32_t min_x;
+ int32_t max_x;
+ int32_t min_y;
+ int32_t max_y;
+ uint32_t flip_x;
+ uint32_t flip_y;
+ uint32_t rotation;
+ uint32_t button_threshold;
+ } abs_calib;
+ struct {
+ uint8_t status;
+ uint8_t pad1[3];
+ } core;
+ struct {
+ uint8_t enable;
+ uint8_t pad2[3];
+ } enable;
+ struct {
+ uint32_t offset_x;
+ uint32_t offset_y;
+ int32_t width;
+ int32_t height;
+ int32_t screen;
+ uint32_t following;
+ } abs_area;
+} xcb_input_device_ctl_data_t;
+
+/**
+ * @brief xcb_input_device_ctl_t
+ **/
+typedef struct xcb_input_device_ctl_t {
+ uint16_t control_id;
+ uint16_t len;
+} xcb_input_device_ctl_t;
+
+void *
+xcb_input_device_ctl_data (const xcb_input_device_ctl_t *R);
+
+/**
+ * @brief xcb_input_device_ctl_iterator_t
+ **/
+typedef struct xcb_input_device_ctl_iterator_t {
+ xcb_input_device_ctl_t *data;
+ int rem;
+ int index;
+} xcb_input_device_ctl_iterator_t;
+
+/**
+ * @brief xcb_input_change_device_control_cookie_t
+ **/
+typedef struct xcb_input_change_device_control_cookie_t {
+ unsigned int sequence;
+} xcb_input_change_device_control_cookie_t;
+
+/** Opcode for xcb_input_change_device_control. */
+#define XCB_INPUT_CHANGE_DEVICE_CONTROL 35
+
+/**
+ * @brief xcb_input_change_device_control_request_t
+ **/
+typedef struct xcb_input_change_device_control_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t control_id;
+ uint8_t device_id;
+ uint8_t pad0;
+} xcb_input_change_device_control_request_t;
+
+/**
+ * @brief xcb_input_change_device_control_reply_t
+ **/
+typedef struct xcb_input_change_device_control_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad0[23];
+} xcb_input_change_device_control_reply_t;
+
+/**
+ * @brief xcb_input_list_device_properties_cookie_t
+ **/
+typedef struct xcb_input_list_device_properties_cookie_t {
+ unsigned int sequence;
+} xcb_input_list_device_properties_cookie_t;
+
+/** Opcode for xcb_input_list_device_properties. */
+#define XCB_INPUT_LIST_DEVICE_PROPERTIES 36
+
+/**
+ * @brief xcb_input_list_device_properties_request_t
+ **/
+typedef struct xcb_input_list_device_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_list_device_properties_request_t;
+
+/**
+ * @brief xcb_input_list_device_properties_reply_t
+ **/
+typedef struct xcb_input_list_device_properties_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_atoms;
+ uint8_t pad0[22];
+} xcb_input_list_device_properties_reply_t;
+
+typedef enum xcb_input_property_format_t {
+ XCB_INPUT_PROPERTY_FORMAT_8_BITS = 8,
+ XCB_INPUT_PROPERTY_FORMAT_16_BITS = 16,
+ XCB_INPUT_PROPERTY_FORMAT_32_BITS = 32
+} xcb_input_property_format_t;
+
+/**
+ * @brief xcb_input_change_device_property_items_t
+ **/
+typedef struct xcb_input_change_device_property_items_t {
+ uint8_t *data8;
+ uint16_t *data16;
+ uint32_t *data32;
+} xcb_input_change_device_property_items_t;
+
+/** Opcode for xcb_input_change_device_property. */
+#define XCB_INPUT_CHANGE_DEVICE_PROPERTY 37
+
+/**
+ * @brief xcb_input_change_device_property_request_t
+ **/
+typedef struct xcb_input_change_device_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint8_t device_id;
+ uint8_t format;
+ uint8_t mode;
+ uint8_t pad0;
+ uint32_t num_items;
+} xcb_input_change_device_property_request_t;
+
+/** Opcode for xcb_input_delete_device_property. */
+#define XCB_INPUT_DELETE_DEVICE_PROPERTY 38
+
+/**
+ * @brief xcb_input_delete_device_property_request_t
+ **/
+typedef struct xcb_input_delete_device_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_atom_t property;
+ uint8_t device_id;
+ uint8_t pad0[3];
+} xcb_input_delete_device_property_request_t;
+
+/**
+ * @brief xcb_input_get_device_property_cookie_t
+ **/
+typedef struct xcb_input_get_device_property_cookie_t {
+ unsigned int sequence;
+} xcb_input_get_device_property_cookie_t;
+
+/** Opcode for xcb_input_get_device_property. */
+#define XCB_INPUT_GET_DEVICE_PROPERTY 39
+
+/**
+ * @brief xcb_input_get_device_property_request_t
+ **/
+typedef struct xcb_input_get_device_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint32_t offset;
+ uint32_t len;
+ uint8_t device_id;
+ uint8_t _delete;
+ uint8_t pad0[2];
+} xcb_input_get_device_property_request_t;
+
+/**
+ * @brief xcb_input_get_device_property_items_t
+ **/
+typedef struct xcb_input_get_device_property_items_t {
+ uint8_t *data8;
+ uint16_t *data16;
+ uint32_t *data32;
+} xcb_input_get_device_property_items_t;
+
+/**
+ * @brief xcb_input_get_device_property_reply_t
+ **/
+typedef struct xcb_input_get_device_property_reply_t {
+ uint8_t response_type;
+ uint8_t xi_reply_type;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t type;
+ uint32_t bytes_after;
+ uint32_t num_items;
+ uint8_t format;
+ uint8_t device_id;
+ uint8_t pad0[10];
+} xcb_input_get_device_property_reply_t;
+
+typedef enum xcb_input_device_t {
+ XCB_INPUT_DEVICE_ALL = 0,
+ XCB_INPUT_DEVICE_ALL_MASTER = 1
+} xcb_input_device_t;
+
+/**
+ * @brief xcb_input_group_info_t
+ **/
+typedef struct xcb_input_group_info_t {
+ uint8_t base;
+ uint8_t latched;
+ uint8_t locked;
+ uint8_t effective;
+} xcb_input_group_info_t;
+
+/**
+ * @brief xcb_input_group_info_iterator_t
+ **/
+typedef struct xcb_input_group_info_iterator_t {
+ xcb_input_group_info_t *data;
+ int rem;
+ int index;
+} xcb_input_group_info_iterator_t;
+
+/**
+ * @brief xcb_input_modifier_info_t
+ **/
+typedef struct xcb_input_modifier_info_t {
+ uint32_t base;
+ uint32_t latched;
+ uint32_t locked;
+ uint32_t effective;
+} xcb_input_modifier_info_t;
+
+/**
+ * @brief xcb_input_modifier_info_iterator_t
+ **/
+typedef struct xcb_input_modifier_info_iterator_t {
+ xcb_input_modifier_info_t *data;
+ int rem;
+ int index;
+} xcb_input_modifier_info_iterator_t;
+
+/**
+ * @brief xcb_input_xi_query_pointer_cookie_t
+ **/
+typedef struct xcb_input_xi_query_pointer_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_query_pointer_cookie_t;
+
+/** Opcode for xcb_input_xi_query_pointer. */
+#define XCB_INPUT_XI_QUERY_POINTER 40
+
+/**
+ * @brief xcb_input_xi_query_pointer_request_t
+ **/
+typedef struct xcb_input_xi_query_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_query_pointer_request_t;
+
+/**
+ * @brief xcb_input_xi_query_pointer_reply_t
+ **/
+typedef struct xcb_input_xi_query_pointer_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t root;
+ xcb_window_t child;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t win_x;
+ xcb_input_fp1616_t win_y;
+ uint8_t same_screen;
+ uint8_t pad1;
+ uint16_t buttons_len;
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+} xcb_input_xi_query_pointer_reply_t;
+
+/** Opcode for xcb_input_xi_warp_pointer. */
+#define XCB_INPUT_XI_WARP_POINTER 41
+
+/**
+ * @brief xcb_input_xi_warp_pointer_request_t
+ **/
+typedef struct xcb_input_xi_warp_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t src_win;
+ xcb_window_t dst_win;
+ xcb_input_fp1616_t src_x;
+ xcb_input_fp1616_t src_y;
+ uint16_t src_width;
+ uint16_t src_height;
+ xcb_input_fp1616_t dst_x;
+ xcb_input_fp1616_t dst_y;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_warp_pointer_request_t;
+
+/** Opcode for xcb_input_xi_change_cursor. */
+#define XCB_INPUT_XI_CHANGE_CURSOR 42
+
+/**
+ * @brief xcb_input_xi_change_cursor_request_t
+ **/
+typedef struct xcb_input_xi_change_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_cursor_t cursor;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_change_cursor_request_t;
+
+typedef enum xcb_input_hierarchy_change_type_t {
+ XCB_INPUT_HIERARCHY_CHANGE_TYPE_ADD_MASTER = 1,
+ XCB_INPUT_HIERARCHY_CHANGE_TYPE_REMOVE_MASTER = 2,
+ XCB_INPUT_HIERARCHY_CHANGE_TYPE_ATTACH_SLAVE = 3,
+ XCB_INPUT_HIERARCHY_CHANGE_TYPE_DETACH_SLAVE = 4
+} xcb_input_hierarchy_change_type_t;
+
+typedef enum xcb_input_change_mode_t {
+ XCB_INPUT_CHANGE_MODE_ATTACH = 1,
+ XCB_INPUT_CHANGE_MODE_FLOAT = 2
+} xcb_input_change_mode_t;
+
+/**
+ * @brief xcb_input_add_master_t
+ **/
+typedef struct xcb_input_add_master_t {
+ uint16_t type;
+ uint16_t len;
+ uint16_t name_len;
+ uint8_t send_core;
+ uint8_t enable;
+} xcb_input_add_master_t;
+
+/**
+ * @brief xcb_input_add_master_iterator_t
+ **/
+typedef struct xcb_input_add_master_iterator_t {
+ xcb_input_add_master_t *data;
+ int rem;
+ int index;
+} xcb_input_add_master_iterator_t;
+
+/**
+ * @brief xcb_input_remove_master_t
+ **/
+typedef struct xcb_input_remove_master_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t deviceid;
+ uint8_t return_mode;
+ uint8_t pad0;
+ xcb_input_device_id_t return_pointer;
+ xcb_input_device_id_t return_keyboard;
+} xcb_input_remove_master_t;
+
+/**
+ * @brief xcb_input_remove_master_iterator_t
+ **/
+typedef struct xcb_input_remove_master_iterator_t {
+ xcb_input_remove_master_t *data;
+ int rem;
+ int index;
+} xcb_input_remove_master_iterator_t;
+
+/**
+ * @brief xcb_input_attach_slave_t
+ **/
+typedef struct xcb_input_attach_slave_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t deviceid;
+ xcb_input_device_id_t master;
+} xcb_input_attach_slave_t;
+
+/**
+ * @brief xcb_input_attach_slave_iterator_t
+ **/
+typedef struct xcb_input_attach_slave_iterator_t {
+ xcb_input_attach_slave_t *data;
+ int rem;
+ int index;
+} xcb_input_attach_slave_iterator_t;
+
+/**
+ * @brief xcb_input_detach_slave_t
+ **/
+typedef struct xcb_input_detach_slave_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_detach_slave_t;
+
+/**
+ * @brief xcb_input_detach_slave_iterator_t
+ **/
+typedef struct xcb_input_detach_slave_iterator_t {
+ xcb_input_detach_slave_t *data;
+ int rem;
+ int index;
+} xcb_input_detach_slave_iterator_t;
+
+/**
+ * @brief xcb_input_hierarchy_change_data_t
+ **/
+typedef struct xcb_input_hierarchy_change_data_t {
+ struct {
+ uint16_t name_len;
+ uint8_t send_core;
+ uint8_t enable;
+ char *name;
+ } add_master;
+ struct {
+ xcb_input_device_id_t deviceid;
+ uint8_t return_mode;
+ uint8_t pad1;
+ xcb_input_device_id_t return_pointer;
+ xcb_input_device_id_t return_keyboard;
+ } remove_master;
+ struct {
+ xcb_input_device_id_t deviceid;
+ xcb_input_device_id_t master;
+ } attach_slave;
+ struct {
+ xcb_input_device_id_t deviceid;
+ uint8_t pad2[2];
+ } detach_slave;
+} xcb_input_hierarchy_change_data_t;
+
+/**
+ * @brief xcb_input_hierarchy_change_t
+ **/
+typedef struct xcb_input_hierarchy_change_t {
+ uint16_t type;
+ uint16_t len;
+} xcb_input_hierarchy_change_t;
+
+void *
+xcb_input_hierarchy_change_data (const xcb_input_hierarchy_change_t *R);
+
+/**
+ * @brief xcb_input_hierarchy_change_iterator_t
+ **/
+typedef struct xcb_input_hierarchy_change_iterator_t {
+ xcb_input_hierarchy_change_t *data;
+ int rem;
+ int index;
+} xcb_input_hierarchy_change_iterator_t;
+
+/** Opcode for xcb_input_xi_change_hierarchy. */
+#define XCB_INPUT_XI_CHANGE_HIERARCHY 43
+
+/**
+ * @brief xcb_input_xi_change_hierarchy_request_t
+ **/
+typedef struct xcb_input_xi_change_hierarchy_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t num_changes;
+ uint8_t pad0[3];
+} xcb_input_xi_change_hierarchy_request_t;
+
+/** Opcode for xcb_input_xi_set_client_pointer. */
+#define XCB_INPUT_XI_SET_CLIENT_POINTER 44
+
+/**
+ * @brief xcb_input_xi_set_client_pointer_request_t
+ **/
+typedef struct xcb_input_xi_set_client_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_set_client_pointer_request_t;
+
+/**
+ * @brief xcb_input_xi_get_client_pointer_cookie_t
+ **/
+typedef struct xcb_input_xi_get_client_pointer_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_get_client_pointer_cookie_t;
+
+/** Opcode for xcb_input_xi_get_client_pointer. */
+#define XCB_INPUT_XI_GET_CLIENT_POINTER 45
+
+/**
+ * @brief xcb_input_xi_get_client_pointer_request_t
+ **/
+typedef struct xcb_input_xi_get_client_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_input_xi_get_client_pointer_request_t;
+
+/**
+ * @brief xcb_input_xi_get_client_pointer_reply_t
+ **/
+typedef struct xcb_input_xi_get_client_pointer_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t set;
+ uint8_t pad1;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad2[20];
+} xcb_input_xi_get_client_pointer_reply_t;
+
+typedef enum xcb_input_xi_event_mask_t {
+ XCB_INPUT_XI_EVENT_MASK_DEVICE_CHANGED = 2,
+ XCB_INPUT_XI_EVENT_MASK_KEY_PRESS = 4,
+ XCB_INPUT_XI_EVENT_MASK_KEY_RELEASE = 8,
+ XCB_INPUT_XI_EVENT_MASK_BUTTON_PRESS = 16,
+ XCB_INPUT_XI_EVENT_MASK_BUTTON_RELEASE = 32,
+ XCB_INPUT_XI_EVENT_MASK_MOTION = 64,
+ XCB_INPUT_XI_EVENT_MASK_ENTER = 128,
+ XCB_INPUT_XI_EVENT_MASK_LEAVE = 256,
+ XCB_INPUT_XI_EVENT_MASK_FOCUS_IN = 512,
+ XCB_INPUT_XI_EVENT_MASK_FOCUS_OUT = 1024,
+ XCB_INPUT_XI_EVENT_MASK_HIERARCHY = 2048,
+ XCB_INPUT_XI_EVENT_MASK_PROPERTY = 4096,
+ XCB_INPUT_XI_EVENT_MASK_RAW_KEY_PRESS = 8192,
+ XCB_INPUT_XI_EVENT_MASK_RAW_KEY_RELEASE = 16384,
+ XCB_INPUT_XI_EVENT_MASK_RAW_BUTTON_PRESS = 32768,
+ XCB_INPUT_XI_EVENT_MASK_RAW_BUTTON_RELEASE = 65536,
+ XCB_INPUT_XI_EVENT_MASK_RAW_MOTION = 131072,
+ XCB_INPUT_XI_EVENT_MASK_TOUCH_BEGIN = 262144,
+ XCB_INPUT_XI_EVENT_MASK_TOUCH_UPDATE = 524288,
+ XCB_INPUT_XI_EVENT_MASK_TOUCH_END = 1048576,
+ XCB_INPUT_XI_EVENT_MASK_TOUCH_OWNERSHIP = 2097152,
+ XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_BEGIN = 4194304,
+ XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_UPDATE = 8388608,
+ XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_END = 16777216,
+ XCB_INPUT_XI_EVENT_MASK_BARRIER_HIT = 33554432,
+ XCB_INPUT_XI_EVENT_MASK_BARRIER_LEAVE = 67108864
+} xcb_input_xi_event_mask_t;
+
+/**
+ * @brief xcb_input_event_mask_t
+ **/
+typedef struct xcb_input_event_mask_t {
+ xcb_input_device_id_t deviceid;
+ uint16_t mask_len;
+} xcb_input_event_mask_t;
+
+/**
+ * @brief xcb_input_event_mask_iterator_t
+ **/
+typedef struct xcb_input_event_mask_iterator_t {
+ xcb_input_event_mask_t *data;
+ int rem;
+ int index;
+} xcb_input_event_mask_iterator_t;
+
+/** Opcode for xcb_input_xi_select_events. */
+#define XCB_INPUT_XI_SELECT_EVENTS 46
+
+/**
+ * @brief xcb_input_xi_select_events_request_t
+ **/
+typedef struct xcb_input_xi_select_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t num_mask;
+ uint8_t pad0[2];
+} xcb_input_xi_select_events_request_t;
+
+/**
+ * @brief xcb_input_xi_query_version_cookie_t
+ **/
+typedef struct xcb_input_xi_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_query_version_cookie_t;
+
+/** Opcode for xcb_input_xi_query_version. */
+#define XCB_INPUT_XI_QUERY_VERSION 47
+
+/**
+ * @brief xcb_input_xi_query_version_request_t
+ **/
+typedef struct xcb_input_xi_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+} xcb_input_xi_query_version_request_t;
+
+/**
+ * @brief xcb_input_xi_query_version_reply_t
+ **/
+typedef struct xcb_input_xi_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+ uint8_t pad1[20];
+} xcb_input_xi_query_version_reply_t;
+
+typedef enum xcb_input_device_class_type_t {
+ XCB_INPUT_DEVICE_CLASS_TYPE_KEY = 0,
+ XCB_INPUT_DEVICE_CLASS_TYPE_BUTTON = 1,
+ XCB_INPUT_DEVICE_CLASS_TYPE_VALUATOR = 2,
+ XCB_INPUT_DEVICE_CLASS_TYPE_SCROLL = 3,
+ XCB_INPUT_DEVICE_CLASS_TYPE_TOUCH = 8,
+ XCB_INPUT_DEVICE_CLASS_TYPE_GESTURE = 9
+} xcb_input_device_class_type_t;
+
+typedef enum xcb_input_device_type_t {
+ XCB_INPUT_DEVICE_TYPE_MASTER_POINTER = 1,
+ XCB_INPUT_DEVICE_TYPE_MASTER_KEYBOARD = 2,
+ XCB_INPUT_DEVICE_TYPE_SLAVE_POINTER = 3,
+ XCB_INPUT_DEVICE_TYPE_SLAVE_KEYBOARD = 4,
+ XCB_INPUT_DEVICE_TYPE_FLOATING_SLAVE = 5
+} xcb_input_device_type_t;
+
+typedef enum xcb_input_scroll_flags_t {
+ XCB_INPUT_SCROLL_FLAGS_NO_EMULATION = 1,
+ XCB_INPUT_SCROLL_FLAGS_PREFERRED = 2
+} xcb_input_scroll_flags_t;
+
+typedef enum xcb_input_scroll_type_t {
+ XCB_INPUT_SCROLL_TYPE_VERTICAL = 1,
+ XCB_INPUT_SCROLL_TYPE_HORIZONTAL = 2
+} xcb_input_scroll_type_t;
+
+typedef enum xcb_input_touch_mode_t {
+ XCB_INPUT_TOUCH_MODE_DIRECT = 1,
+ XCB_INPUT_TOUCH_MODE_DEPENDENT = 2
+} xcb_input_touch_mode_t;
+
+/**
+ * @brief xcb_input_button_class_t
+ **/
+typedef struct xcb_input_button_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+ uint16_t num_buttons;
+} xcb_input_button_class_t;
+
+/**
+ * @brief xcb_input_button_class_iterator_t
+ **/
+typedef struct xcb_input_button_class_iterator_t {
+ xcb_input_button_class_t *data;
+ int rem;
+ int index;
+} xcb_input_button_class_iterator_t;
+
+/**
+ * @brief xcb_input_key_class_t
+ **/
+typedef struct xcb_input_key_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+ uint16_t num_keys;
+} xcb_input_key_class_t;
+
+/**
+ * @brief xcb_input_key_class_iterator_t
+ **/
+typedef struct xcb_input_key_class_iterator_t {
+ xcb_input_key_class_t *data;
+ int rem;
+ int index;
+} xcb_input_key_class_iterator_t;
+
+/**
+ * @brief xcb_input_scroll_class_t
+ **/
+typedef struct xcb_input_scroll_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+ uint16_t number;
+ uint16_t scroll_type;
+ uint8_t pad0[2];
+ uint32_t flags;
+ xcb_input_fp3232_t increment;
+} xcb_input_scroll_class_t;
+
+/**
+ * @brief xcb_input_scroll_class_iterator_t
+ **/
+typedef struct xcb_input_scroll_class_iterator_t {
+ xcb_input_scroll_class_t *data;
+ int rem;
+ int index;
+} xcb_input_scroll_class_iterator_t;
+
+/**
+ * @brief xcb_input_touch_class_t
+ **/
+typedef struct xcb_input_touch_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+ uint8_t mode;
+ uint8_t num_touches;
+} xcb_input_touch_class_t;
+
+/**
+ * @brief xcb_input_touch_class_iterator_t
+ **/
+typedef struct xcb_input_touch_class_iterator_t {
+ xcb_input_touch_class_t *data;
+ int rem;
+ int index;
+} xcb_input_touch_class_iterator_t;
+
+/**
+ * @brief xcb_input_gesture_class_t
+ **/
+typedef struct xcb_input_gesture_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+ uint8_t num_touches;
+ uint8_t pad0;
+} xcb_input_gesture_class_t;
+
+/**
+ * @brief xcb_input_gesture_class_iterator_t
+ **/
+typedef struct xcb_input_gesture_class_iterator_t {
+ xcb_input_gesture_class_t *data;
+ int rem;
+ int index;
+} xcb_input_gesture_class_iterator_t;
+
+/**
+ * @brief xcb_input_valuator_class_t
+ **/
+typedef struct xcb_input_valuator_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+ uint16_t number;
+ xcb_atom_t label;
+ xcb_input_fp3232_t min;
+ xcb_input_fp3232_t max;
+ xcb_input_fp3232_t value;
+ uint32_t resolution;
+ uint8_t mode;
+ uint8_t pad0[3];
+} xcb_input_valuator_class_t;
+
+/**
+ * @brief xcb_input_valuator_class_iterator_t
+ **/
+typedef struct xcb_input_valuator_class_iterator_t {
+ xcb_input_valuator_class_t *data;
+ int rem;
+ int index;
+} xcb_input_valuator_class_iterator_t;
+
+/**
+ * @brief xcb_input_device_class_data_t
+ **/
+typedef struct xcb_input_device_class_data_t {
+ struct {
+ uint16_t num_keys;
+ uint32_t *keys;
+ } key;
+ struct {
+ uint16_t num_buttons;
+ uint32_t *state;
+ xcb_atom_t *labels;
+ } button;
+ struct {
+ uint16_t number;
+ xcb_atom_t label;
+ xcb_input_fp3232_t min;
+ xcb_input_fp3232_t max;
+ xcb_input_fp3232_t value;
+ uint32_t resolution;
+ uint8_t mode;
+ uint8_t pad0[3];
+ } valuator;
+ struct {
+ uint16_t number;
+ uint16_t scroll_type;
+ uint8_t pad1[2];
+ uint32_t flags;
+ xcb_input_fp3232_t increment;
+ } scroll;
+ struct {
+ uint8_t mode;
+ uint8_t num_touches;
+ } touch;
+ struct {
+ uint8_t num_touches;
+ uint8_t pad2;
+ } gesture;
+} xcb_input_device_class_data_t;
+
+/**
+ * @brief xcb_input_device_class_t
+ **/
+typedef struct xcb_input_device_class_t {
+ uint16_t type;
+ uint16_t len;
+ xcb_input_device_id_t sourceid;
+} xcb_input_device_class_t;
+
+void *
+xcb_input_device_class_data (const xcb_input_device_class_t *R);
+
+/**
+ * @brief xcb_input_device_class_iterator_t
+ **/
+typedef struct xcb_input_device_class_iterator_t {
+ xcb_input_device_class_t *data;
+ int rem;
+ int index;
+} xcb_input_device_class_iterator_t;
+
+/**
+ * @brief xcb_input_xi_device_info_t
+ **/
+typedef struct xcb_input_xi_device_info_t {
+ xcb_input_device_id_t deviceid;
+ uint16_t type;
+ xcb_input_device_id_t attachment;
+ uint16_t num_classes;
+ uint16_t name_len;
+ uint8_t enabled;
+ uint8_t pad0;
+} xcb_input_xi_device_info_t;
+
+/**
+ * @brief xcb_input_xi_device_info_iterator_t
+ **/
+typedef struct xcb_input_xi_device_info_iterator_t {
+ xcb_input_xi_device_info_t *data;
+ int rem;
+ int index;
+} xcb_input_xi_device_info_iterator_t;
+
+/**
+ * @brief xcb_input_xi_query_device_cookie_t
+ **/
+typedef struct xcb_input_xi_query_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_query_device_cookie_t;
+
+/** Opcode for xcb_input_xi_query_device. */
+#define XCB_INPUT_XI_QUERY_DEVICE 48
+
+/**
+ * @brief xcb_input_xi_query_device_request_t
+ **/
+typedef struct xcb_input_xi_query_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_query_device_request_t;
+
+/**
+ * @brief xcb_input_xi_query_device_reply_t
+ **/
+typedef struct xcb_input_xi_query_device_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_infos;
+ uint8_t pad1[22];
+} xcb_input_xi_query_device_reply_t;
+
+/** Opcode for xcb_input_xi_set_focus. */
+#define XCB_INPUT_XI_SET_FOCUS 49
+
+/**
+ * @brief xcb_input_xi_set_focus_request_t
+ **/
+typedef struct xcb_input_xi_set_focus_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_timestamp_t time;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_set_focus_request_t;
+
+/**
+ * @brief xcb_input_xi_get_focus_cookie_t
+ **/
+typedef struct xcb_input_xi_get_focus_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_get_focus_cookie_t;
+
+/** Opcode for xcb_input_xi_get_focus. */
+#define XCB_INPUT_XI_GET_FOCUS 50
+
+/**
+ * @brief xcb_input_xi_get_focus_request_t
+ **/
+typedef struct xcb_input_xi_get_focus_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_get_focus_request_t;
+
+/**
+ * @brief xcb_input_xi_get_focus_reply_t
+ **/
+typedef struct xcb_input_xi_get_focus_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t focus;
+ uint8_t pad1[20];
+} xcb_input_xi_get_focus_reply_t;
+
+typedef enum xcb_input_grab_owner_t {
+ XCB_INPUT_GRAB_OWNER_NO_OWNER = 0,
+ XCB_INPUT_GRAB_OWNER_OWNER = 1
+} xcb_input_grab_owner_t;
+
+/**
+ * @brief xcb_input_xi_grab_device_cookie_t
+ **/
+typedef struct xcb_input_xi_grab_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_grab_device_cookie_t;
+
+/** Opcode for xcb_input_xi_grab_device. */
+#define XCB_INPUT_XI_GRAB_DEVICE 51
+
+/**
+ * @brief xcb_input_xi_grab_device_request_t
+ **/
+typedef struct xcb_input_xi_grab_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_timestamp_t time;
+ xcb_cursor_t cursor;
+ xcb_input_device_id_t deviceid;
+ uint8_t mode;
+ uint8_t paired_device_mode;
+ uint8_t owner_events;
+ uint8_t pad0;
+ uint16_t mask_len;
+} xcb_input_xi_grab_device_request_t;
+
+/**
+ * @brief xcb_input_xi_grab_device_reply_t
+ **/
+typedef struct xcb_input_xi_grab_device_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t status;
+ uint8_t pad1[23];
+} xcb_input_xi_grab_device_reply_t;
+
+/** Opcode for xcb_input_xi_ungrab_device. */
+#define XCB_INPUT_XI_UNGRAB_DEVICE 52
+
+/**
+ * @brief xcb_input_xi_ungrab_device_request_t
+ **/
+typedef struct xcb_input_xi_ungrab_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_timestamp_t time;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_ungrab_device_request_t;
+
+typedef enum xcb_input_event_mode_t {
+ XCB_INPUT_EVENT_MODE_ASYNC_DEVICE = 0,
+ XCB_INPUT_EVENT_MODE_SYNC_DEVICE = 1,
+ XCB_INPUT_EVENT_MODE_REPLAY_DEVICE = 2,
+ XCB_INPUT_EVENT_MODE_ASYNC_PAIRED_DEVICE = 3,
+ XCB_INPUT_EVENT_MODE_ASYNC_PAIR = 4,
+ XCB_INPUT_EVENT_MODE_SYNC_PAIR = 5,
+ XCB_INPUT_EVENT_MODE_ACCEPT_TOUCH = 6,
+ XCB_INPUT_EVENT_MODE_REJECT_TOUCH = 7
+} xcb_input_event_mode_t;
+
+/** Opcode for xcb_input_xi_allow_events. */
+#define XCB_INPUT_XI_ALLOW_EVENTS 53
+
+/**
+ * @brief xcb_input_xi_allow_events_request_t
+ **/
+typedef struct xcb_input_xi_allow_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_timestamp_t time;
+ xcb_input_device_id_t deviceid;
+ uint8_t event_mode;
+ uint8_t pad0;
+ uint32_t touchid;
+ xcb_window_t grab_window;
+} xcb_input_xi_allow_events_request_t;
+
+typedef enum xcb_input_grab_mode_22_t {
+ XCB_INPUT_GRAB_MODE_22_SYNC = 0,
+ XCB_INPUT_GRAB_MODE_22_ASYNC = 1,
+ XCB_INPUT_GRAB_MODE_22_TOUCH = 2
+} xcb_input_grab_mode_22_t;
+
+typedef enum xcb_input_grab_type_t {
+ XCB_INPUT_GRAB_TYPE_BUTTON = 0,
+ XCB_INPUT_GRAB_TYPE_KEYCODE = 1,
+ XCB_INPUT_GRAB_TYPE_ENTER = 2,
+ XCB_INPUT_GRAB_TYPE_FOCUS_IN = 3,
+ XCB_INPUT_GRAB_TYPE_TOUCH_BEGIN = 4,
+ XCB_INPUT_GRAB_TYPE_GESTURE_PINCH_BEGIN = 5,
+ XCB_INPUT_GRAB_TYPE_GESTURE_SWIPE_BEGIN = 6
+} xcb_input_grab_type_t;
+
+typedef enum xcb_input_modifier_mask_t {
+ XCB_INPUT_MODIFIER_MASK_ANY = 2147483648
+} xcb_input_modifier_mask_t;
+
+/**
+ * @brief xcb_input_grab_modifier_info_t
+ **/
+typedef struct xcb_input_grab_modifier_info_t {
+ uint32_t modifiers;
+ uint8_t status;
+ uint8_t pad0[3];
+} xcb_input_grab_modifier_info_t;
+
+/**
+ * @brief xcb_input_grab_modifier_info_iterator_t
+ **/
+typedef struct xcb_input_grab_modifier_info_iterator_t {
+ xcb_input_grab_modifier_info_t *data;
+ int rem;
+ int index;
+} xcb_input_grab_modifier_info_iterator_t;
+
+/**
+ * @brief xcb_input_xi_passive_grab_device_cookie_t
+ **/
+typedef struct xcb_input_xi_passive_grab_device_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_passive_grab_device_cookie_t;
+
+/** Opcode for xcb_input_xi_passive_grab_device. */
+#define XCB_INPUT_XI_PASSIVE_GRAB_DEVICE 54
+
+/**
+ * @brief xcb_input_xi_passive_grab_device_request_t
+ **/
+typedef struct xcb_input_xi_passive_grab_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_timestamp_t time;
+ xcb_window_t grab_window;
+ xcb_cursor_t cursor;
+ uint32_t detail;
+ xcb_input_device_id_t deviceid;
+ uint16_t num_modifiers;
+ uint16_t mask_len;
+ uint8_t grab_type;
+ uint8_t grab_mode;
+ uint8_t paired_device_mode;
+ uint8_t owner_events;
+ uint8_t pad0[2];
+} xcb_input_xi_passive_grab_device_request_t;
+
+/**
+ * @brief xcb_input_xi_passive_grab_device_reply_t
+ **/
+typedef struct xcb_input_xi_passive_grab_device_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_modifiers;
+ uint8_t pad1[22];
+} xcb_input_xi_passive_grab_device_reply_t;
+
+/** Opcode for xcb_input_xi_passive_ungrab_device. */
+#define XCB_INPUT_XI_PASSIVE_UNGRAB_DEVICE 55
+
+/**
+ * @brief xcb_input_xi_passive_ungrab_device_request_t
+ **/
+typedef struct xcb_input_xi_passive_ungrab_device_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint32_t detail;
+ xcb_input_device_id_t deviceid;
+ uint16_t num_modifiers;
+ uint8_t grab_type;
+ uint8_t pad0[3];
+} xcb_input_xi_passive_ungrab_device_request_t;
+
+/**
+ * @brief xcb_input_xi_list_properties_cookie_t
+ **/
+typedef struct xcb_input_xi_list_properties_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_list_properties_cookie_t;
+
+/** Opcode for xcb_input_xi_list_properties. */
+#define XCB_INPUT_XI_LIST_PROPERTIES 56
+
+/**
+ * @brief xcb_input_xi_list_properties_request_t
+ **/
+typedef struct xcb_input_xi_list_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+} xcb_input_xi_list_properties_request_t;
+
+/**
+ * @brief xcb_input_xi_list_properties_reply_t
+ **/
+typedef struct xcb_input_xi_list_properties_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_properties;
+ uint8_t pad1[22];
+} xcb_input_xi_list_properties_reply_t;
+
+/**
+ * @brief xcb_input_xi_change_property_items_t
+ **/
+typedef struct xcb_input_xi_change_property_items_t {
+ uint8_t *data8;
+ uint16_t *data16;
+ uint32_t *data32;
+} xcb_input_xi_change_property_items_t;
+
+/** Opcode for xcb_input_xi_change_property. */
+#define XCB_INPUT_XI_CHANGE_PROPERTY 57
+
+/**
+ * @brief xcb_input_xi_change_property_request_t
+ **/
+typedef struct xcb_input_xi_change_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_input_device_id_t deviceid;
+ uint8_t mode;
+ uint8_t format;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint32_t num_items;
+} xcb_input_xi_change_property_request_t;
+
+/** Opcode for xcb_input_xi_delete_property. */
+#define XCB_INPUT_XI_DELETE_PROPERTY 58
+
+/**
+ * @brief xcb_input_xi_delete_property_request_t
+ **/
+typedef struct xcb_input_xi_delete_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+ xcb_atom_t property;
+} xcb_input_xi_delete_property_request_t;
+
+/**
+ * @brief xcb_input_xi_get_property_cookie_t
+ **/
+typedef struct xcb_input_xi_get_property_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_get_property_cookie_t;
+
+/** Opcode for xcb_input_xi_get_property. */
+#define XCB_INPUT_XI_GET_PROPERTY 59
+
+/**
+ * @brief xcb_input_xi_get_property_request_t
+ **/
+typedef struct xcb_input_xi_get_property_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_input_device_id_t deviceid;
+ uint8_t _delete;
+ uint8_t pad0;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint32_t offset;
+ uint32_t len;
+} xcb_input_xi_get_property_request_t;
+
+/**
+ * @brief xcb_input_xi_get_property_items_t
+ **/
+typedef struct xcb_input_xi_get_property_items_t {
+ uint8_t *data8;
+ uint16_t *data16;
+ uint32_t *data32;
+} xcb_input_xi_get_property_items_t;
+
+/**
+ * @brief xcb_input_xi_get_property_reply_t
+ **/
+typedef struct xcb_input_xi_get_property_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t type;
+ uint32_t bytes_after;
+ uint32_t num_items;
+ uint8_t format;
+ uint8_t pad1[11];
+} xcb_input_xi_get_property_reply_t;
+
+/**
+ * @brief xcb_input_xi_get_selected_events_cookie_t
+ **/
+typedef struct xcb_input_xi_get_selected_events_cookie_t {
+ unsigned int sequence;
+} xcb_input_xi_get_selected_events_cookie_t;
+
+/** Opcode for xcb_input_xi_get_selected_events. */
+#define XCB_INPUT_XI_GET_SELECTED_EVENTS 60
+
+/**
+ * @brief xcb_input_xi_get_selected_events_request_t
+ **/
+typedef struct xcb_input_xi_get_selected_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_input_xi_get_selected_events_request_t;
+
+/**
+ * @brief xcb_input_xi_get_selected_events_reply_t
+ **/
+typedef struct xcb_input_xi_get_selected_events_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_masks;
+ uint8_t pad1[22];
+} xcb_input_xi_get_selected_events_reply_t;
+
+/**
+ * @brief xcb_input_barrier_release_pointer_info_t
+ **/
+typedef struct xcb_input_barrier_release_pointer_info_t {
+ xcb_input_device_id_t deviceid;
+ uint8_t pad0[2];
+ xcb_xfixes_barrier_t barrier;
+ uint32_t eventid;
+} xcb_input_barrier_release_pointer_info_t;
+
+/**
+ * @brief xcb_input_barrier_release_pointer_info_iterator_t
+ **/
+typedef struct xcb_input_barrier_release_pointer_info_iterator_t {
+ xcb_input_barrier_release_pointer_info_t *data;
+ int rem;
+ int index;
+} xcb_input_barrier_release_pointer_info_iterator_t;
+
+/** Opcode for xcb_input_xi_barrier_release_pointer. */
+#define XCB_INPUT_XI_BARRIER_RELEASE_POINTER 61
+
+/**
+ * @brief xcb_input_xi_barrier_release_pointer_request_t
+ **/
+typedef struct xcb_input_xi_barrier_release_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t num_barriers;
+} xcb_input_xi_barrier_release_pointer_request_t;
+
+/** Opcode for xcb_input_device_valuator. */
+#define XCB_INPUT_DEVICE_VALUATOR 0
+
+/**
+ * @brief xcb_input_device_valuator_event_t
+ **/
+typedef struct xcb_input_device_valuator_event_t {
+ uint8_t response_type;
+ uint8_t device_id;
+ uint16_t sequence;
+ uint16_t device_state;
+ uint8_t num_valuators;
+ uint8_t first_valuator;
+ int32_t valuators[6];
+} xcb_input_device_valuator_event_t;
+
+typedef enum xcb_input_more_events_mask_t {
+ XCB_INPUT_MORE_EVENTS_MASK_MORE_EVENTS = 128
+} xcb_input_more_events_mask_t;
+
+/** Opcode for xcb_input_device_key_press. */
+#define XCB_INPUT_DEVICE_KEY_PRESS 1
+
+/**
+ * @brief xcb_input_device_key_press_event_t
+ **/
+typedef struct xcb_input_device_key_press_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ int16_t root_x;
+ int16_t root_y;
+ int16_t event_x;
+ int16_t event_y;
+ uint16_t state;
+ uint8_t same_screen;
+ uint8_t device_id;
+} xcb_input_device_key_press_event_t;
+
+/** Opcode for xcb_input_device_key_release. */
+#define XCB_INPUT_DEVICE_KEY_RELEASE 2
+
+typedef xcb_input_device_key_press_event_t xcb_input_device_key_release_event_t;
+
+/** Opcode for xcb_input_device_button_press. */
+#define XCB_INPUT_DEVICE_BUTTON_PRESS 3
+
+typedef xcb_input_device_key_press_event_t xcb_input_device_button_press_event_t;
+
+/** Opcode for xcb_input_device_button_release. */
+#define XCB_INPUT_DEVICE_BUTTON_RELEASE 4
+
+typedef xcb_input_device_key_press_event_t xcb_input_device_button_release_event_t;
+
+/** Opcode for xcb_input_device_motion_notify. */
+#define XCB_INPUT_DEVICE_MOTION_NOTIFY 5
+
+typedef xcb_input_device_key_press_event_t xcb_input_device_motion_notify_event_t;
+
+/** Opcode for xcb_input_device_focus_in. */
+#define XCB_INPUT_DEVICE_FOCUS_IN 6
+
+/**
+ * @brief xcb_input_device_focus_in_event_t
+ **/
+typedef struct xcb_input_device_focus_in_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t window;
+ uint8_t mode;
+ uint8_t device_id;
+ uint8_t pad0[18];
+} xcb_input_device_focus_in_event_t;
+
+/** Opcode for xcb_input_device_focus_out. */
+#define XCB_INPUT_DEVICE_FOCUS_OUT 7
+
+typedef xcb_input_device_focus_in_event_t xcb_input_device_focus_out_event_t;
+
+/** Opcode for xcb_input_proximity_in. */
+#define XCB_INPUT_PROXIMITY_IN 8
+
+typedef xcb_input_device_key_press_event_t xcb_input_proximity_in_event_t;
+
+/** Opcode for xcb_input_proximity_out. */
+#define XCB_INPUT_PROXIMITY_OUT 9
+
+typedef xcb_input_device_key_press_event_t xcb_input_proximity_out_event_t;
+
+typedef enum xcb_input_classes_reported_mask_t {
+ XCB_INPUT_CLASSES_REPORTED_MASK_OUT_OF_PROXIMITY = 128,
+ XCB_INPUT_CLASSES_REPORTED_MASK_DEVICE_MODE_ABSOLUTE = 64,
+ XCB_INPUT_CLASSES_REPORTED_MASK_REPORTING_VALUATORS = 4,
+ XCB_INPUT_CLASSES_REPORTED_MASK_REPORTING_BUTTONS = 2,
+ XCB_INPUT_CLASSES_REPORTED_MASK_REPORTING_KEYS = 1
+} xcb_input_classes_reported_mask_t;
+
+/** Opcode for xcb_input_device_state_notify. */
+#define XCB_INPUT_DEVICE_STATE_NOTIFY 10
+
+/**
+ * @brief xcb_input_device_state_notify_event_t
+ **/
+typedef struct xcb_input_device_state_notify_event_t {
+ uint8_t response_type;
+ uint8_t device_id;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t num_keys;
+ uint8_t num_buttons;
+ uint8_t num_valuators;
+ uint8_t classes_reported;
+ uint8_t buttons[4];
+ uint8_t keys[4];
+ uint32_t valuators[3];
+} xcb_input_device_state_notify_event_t;
+
+/** Opcode for xcb_input_device_mapping_notify. */
+#define XCB_INPUT_DEVICE_MAPPING_NOTIFY 11
+
+/**
+ * @brief xcb_input_device_mapping_notify_event_t
+ **/
+typedef struct xcb_input_device_mapping_notify_event_t {
+ uint8_t response_type;
+ uint8_t device_id;
+ uint16_t sequence;
+ uint8_t request;
+ xcb_input_key_code_t first_keycode;
+ uint8_t count;
+ uint8_t pad0;
+ xcb_timestamp_t time;
+ uint8_t pad1[20];
+} xcb_input_device_mapping_notify_event_t;
+
+typedef enum xcb_input_change_device_t {
+ XCB_INPUT_CHANGE_DEVICE_NEW_POINTER = 0,
+ XCB_INPUT_CHANGE_DEVICE_NEW_KEYBOARD = 1
+} xcb_input_change_device_t;
+
+/** Opcode for xcb_input_change_device_notify. */
+#define XCB_INPUT_CHANGE_DEVICE_NOTIFY 12
+
+/**
+ * @brief xcb_input_change_device_notify_event_t
+ **/
+typedef struct xcb_input_change_device_notify_event_t {
+ uint8_t response_type;
+ uint8_t device_id;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t request;
+ uint8_t pad0[23];
+} xcb_input_change_device_notify_event_t;
+
+/** Opcode for xcb_input_device_key_state_notify. */
+#define XCB_INPUT_DEVICE_KEY_STATE_NOTIFY 13
+
+/**
+ * @brief xcb_input_device_key_state_notify_event_t
+ **/
+typedef struct xcb_input_device_key_state_notify_event_t {
+ uint8_t response_type;
+ uint8_t device_id;
+ uint16_t sequence;
+ uint8_t keys[28];
+} xcb_input_device_key_state_notify_event_t;
+
+/** Opcode for xcb_input_device_button_state_notify. */
+#define XCB_INPUT_DEVICE_BUTTON_STATE_NOTIFY 14
+
+/**
+ * @brief xcb_input_device_button_state_notify_event_t
+ **/
+typedef struct xcb_input_device_button_state_notify_event_t {
+ uint8_t response_type;
+ uint8_t device_id;
+ uint16_t sequence;
+ uint8_t buttons[28];
+} xcb_input_device_button_state_notify_event_t;
+
+typedef enum xcb_input_device_change_t {
+ XCB_INPUT_DEVICE_CHANGE_ADDED = 0,
+ XCB_INPUT_DEVICE_CHANGE_REMOVED = 1,
+ XCB_INPUT_DEVICE_CHANGE_ENABLED = 2,
+ XCB_INPUT_DEVICE_CHANGE_DISABLED = 3,
+ XCB_INPUT_DEVICE_CHANGE_UNRECOVERABLE = 4,
+ XCB_INPUT_DEVICE_CHANGE_CONTROL_CHANGED = 5
+} xcb_input_device_change_t;
+
+/** Opcode for xcb_input_device_presence_notify. */
+#define XCB_INPUT_DEVICE_PRESENCE_NOTIFY 15
+
+/**
+ * @brief xcb_input_device_presence_notify_event_t
+ **/
+typedef struct xcb_input_device_presence_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t devchange;
+ uint8_t device_id;
+ uint16_t control;
+ uint8_t pad1[20];
+} xcb_input_device_presence_notify_event_t;
+
+/** Opcode for xcb_input_device_property_notify. */
+#define XCB_INPUT_DEVICE_PROPERTY_NOTIFY 16
+
+/**
+ * @brief xcb_input_device_property_notify_event_t
+ **/
+typedef struct xcb_input_device_property_notify_event_t {
+ uint8_t response_type;
+ uint8_t state;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_atom_t property;
+ uint8_t pad0[19];
+ uint8_t device_id;
+} xcb_input_device_property_notify_event_t;
+
+typedef enum xcb_input_change_reason_t {
+ XCB_INPUT_CHANGE_REASON_SLAVE_SWITCH = 1,
+ XCB_INPUT_CHANGE_REASON_DEVICE_CHANGE = 2
+} xcb_input_change_reason_t;
+
+/** Opcode for xcb_input_device_changed. */
+#define XCB_INPUT_DEVICE_CHANGED 1
+
+/**
+ * @brief xcb_input_device_changed_event_t
+ **/
+typedef struct xcb_input_device_changed_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint16_t num_classes;
+ xcb_input_device_id_t sourceid;
+ uint8_t reason;
+ uint8_t pad0[11];
+ uint32_t full_sequence;
+} xcb_input_device_changed_event_t;
+
+typedef enum xcb_input_key_event_flags_t {
+ XCB_INPUT_KEY_EVENT_FLAGS_KEY_REPEAT = 65536
+} xcb_input_key_event_flags_t;
+
+/** Opcode for xcb_input_key_press. */
+#define XCB_INPUT_KEY_PRESS 2
+
+/**
+ * @brief xcb_input_key_press_event_t
+ **/
+typedef struct xcb_input_key_press_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t event_x;
+ xcb_input_fp1616_t event_y;
+ uint16_t buttons_len;
+ uint16_t valuators_len;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ uint32_t flags;
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+} xcb_input_key_press_event_t;
+
+/** Opcode for xcb_input_key_release. */
+#define XCB_INPUT_KEY_RELEASE 3
+
+typedef xcb_input_key_press_event_t xcb_input_key_release_event_t;
+
+typedef enum xcb_input_pointer_event_flags_t {
+ XCB_INPUT_POINTER_EVENT_FLAGS_POINTER_EMULATED = 65536
+} xcb_input_pointer_event_flags_t;
+
+/** Opcode for xcb_input_button_press. */
+#define XCB_INPUT_BUTTON_PRESS 4
+
+/**
+ * @brief xcb_input_button_press_event_t
+ **/
+typedef struct xcb_input_button_press_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t event_x;
+ xcb_input_fp1616_t event_y;
+ uint16_t buttons_len;
+ uint16_t valuators_len;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ uint32_t flags;
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+} xcb_input_button_press_event_t;
+
+/** Opcode for xcb_input_button_release. */
+#define XCB_INPUT_BUTTON_RELEASE 5
+
+typedef xcb_input_button_press_event_t xcb_input_button_release_event_t;
+
+/** Opcode for xcb_input_motion. */
+#define XCB_INPUT_MOTION 6
+
+typedef xcb_input_button_press_event_t xcb_input_motion_event_t;
+
+typedef enum xcb_input_notify_mode_t {
+ XCB_INPUT_NOTIFY_MODE_NORMAL = 0,
+ XCB_INPUT_NOTIFY_MODE_GRAB = 1,
+ XCB_INPUT_NOTIFY_MODE_UNGRAB = 2,
+ XCB_INPUT_NOTIFY_MODE_WHILE_GRABBED = 3,
+ XCB_INPUT_NOTIFY_MODE_PASSIVE_GRAB = 4,
+ XCB_INPUT_NOTIFY_MODE_PASSIVE_UNGRAB = 5
+} xcb_input_notify_mode_t;
+
+typedef enum xcb_input_notify_detail_t {
+ XCB_INPUT_NOTIFY_DETAIL_ANCESTOR = 0,
+ XCB_INPUT_NOTIFY_DETAIL_VIRTUAL = 1,
+ XCB_INPUT_NOTIFY_DETAIL_INFERIOR = 2,
+ XCB_INPUT_NOTIFY_DETAIL_NONLINEAR = 3,
+ XCB_INPUT_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4,
+ XCB_INPUT_NOTIFY_DETAIL_POINTER = 5,
+ XCB_INPUT_NOTIFY_DETAIL_POINTER_ROOT = 6,
+ XCB_INPUT_NOTIFY_DETAIL_NONE = 7
+} xcb_input_notify_detail_t;
+
+/** Opcode for xcb_input_enter. */
+#define XCB_INPUT_ENTER 7
+
+/**
+ * @brief xcb_input_enter_event_t
+ **/
+typedef struct xcb_input_enter_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ xcb_input_device_id_t sourceid;
+ uint8_t mode;
+ uint8_t detail;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t event_x;
+ xcb_input_fp1616_t event_y;
+ uint8_t same_screen;
+ uint8_t focus;
+ uint16_t buttons_len;
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+} xcb_input_enter_event_t;
+
+/** Opcode for xcb_input_leave. */
+#define XCB_INPUT_LEAVE 8
+
+typedef xcb_input_enter_event_t xcb_input_leave_event_t;
+
+/** Opcode for xcb_input_focus_in. */
+#define XCB_INPUT_FOCUS_IN 9
+
+typedef xcb_input_enter_event_t xcb_input_focus_in_event_t;
+
+/** Opcode for xcb_input_focus_out. */
+#define XCB_INPUT_FOCUS_OUT 10
+
+typedef xcb_input_enter_event_t xcb_input_focus_out_event_t;
+
+typedef enum xcb_input_hierarchy_mask_t {
+ XCB_INPUT_HIERARCHY_MASK_MASTER_ADDED = 1,
+ XCB_INPUT_HIERARCHY_MASK_MASTER_REMOVED = 2,
+ XCB_INPUT_HIERARCHY_MASK_SLAVE_ADDED = 4,
+ XCB_INPUT_HIERARCHY_MASK_SLAVE_REMOVED = 8,
+ XCB_INPUT_HIERARCHY_MASK_SLAVE_ATTACHED = 16,
+ XCB_INPUT_HIERARCHY_MASK_SLAVE_DETACHED = 32,
+ XCB_INPUT_HIERARCHY_MASK_DEVICE_ENABLED = 64,
+ XCB_INPUT_HIERARCHY_MASK_DEVICE_DISABLED = 128
+} xcb_input_hierarchy_mask_t;
+
+/**
+ * @brief xcb_input_hierarchy_info_t
+ **/
+typedef struct xcb_input_hierarchy_info_t {
+ xcb_input_device_id_t deviceid;
+ xcb_input_device_id_t attachment;
+ uint8_t type;
+ uint8_t enabled;
+ uint8_t pad0[2];
+ uint32_t flags;
+} xcb_input_hierarchy_info_t;
+
+/**
+ * @brief xcb_input_hierarchy_info_iterator_t
+ **/
+typedef struct xcb_input_hierarchy_info_iterator_t {
+ xcb_input_hierarchy_info_t *data;
+ int rem;
+ int index;
+} xcb_input_hierarchy_info_iterator_t;
+
+/** Opcode for xcb_input_hierarchy. */
+#define XCB_INPUT_HIERARCHY 11
+
+/**
+ * @brief xcb_input_hierarchy_event_t
+ **/
+typedef struct xcb_input_hierarchy_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t flags;
+ uint16_t num_infos;
+ uint8_t pad0[10];
+ uint32_t full_sequence;
+} xcb_input_hierarchy_event_t;
+
+typedef enum xcb_input_property_flag_t {
+ XCB_INPUT_PROPERTY_FLAG_DELETED = 0,
+ XCB_INPUT_PROPERTY_FLAG_CREATED = 1,
+ XCB_INPUT_PROPERTY_FLAG_MODIFIED = 2
+} xcb_input_property_flag_t;
+
+/** Opcode for xcb_input_property. */
+#define XCB_INPUT_PROPERTY 12
+
+/**
+ * @brief xcb_input_property_event_t
+ **/
+typedef struct xcb_input_property_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ xcb_atom_t property;
+ uint8_t what;
+ uint8_t pad0[11];
+ uint32_t full_sequence;
+} xcb_input_property_event_t;
+
+/** Opcode for xcb_input_raw_key_press. */
+#define XCB_INPUT_RAW_KEY_PRESS 13
+
+/**
+ * @brief xcb_input_raw_key_press_event_t
+ **/
+typedef struct xcb_input_raw_key_press_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_input_device_id_t sourceid;
+ uint16_t valuators_len;
+ uint32_t flags;
+ uint8_t pad0[4];
+ uint32_t full_sequence;
+} xcb_input_raw_key_press_event_t;
+
+/** Opcode for xcb_input_raw_key_release. */
+#define XCB_INPUT_RAW_KEY_RELEASE 14
+
+typedef xcb_input_raw_key_press_event_t xcb_input_raw_key_release_event_t;
+
+/** Opcode for xcb_input_raw_button_press. */
+#define XCB_INPUT_RAW_BUTTON_PRESS 15
+
+/**
+ * @brief xcb_input_raw_button_press_event_t
+ **/
+typedef struct xcb_input_raw_button_press_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_input_device_id_t sourceid;
+ uint16_t valuators_len;
+ uint32_t flags;
+ uint8_t pad0[4];
+ uint32_t full_sequence;
+} xcb_input_raw_button_press_event_t;
+
+/** Opcode for xcb_input_raw_button_release. */
+#define XCB_INPUT_RAW_BUTTON_RELEASE 16
+
+typedef xcb_input_raw_button_press_event_t xcb_input_raw_button_release_event_t;
+
+/** Opcode for xcb_input_raw_motion. */
+#define XCB_INPUT_RAW_MOTION 17
+
+typedef xcb_input_raw_button_press_event_t xcb_input_raw_motion_event_t;
+
+typedef enum xcb_input_touch_event_flags_t {
+ XCB_INPUT_TOUCH_EVENT_FLAGS_TOUCH_PENDING_END = 65536,
+ XCB_INPUT_TOUCH_EVENT_FLAGS_TOUCH_EMULATING_POINTER = 131072
+} xcb_input_touch_event_flags_t;
+
+/** Opcode for xcb_input_touch_begin. */
+#define XCB_INPUT_TOUCH_BEGIN 18
+
+/**
+ * @brief xcb_input_touch_begin_event_t
+ **/
+typedef struct xcb_input_touch_begin_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t event_x;
+ xcb_input_fp1616_t event_y;
+ uint16_t buttons_len;
+ uint16_t valuators_len;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ uint32_t flags;
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+} xcb_input_touch_begin_event_t;
+
+/** Opcode for xcb_input_touch_update. */
+#define XCB_INPUT_TOUCH_UPDATE 19
+
+typedef xcb_input_touch_begin_event_t xcb_input_touch_update_event_t;
+
+/** Opcode for xcb_input_touch_end. */
+#define XCB_INPUT_TOUCH_END 20
+
+typedef xcb_input_touch_begin_event_t xcb_input_touch_end_event_t;
+
+typedef enum xcb_input_touch_ownership_flags_t {
+ XCB_INPUT_TOUCH_OWNERSHIP_FLAGS_NONE = 0
+} xcb_input_touch_ownership_flags_t;
+
+/** Opcode for xcb_input_touch_ownership. */
+#define XCB_INPUT_TOUCH_OWNERSHIP 21
+
+/**
+ * @brief xcb_input_touch_ownership_event_t
+ **/
+typedef struct xcb_input_touch_ownership_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t touchid;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ uint32_t flags;
+ uint8_t pad1[8];
+} xcb_input_touch_ownership_event_t;
+
+/** Opcode for xcb_input_raw_touch_begin. */
+#define XCB_INPUT_RAW_TOUCH_BEGIN 22
+
+/**
+ * @brief xcb_input_raw_touch_begin_event_t
+ **/
+typedef struct xcb_input_raw_touch_begin_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_input_device_id_t sourceid;
+ uint16_t valuators_len;
+ uint32_t flags;
+ uint8_t pad0[4];
+ uint32_t full_sequence;
+} xcb_input_raw_touch_begin_event_t;
+
+/** Opcode for xcb_input_raw_touch_update. */
+#define XCB_INPUT_RAW_TOUCH_UPDATE 23
+
+typedef xcb_input_raw_touch_begin_event_t xcb_input_raw_touch_update_event_t;
+
+/** Opcode for xcb_input_raw_touch_end. */
+#define XCB_INPUT_RAW_TOUCH_END 24
+
+typedef xcb_input_raw_touch_begin_event_t xcb_input_raw_touch_end_event_t;
+
+typedef enum xcb_input_barrier_flags_t {
+ XCB_INPUT_BARRIER_FLAGS_POINTER_RELEASED = 1,
+ XCB_INPUT_BARRIER_FLAGS_DEVICE_IS_GRABBED = 2
+} xcb_input_barrier_flags_t;
+
+/** Opcode for xcb_input_barrier_hit. */
+#define XCB_INPUT_BARRIER_HIT 25
+
+/**
+ * @brief xcb_input_barrier_hit_event_t
+ **/
+typedef struct xcb_input_barrier_hit_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t eventid;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_xfixes_barrier_t barrier;
+ uint32_t full_sequence;
+ uint32_t dtime;
+ uint32_t flags;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp3232_t dx;
+ xcb_input_fp3232_t dy;
+} xcb_input_barrier_hit_event_t;
+
+/** Opcode for xcb_input_barrier_leave. */
+#define XCB_INPUT_BARRIER_LEAVE 26
+
+typedef xcb_input_barrier_hit_event_t xcb_input_barrier_leave_event_t;
+
+typedef enum xcb_input_gesture_pinch_event_flags_t {
+ XCB_INPUT_GESTURE_PINCH_EVENT_FLAGS_GESTURE_PINCH_CANCELLED = 1
+} xcb_input_gesture_pinch_event_flags_t;
+
+/** Opcode for xcb_input_gesture_pinch_begin. */
+#define XCB_INPUT_GESTURE_PINCH_BEGIN 27
+
+/**
+ * @brief xcb_input_gesture_pinch_begin_event_t
+ **/
+typedef struct xcb_input_gesture_pinch_begin_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t event_x;
+ xcb_input_fp1616_t event_y;
+ xcb_input_fp1616_t delta_x;
+ xcb_input_fp1616_t delta_y;
+ xcb_input_fp1616_t delta_unaccel_x;
+ xcb_input_fp1616_t delta_unaccel_y;
+ xcb_input_fp1616_t scale;
+ xcb_input_fp1616_t delta_angle;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+ uint32_t flags;
+} xcb_input_gesture_pinch_begin_event_t;
+
+/** Opcode for xcb_input_gesture_pinch_update. */
+#define XCB_INPUT_GESTURE_PINCH_UPDATE 28
+
+typedef xcb_input_gesture_pinch_begin_event_t xcb_input_gesture_pinch_update_event_t;
+
+/** Opcode for xcb_input_gesture_pinch_end. */
+#define XCB_INPUT_GESTURE_PINCH_END 29
+
+typedef xcb_input_gesture_pinch_begin_event_t xcb_input_gesture_pinch_end_event_t;
+
+typedef enum xcb_input_gesture_swipe_event_flags_t {
+ XCB_INPUT_GESTURE_SWIPE_EVENT_FLAGS_GESTURE_SWIPE_CANCELLED = 1
+} xcb_input_gesture_swipe_event_flags_t;
+
+/** Opcode for xcb_input_gesture_swipe_begin. */
+#define XCB_INPUT_GESTURE_SWIPE_BEGIN 30
+
+/**
+ * @brief xcb_input_gesture_swipe_begin_event_t
+ **/
+typedef struct xcb_input_gesture_swipe_begin_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ xcb_input_device_id_t deviceid;
+ xcb_timestamp_t time;
+ uint32_t detail;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ uint32_t full_sequence;
+ xcb_input_fp1616_t root_x;
+ xcb_input_fp1616_t root_y;
+ xcb_input_fp1616_t event_x;
+ xcb_input_fp1616_t event_y;
+ xcb_input_fp1616_t delta_x;
+ xcb_input_fp1616_t delta_y;
+ xcb_input_fp1616_t delta_unaccel_x;
+ xcb_input_fp1616_t delta_unaccel_y;
+ xcb_input_device_id_t sourceid;
+ uint8_t pad0[2];
+ xcb_input_modifier_info_t mods;
+ xcb_input_group_info_t group;
+ uint32_t flags;
+} xcb_input_gesture_swipe_begin_event_t;
+
+/** Opcode for xcb_input_gesture_swipe_update. */
+#define XCB_INPUT_GESTURE_SWIPE_UPDATE 31
+
+typedef xcb_input_gesture_swipe_begin_event_t xcb_input_gesture_swipe_update_event_t;
+
+/** Opcode for xcb_input_gesture_swipe_end. */
+#define XCB_INPUT_GESTURE_SWIPE_END 32
+
+typedef xcb_input_gesture_swipe_begin_event_t xcb_input_gesture_swipe_end_event_t;
+
+/**
+ * @brief xcb_input_event_for_send_t
+ **/
+typedef union xcb_input_event_for_send_t {
+ xcb_input_device_valuator_event_t device_valuator;
+ xcb_input_device_key_press_event_t device_key_press;
+ xcb_input_device_key_release_event_t device_key_release;
+ xcb_input_device_button_press_event_t device_button_press;
+ xcb_input_device_button_release_event_t device_button_release;
+ xcb_input_device_motion_notify_event_t device_motion_notify;
+ xcb_input_device_focus_in_event_t device_focus_in;
+ xcb_input_device_focus_out_event_t device_focus_out;
+ xcb_input_proximity_in_event_t proximity_in;
+ xcb_input_proximity_out_event_t proximity_out;
+ xcb_input_device_state_notify_event_t device_state_notify;
+ xcb_input_device_mapping_notify_event_t device_mapping_notify;
+ xcb_input_change_device_notify_event_t change_device_notify;
+ xcb_input_device_key_state_notify_event_t device_key_state_notify;
+ xcb_input_device_button_state_notify_event_t device_button_state_notify;
+ xcb_input_device_presence_notify_event_t device_presence_notify;
+ xcb_raw_generic_event_t event_header;
+} xcb_input_event_for_send_t;
+
+/**
+ * @brief xcb_input_event_for_send_iterator_t
+ **/
+typedef struct xcb_input_event_for_send_iterator_t {
+ xcb_input_event_for_send_t *data;
+ int rem;
+ int index;
+} xcb_input_event_for_send_iterator_t;
+
+/** Opcode for xcb_input_send_extension_event. */
+#define XCB_INPUT_SEND_EXTENSION_EVENT 31
+
+/**
+ * @brief xcb_input_send_extension_event_request_t
+ **/
+typedef struct xcb_input_send_extension_event_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t destination;
+ uint8_t device_id;
+ uint8_t propagate;
+ uint16_t num_classes;
+ uint8_t num_events;
+ uint8_t pad0[3];
+} xcb_input_send_extension_event_request_t;
+
+/** Opcode for xcb_input_device. */
+#define XCB_INPUT_DEVICE 0
+
+/**
+ * @brief xcb_input_device_error_t
+ **/
+typedef struct xcb_input_device_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_input_device_error_t;
+
+/** Opcode for xcb_input_event. */
+#define XCB_INPUT_EVENT 1
+
+/**
+ * @brief xcb_input_event_error_t
+ **/
+typedef struct xcb_input_event_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_input_event_error_t;
+
+/** Opcode for xcb_input_mode. */
+#define XCB_INPUT_MODE 2
+
+/**
+ * @brief xcb_input_mode_error_t
+ **/
+typedef struct xcb_input_mode_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_input_mode_error_t;
+
+/** Opcode for xcb_input_device_busy. */
+#define XCB_INPUT_DEVICE_BUSY 3
+
+/**
+ * @brief xcb_input_device_busy_error_t
+ **/
+typedef struct xcb_input_device_busy_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_input_device_busy_error_t;
+
+/** Opcode for xcb_input_class. */
+#define XCB_INPUT_CLASS 4
+
+/**
+ * @brief xcb_input_class_error_t
+ **/
+typedef struct xcb_input_class_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_input_class_error_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_event_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_event_class_t)
+ */
+void
+xcb_input_event_class_next (xcb_input_event_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_event_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_event_class_end (xcb_input_event_class_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_key_code_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_key_code_t)
+ */
+void
+xcb_input_key_code_next (xcb_input_key_code_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_key_code_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_key_code_end (xcb_input_key_code_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_id_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_id_t)
+ */
+void
+xcb_input_device_id_next (xcb_input_device_id_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_id_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_id_end (xcb_input_device_id_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_fp1616_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_fp1616_t)
+ */
+void
+xcb_input_fp1616_next (xcb_input_fp1616_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_fp1616_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_fp1616_end (xcb_input_fp1616_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_fp3232_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_fp3232_t)
+ */
+void
+xcb_input_fp3232_next (xcb_input_fp3232_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_fp3232_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_fp3232_end (xcb_input_fp3232_iterator_t i);
+
+int
+xcb_input_get_extension_version_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_extension_version_cookie_t
+xcb_input_get_extension_version (xcb_connection_t *c,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_extension_version_cookie_t
+xcb_input_get_extension_version_unchecked (xcb_connection_t *c,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_extension_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_extension_version_reply_t *
+xcb_input_get_extension_version_reply (xcb_connection_t *c,
+ xcb_input_get_extension_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_info_t)
+ */
+void
+xcb_input_device_info_next (xcb_input_device_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_info_end (xcb_input_device_info_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_key_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_key_info_t)
+ */
+void
+xcb_input_key_info_next (xcb_input_key_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_key_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_key_info_end (xcb_input_key_info_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_button_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_button_info_t)
+ */
+void
+xcb_input_button_info_next (xcb_input_button_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_button_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_button_info_end (xcb_input_button_info_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_axis_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_axis_info_t)
+ */
+void
+xcb_input_axis_info_next (xcb_input_axis_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_axis_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_axis_info_end (xcb_input_axis_info_iterator_t i);
+
+int
+xcb_input_valuator_info_sizeof (const void *_buffer);
+
+xcb_input_axis_info_t *
+xcb_input_valuator_info_axes (const xcb_input_valuator_info_t *R);
+
+int
+xcb_input_valuator_info_axes_length (const xcb_input_valuator_info_t *R);
+
+xcb_input_axis_info_iterator_t
+xcb_input_valuator_info_axes_iterator (const xcb_input_valuator_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_valuator_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_valuator_info_t)
+ */
+void
+xcb_input_valuator_info_next (xcb_input_valuator_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_valuator_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_valuator_info_end (xcb_input_valuator_info_iterator_t i);
+
+xcb_input_axis_info_t *
+xcb_input_input_info_info_valuator_axes (const xcb_input_input_info_info_t *S);
+
+int
+xcb_input_input_info_info_valuator_axes_length (const xcb_input_input_info_t *R,
+ const xcb_input_input_info_info_t *S);
+
+xcb_input_axis_info_iterator_t
+xcb_input_input_info_info_valuator_axes_iterator (const xcb_input_input_info_t *R,
+ const xcb_input_input_info_info_t *S);
+
+int
+xcb_input_input_info_info_serialize (void **_buffer,
+ uint8_t class_id,
+ const xcb_input_input_info_info_t *_aux);
+
+int
+xcb_input_input_info_info_unpack (const void *_buffer,
+ uint8_t class_id,
+ xcb_input_input_info_info_t *_aux);
+
+int
+xcb_input_input_info_info_sizeof (const void *_buffer,
+ uint8_t class_id);
+
+int
+xcb_input_input_info_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_input_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_input_info_t)
+ */
+void
+xcb_input_input_info_next (xcb_input_input_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_input_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_input_info_end (xcb_input_input_info_iterator_t i);
+
+int
+xcb_input_device_name_sizeof (const void *_buffer);
+
+char *
+xcb_input_device_name_string (const xcb_input_device_name_t *R);
+
+int
+xcb_input_device_name_string_length (const xcb_input_device_name_t *R);
+
+xcb_generic_iterator_t
+xcb_input_device_name_string_end (const xcb_input_device_name_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_name_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_name_t)
+ */
+void
+xcb_input_device_name_next (xcb_input_device_name_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_name_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_name_end (xcb_input_device_name_iterator_t i);
+
+int
+xcb_input_list_input_devices_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_list_input_devices_cookie_t
+xcb_input_list_input_devices (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_list_input_devices_cookie_t
+xcb_input_list_input_devices_unchecked (xcb_connection_t *c);
+
+xcb_input_device_info_t *
+xcb_input_list_input_devices_devices (const xcb_input_list_input_devices_reply_t *R);
+
+int
+xcb_input_list_input_devices_devices_length (const xcb_input_list_input_devices_reply_t *R);
+
+xcb_input_device_info_iterator_t
+xcb_input_list_input_devices_devices_iterator (const xcb_input_list_input_devices_reply_t *R);
+
+int
+xcb_input_list_input_devices_infos_length (const xcb_input_list_input_devices_reply_t *R);
+
+xcb_input_input_info_iterator_t
+xcb_input_list_input_devices_infos_iterator (const xcb_input_list_input_devices_reply_t *R);
+
+int
+xcb_input_list_input_devices_names_length (const xcb_input_list_input_devices_reply_t *R);
+
+xcb_str_iterator_t
+xcb_input_list_input_devices_names_iterator (const xcb_input_list_input_devices_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_list_input_devices_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_list_input_devices_reply_t *
+xcb_input_list_input_devices_reply (xcb_connection_t *c,
+ xcb_input_list_input_devices_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_event_type_base_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_event_type_base_t)
+ */
+void
+xcb_input_event_type_base_next (xcb_input_event_type_base_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_event_type_base_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_event_type_base_end (xcb_input_event_type_base_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_input_class_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_input_class_info_t)
+ */
+void
+xcb_input_input_class_info_next (xcb_input_input_class_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_input_class_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_input_class_info_end (xcb_input_input_class_info_iterator_t i);
+
+int
+xcb_input_open_device_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_open_device_cookie_t
+xcb_input_open_device (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_open_device_cookie_t
+xcb_input_open_device_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+xcb_input_input_class_info_t *
+xcb_input_open_device_class_info (const xcb_input_open_device_reply_t *R);
+
+int
+xcb_input_open_device_class_info_length (const xcb_input_open_device_reply_t *R);
+
+xcb_input_input_class_info_iterator_t
+xcb_input_open_device_class_info_iterator (const xcb_input_open_device_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_open_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_open_device_reply_t *
+xcb_input_open_device_reply (xcb_connection_t *c,
+ xcb_input_open_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_close_device_checked (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_close_device (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_set_device_mode_cookie_t
+xcb_input_set_device_mode (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_set_device_mode_cookie_t
+xcb_input_set_device_mode_unchecked (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t mode);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_set_device_mode_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_set_device_mode_reply_t *
+xcb_input_set_device_mode_reply (xcb_connection_t *c,
+ xcb_input_set_device_mode_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_select_extension_event_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_select_extension_event_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t num_classes,
+ const xcb_input_event_class_t *classes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_select_extension_event (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t num_classes,
+ const xcb_input_event_class_t *classes);
+
+xcb_input_event_class_t *
+xcb_input_select_extension_event_classes (const xcb_input_select_extension_event_request_t *R);
+
+int
+xcb_input_select_extension_event_classes_length (const xcb_input_select_extension_event_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_select_extension_event_classes_end (const xcb_input_select_extension_event_request_t *R);
+
+int
+xcb_input_get_selected_extension_events_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_selected_extension_events_cookie_t
+xcb_input_get_selected_extension_events (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_selected_extension_events_cookie_t
+xcb_input_get_selected_extension_events_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_input_event_class_t *
+xcb_input_get_selected_extension_events_this_classes (const xcb_input_get_selected_extension_events_reply_t *R);
+
+int
+xcb_input_get_selected_extension_events_this_classes_length (const xcb_input_get_selected_extension_events_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_get_selected_extension_events_this_classes_end (const xcb_input_get_selected_extension_events_reply_t *R);
+
+xcb_input_event_class_t *
+xcb_input_get_selected_extension_events_all_classes (const xcb_input_get_selected_extension_events_reply_t *R);
+
+int
+xcb_input_get_selected_extension_events_all_classes_length (const xcb_input_get_selected_extension_events_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_get_selected_extension_events_all_classes_end (const xcb_input_get_selected_extension_events_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_selected_extension_events_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_selected_extension_events_reply_t *
+xcb_input_get_selected_extension_events_reply (xcb_connection_t *c,
+ xcb_input_get_selected_extension_events_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_change_device_dont_propagate_list_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_change_device_dont_propagate_list_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t num_classes,
+ uint8_t mode,
+ const xcb_input_event_class_t *classes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_change_device_dont_propagate_list (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t num_classes,
+ uint8_t mode,
+ const xcb_input_event_class_t *classes);
+
+xcb_input_event_class_t *
+xcb_input_change_device_dont_propagate_list_classes (const xcb_input_change_device_dont_propagate_list_request_t *R);
+
+int
+xcb_input_change_device_dont_propagate_list_classes_length (const xcb_input_change_device_dont_propagate_list_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_change_device_dont_propagate_list_classes_end (const xcb_input_change_device_dont_propagate_list_request_t *R);
+
+int
+xcb_input_get_device_dont_propagate_list_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_dont_propagate_list_cookie_t
+xcb_input_get_device_dont_propagate_list (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_dont_propagate_list_cookie_t
+xcb_input_get_device_dont_propagate_list_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_input_event_class_t *
+xcb_input_get_device_dont_propagate_list_classes (const xcb_input_get_device_dont_propagate_list_reply_t *R);
+
+int
+xcb_input_get_device_dont_propagate_list_classes_length (const xcb_input_get_device_dont_propagate_list_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_get_device_dont_propagate_list_classes_end (const xcb_input_get_device_dont_propagate_list_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_dont_propagate_list_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_dont_propagate_list_reply_t *
+xcb_input_get_device_dont_propagate_list_reply (xcb_connection_t *c,
+ xcb_input_get_device_dont_propagate_list_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_device_time_coord_sizeof (const void *_buffer,
+ uint8_t num_axes);
+
+int32_t *
+xcb_input_device_time_coord_axisvalues (const xcb_input_device_time_coord_t *R);
+
+int
+xcb_input_device_time_coord_axisvalues_length (const xcb_input_device_time_coord_t *R,
+ uint8_t num_axes);
+
+xcb_generic_iterator_t
+xcb_input_device_time_coord_axisvalues_end (const xcb_input_device_time_coord_t *R,
+ uint8_t num_axes);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_time_coord_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_time_coord_t)
+ */
+void
+xcb_input_device_time_coord_next (xcb_input_device_time_coord_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_time_coord_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_time_coord_end (xcb_input_device_time_coord_iterator_t i);
+
+int
+xcb_input_get_device_motion_events_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_motion_events_cookie_t
+xcb_input_get_device_motion_events (xcb_connection_t *c,
+ xcb_timestamp_t start,
+ xcb_timestamp_t stop,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_motion_events_cookie_t
+xcb_input_get_device_motion_events_unchecked (xcb_connection_t *c,
+ xcb_timestamp_t start,
+ xcb_timestamp_t stop,
+ uint8_t device_id);
+
+int
+xcb_input_get_device_motion_events_events_length (const xcb_input_get_device_motion_events_reply_t *R);
+
+xcb_input_device_time_coord_iterator_t
+xcb_input_get_device_motion_events_events_iterator (const xcb_input_get_device_motion_events_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_motion_events_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_motion_events_reply_t *
+xcb_input_get_device_motion_events_reply (xcb_connection_t *c,
+ xcb_input_get_device_motion_events_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_change_keyboard_device_cookie_t
+xcb_input_change_keyboard_device (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_change_keyboard_device_cookie_t
+xcb_input_change_keyboard_device_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_change_keyboard_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_change_keyboard_device_reply_t *
+xcb_input_change_keyboard_device_reply (xcb_connection_t *c,
+ xcb_input_change_keyboard_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_change_pointer_device_cookie_t
+xcb_input_change_pointer_device (xcb_connection_t *c,
+ uint8_t x_axis,
+ uint8_t y_axis,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_change_pointer_device_cookie_t
+xcb_input_change_pointer_device_unchecked (xcb_connection_t *c,
+ uint8_t x_axis,
+ uint8_t y_axis,
+ uint8_t device_id);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_change_pointer_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_change_pointer_device_reply_t *
+xcb_input_change_pointer_device_reply (xcb_connection_t *c,
+ xcb_input_change_pointer_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_grab_device_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_grab_device_cookie_t
+xcb_input_grab_device (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ xcb_timestamp_t time,
+ uint16_t num_classes,
+ uint8_t this_device_mode,
+ uint8_t other_device_mode,
+ uint8_t owner_events,
+ uint8_t device_id,
+ const xcb_input_event_class_t *classes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_grab_device_cookie_t
+xcb_input_grab_device_unchecked (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ xcb_timestamp_t time,
+ uint16_t num_classes,
+ uint8_t this_device_mode,
+ uint8_t other_device_mode,
+ uint8_t owner_events,
+ uint8_t device_id,
+ const xcb_input_event_class_t *classes);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_grab_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_grab_device_reply_t *
+xcb_input_grab_device_reply (xcb_connection_t *c,
+ xcb_input_grab_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_ungrab_device_checked (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_ungrab_device (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ uint8_t device_id);
+
+int
+xcb_input_grab_device_key_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_grab_device_key_checked (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint16_t num_classes,
+ uint16_t modifiers,
+ uint8_t modifier_device,
+ uint8_t grabbed_device,
+ uint8_t key,
+ uint8_t this_device_mode,
+ uint8_t other_device_mode,
+ uint8_t owner_events,
+ const xcb_input_event_class_t *classes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_grab_device_key (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint16_t num_classes,
+ uint16_t modifiers,
+ uint8_t modifier_device,
+ uint8_t grabbed_device,
+ uint8_t key,
+ uint8_t this_device_mode,
+ uint8_t other_device_mode,
+ uint8_t owner_events,
+ const xcb_input_event_class_t *classes);
+
+xcb_input_event_class_t *
+xcb_input_grab_device_key_classes (const xcb_input_grab_device_key_request_t *R);
+
+int
+xcb_input_grab_device_key_classes_length (const xcb_input_grab_device_key_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_grab_device_key_classes_end (const xcb_input_grab_device_key_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_ungrab_device_key_checked (xcb_connection_t *c,
+ xcb_window_t grabWindow,
+ uint16_t modifiers,
+ uint8_t modifier_device,
+ uint8_t key,
+ uint8_t grabbed_device);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_ungrab_device_key (xcb_connection_t *c,
+ xcb_window_t grabWindow,
+ uint16_t modifiers,
+ uint8_t modifier_device,
+ uint8_t key,
+ uint8_t grabbed_device);
+
+int
+xcb_input_grab_device_button_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_grab_device_button_checked (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint8_t grabbed_device,
+ uint8_t modifier_device,
+ uint16_t num_classes,
+ uint16_t modifiers,
+ uint8_t this_device_mode,
+ uint8_t other_device_mode,
+ uint8_t button,
+ uint8_t owner_events,
+ const xcb_input_event_class_t *classes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_grab_device_button (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint8_t grabbed_device,
+ uint8_t modifier_device,
+ uint16_t num_classes,
+ uint16_t modifiers,
+ uint8_t this_device_mode,
+ uint8_t other_device_mode,
+ uint8_t button,
+ uint8_t owner_events,
+ const xcb_input_event_class_t *classes);
+
+xcb_input_event_class_t *
+xcb_input_grab_device_button_classes (const xcb_input_grab_device_button_request_t *R);
+
+int
+xcb_input_grab_device_button_classes_length (const xcb_input_grab_device_button_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_grab_device_button_classes_end (const xcb_input_grab_device_button_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_ungrab_device_button_checked (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint16_t modifiers,
+ uint8_t modifier_device,
+ uint8_t button,
+ uint8_t grabbed_device);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_ungrab_device_button (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint16_t modifiers,
+ uint8_t modifier_device,
+ uint8_t button,
+ uint8_t grabbed_device);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_allow_device_events_checked (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ uint8_t mode,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_allow_device_events (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ uint8_t mode,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_focus_cookie_t
+xcb_input_get_device_focus (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_focus_cookie_t
+xcb_input_get_device_focus_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_focus_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_focus_reply_t *
+xcb_input_get_device_focus_reply (xcb_connection_t *c,
+ xcb_input_get_device_focus_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_set_device_focus_checked (xcb_connection_t *c,
+ xcb_window_t focus,
+ xcb_timestamp_t time,
+ uint8_t revert_to,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_set_device_focus (xcb_connection_t *c,
+ xcb_window_t focus,
+ xcb_timestamp_t time,
+ uint8_t revert_to,
+ uint8_t device_id);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_kbd_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_kbd_feedback_state_t)
+ */
+void
+xcb_input_kbd_feedback_state_next (xcb_input_kbd_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_kbd_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_kbd_feedback_state_end (xcb_input_kbd_feedback_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_ptr_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_ptr_feedback_state_t)
+ */
+void
+xcb_input_ptr_feedback_state_next (xcb_input_ptr_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_ptr_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_ptr_feedback_state_end (xcb_input_ptr_feedback_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_integer_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_integer_feedback_state_t)
+ */
+void
+xcb_input_integer_feedback_state_next (xcb_input_integer_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_integer_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_integer_feedback_state_end (xcb_input_integer_feedback_state_iterator_t i);
+
+int
+xcb_input_string_feedback_state_sizeof (const void *_buffer);
+
+xcb_keysym_t *
+xcb_input_string_feedback_state_keysyms (const xcb_input_string_feedback_state_t *R);
+
+int
+xcb_input_string_feedback_state_keysyms_length (const xcb_input_string_feedback_state_t *R);
+
+xcb_generic_iterator_t
+xcb_input_string_feedback_state_keysyms_end (const xcb_input_string_feedback_state_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_string_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_string_feedback_state_t)
+ */
+void
+xcb_input_string_feedback_state_next (xcb_input_string_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_string_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_string_feedback_state_end (xcb_input_string_feedback_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_bell_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_bell_feedback_state_t)
+ */
+void
+xcb_input_bell_feedback_state_next (xcb_input_bell_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_bell_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_bell_feedback_state_end (xcb_input_bell_feedback_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_led_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_led_feedback_state_t)
+ */
+void
+xcb_input_led_feedback_state_next (xcb_input_led_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_led_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_led_feedback_state_end (xcb_input_led_feedback_state_iterator_t i);
+
+xcb_keysym_t *
+xcb_input_feedback_state_data_string_keysyms (const xcb_input_feedback_state_data_t *S);
+
+int
+xcb_input_feedback_state_data_string_keysyms_length (const xcb_input_feedback_state_t *R,
+ const xcb_input_feedback_state_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_feedback_state_data_string_keysyms_end (const xcb_input_feedback_state_t *R,
+ const xcb_input_feedback_state_data_t *S);
+
+int
+xcb_input_feedback_state_data_serialize (void **_buffer,
+ uint8_t class_id,
+ const xcb_input_feedback_state_data_t *_aux);
+
+int
+xcb_input_feedback_state_data_unpack (const void *_buffer,
+ uint8_t class_id,
+ xcb_input_feedback_state_data_t *_aux);
+
+int
+xcb_input_feedback_state_data_sizeof (const void *_buffer,
+ uint8_t class_id);
+
+int
+xcb_input_feedback_state_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_feedback_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_feedback_state_t)
+ */
+void
+xcb_input_feedback_state_next (xcb_input_feedback_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_feedback_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_feedback_state_end (xcb_input_feedback_state_iterator_t i);
+
+int
+xcb_input_get_feedback_control_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_feedback_control_cookie_t
+xcb_input_get_feedback_control (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_feedback_control_cookie_t
+xcb_input_get_feedback_control_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+int
+xcb_input_get_feedback_control_feedbacks_length (const xcb_input_get_feedback_control_reply_t *R);
+
+xcb_input_feedback_state_iterator_t
+xcb_input_get_feedback_control_feedbacks_iterator (const xcb_input_get_feedback_control_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_feedback_control_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_feedback_control_reply_t *
+xcb_input_get_feedback_control_reply (xcb_connection_t *c,
+ xcb_input_get_feedback_control_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_kbd_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_kbd_feedback_ctl_t)
+ */
+void
+xcb_input_kbd_feedback_ctl_next (xcb_input_kbd_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_kbd_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_kbd_feedback_ctl_end (xcb_input_kbd_feedback_ctl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_ptr_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_ptr_feedback_ctl_t)
+ */
+void
+xcb_input_ptr_feedback_ctl_next (xcb_input_ptr_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_ptr_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_ptr_feedback_ctl_end (xcb_input_ptr_feedback_ctl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_integer_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_integer_feedback_ctl_t)
+ */
+void
+xcb_input_integer_feedback_ctl_next (xcb_input_integer_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_integer_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_integer_feedback_ctl_end (xcb_input_integer_feedback_ctl_iterator_t i);
+
+int
+xcb_input_string_feedback_ctl_sizeof (const void *_buffer);
+
+xcb_keysym_t *
+xcb_input_string_feedback_ctl_keysyms (const xcb_input_string_feedback_ctl_t *R);
+
+int
+xcb_input_string_feedback_ctl_keysyms_length (const xcb_input_string_feedback_ctl_t *R);
+
+xcb_generic_iterator_t
+xcb_input_string_feedback_ctl_keysyms_end (const xcb_input_string_feedback_ctl_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_string_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_string_feedback_ctl_t)
+ */
+void
+xcb_input_string_feedback_ctl_next (xcb_input_string_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_string_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_string_feedback_ctl_end (xcb_input_string_feedback_ctl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_bell_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_bell_feedback_ctl_t)
+ */
+void
+xcb_input_bell_feedback_ctl_next (xcb_input_bell_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_bell_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_bell_feedback_ctl_end (xcb_input_bell_feedback_ctl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_led_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_led_feedback_ctl_t)
+ */
+void
+xcb_input_led_feedback_ctl_next (xcb_input_led_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_led_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_led_feedback_ctl_end (xcb_input_led_feedback_ctl_iterator_t i);
+
+xcb_keysym_t *
+xcb_input_feedback_ctl_data_string_keysyms (const xcb_input_feedback_ctl_data_t *S);
+
+int
+xcb_input_feedback_ctl_data_string_keysyms_length (const xcb_input_feedback_ctl_t *R,
+ const xcb_input_feedback_ctl_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_feedback_ctl_data_string_keysyms_end (const xcb_input_feedback_ctl_t *R,
+ const xcb_input_feedback_ctl_data_t *S);
+
+int
+xcb_input_feedback_ctl_data_serialize (void **_buffer,
+ uint8_t class_id,
+ const xcb_input_feedback_ctl_data_t *_aux);
+
+int
+xcb_input_feedback_ctl_data_unpack (const void *_buffer,
+ uint8_t class_id,
+ xcb_input_feedback_ctl_data_t *_aux);
+
+int
+xcb_input_feedback_ctl_data_sizeof (const void *_buffer,
+ uint8_t class_id);
+
+int
+xcb_input_feedback_ctl_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_feedback_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_feedback_ctl_t)
+ */
+void
+xcb_input_feedback_ctl_next (xcb_input_feedback_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_feedback_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_feedback_ctl_end (xcb_input_feedback_ctl_iterator_t i);
+
+int
+xcb_input_change_feedback_control_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_change_feedback_control_checked (xcb_connection_t *c,
+ uint32_t mask,
+ uint8_t device_id,
+ uint8_t feedback_id,
+ xcb_input_feedback_ctl_t *feedback);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_change_feedback_control (xcb_connection_t *c,
+ uint32_t mask,
+ uint8_t device_id,
+ uint8_t feedback_id,
+ xcb_input_feedback_ctl_t *feedback);
+
+xcb_input_feedback_ctl_t *
+xcb_input_change_feedback_control_feedback (const xcb_input_change_feedback_control_request_t *R);
+
+int
+xcb_input_get_device_key_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_key_mapping_cookie_t
+xcb_input_get_device_key_mapping (xcb_connection_t *c,
+ uint8_t device_id,
+ xcb_input_key_code_t first_keycode,
+ uint8_t count);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_key_mapping_cookie_t
+xcb_input_get_device_key_mapping_unchecked (xcb_connection_t *c,
+ uint8_t device_id,
+ xcb_input_key_code_t first_keycode,
+ uint8_t count);
+
+xcb_keysym_t *
+xcb_input_get_device_key_mapping_keysyms (const xcb_input_get_device_key_mapping_reply_t *R);
+
+int
+xcb_input_get_device_key_mapping_keysyms_length (const xcb_input_get_device_key_mapping_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_get_device_key_mapping_keysyms_end (const xcb_input_get_device_key_mapping_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_key_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_key_mapping_reply_t *
+xcb_input_get_device_key_mapping_reply (xcb_connection_t *c,
+ xcb_input_get_device_key_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_change_device_key_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_change_device_key_mapping_checked (xcb_connection_t *c,
+ uint8_t device_id,
+ xcb_input_key_code_t first_keycode,
+ uint8_t keysyms_per_keycode,
+ uint8_t keycode_count,
+ const xcb_keysym_t *keysyms);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_change_device_key_mapping (xcb_connection_t *c,
+ uint8_t device_id,
+ xcb_input_key_code_t first_keycode,
+ uint8_t keysyms_per_keycode,
+ uint8_t keycode_count,
+ const xcb_keysym_t *keysyms);
+
+xcb_keysym_t *
+xcb_input_change_device_key_mapping_keysyms (const xcb_input_change_device_key_mapping_request_t *R);
+
+int
+xcb_input_change_device_key_mapping_keysyms_length (const xcb_input_change_device_key_mapping_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_change_device_key_mapping_keysyms_end (const xcb_input_change_device_key_mapping_request_t *R);
+
+int
+xcb_input_get_device_modifier_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_modifier_mapping_cookie_t
+xcb_input_get_device_modifier_mapping (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_modifier_mapping_cookie_t
+xcb_input_get_device_modifier_mapping_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+uint8_t *
+xcb_input_get_device_modifier_mapping_keymaps (const xcb_input_get_device_modifier_mapping_reply_t *R);
+
+int
+xcb_input_get_device_modifier_mapping_keymaps_length (const xcb_input_get_device_modifier_mapping_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_get_device_modifier_mapping_keymaps_end (const xcb_input_get_device_modifier_mapping_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_modifier_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_modifier_mapping_reply_t *
+xcb_input_get_device_modifier_mapping_reply (xcb_connection_t *c,
+ xcb_input_get_device_modifier_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_set_device_modifier_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_set_device_modifier_mapping_cookie_t
+xcb_input_set_device_modifier_mapping (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t keycodes_per_modifier,
+ const uint8_t *keymaps);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_set_device_modifier_mapping_cookie_t
+xcb_input_set_device_modifier_mapping_unchecked (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t keycodes_per_modifier,
+ const uint8_t *keymaps);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_set_device_modifier_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_set_device_modifier_mapping_reply_t *
+xcb_input_set_device_modifier_mapping_reply (xcb_connection_t *c,
+ xcb_input_set_device_modifier_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_get_device_button_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_button_mapping_cookie_t
+xcb_input_get_device_button_mapping (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_button_mapping_cookie_t
+xcb_input_get_device_button_mapping_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+uint8_t *
+xcb_input_get_device_button_mapping_map (const xcb_input_get_device_button_mapping_reply_t *R);
+
+int
+xcb_input_get_device_button_mapping_map_length (const xcb_input_get_device_button_mapping_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_get_device_button_mapping_map_end (const xcb_input_get_device_button_mapping_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_button_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_button_mapping_reply_t *
+xcb_input_get_device_button_mapping_reply (xcb_connection_t *c,
+ xcb_input_get_device_button_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_set_device_button_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_set_device_button_mapping_cookie_t
+xcb_input_set_device_button_mapping (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t map_size,
+ const uint8_t *map);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_set_device_button_mapping_cookie_t
+xcb_input_set_device_button_mapping_unchecked (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t map_size,
+ const uint8_t *map);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_set_device_button_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_set_device_button_mapping_reply_t *
+xcb_input_set_device_button_mapping_reply (xcb_connection_t *c,
+ xcb_input_set_device_button_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_key_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_key_state_t)
+ */
+void
+xcb_input_key_state_next (xcb_input_key_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_key_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_key_state_end (xcb_input_key_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_button_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_button_state_t)
+ */
+void
+xcb_input_button_state_next (xcb_input_button_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_button_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_button_state_end (xcb_input_button_state_iterator_t i);
+
+int
+xcb_input_valuator_state_sizeof (const void *_buffer);
+
+int32_t *
+xcb_input_valuator_state_valuators (const xcb_input_valuator_state_t *R);
+
+int
+xcb_input_valuator_state_valuators_length (const xcb_input_valuator_state_t *R);
+
+xcb_generic_iterator_t
+xcb_input_valuator_state_valuators_end (const xcb_input_valuator_state_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_valuator_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_valuator_state_t)
+ */
+void
+xcb_input_valuator_state_next (xcb_input_valuator_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_valuator_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_valuator_state_end (xcb_input_valuator_state_iterator_t i);
+
+int32_t *
+xcb_input_input_state_data_valuator_valuators (const xcb_input_input_state_data_t *S);
+
+int
+xcb_input_input_state_data_valuator_valuators_length (const xcb_input_input_state_t *R,
+ const xcb_input_input_state_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_input_state_data_valuator_valuators_end (const xcb_input_input_state_t *R,
+ const xcb_input_input_state_data_t *S);
+
+int
+xcb_input_input_state_data_serialize (void **_buffer,
+ uint8_t class_id,
+ const xcb_input_input_state_data_t *_aux);
+
+int
+xcb_input_input_state_data_unpack (const void *_buffer,
+ uint8_t class_id,
+ xcb_input_input_state_data_t *_aux);
+
+int
+xcb_input_input_state_data_sizeof (const void *_buffer,
+ uint8_t class_id);
+
+int
+xcb_input_input_state_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_input_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_input_state_t)
+ */
+void
+xcb_input_input_state_next (xcb_input_input_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_input_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_input_state_end (xcb_input_input_state_iterator_t i);
+
+int
+xcb_input_query_device_state_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_query_device_state_cookie_t
+xcb_input_query_device_state (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_query_device_state_cookie_t
+xcb_input_query_device_state_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+int
+xcb_input_query_device_state_classes_length (const xcb_input_query_device_state_reply_t *R);
+
+xcb_input_input_state_iterator_t
+xcb_input_query_device_state_classes_iterator (const xcb_input_query_device_state_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_query_device_state_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_query_device_state_reply_t *
+xcb_input_query_device_state_reply (xcb_connection_t *c,
+ xcb_input_query_device_state_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_device_bell_checked (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t feedback_id,
+ uint8_t feedback_class,
+ int8_t percent);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_device_bell (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t feedback_id,
+ uint8_t feedback_class,
+ int8_t percent);
+
+int
+xcb_input_set_device_valuators_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_set_device_valuators_cookie_t
+xcb_input_set_device_valuators (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t first_valuator,
+ uint8_t num_valuators,
+ const int32_t *valuators);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_set_device_valuators_cookie_t
+xcb_input_set_device_valuators_unchecked (xcb_connection_t *c,
+ uint8_t device_id,
+ uint8_t first_valuator,
+ uint8_t num_valuators,
+ const int32_t *valuators);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_set_device_valuators_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_set_device_valuators_reply_t *
+xcb_input_set_device_valuators_reply (xcb_connection_t *c,
+ xcb_input_set_device_valuators_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_device_resolution_state_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_device_resolution_state_resolution_values (const xcb_input_device_resolution_state_t *R);
+
+int
+xcb_input_device_resolution_state_resolution_values_length (const xcb_input_device_resolution_state_t *R);
+
+xcb_generic_iterator_t
+xcb_input_device_resolution_state_resolution_values_end (const xcb_input_device_resolution_state_t *R);
+
+uint32_t *
+xcb_input_device_resolution_state_resolution_min (const xcb_input_device_resolution_state_t *R);
+
+int
+xcb_input_device_resolution_state_resolution_min_length (const xcb_input_device_resolution_state_t *R);
+
+xcb_generic_iterator_t
+xcb_input_device_resolution_state_resolution_min_end (const xcb_input_device_resolution_state_t *R);
+
+uint32_t *
+xcb_input_device_resolution_state_resolution_max (const xcb_input_device_resolution_state_t *R);
+
+int
+xcb_input_device_resolution_state_resolution_max_length (const xcb_input_device_resolution_state_t *R);
+
+xcb_generic_iterator_t
+xcb_input_device_resolution_state_resolution_max_end (const xcb_input_device_resolution_state_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_resolution_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_resolution_state_t)
+ */
+void
+xcb_input_device_resolution_state_next (xcb_input_device_resolution_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_resolution_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_resolution_state_end (xcb_input_device_resolution_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_abs_calib_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_abs_calib_state_t)
+ */
+void
+xcb_input_device_abs_calib_state_next (xcb_input_device_abs_calib_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_abs_calib_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_abs_calib_state_end (xcb_input_device_abs_calib_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_abs_area_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_abs_area_state_t)
+ */
+void
+xcb_input_device_abs_area_state_next (xcb_input_device_abs_area_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_abs_area_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_abs_area_state_end (xcb_input_device_abs_area_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_core_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_core_state_t)
+ */
+void
+xcb_input_device_core_state_next (xcb_input_device_core_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_core_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_core_state_end (xcb_input_device_core_state_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_enable_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_enable_state_t)
+ */
+void
+xcb_input_device_enable_state_next (xcb_input_device_enable_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_enable_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_enable_state_end (xcb_input_device_enable_state_iterator_t i);
+
+uint32_t *
+xcb_input_device_state_data_resolution_resolution_values (const xcb_input_device_state_data_t *S);
+
+int
+xcb_input_device_state_data_resolution_resolution_values_length (const xcb_input_device_state_t *R,
+ const xcb_input_device_state_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_state_data_resolution_resolution_values_end (const xcb_input_device_state_t *R,
+ const xcb_input_device_state_data_t *S);
+
+uint32_t *
+xcb_input_device_state_data_resolution_resolution_min (const xcb_input_device_state_data_t *S);
+
+int
+xcb_input_device_state_data_resolution_resolution_min_length (const xcb_input_device_state_t *R,
+ const xcb_input_device_state_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_state_data_resolution_resolution_min_end (const xcb_input_device_state_t *R,
+ const xcb_input_device_state_data_t *S);
+
+uint32_t *
+xcb_input_device_state_data_resolution_resolution_max (const xcb_input_device_state_data_t *S);
+
+int
+xcb_input_device_state_data_resolution_resolution_max_length (const xcb_input_device_state_t *R,
+ const xcb_input_device_state_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_state_data_resolution_resolution_max_end (const xcb_input_device_state_t *R,
+ const xcb_input_device_state_data_t *S);
+
+int
+xcb_input_device_state_data_serialize (void **_buffer,
+ uint16_t control_id,
+ const xcb_input_device_state_data_t *_aux);
+
+int
+xcb_input_device_state_data_unpack (const void *_buffer,
+ uint16_t control_id,
+ xcb_input_device_state_data_t *_aux);
+
+int
+xcb_input_device_state_data_sizeof (const void *_buffer,
+ uint16_t control_id);
+
+int
+xcb_input_device_state_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_state_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_state_t)
+ */
+void
+xcb_input_device_state_next (xcb_input_device_state_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_state_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_state_end (xcb_input_device_state_iterator_t i);
+
+int
+xcb_input_get_device_control_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_control_cookie_t
+xcb_input_get_device_control (xcb_connection_t *c,
+ uint16_t control_id,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_control_cookie_t
+xcb_input_get_device_control_unchecked (xcb_connection_t *c,
+ uint16_t control_id,
+ uint8_t device_id);
+
+xcb_input_device_state_t *
+xcb_input_get_device_control_control (const xcb_input_get_device_control_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_control_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_control_reply_t *
+xcb_input_get_device_control_reply (xcb_connection_t *c,
+ xcb_input_get_device_control_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_device_resolution_ctl_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_device_resolution_ctl_resolution_values (const xcb_input_device_resolution_ctl_t *R);
+
+int
+xcb_input_device_resolution_ctl_resolution_values_length (const xcb_input_device_resolution_ctl_t *R);
+
+xcb_generic_iterator_t
+xcb_input_device_resolution_ctl_resolution_values_end (const xcb_input_device_resolution_ctl_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_resolution_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_resolution_ctl_t)
+ */
+void
+xcb_input_device_resolution_ctl_next (xcb_input_device_resolution_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_resolution_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_resolution_ctl_end (xcb_input_device_resolution_ctl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_abs_calib_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_abs_calib_ctl_t)
+ */
+void
+xcb_input_device_abs_calib_ctl_next (xcb_input_device_abs_calib_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_abs_calib_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_abs_calib_ctl_end (xcb_input_device_abs_calib_ctl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_abs_area_ctrl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_abs_area_ctrl_t)
+ */
+void
+xcb_input_device_abs_area_ctrl_next (xcb_input_device_abs_area_ctrl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_abs_area_ctrl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_abs_area_ctrl_end (xcb_input_device_abs_area_ctrl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_core_ctrl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_core_ctrl_t)
+ */
+void
+xcb_input_device_core_ctrl_next (xcb_input_device_core_ctrl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_core_ctrl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_core_ctrl_end (xcb_input_device_core_ctrl_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_enable_ctrl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_enable_ctrl_t)
+ */
+void
+xcb_input_device_enable_ctrl_next (xcb_input_device_enable_ctrl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_enable_ctrl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_enable_ctrl_end (xcb_input_device_enable_ctrl_iterator_t i);
+
+uint32_t *
+xcb_input_device_ctl_data_resolution_resolution_values (const xcb_input_device_ctl_data_t *S);
+
+int
+xcb_input_device_ctl_data_resolution_resolution_values_length (const xcb_input_device_ctl_t *R,
+ const xcb_input_device_ctl_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_ctl_data_resolution_resolution_values_end (const xcb_input_device_ctl_t *R,
+ const xcb_input_device_ctl_data_t *S);
+
+int
+xcb_input_device_ctl_data_serialize (void **_buffer,
+ uint16_t control_id,
+ const xcb_input_device_ctl_data_t *_aux);
+
+int
+xcb_input_device_ctl_data_unpack (const void *_buffer,
+ uint16_t control_id,
+ xcb_input_device_ctl_data_t *_aux);
+
+int
+xcb_input_device_ctl_data_sizeof (const void *_buffer,
+ uint16_t control_id);
+
+int
+xcb_input_device_ctl_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_ctl_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_ctl_t)
+ */
+void
+xcb_input_device_ctl_next (xcb_input_device_ctl_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_ctl_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_ctl_end (xcb_input_device_ctl_iterator_t i);
+
+int
+xcb_input_change_device_control_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_change_device_control_cookie_t
+xcb_input_change_device_control (xcb_connection_t *c,
+ uint16_t control_id,
+ uint8_t device_id,
+ xcb_input_device_ctl_t *control);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_change_device_control_cookie_t
+xcb_input_change_device_control_unchecked (xcb_connection_t *c,
+ uint16_t control_id,
+ uint8_t device_id,
+ xcb_input_device_ctl_t *control);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_change_device_control_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_change_device_control_reply_t *
+xcb_input_change_device_control_reply (xcb_connection_t *c,
+ xcb_input_change_device_control_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_list_device_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_list_device_properties_cookie_t
+xcb_input_list_device_properties (xcb_connection_t *c,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_list_device_properties_cookie_t
+xcb_input_list_device_properties_unchecked (xcb_connection_t *c,
+ uint8_t device_id);
+
+xcb_atom_t *
+xcb_input_list_device_properties_atoms (const xcb_input_list_device_properties_reply_t *R);
+
+int
+xcb_input_list_device_properties_atoms_length (const xcb_input_list_device_properties_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_list_device_properties_atoms_end (const xcb_input_list_device_properties_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_list_device_properties_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_list_device_properties_reply_t *
+xcb_input_list_device_properties_reply (xcb_connection_t *c,
+ xcb_input_list_device_properties_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+uint8_t *
+xcb_input_change_device_property_items_data_8 (const xcb_input_change_device_property_items_t *S);
+
+int
+xcb_input_change_device_property_items_data_8_length (const xcb_input_change_device_property_request_t *R,
+ const xcb_input_change_device_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_change_device_property_items_data_8_end (const xcb_input_change_device_property_request_t *R,
+ const xcb_input_change_device_property_items_t *S);
+
+uint16_t *
+xcb_input_change_device_property_items_data_16 (const xcb_input_change_device_property_items_t *S);
+
+int
+xcb_input_change_device_property_items_data_16_length (const xcb_input_change_device_property_request_t *R,
+ const xcb_input_change_device_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_change_device_property_items_data_16_end (const xcb_input_change_device_property_request_t *R,
+ const xcb_input_change_device_property_items_t *S);
+
+uint32_t *
+xcb_input_change_device_property_items_data_32 (const xcb_input_change_device_property_items_t *S);
+
+int
+xcb_input_change_device_property_items_data_32_length (const xcb_input_change_device_property_request_t *R,
+ const xcb_input_change_device_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_change_device_property_items_data_32_end (const xcb_input_change_device_property_request_t *R,
+ const xcb_input_change_device_property_items_t *S);
+
+int
+xcb_input_change_device_property_items_serialize (void **_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ const xcb_input_change_device_property_items_t *_aux);
+
+int
+xcb_input_change_device_property_items_unpack (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ xcb_input_change_device_property_items_t *_aux);
+
+int
+xcb_input_change_device_property_items_sizeof (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format);
+
+int
+xcb_input_change_device_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_change_device_property_checked (xcb_connection_t *c,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t device_id,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_items,
+ const void *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_change_device_property (xcb_connection_t *c,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t device_id,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_items,
+ const void *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_change_device_property_aux_checked (xcb_connection_t *c,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t device_id,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_items,
+ const xcb_input_change_device_property_items_t *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_change_device_property_aux (xcb_connection_t *c,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t device_id,
+ uint8_t format,
+ uint8_t mode,
+ uint32_t num_items,
+ const xcb_input_change_device_property_items_t *items);
+
+void *
+xcb_input_change_device_property_items (const xcb_input_change_device_property_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_delete_device_property_checked (xcb_connection_t *c,
+ xcb_atom_t property,
+ uint8_t device_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_delete_device_property (xcb_connection_t *c,
+ xcb_atom_t property,
+ uint8_t device_id);
+
+uint8_t *
+xcb_input_get_device_property_items_data_8 (const xcb_input_get_device_property_items_t *S);
+
+int
+xcb_input_get_device_property_items_data_8_length (const xcb_input_get_device_property_reply_t *R,
+ const xcb_input_get_device_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_get_device_property_items_data_8_end (const xcb_input_get_device_property_reply_t *R,
+ const xcb_input_get_device_property_items_t *S);
+
+uint16_t *
+xcb_input_get_device_property_items_data_16 (const xcb_input_get_device_property_items_t *S);
+
+int
+xcb_input_get_device_property_items_data_16_length (const xcb_input_get_device_property_reply_t *R,
+ const xcb_input_get_device_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_get_device_property_items_data_16_end (const xcb_input_get_device_property_reply_t *R,
+ const xcb_input_get_device_property_items_t *S);
+
+uint32_t *
+xcb_input_get_device_property_items_data_32 (const xcb_input_get_device_property_items_t *S);
+
+int
+xcb_input_get_device_property_items_data_32_length (const xcb_input_get_device_property_reply_t *R,
+ const xcb_input_get_device_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_get_device_property_items_data_32_end (const xcb_input_get_device_property_reply_t *R,
+ const xcb_input_get_device_property_items_t *S);
+
+int
+xcb_input_get_device_property_items_serialize (void **_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ const xcb_input_get_device_property_items_t *_aux);
+
+int
+xcb_input_get_device_property_items_unpack (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ xcb_input_get_device_property_items_t *_aux);
+
+int
+xcb_input_get_device_property_items_sizeof (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format);
+
+int
+xcb_input_get_device_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_get_device_property_cookie_t
+xcb_input_get_device_property (xcb_connection_t *c,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t offset,
+ uint32_t len,
+ uint8_t device_id,
+ uint8_t _delete);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_get_device_property_cookie_t
+xcb_input_get_device_property_unchecked (xcb_connection_t *c,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t offset,
+ uint32_t len,
+ uint8_t device_id,
+ uint8_t _delete);
+
+void *
+xcb_input_get_device_property_items (const xcb_input_get_device_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_get_device_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_get_device_property_reply_t *
+xcb_input_get_device_property_reply (xcb_connection_t *c,
+ xcb_input_get_device_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_group_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_group_info_t)
+ */
+void
+xcb_input_group_info_next (xcb_input_group_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_group_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_group_info_end (xcb_input_group_info_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_modifier_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_modifier_info_t)
+ */
+void
+xcb_input_modifier_info_next (xcb_input_modifier_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_modifier_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_modifier_info_end (xcb_input_modifier_info_iterator_t i);
+
+int
+xcb_input_xi_query_pointer_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_query_pointer_cookie_t
+xcb_input_xi_query_pointer (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_query_pointer_cookie_t
+xcb_input_xi_query_pointer_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_input_device_id_t deviceid);
+
+uint32_t *
+xcb_input_xi_query_pointer_buttons (const xcb_input_xi_query_pointer_reply_t *R);
+
+int
+xcb_input_xi_query_pointer_buttons_length (const xcb_input_xi_query_pointer_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_xi_query_pointer_buttons_end (const xcb_input_xi_query_pointer_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_query_pointer_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_query_pointer_reply_t *
+xcb_input_xi_query_pointer_reply (xcb_connection_t *c,
+ xcb_input_xi_query_pointer_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_warp_pointer_checked (xcb_connection_t *c,
+ xcb_window_t src_win,
+ xcb_window_t dst_win,
+ xcb_input_fp1616_t src_x,
+ xcb_input_fp1616_t src_y,
+ uint16_t src_width,
+ uint16_t src_height,
+ xcb_input_fp1616_t dst_x,
+ xcb_input_fp1616_t dst_y,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_warp_pointer (xcb_connection_t *c,
+ xcb_window_t src_win,
+ xcb_window_t dst_win,
+ xcb_input_fp1616_t src_x,
+ xcb_input_fp1616_t src_y,
+ uint16_t src_width,
+ uint16_t src_height,
+ xcb_input_fp1616_t dst_x,
+ xcb_input_fp1616_t dst_y,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_cursor_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_cursor_t cursor,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_cursor (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_cursor_t cursor,
+ xcb_input_device_id_t deviceid);
+
+int
+xcb_input_add_master_sizeof (const void *_buffer);
+
+char *
+xcb_input_add_master_name (const xcb_input_add_master_t *R);
+
+int
+xcb_input_add_master_name_length (const xcb_input_add_master_t *R);
+
+xcb_generic_iterator_t
+xcb_input_add_master_name_end (const xcb_input_add_master_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_add_master_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_add_master_t)
+ */
+void
+xcb_input_add_master_next (xcb_input_add_master_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_add_master_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_add_master_end (xcb_input_add_master_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_remove_master_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_remove_master_t)
+ */
+void
+xcb_input_remove_master_next (xcb_input_remove_master_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_remove_master_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_remove_master_end (xcb_input_remove_master_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_attach_slave_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_attach_slave_t)
+ */
+void
+xcb_input_attach_slave_next (xcb_input_attach_slave_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_attach_slave_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_attach_slave_end (xcb_input_attach_slave_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_detach_slave_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_detach_slave_t)
+ */
+void
+xcb_input_detach_slave_next (xcb_input_detach_slave_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_detach_slave_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_detach_slave_end (xcb_input_detach_slave_iterator_t i);
+
+char *
+xcb_input_hierarchy_change_data_add_master_name (const xcb_input_hierarchy_change_data_t *S);
+
+int
+xcb_input_hierarchy_change_data_add_master_name_length (const xcb_input_hierarchy_change_t *R,
+ const xcb_input_hierarchy_change_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_hierarchy_change_data_add_master_name_end (const xcb_input_hierarchy_change_t *R,
+ const xcb_input_hierarchy_change_data_t *S);
+
+int
+xcb_input_hierarchy_change_data_serialize (void **_buffer,
+ uint16_t type,
+ const xcb_input_hierarchy_change_data_t *_aux);
+
+int
+xcb_input_hierarchy_change_data_unpack (const void *_buffer,
+ uint16_t type,
+ xcb_input_hierarchy_change_data_t *_aux);
+
+int
+xcb_input_hierarchy_change_data_sizeof (const void *_buffer,
+ uint16_t type);
+
+int
+xcb_input_hierarchy_change_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_hierarchy_change_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_hierarchy_change_t)
+ */
+void
+xcb_input_hierarchy_change_next (xcb_input_hierarchy_change_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_hierarchy_change_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_hierarchy_change_end (xcb_input_hierarchy_change_iterator_t i);
+
+int
+xcb_input_xi_change_hierarchy_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_hierarchy_checked (xcb_connection_t *c,
+ uint8_t num_changes,
+ const xcb_input_hierarchy_change_t *changes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_hierarchy (xcb_connection_t *c,
+ uint8_t num_changes,
+ const xcb_input_hierarchy_change_t *changes);
+
+int
+xcb_input_xi_change_hierarchy_changes_length (const xcb_input_xi_change_hierarchy_request_t *R);
+
+xcb_input_hierarchy_change_iterator_t
+xcb_input_xi_change_hierarchy_changes_iterator (const xcb_input_xi_change_hierarchy_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_set_client_pointer_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_set_client_pointer (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_get_client_pointer_cookie_t
+xcb_input_xi_get_client_pointer (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_get_client_pointer_cookie_t
+xcb_input_xi_get_client_pointer_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_get_client_pointer_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_get_client_pointer_reply_t *
+xcb_input_xi_get_client_pointer_reply (xcb_connection_t *c,
+ xcb_input_xi_get_client_pointer_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_event_mask_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_event_mask_mask (const xcb_input_event_mask_t *R);
+
+int
+xcb_input_event_mask_mask_length (const xcb_input_event_mask_t *R);
+
+xcb_generic_iterator_t
+xcb_input_event_mask_mask_end (const xcb_input_event_mask_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_event_mask_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_event_mask_t)
+ */
+void
+xcb_input_event_mask_next (xcb_input_event_mask_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_event_mask_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_event_mask_end (xcb_input_event_mask_iterator_t i);
+
+int
+xcb_input_xi_select_events_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_select_events_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t num_mask,
+ const xcb_input_event_mask_t *masks);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_select_events (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t num_mask,
+ const xcb_input_event_mask_t *masks);
+
+int
+xcb_input_xi_select_events_masks_length (const xcb_input_xi_select_events_request_t *R);
+
+xcb_input_event_mask_iterator_t
+xcb_input_xi_select_events_masks_iterator (const xcb_input_xi_select_events_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_query_version_cookie_t
+xcb_input_xi_query_version (xcb_connection_t *c,
+ uint16_t major_version,
+ uint16_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_query_version_cookie_t
+xcb_input_xi_query_version_unchecked (xcb_connection_t *c,
+ uint16_t major_version,
+ uint16_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_query_version_reply_t *
+xcb_input_xi_query_version_reply (xcb_connection_t *c,
+ xcb_input_xi_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_button_class_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_button_class_state (const xcb_input_button_class_t *R);
+
+int
+xcb_input_button_class_state_length (const xcb_input_button_class_t *R);
+
+xcb_generic_iterator_t
+xcb_input_button_class_state_end (const xcb_input_button_class_t *R);
+
+xcb_atom_t *
+xcb_input_button_class_labels (const xcb_input_button_class_t *R);
+
+int
+xcb_input_button_class_labels_length (const xcb_input_button_class_t *R);
+
+xcb_generic_iterator_t
+xcb_input_button_class_labels_end (const xcb_input_button_class_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_button_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_button_class_t)
+ */
+void
+xcb_input_button_class_next (xcb_input_button_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_button_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_button_class_end (xcb_input_button_class_iterator_t i);
+
+int
+xcb_input_key_class_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_key_class_keys (const xcb_input_key_class_t *R);
+
+int
+xcb_input_key_class_keys_length (const xcb_input_key_class_t *R);
+
+xcb_generic_iterator_t
+xcb_input_key_class_keys_end (const xcb_input_key_class_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_key_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_key_class_t)
+ */
+void
+xcb_input_key_class_next (xcb_input_key_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_key_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_key_class_end (xcb_input_key_class_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_scroll_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_scroll_class_t)
+ */
+void
+xcb_input_scroll_class_next (xcb_input_scroll_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_scroll_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_scroll_class_end (xcb_input_scroll_class_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_touch_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_touch_class_t)
+ */
+void
+xcb_input_touch_class_next (xcb_input_touch_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_touch_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_touch_class_end (xcb_input_touch_class_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_gesture_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_gesture_class_t)
+ */
+void
+xcb_input_gesture_class_next (xcb_input_gesture_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_gesture_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_gesture_class_end (xcb_input_gesture_class_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_valuator_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_valuator_class_t)
+ */
+void
+xcb_input_valuator_class_next (xcb_input_valuator_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_valuator_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_valuator_class_end (xcb_input_valuator_class_iterator_t i);
+
+uint32_t *
+xcb_input_device_class_data_key_keys (const xcb_input_device_class_data_t *S);
+
+int
+xcb_input_device_class_data_key_keys_length (const xcb_input_device_class_t *R,
+ const xcb_input_device_class_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_class_data_key_keys_end (const xcb_input_device_class_t *R,
+ const xcb_input_device_class_data_t *S);
+
+uint32_t *
+xcb_input_device_class_data_button_state (const xcb_input_device_class_data_t *S);
+
+int
+xcb_input_device_class_data_button_state_length (const xcb_input_device_class_t *R,
+ const xcb_input_device_class_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_class_data_button_state_end (const xcb_input_device_class_t *R,
+ const xcb_input_device_class_data_t *S);
+
+xcb_atom_t *
+xcb_input_device_class_data_button_labels (const xcb_input_device_class_data_t *S);
+
+int
+xcb_input_device_class_data_button_labels_length (const xcb_input_device_class_t *R,
+ const xcb_input_device_class_data_t *S);
+
+xcb_generic_iterator_t
+xcb_input_device_class_data_button_labels_end (const xcb_input_device_class_t *R,
+ const xcb_input_device_class_data_t *S);
+
+int
+xcb_input_device_class_data_serialize (void **_buffer,
+ uint16_t type,
+ const xcb_input_device_class_data_t *_aux);
+
+int
+xcb_input_device_class_data_unpack (const void *_buffer,
+ uint16_t type,
+ xcb_input_device_class_data_t *_aux);
+
+int
+xcb_input_device_class_data_sizeof (const void *_buffer,
+ uint16_t type);
+
+int
+xcb_input_device_class_sizeof (const void *_buffer);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_device_class_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_device_class_t)
+ */
+void
+xcb_input_device_class_next (xcb_input_device_class_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_device_class_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_device_class_end (xcb_input_device_class_iterator_t i);
+
+int
+xcb_input_xi_device_info_sizeof (const void *_buffer);
+
+char *
+xcb_input_xi_device_info_name (const xcb_input_xi_device_info_t *R);
+
+int
+xcb_input_xi_device_info_name_length (const xcb_input_xi_device_info_t *R);
+
+xcb_generic_iterator_t
+xcb_input_xi_device_info_name_end (const xcb_input_xi_device_info_t *R);
+
+int
+xcb_input_xi_device_info_classes_length (const xcb_input_xi_device_info_t *R);
+
+xcb_input_device_class_iterator_t
+xcb_input_xi_device_info_classes_iterator (const xcb_input_xi_device_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_xi_device_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_xi_device_info_t)
+ */
+void
+xcb_input_xi_device_info_next (xcb_input_xi_device_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_xi_device_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_xi_device_info_end (xcb_input_xi_device_info_iterator_t i);
+
+int
+xcb_input_xi_query_device_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_query_device_cookie_t
+xcb_input_xi_query_device (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_query_device_cookie_t
+xcb_input_xi_query_device_unchecked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid);
+
+int
+xcb_input_xi_query_device_infos_length (const xcb_input_xi_query_device_reply_t *R);
+
+xcb_input_xi_device_info_iterator_t
+xcb_input_xi_query_device_infos_iterator (const xcb_input_xi_query_device_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_query_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_query_device_reply_t *
+xcb_input_xi_query_device_reply (xcb_connection_t *c,
+ xcb_input_xi_query_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_set_focus_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t time,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_set_focus (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t time,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_get_focus_cookie_t
+xcb_input_xi_get_focus (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_get_focus_cookie_t
+xcb_input_xi_get_focus_unchecked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_get_focus_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_get_focus_reply_t *
+xcb_input_xi_get_focus_reply (xcb_connection_t *c,
+ xcb_input_xi_get_focus_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_xi_grab_device_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_grab_device_cookie_t
+xcb_input_xi_grab_device (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t time,
+ xcb_cursor_t cursor,
+ xcb_input_device_id_t deviceid,
+ uint8_t mode,
+ uint8_t paired_device_mode,
+ uint8_t owner_events,
+ uint16_t mask_len,
+ const uint32_t *mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_grab_device_cookie_t
+xcb_input_xi_grab_device_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t time,
+ xcb_cursor_t cursor,
+ xcb_input_device_id_t deviceid,
+ uint8_t mode,
+ uint8_t paired_device_mode,
+ uint8_t owner_events,
+ uint16_t mask_len,
+ const uint32_t *mask);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_grab_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_grab_device_reply_t *
+xcb_input_xi_grab_device_reply (xcb_connection_t *c,
+ xcb_input_xi_grab_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_ungrab_device_checked (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_ungrab_device (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_allow_events_checked (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ xcb_input_device_id_t deviceid,
+ uint8_t event_mode,
+ uint32_t touchid,
+ xcb_window_t grab_window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_allow_events (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ xcb_input_device_id_t deviceid,
+ uint8_t event_mode,
+ uint32_t touchid,
+ xcb_window_t grab_window);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_grab_modifier_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_grab_modifier_info_t)
+ */
+void
+xcb_input_grab_modifier_info_next (xcb_input_grab_modifier_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_grab_modifier_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_grab_modifier_info_end (xcb_input_grab_modifier_info_iterator_t i);
+
+int
+xcb_input_xi_passive_grab_device_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_passive_grab_device_cookie_t
+xcb_input_xi_passive_grab_device (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ xcb_window_t grab_window,
+ xcb_cursor_t cursor,
+ uint32_t detail,
+ xcb_input_device_id_t deviceid,
+ uint16_t num_modifiers,
+ uint16_t mask_len,
+ uint8_t grab_type,
+ uint8_t grab_mode,
+ uint8_t paired_device_mode,
+ uint8_t owner_events,
+ const uint32_t *mask,
+ const uint32_t *modifiers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_passive_grab_device_cookie_t
+xcb_input_xi_passive_grab_device_unchecked (xcb_connection_t *c,
+ xcb_timestamp_t time,
+ xcb_window_t grab_window,
+ xcb_cursor_t cursor,
+ uint32_t detail,
+ xcb_input_device_id_t deviceid,
+ uint16_t num_modifiers,
+ uint16_t mask_len,
+ uint8_t grab_type,
+ uint8_t grab_mode,
+ uint8_t paired_device_mode,
+ uint8_t owner_events,
+ const uint32_t *mask,
+ const uint32_t *modifiers);
+
+xcb_input_grab_modifier_info_t *
+xcb_input_xi_passive_grab_device_modifiers (const xcb_input_xi_passive_grab_device_reply_t *R);
+
+int
+xcb_input_xi_passive_grab_device_modifiers_length (const xcb_input_xi_passive_grab_device_reply_t *R);
+
+xcb_input_grab_modifier_info_iterator_t
+xcb_input_xi_passive_grab_device_modifiers_iterator (const xcb_input_xi_passive_grab_device_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_passive_grab_device_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_passive_grab_device_reply_t *
+xcb_input_xi_passive_grab_device_reply (xcb_connection_t *c,
+ xcb_input_xi_passive_grab_device_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_xi_passive_ungrab_device_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_passive_ungrab_device_checked (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint32_t detail,
+ xcb_input_device_id_t deviceid,
+ uint16_t num_modifiers,
+ uint8_t grab_type,
+ const uint32_t *modifiers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_passive_ungrab_device (xcb_connection_t *c,
+ xcb_window_t grab_window,
+ uint32_t detail,
+ xcb_input_device_id_t deviceid,
+ uint16_t num_modifiers,
+ uint8_t grab_type,
+ const uint32_t *modifiers);
+
+uint32_t *
+xcb_input_xi_passive_ungrab_device_modifiers (const xcb_input_xi_passive_ungrab_device_request_t *R);
+
+int
+xcb_input_xi_passive_ungrab_device_modifiers_length (const xcb_input_xi_passive_ungrab_device_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_xi_passive_ungrab_device_modifiers_end (const xcb_input_xi_passive_ungrab_device_request_t *R);
+
+int
+xcb_input_xi_list_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_list_properties_cookie_t
+xcb_input_xi_list_properties (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_list_properties_cookie_t
+xcb_input_xi_list_properties_unchecked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid);
+
+xcb_atom_t *
+xcb_input_xi_list_properties_properties (const xcb_input_xi_list_properties_reply_t *R);
+
+int
+xcb_input_xi_list_properties_properties_length (const xcb_input_xi_list_properties_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_input_xi_list_properties_properties_end (const xcb_input_xi_list_properties_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_list_properties_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_list_properties_reply_t *
+xcb_input_xi_list_properties_reply (xcb_connection_t *c,
+ xcb_input_xi_list_properties_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+uint8_t *
+xcb_input_xi_change_property_items_data_8 (const xcb_input_xi_change_property_items_t *S);
+
+int
+xcb_input_xi_change_property_items_data_8_length (const xcb_input_xi_change_property_request_t *R,
+ const xcb_input_xi_change_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_xi_change_property_items_data_8_end (const xcb_input_xi_change_property_request_t *R,
+ const xcb_input_xi_change_property_items_t *S);
+
+uint16_t *
+xcb_input_xi_change_property_items_data_16 (const xcb_input_xi_change_property_items_t *S);
+
+int
+xcb_input_xi_change_property_items_data_16_length (const xcb_input_xi_change_property_request_t *R,
+ const xcb_input_xi_change_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_xi_change_property_items_data_16_end (const xcb_input_xi_change_property_request_t *R,
+ const xcb_input_xi_change_property_items_t *S);
+
+uint32_t *
+xcb_input_xi_change_property_items_data_32 (const xcb_input_xi_change_property_items_t *S);
+
+int
+xcb_input_xi_change_property_items_data_32_length (const xcb_input_xi_change_property_request_t *R,
+ const xcb_input_xi_change_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_xi_change_property_items_data_32_end (const xcb_input_xi_change_property_request_t *R,
+ const xcb_input_xi_change_property_items_t *S);
+
+int
+xcb_input_xi_change_property_items_serialize (void **_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ const xcb_input_xi_change_property_items_t *_aux);
+
+int
+xcb_input_xi_change_property_items_unpack (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ xcb_input_xi_change_property_items_t *_aux);
+
+int
+xcb_input_xi_change_property_items_sizeof (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format);
+
+int
+xcb_input_xi_change_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_property_checked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ uint8_t mode,
+ uint8_t format,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t num_items,
+ const void *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_property (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ uint8_t mode,
+ uint8_t format,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t num_items,
+ const void *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_property_aux_checked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ uint8_t mode,
+ uint8_t format,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t num_items,
+ const xcb_input_xi_change_property_items_t *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_change_property_aux (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ uint8_t mode,
+ uint8_t format,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t num_items,
+ const xcb_input_xi_change_property_items_t *items);
+
+void *
+xcb_input_xi_change_property_items (const xcb_input_xi_change_property_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_delete_property_checked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_delete_property (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ xcb_atom_t property);
+
+uint8_t *
+xcb_input_xi_get_property_items_data_8 (const xcb_input_xi_get_property_items_t *S);
+
+int
+xcb_input_xi_get_property_items_data_8_length (const xcb_input_xi_get_property_reply_t *R,
+ const xcb_input_xi_get_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_xi_get_property_items_data_8_end (const xcb_input_xi_get_property_reply_t *R,
+ const xcb_input_xi_get_property_items_t *S);
+
+uint16_t *
+xcb_input_xi_get_property_items_data_16 (const xcb_input_xi_get_property_items_t *S);
+
+int
+xcb_input_xi_get_property_items_data_16_length (const xcb_input_xi_get_property_reply_t *R,
+ const xcb_input_xi_get_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_xi_get_property_items_data_16_end (const xcb_input_xi_get_property_reply_t *R,
+ const xcb_input_xi_get_property_items_t *S);
+
+uint32_t *
+xcb_input_xi_get_property_items_data_32 (const xcb_input_xi_get_property_items_t *S);
+
+int
+xcb_input_xi_get_property_items_data_32_length (const xcb_input_xi_get_property_reply_t *R,
+ const xcb_input_xi_get_property_items_t *S);
+
+xcb_generic_iterator_t
+xcb_input_xi_get_property_items_data_32_end (const xcb_input_xi_get_property_reply_t *R,
+ const xcb_input_xi_get_property_items_t *S);
+
+int
+xcb_input_xi_get_property_items_serialize (void **_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ const xcb_input_xi_get_property_items_t *_aux);
+
+int
+xcb_input_xi_get_property_items_unpack (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format,
+ xcb_input_xi_get_property_items_t *_aux);
+
+int
+xcb_input_xi_get_property_items_sizeof (const void *_buffer,
+ uint32_t num_items,
+ uint8_t format);
+
+int
+xcb_input_xi_get_property_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_get_property_cookie_t
+xcb_input_xi_get_property (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ uint8_t _delete,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t offset,
+ uint32_t len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_get_property_cookie_t
+xcb_input_xi_get_property_unchecked (xcb_connection_t *c,
+ xcb_input_device_id_t deviceid,
+ uint8_t _delete,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t offset,
+ uint32_t len);
+
+void *
+xcb_input_xi_get_property_items (const xcb_input_xi_get_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_get_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_get_property_reply_t *
+xcb_input_xi_get_property_reply (xcb_connection_t *c,
+ xcb_input_xi_get_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_input_xi_get_selected_events_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_input_xi_get_selected_events_cookie_t
+xcb_input_xi_get_selected_events (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_input_xi_get_selected_events_cookie_t
+xcb_input_xi_get_selected_events_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+int
+xcb_input_xi_get_selected_events_masks_length (const xcb_input_xi_get_selected_events_reply_t *R);
+
+xcb_input_event_mask_iterator_t
+xcb_input_xi_get_selected_events_masks_iterator (const xcb_input_xi_get_selected_events_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_input_xi_get_selected_events_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_input_xi_get_selected_events_reply_t *
+xcb_input_xi_get_selected_events_reply (xcb_connection_t *c,
+ xcb_input_xi_get_selected_events_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_barrier_release_pointer_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_barrier_release_pointer_info_t)
+ */
+void
+xcb_input_barrier_release_pointer_info_next (xcb_input_barrier_release_pointer_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_barrier_release_pointer_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_barrier_release_pointer_info_end (xcb_input_barrier_release_pointer_info_iterator_t i);
+
+int
+xcb_input_xi_barrier_release_pointer_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_xi_barrier_release_pointer_checked (xcb_connection_t *c,
+ uint32_t num_barriers,
+ const xcb_input_barrier_release_pointer_info_t *barriers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_xi_barrier_release_pointer (xcb_connection_t *c,
+ uint32_t num_barriers,
+ const xcb_input_barrier_release_pointer_info_t *barriers);
+
+xcb_input_barrier_release_pointer_info_t *
+xcb_input_xi_barrier_release_pointer_barriers (const xcb_input_xi_barrier_release_pointer_request_t *R);
+
+int
+xcb_input_xi_barrier_release_pointer_barriers_length (const xcb_input_xi_barrier_release_pointer_request_t *R);
+
+xcb_input_barrier_release_pointer_info_iterator_t
+xcb_input_xi_barrier_release_pointer_barriers_iterator (const xcb_input_xi_barrier_release_pointer_request_t *R);
+
+int
+xcb_input_device_changed_sizeof (const void *_buffer);
+
+int
+xcb_input_device_changed_classes_length (const xcb_input_device_changed_event_t *R);
+
+xcb_input_device_class_iterator_t
+xcb_input_device_changed_classes_iterator (const xcb_input_device_changed_event_t *R);
+
+int
+xcb_input_key_press_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_key_press_button_mask (const xcb_input_key_press_event_t *R);
+
+int
+xcb_input_key_press_button_mask_length (const xcb_input_key_press_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_key_press_button_mask_end (const xcb_input_key_press_event_t *R);
+
+uint32_t *
+xcb_input_key_press_valuator_mask (const xcb_input_key_press_event_t *R);
+
+int
+xcb_input_key_press_valuator_mask_length (const xcb_input_key_press_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_key_press_valuator_mask_end (const xcb_input_key_press_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_key_press_axisvalues (const xcb_input_key_press_event_t *R);
+
+int
+xcb_input_key_press_axisvalues_length (const xcb_input_key_press_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_key_press_axisvalues_iterator (const xcb_input_key_press_event_t *R);
+
+int
+xcb_input_key_release_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_button_press_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_button_press_button_mask (const xcb_input_button_press_event_t *R);
+
+int
+xcb_input_button_press_button_mask_length (const xcb_input_button_press_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_button_press_button_mask_end (const xcb_input_button_press_event_t *R);
+
+uint32_t *
+xcb_input_button_press_valuator_mask (const xcb_input_button_press_event_t *R);
+
+int
+xcb_input_button_press_valuator_mask_length (const xcb_input_button_press_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_button_press_valuator_mask_end (const xcb_input_button_press_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_button_press_axisvalues (const xcb_input_button_press_event_t *R);
+
+int
+xcb_input_button_press_axisvalues_length (const xcb_input_button_press_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_button_press_axisvalues_iterator (const xcb_input_button_press_event_t *R);
+
+int
+xcb_input_button_release_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_motion_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_enter_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_enter_buttons (const xcb_input_enter_event_t *R);
+
+int
+xcb_input_enter_buttons_length (const xcb_input_enter_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_enter_buttons_end (const xcb_input_enter_event_t *R);
+
+int
+xcb_input_leave_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_focus_in_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_focus_out_sizeof (const void *_buffer /**< */);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_hierarchy_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_hierarchy_info_t)
+ */
+void
+xcb_input_hierarchy_info_next (xcb_input_hierarchy_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_hierarchy_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_hierarchy_info_end (xcb_input_hierarchy_info_iterator_t i);
+
+int
+xcb_input_hierarchy_sizeof (const void *_buffer);
+
+xcb_input_hierarchy_info_t *
+xcb_input_hierarchy_infos (const xcb_input_hierarchy_event_t *R);
+
+int
+xcb_input_hierarchy_infos_length (const xcb_input_hierarchy_event_t *R);
+
+xcb_input_hierarchy_info_iterator_t
+xcb_input_hierarchy_infos_iterator (const xcb_input_hierarchy_event_t *R);
+
+int
+xcb_input_raw_key_press_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_raw_key_press_valuator_mask (const xcb_input_raw_key_press_event_t *R);
+
+int
+xcb_input_raw_key_press_valuator_mask_length (const xcb_input_raw_key_press_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_raw_key_press_valuator_mask_end (const xcb_input_raw_key_press_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_raw_key_press_axisvalues (const xcb_input_raw_key_press_event_t *R);
+
+int
+xcb_input_raw_key_press_axisvalues_length (const xcb_input_raw_key_press_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_raw_key_press_axisvalues_iterator (const xcb_input_raw_key_press_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_raw_key_press_axisvalues_raw (const xcb_input_raw_key_press_event_t *R);
+
+int
+xcb_input_raw_key_press_axisvalues_raw_length (const xcb_input_raw_key_press_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_raw_key_press_axisvalues_raw_iterator (const xcb_input_raw_key_press_event_t *R);
+
+int
+xcb_input_raw_key_release_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_raw_button_press_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_raw_button_press_valuator_mask (const xcb_input_raw_button_press_event_t *R);
+
+int
+xcb_input_raw_button_press_valuator_mask_length (const xcb_input_raw_button_press_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_raw_button_press_valuator_mask_end (const xcb_input_raw_button_press_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_raw_button_press_axisvalues (const xcb_input_raw_button_press_event_t *R);
+
+int
+xcb_input_raw_button_press_axisvalues_length (const xcb_input_raw_button_press_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_raw_button_press_axisvalues_iterator (const xcb_input_raw_button_press_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_raw_button_press_axisvalues_raw (const xcb_input_raw_button_press_event_t *R);
+
+int
+xcb_input_raw_button_press_axisvalues_raw_length (const xcb_input_raw_button_press_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_raw_button_press_axisvalues_raw_iterator (const xcb_input_raw_button_press_event_t *R);
+
+int
+xcb_input_raw_button_release_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_raw_motion_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_touch_begin_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_touch_begin_button_mask (const xcb_input_touch_begin_event_t *R);
+
+int
+xcb_input_touch_begin_button_mask_length (const xcb_input_touch_begin_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_touch_begin_button_mask_end (const xcb_input_touch_begin_event_t *R);
+
+uint32_t *
+xcb_input_touch_begin_valuator_mask (const xcb_input_touch_begin_event_t *R);
+
+int
+xcb_input_touch_begin_valuator_mask_length (const xcb_input_touch_begin_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_touch_begin_valuator_mask_end (const xcb_input_touch_begin_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_touch_begin_axisvalues (const xcb_input_touch_begin_event_t *R);
+
+int
+xcb_input_touch_begin_axisvalues_length (const xcb_input_touch_begin_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_touch_begin_axisvalues_iterator (const xcb_input_touch_begin_event_t *R);
+
+int
+xcb_input_touch_update_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_touch_end_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_raw_touch_begin_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_input_raw_touch_begin_valuator_mask (const xcb_input_raw_touch_begin_event_t *R);
+
+int
+xcb_input_raw_touch_begin_valuator_mask_length (const xcb_input_raw_touch_begin_event_t *R);
+
+xcb_generic_iterator_t
+xcb_input_raw_touch_begin_valuator_mask_end (const xcb_input_raw_touch_begin_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_raw_touch_begin_axisvalues (const xcb_input_raw_touch_begin_event_t *R);
+
+int
+xcb_input_raw_touch_begin_axisvalues_length (const xcb_input_raw_touch_begin_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_raw_touch_begin_axisvalues_iterator (const xcb_input_raw_touch_begin_event_t *R);
+
+xcb_input_fp3232_t *
+xcb_input_raw_touch_begin_axisvalues_raw (const xcb_input_raw_touch_begin_event_t *R);
+
+int
+xcb_input_raw_touch_begin_axisvalues_raw_length (const xcb_input_raw_touch_begin_event_t *R);
+
+xcb_input_fp3232_iterator_t
+xcb_input_raw_touch_begin_axisvalues_raw_iterator (const xcb_input_raw_touch_begin_event_t *R);
+
+int
+xcb_input_raw_touch_update_sizeof (const void *_buffer /**< */);
+
+int
+xcb_input_raw_touch_end_sizeof (const void *_buffer /**< */);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_input_event_for_send_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_input_event_for_send_t)
+ */
+void
+xcb_input_event_for_send_next (xcb_input_event_for_send_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_input_event_for_send_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_input_event_for_send_end (xcb_input_event_for_send_iterator_t i);
+
+int
+xcb_input_send_extension_event_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_input_send_extension_event_checked (xcb_connection_t *c,
+ xcb_window_t destination,
+ uint8_t device_id,
+ uint8_t propagate,
+ uint16_t num_classes,
+ uint8_t num_events,
+ const xcb_input_event_for_send_t *events,
+ const xcb_input_event_class_t *classes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_input_send_extension_event (xcb_connection_t *c,
+ xcb_window_t destination,
+ uint8_t device_id,
+ uint8_t propagate,
+ uint16_t num_classes,
+ uint8_t num_events,
+ const xcb_input_event_for_send_t *events,
+ const xcb_input_event_class_t *classes);
+
+xcb_input_event_for_send_t *
+xcb_input_send_extension_event_events (const xcb_input_send_extension_event_request_t *R);
+
+int
+xcb_input_send_extension_event_events_length (const xcb_input_send_extension_event_request_t *R);
+
+xcb_input_event_for_send_iterator_t
+xcb_input_send_extension_event_events_iterator (const xcb_input_send_extension_event_request_t *R);
+
+xcb_input_event_class_t *
+xcb_input_send_extension_event_classes (const xcb_input_send_extension_event_request_t *R);
+
+int
+xcb_input_send_extension_event_classes_length (const xcb_input_send_extension_event_request_t *R);
+
+xcb_generic_iterator_t
+xcb_input_send_extension_event_classes_end (const xcb_input_send_extension_event_request_t *R);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xkb.h b/depends/libxcb/include/xcb/xkb.h
new file mode 100644
index 0000000..056585b
--- /dev/null
+++ b/depends/libxcb/include/xcb/xkb.h
@@ -0,0 +1,7106 @@
+/*
+ * This file generated automatically from xkb.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_xkb_API XCB xkb API
+ * @brief xkb XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XKB_H
+#define __XKB_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XKB_MAJOR_VERSION 1
+#define XCB_XKB_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_xkb_id;
+
+typedef enum xcb_xkb_const_t {
+ XCB_XKB_CONST_MAX_LEGAL_KEY_CODE = 255,
+ XCB_XKB_CONST_PER_KEY_BIT_ARRAY_SIZE = 32,
+ XCB_XKB_CONST_KEY_NAME_LENGTH = 4
+} xcb_xkb_const_t;
+
+typedef enum xcb_xkb_event_type_t {
+ XCB_XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY = 1,
+ XCB_XKB_EVENT_TYPE_MAP_NOTIFY = 2,
+ XCB_XKB_EVENT_TYPE_STATE_NOTIFY = 4,
+ XCB_XKB_EVENT_TYPE_CONTROLS_NOTIFY = 8,
+ XCB_XKB_EVENT_TYPE_INDICATOR_STATE_NOTIFY = 16,
+ XCB_XKB_EVENT_TYPE_INDICATOR_MAP_NOTIFY = 32,
+ XCB_XKB_EVENT_TYPE_NAMES_NOTIFY = 64,
+ XCB_XKB_EVENT_TYPE_COMPAT_MAP_NOTIFY = 128,
+ XCB_XKB_EVENT_TYPE_BELL_NOTIFY = 256,
+ XCB_XKB_EVENT_TYPE_ACTION_MESSAGE = 512,
+ XCB_XKB_EVENT_TYPE_ACCESS_X_NOTIFY = 1024,
+ XCB_XKB_EVENT_TYPE_EXTENSION_DEVICE_NOTIFY = 2048
+} xcb_xkb_event_type_t;
+
+typedef enum xcb_xkb_nkn_detail_t {
+ XCB_XKB_NKN_DETAIL_KEYCODES = 1,
+ XCB_XKB_NKN_DETAIL_GEOMETRY = 2,
+ XCB_XKB_NKN_DETAIL_DEVICE_ID = 4
+} xcb_xkb_nkn_detail_t;
+
+typedef enum xcb_xkb_axn_detail_t {
+ XCB_XKB_AXN_DETAIL_SK_PRESS = 1,
+ XCB_XKB_AXN_DETAIL_SK_ACCEPT = 2,
+ XCB_XKB_AXN_DETAIL_SK_REJECT = 4,
+ XCB_XKB_AXN_DETAIL_SK_RELEASE = 8,
+ XCB_XKB_AXN_DETAIL_BK_ACCEPT = 16,
+ XCB_XKB_AXN_DETAIL_BK_REJECT = 32,
+ XCB_XKB_AXN_DETAIL_AXK_WARNING = 64
+} xcb_xkb_axn_detail_t;
+
+typedef enum xcb_xkb_map_part_t {
+ XCB_XKB_MAP_PART_KEY_TYPES = 1,
+ XCB_XKB_MAP_PART_KEY_SYMS = 2,
+ XCB_XKB_MAP_PART_MODIFIER_MAP = 4,
+ XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS = 8,
+ XCB_XKB_MAP_PART_KEY_ACTIONS = 16,
+ XCB_XKB_MAP_PART_KEY_BEHAVIORS = 32,
+ XCB_XKB_MAP_PART_VIRTUAL_MODS = 64,
+ XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP = 128
+} xcb_xkb_map_part_t;
+
+typedef enum xcb_xkb_set_map_flags_t {
+ XCB_XKB_SET_MAP_FLAGS_RESIZE_TYPES = 1,
+ XCB_XKB_SET_MAP_FLAGS_RECOMPUTE_ACTIONS = 2
+} xcb_xkb_set_map_flags_t;
+
+typedef enum xcb_xkb_state_part_t {
+ XCB_XKB_STATE_PART_MODIFIER_STATE = 1,
+ XCB_XKB_STATE_PART_MODIFIER_BASE = 2,
+ XCB_XKB_STATE_PART_MODIFIER_LATCH = 4,
+ XCB_XKB_STATE_PART_MODIFIER_LOCK = 8,
+ XCB_XKB_STATE_PART_GROUP_STATE = 16,
+ XCB_XKB_STATE_PART_GROUP_BASE = 32,
+ XCB_XKB_STATE_PART_GROUP_LATCH = 64,
+ XCB_XKB_STATE_PART_GROUP_LOCK = 128,
+ XCB_XKB_STATE_PART_COMPAT_STATE = 256,
+ XCB_XKB_STATE_PART_GRAB_MODS = 512,
+ XCB_XKB_STATE_PART_COMPAT_GRAB_MODS = 1024,
+ XCB_XKB_STATE_PART_LOOKUP_MODS = 2048,
+ XCB_XKB_STATE_PART_COMPAT_LOOKUP_MODS = 4096,
+ XCB_XKB_STATE_PART_POINTER_BUTTONS = 8192
+} xcb_xkb_state_part_t;
+
+typedef enum xcb_xkb_bool_ctrl_t {
+ XCB_XKB_BOOL_CTRL_REPEAT_KEYS = 1,
+ XCB_XKB_BOOL_CTRL_SLOW_KEYS = 2,
+ XCB_XKB_BOOL_CTRL_BOUNCE_KEYS = 4,
+ XCB_XKB_BOOL_CTRL_STICKY_KEYS = 8,
+ XCB_XKB_BOOL_CTRL_MOUSE_KEYS = 16,
+ XCB_XKB_BOOL_CTRL_MOUSE_KEYS_ACCEL = 32,
+ XCB_XKB_BOOL_CTRL_ACCESS_X_KEYS = 64,
+ XCB_XKB_BOOL_CTRL_ACCESS_X_TIMEOUT_MASK = 128,
+ XCB_XKB_BOOL_CTRL_ACCESS_X_FEEDBACK_MASK = 256,
+ XCB_XKB_BOOL_CTRL_AUDIBLE_BELL_MASK = 512,
+ XCB_XKB_BOOL_CTRL_OVERLAY_1_MASK = 1024,
+ XCB_XKB_BOOL_CTRL_OVERLAY_2_MASK = 2048,
+ XCB_XKB_BOOL_CTRL_IGNORE_GROUP_LOCK_MASK = 4096
+} xcb_xkb_bool_ctrl_t;
+
+typedef enum xcb_xkb_control_t {
+ XCB_XKB_CONTROL_GROUPS_WRAP = 134217728,
+ XCB_XKB_CONTROL_INTERNAL_MODS = 268435456,
+ XCB_XKB_CONTROL_IGNORE_LOCK_MODS = 536870912,
+ XCB_XKB_CONTROL_PER_KEY_REPEAT = 1073741824,
+ XCB_XKB_CONTROL_CONTROLS_ENABLED = 2147483648
+} xcb_xkb_control_t;
+
+typedef enum xcb_xkb_ax_option_t {
+ XCB_XKB_AX_OPTION_SK_PRESS_FB = 1,
+ XCB_XKB_AX_OPTION_SK_ACCEPT_FB = 2,
+ XCB_XKB_AX_OPTION_FEATURE_FB = 4,
+ XCB_XKB_AX_OPTION_SLOW_WARN_FB = 8,
+ XCB_XKB_AX_OPTION_INDICATOR_FB = 16,
+ XCB_XKB_AX_OPTION_STICKY_KEYS_FB = 32,
+ XCB_XKB_AX_OPTION_TWO_KEYS = 64,
+ XCB_XKB_AX_OPTION_LATCH_TO_LOCK = 128,
+ XCB_XKB_AX_OPTION_SK_RELEASE_FB = 256,
+ XCB_XKB_AX_OPTION_SK_REJECT_FB = 512,
+ XCB_XKB_AX_OPTION_BK_REJECT_FB = 1024,
+ XCB_XKB_AX_OPTION_DUMB_BELL = 2048
+} xcb_xkb_ax_option_t;
+
+typedef uint16_t xcb_xkb_device_spec_t;
+
+/**
+ * @brief xcb_xkb_device_spec_iterator_t
+ **/
+typedef struct xcb_xkb_device_spec_iterator_t {
+ xcb_xkb_device_spec_t *data;
+ int rem;
+ int index;
+} xcb_xkb_device_spec_iterator_t;
+
+typedef enum xcb_xkb_led_class_result_t {
+ XCB_XKB_LED_CLASS_RESULT_KBD_FEEDBACK_CLASS = 0,
+ XCB_XKB_LED_CLASS_RESULT_LED_FEEDBACK_CLASS = 4
+} xcb_xkb_led_class_result_t;
+
+typedef enum xcb_xkb_led_class_t {
+ XCB_XKB_LED_CLASS_KBD_FEEDBACK_CLASS = 0,
+ XCB_XKB_LED_CLASS_LED_FEEDBACK_CLASS = 4,
+ XCB_XKB_LED_CLASS_DFLT_XI_CLASS = 768,
+ XCB_XKB_LED_CLASS_ALL_XI_CLASSES = 1280
+} xcb_xkb_led_class_t;
+
+typedef uint16_t xcb_xkb_led_class_spec_t;
+
+/**
+ * @brief xcb_xkb_led_class_spec_iterator_t
+ **/
+typedef struct xcb_xkb_led_class_spec_iterator_t {
+ xcb_xkb_led_class_spec_t *data;
+ int rem;
+ int index;
+} xcb_xkb_led_class_spec_iterator_t;
+
+typedef enum xcb_xkb_bell_class_result_t {
+ XCB_XKB_BELL_CLASS_RESULT_KBD_FEEDBACK_CLASS = 0,
+ XCB_XKB_BELL_CLASS_RESULT_BELL_FEEDBACK_CLASS = 5
+} xcb_xkb_bell_class_result_t;
+
+typedef enum xcb_xkb_bell_class_t {
+ XCB_XKB_BELL_CLASS_KBD_FEEDBACK_CLASS = 0,
+ XCB_XKB_BELL_CLASS_BELL_FEEDBACK_CLASS = 5,
+ XCB_XKB_BELL_CLASS_DFLT_XI_CLASS = 768
+} xcb_xkb_bell_class_t;
+
+typedef uint16_t xcb_xkb_bell_class_spec_t;
+
+/**
+ * @brief xcb_xkb_bell_class_spec_iterator_t
+ **/
+typedef struct xcb_xkb_bell_class_spec_iterator_t {
+ xcb_xkb_bell_class_spec_t *data;
+ int rem;
+ int index;
+} xcb_xkb_bell_class_spec_iterator_t;
+
+typedef enum xcb_xkb_id_t {
+ XCB_XKB_ID_USE_CORE_KBD = 256,
+ XCB_XKB_ID_USE_CORE_PTR = 512,
+ XCB_XKB_ID_DFLT_XI_CLASS = 768,
+ XCB_XKB_ID_DFLT_XI_ID = 1024,
+ XCB_XKB_ID_ALL_XI_CLASS = 1280,
+ XCB_XKB_ID_ALL_XI_ID = 1536,
+ XCB_XKB_ID_XI_NONE = 65280
+} xcb_xkb_id_t;
+
+typedef uint16_t xcb_xkb_id_spec_t;
+
+/**
+ * @brief xcb_xkb_id_spec_iterator_t
+ **/
+typedef struct xcb_xkb_id_spec_iterator_t {
+ xcb_xkb_id_spec_t *data;
+ int rem;
+ int index;
+} xcb_xkb_id_spec_iterator_t;
+
+typedef enum xcb_xkb_group_t {
+ XCB_XKB_GROUP_1 = 0,
+ XCB_XKB_GROUP_2 = 1,
+ XCB_XKB_GROUP_3 = 2,
+ XCB_XKB_GROUP_4 = 3
+} xcb_xkb_group_t;
+
+typedef enum xcb_xkb_groups_t {
+ XCB_XKB_GROUPS_ANY = 254,
+ XCB_XKB_GROUPS_ALL = 255
+} xcb_xkb_groups_t;
+
+typedef enum xcb_xkb_set_of_group_t {
+ XCB_XKB_SET_OF_GROUP_GROUP_1 = 1,
+ XCB_XKB_SET_OF_GROUP_GROUP_2 = 2,
+ XCB_XKB_SET_OF_GROUP_GROUP_3 = 4,
+ XCB_XKB_SET_OF_GROUP_GROUP_4 = 8
+} xcb_xkb_set_of_group_t;
+
+typedef enum xcb_xkb_set_of_groups_t {
+ XCB_XKB_SET_OF_GROUPS_ANY = 128
+} xcb_xkb_set_of_groups_t;
+
+typedef enum xcb_xkb_groups_wrap_t {
+ XCB_XKB_GROUPS_WRAP_WRAP_INTO_RANGE = 0,
+ XCB_XKB_GROUPS_WRAP_CLAMP_INTO_RANGE = 64,
+ XCB_XKB_GROUPS_WRAP_REDIRECT_INTO_RANGE = 128
+} xcb_xkb_groups_wrap_t;
+
+typedef enum xcb_xkb_v_mods_high_t {
+ XCB_XKB_V_MODS_HIGH_15 = 128,
+ XCB_XKB_V_MODS_HIGH_14 = 64,
+ XCB_XKB_V_MODS_HIGH_13 = 32,
+ XCB_XKB_V_MODS_HIGH_12 = 16,
+ XCB_XKB_V_MODS_HIGH_11 = 8,
+ XCB_XKB_V_MODS_HIGH_10 = 4,
+ XCB_XKB_V_MODS_HIGH_9 = 2,
+ XCB_XKB_V_MODS_HIGH_8 = 1
+} xcb_xkb_v_mods_high_t;
+
+typedef enum xcb_xkb_v_mods_low_t {
+ XCB_XKB_V_MODS_LOW_7 = 128,
+ XCB_XKB_V_MODS_LOW_6 = 64,
+ XCB_XKB_V_MODS_LOW_5 = 32,
+ XCB_XKB_V_MODS_LOW_4 = 16,
+ XCB_XKB_V_MODS_LOW_3 = 8,
+ XCB_XKB_V_MODS_LOW_2 = 4,
+ XCB_XKB_V_MODS_LOW_1 = 2,
+ XCB_XKB_V_MODS_LOW_0 = 1
+} xcb_xkb_v_mods_low_t;
+
+typedef enum xcb_xkb_v_mod_t {
+ XCB_XKB_V_MOD_15 = 32768,
+ XCB_XKB_V_MOD_14 = 16384,
+ XCB_XKB_V_MOD_13 = 8192,
+ XCB_XKB_V_MOD_12 = 4096,
+ XCB_XKB_V_MOD_11 = 2048,
+ XCB_XKB_V_MOD_10 = 1024,
+ XCB_XKB_V_MOD_9 = 512,
+ XCB_XKB_V_MOD_8 = 256,
+ XCB_XKB_V_MOD_7 = 128,
+ XCB_XKB_V_MOD_6 = 64,
+ XCB_XKB_V_MOD_5 = 32,
+ XCB_XKB_V_MOD_4 = 16,
+ XCB_XKB_V_MOD_3 = 8,
+ XCB_XKB_V_MOD_2 = 4,
+ XCB_XKB_V_MOD_1 = 2,
+ XCB_XKB_V_MOD_0 = 1
+} xcb_xkb_v_mod_t;
+
+typedef enum xcb_xkb_explicit_t {
+ XCB_XKB_EXPLICIT_V_MOD_MAP = 128,
+ XCB_XKB_EXPLICIT_BEHAVIOR = 64,
+ XCB_XKB_EXPLICIT_AUTO_REPEAT = 32,
+ XCB_XKB_EXPLICIT_INTERPRET = 16,
+ XCB_XKB_EXPLICIT_KEY_TYPE_4 = 8,
+ XCB_XKB_EXPLICIT_KEY_TYPE_3 = 4,
+ XCB_XKB_EXPLICIT_KEY_TYPE_2 = 2,
+ XCB_XKB_EXPLICIT_KEY_TYPE_1 = 1
+} xcb_xkb_explicit_t;
+
+typedef enum xcb_xkb_sym_interpret_match_t {
+ XCB_XKB_SYM_INTERPRET_MATCH_NONE_OF = 0,
+ XCB_XKB_SYM_INTERPRET_MATCH_ANY_OF_OR_NONE = 1,
+ XCB_XKB_SYM_INTERPRET_MATCH_ANY_OF = 2,
+ XCB_XKB_SYM_INTERPRET_MATCH_ALL_OF = 3,
+ XCB_XKB_SYM_INTERPRET_MATCH_EXACTLY = 4
+} xcb_xkb_sym_interpret_match_t;
+
+typedef enum xcb_xkb_sym_interp_match_t {
+ XCB_XKB_SYM_INTERP_MATCH_LEVEL_ONE_ONLY = 128,
+ XCB_XKB_SYM_INTERP_MATCH_OP_MASK = 127
+} xcb_xkb_sym_interp_match_t;
+
+typedef enum xcb_xkb_im_flag_t {
+ XCB_XKB_IM_FLAG_NO_EXPLICIT = 128,
+ XCB_XKB_IM_FLAG_NO_AUTOMATIC = 64,
+ XCB_XKB_IM_FLAG_LED_DRIVES_KB = 32
+} xcb_xkb_im_flag_t;
+
+typedef enum xcb_xkb_im_mods_which_t {
+ XCB_XKB_IM_MODS_WHICH_USE_COMPAT = 16,
+ XCB_XKB_IM_MODS_WHICH_USE_EFFECTIVE = 8,
+ XCB_XKB_IM_MODS_WHICH_USE_LOCKED = 4,
+ XCB_XKB_IM_MODS_WHICH_USE_LATCHED = 2,
+ XCB_XKB_IM_MODS_WHICH_USE_BASE = 1
+} xcb_xkb_im_mods_which_t;
+
+typedef enum xcb_xkb_im_groups_which_t {
+ XCB_XKB_IM_GROUPS_WHICH_USE_COMPAT = 16,
+ XCB_XKB_IM_GROUPS_WHICH_USE_EFFECTIVE = 8,
+ XCB_XKB_IM_GROUPS_WHICH_USE_LOCKED = 4,
+ XCB_XKB_IM_GROUPS_WHICH_USE_LATCHED = 2,
+ XCB_XKB_IM_GROUPS_WHICH_USE_BASE = 1
+} xcb_xkb_im_groups_which_t;
+
+/**
+ * @brief xcb_xkb_indicator_map_t
+ **/
+typedef struct xcb_xkb_indicator_map_t {
+ uint8_t flags;
+ uint8_t whichGroups;
+ uint8_t groups;
+ uint8_t whichMods;
+ uint8_t mods;
+ uint8_t realMods;
+ uint16_t vmods;
+ uint32_t ctrls;
+} xcb_xkb_indicator_map_t;
+
+/**
+ * @brief xcb_xkb_indicator_map_iterator_t
+ **/
+typedef struct xcb_xkb_indicator_map_iterator_t {
+ xcb_xkb_indicator_map_t *data;
+ int rem;
+ int index;
+} xcb_xkb_indicator_map_iterator_t;
+
+typedef enum xcb_xkb_cm_detail_t {
+ XCB_XKB_CM_DETAIL_SYM_INTERP = 1,
+ XCB_XKB_CM_DETAIL_GROUP_COMPAT = 2
+} xcb_xkb_cm_detail_t;
+
+typedef enum xcb_xkb_name_detail_t {
+ XCB_XKB_NAME_DETAIL_KEYCODES = 1,
+ XCB_XKB_NAME_DETAIL_GEOMETRY = 2,
+ XCB_XKB_NAME_DETAIL_SYMBOLS = 4,
+ XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS = 8,
+ XCB_XKB_NAME_DETAIL_TYPES = 16,
+ XCB_XKB_NAME_DETAIL_COMPAT = 32,
+ XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES = 64,
+ XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES = 128,
+ XCB_XKB_NAME_DETAIL_INDICATOR_NAMES = 256,
+ XCB_XKB_NAME_DETAIL_KEY_NAMES = 512,
+ XCB_XKB_NAME_DETAIL_KEY_ALIASES = 1024,
+ XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES = 2048,
+ XCB_XKB_NAME_DETAIL_GROUP_NAMES = 4096,
+ XCB_XKB_NAME_DETAIL_RG_NAMES = 8192
+} xcb_xkb_name_detail_t;
+
+typedef enum xcb_xkb_gbn_detail_t {
+ XCB_XKB_GBN_DETAIL_TYPES = 1,
+ XCB_XKB_GBN_DETAIL_COMPAT_MAP = 2,
+ XCB_XKB_GBN_DETAIL_CLIENT_SYMBOLS = 4,
+ XCB_XKB_GBN_DETAIL_SERVER_SYMBOLS = 8,
+ XCB_XKB_GBN_DETAIL_INDICATOR_MAPS = 16,
+ XCB_XKB_GBN_DETAIL_KEY_NAMES = 32,
+ XCB_XKB_GBN_DETAIL_GEOMETRY = 64,
+ XCB_XKB_GBN_DETAIL_OTHER_NAMES = 128
+} xcb_xkb_gbn_detail_t;
+
+typedef enum xcb_xkb_xi_feature_t {
+ XCB_XKB_XI_FEATURE_KEYBOARDS = 1,
+ XCB_XKB_XI_FEATURE_BUTTON_ACTIONS = 2,
+ XCB_XKB_XI_FEATURE_INDICATOR_NAMES = 4,
+ XCB_XKB_XI_FEATURE_INDICATOR_MAPS = 8,
+ XCB_XKB_XI_FEATURE_INDICATOR_STATE = 16
+} xcb_xkb_xi_feature_t;
+
+typedef enum xcb_xkb_per_client_flag_t {
+ XCB_XKB_PER_CLIENT_FLAG_DETECTABLE_AUTO_REPEAT = 1,
+ XCB_XKB_PER_CLIENT_FLAG_GRABS_USE_XKB_STATE = 2,
+ XCB_XKB_PER_CLIENT_FLAG_AUTO_RESET_CONTROLS = 4,
+ XCB_XKB_PER_CLIENT_FLAG_LOOKUP_STATE_WHEN_GRABBED = 8,
+ XCB_XKB_PER_CLIENT_FLAG_SEND_EVENT_USES_XKB_STATE = 16
+} xcb_xkb_per_client_flag_t;
+
+/**
+ * @brief xcb_xkb_mod_def_t
+ **/
+typedef struct xcb_xkb_mod_def_t {
+ uint8_t mask;
+ uint8_t realMods;
+ uint16_t vmods;
+} xcb_xkb_mod_def_t;
+
+/**
+ * @brief xcb_xkb_mod_def_iterator_t
+ **/
+typedef struct xcb_xkb_mod_def_iterator_t {
+ xcb_xkb_mod_def_t *data;
+ int rem;
+ int index;
+} xcb_xkb_mod_def_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_name_t
+ **/
+typedef struct xcb_xkb_key_name_t {
+ char name[4];
+} xcb_xkb_key_name_t;
+
+/**
+ * @brief xcb_xkb_key_name_iterator_t
+ **/
+typedef struct xcb_xkb_key_name_iterator_t {
+ xcb_xkb_key_name_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_name_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_alias_t
+ **/
+typedef struct xcb_xkb_key_alias_t {
+ char real[4];
+ char alias[4];
+} xcb_xkb_key_alias_t;
+
+/**
+ * @brief xcb_xkb_key_alias_iterator_t
+ **/
+typedef struct xcb_xkb_key_alias_iterator_t {
+ xcb_xkb_key_alias_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_alias_iterator_t;
+
+/**
+ * @brief xcb_xkb_counted_string_16_t
+ **/
+typedef struct xcb_xkb_counted_string_16_t {
+ uint16_t length;
+} xcb_xkb_counted_string_16_t;
+
+/**
+ * @brief xcb_xkb_counted_string_16_iterator_t
+ **/
+typedef struct xcb_xkb_counted_string_16_iterator_t {
+ xcb_xkb_counted_string_16_t *data;
+ int rem;
+ int index;
+} xcb_xkb_counted_string_16_iterator_t;
+
+/**
+ * @brief xcb_xkb_kt_map_entry_t
+ **/
+typedef struct xcb_xkb_kt_map_entry_t {
+ uint8_t active;
+ uint8_t mods_mask;
+ uint8_t level;
+ uint8_t mods_mods;
+ uint16_t mods_vmods;
+ uint8_t pad0[2];
+} xcb_xkb_kt_map_entry_t;
+
+/**
+ * @brief xcb_xkb_kt_map_entry_iterator_t
+ **/
+typedef struct xcb_xkb_kt_map_entry_iterator_t {
+ xcb_xkb_kt_map_entry_t *data;
+ int rem;
+ int index;
+} xcb_xkb_kt_map_entry_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_type_t
+ **/
+typedef struct xcb_xkb_key_type_t {
+ uint8_t mods_mask;
+ uint8_t mods_mods;
+ uint16_t mods_vmods;
+ uint8_t numLevels;
+ uint8_t nMapEntries;
+ uint8_t hasPreserve;
+ uint8_t pad0;
+} xcb_xkb_key_type_t;
+
+/**
+ * @brief xcb_xkb_key_type_iterator_t
+ **/
+typedef struct xcb_xkb_key_type_iterator_t {
+ xcb_xkb_key_type_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_type_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_sym_map_t
+ **/
+typedef struct xcb_xkb_key_sym_map_t {
+ uint8_t kt_index[4];
+ uint8_t groupInfo;
+ uint8_t width;
+ uint16_t nSyms;
+} xcb_xkb_key_sym_map_t;
+
+/**
+ * @brief xcb_xkb_key_sym_map_iterator_t
+ **/
+typedef struct xcb_xkb_key_sym_map_iterator_t {
+ xcb_xkb_key_sym_map_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_sym_map_iterator_t;
+
+/**
+ * @brief xcb_xkb_common_behavior_t
+ **/
+typedef struct xcb_xkb_common_behavior_t {
+ uint8_t type;
+ uint8_t data;
+} xcb_xkb_common_behavior_t;
+
+/**
+ * @brief xcb_xkb_common_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_common_behavior_iterator_t {
+ xcb_xkb_common_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_common_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_default_behavior_t
+ **/
+typedef struct xcb_xkb_default_behavior_t {
+ uint8_t type;
+ uint8_t pad0;
+} xcb_xkb_default_behavior_t;
+
+/**
+ * @brief xcb_xkb_default_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_default_behavior_iterator_t {
+ xcb_xkb_default_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_default_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_lock_behavior_t
+ **/
+typedef struct xcb_xkb_lock_behavior_t {
+ uint8_t type;
+ uint8_t pad0;
+} xcb_xkb_lock_behavior_t;
+
+/**
+ * @brief xcb_xkb_lock_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_lock_behavior_iterator_t {
+ xcb_xkb_lock_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_lock_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_radio_group_behavior_t
+ **/
+typedef struct xcb_xkb_radio_group_behavior_t {
+ uint8_t type;
+ uint8_t group;
+} xcb_xkb_radio_group_behavior_t;
+
+/**
+ * @brief xcb_xkb_radio_group_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_radio_group_behavior_iterator_t {
+ xcb_xkb_radio_group_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_radio_group_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_overlay_behavior_t
+ **/
+typedef struct xcb_xkb_overlay_behavior_t {
+ uint8_t type;
+ xcb_keycode_t key;
+} xcb_xkb_overlay_behavior_t;
+
+/**
+ * @brief xcb_xkb_overlay_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_overlay_behavior_iterator_t {
+ xcb_xkb_overlay_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_overlay_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_permament_lock_behavior_t
+ **/
+typedef struct xcb_xkb_permament_lock_behavior_t {
+ uint8_t type;
+ uint8_t pad0;
+} xcb_xkb_permament_lock_behavior_t;
+
+/**
+ * @brief xcb_xkb_permament_lock_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_permament_lock_behavior_iterator_t {
+ xcb_xkb_permament_lock_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_permament_lock_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_permament_radio_group_behavior_t
+ **/
+typedef struct xcb_xkb_permament_radio_group_behavior_t {
+ uint8_t type;
+ uint8_t group;
+} xcb_xkb_permament_radio_group_behavior_t;
+
+/**
+ * @brief xcb_xkb_permament_radio_group_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_permament_radio_group_behavior_iterator_t {
+ xcb_xkb_permament_radio_group_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_permament_radio_group_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_permament_overlay_behavior_t
+ **/
+typedef struct xcb_xkb_permament_overlay_behavior_t {
+ uint8_t type;
+ xcb_keycode_t key;
+} xcb_xkb_permament_overlay_behavior_t;
+
+/**
+ * @brief xcb_xkb_permament_overlay_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_permament_overlay_behavior_iterator_t {
+ xcb_xkb_permament_overlay_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_permament_overlay_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_behavior_t
+ **/
+typedef union xcb_xkb_behavior_t {
+ xcb_xkb_common_behavior_t common;
+ xcb_xkb_default_behavior_t _default;
+ xcb_xkb_lock_behavior_t lock;
+ xcb_xkb_radio_group_behavior_t radioGroup;
+ xcb_xkb_overlay_behavior_t overlay1;
+ xcb_xkb_overlay_behavior_t overlay2;
+ xcb_xkb_permament_lock_behavior_t permamentLock;
+ xcb_xkb_permament_radio_group_behavior_t permamentRadioGroup;
+ xcb_xkb_permament_overlay_behavior_t permamentOverlay1;
+ xcb_xkb_permament_overlay_behavior_t permamentOverlay2;
+ uint8_t type;
+} xcb_xkb_behavior_t;
+
+/**
+ * @brief xcb_xkb_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_behavior_iterator_t {
+ xcb_xkb_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_behavior_iterator_t;
+
+typedef enum xcb_xkb_behavior_type_t {
+ XCB_XKB_BEHAVIOR_TYPE_DEFAULT = 0,
+ XCB_XKB_BEHAVIOR_TYPE_LOCK = 1,
+ XCB_XKB_BEHAVIOR_TYPE_RADIO_GROUP = 2,
+ XCB_XKB_BEHAVIOR_TYPE_OVERLAY_1 = 3,
+ XCB_XKB_BEHAVIOR_TYPE_OVERLAY_2 = 4,
+ XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_LOCK = 129,
+ XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_RADIO_GROUP = 130,
+ XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_OVERLAY_1 = 131,
+ XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_OVERLAY_2 = 132
+} xcb_xkb_behavior_type_t;
+
+/**
+ * @brief xcb_xkb_set_behavior_t
+ **/
+typedef struct xcb_xkb_set_behavior_t {
+ xcb_keycode_t keycode;
+ xcb_xkb_behavior_t behavior;
+ uint8_t pad0;
+} xcb_xkb_set_behavior_t;
+
+/**
+ * @brief xcb_xkb_set_behavior_iterator_t
+ **/
+typedef struct xcb_xkb_set_behavior_iterator_t {
+ xcb_xkb_set_behavior_t *data;
+ int rem;
+ int index;
+} xcb_xkb_set_behavior_iterator_t;
+
+/**
+ * @brief xcb_xkb_set_explicit_t
+ **/
+typedef struct xcb_xkb_set_explicit_t {
+ xcb_keycode_t keycode;
+ uint8_t explicit;
+} xcb_xkb_set_explicit_t;
+
+/**
+ * @brief xcb_xkb_set_explicit_iterator_t
+ **/
+typedef struct xcb_xkb_set_explicit_iterator_t {
+ xcb_xkb_set_explicit_t *data;
+ int rem;
+ int index;
+} xcb_xkb_set_explicit_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_mod_map_t
+ **/
+typedef struct xcb_xkb_key_mod_map_t {
+ xcb_keycode_t keycode;
+ uint8_t mods;
+} xcb_xkb_key_mod_map_t;
+
+/**
+ * @brief xcb_xkb_key_mod_map_iterator_t
+ **/
+typedef struct xcb_xkb_key_mod_map_iterator_t {
+ xcb_xkb_key_mod_map_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_mod_map_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_v_mod_map_t
+ **/
+typedef struct xcb_xkb_key_v_mod_map_t {
+ xcb_keycode_t keycode;
+ uint8_t pad0;
+ uint16_t vmods;
+} xcb_xkb_key_v_mod_map_t;
+
+/**
+ * @brief xcb_xkb_key_v_mod_map_iterator_t
+ **/
+typedef struct xcb_xkb_key_v_mod_map_iterator_t {
+ xcb_xkb_key_v_mod_map_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_v_mod_map_iterator_t;
+
+/**
+ * @brief xcb_xkb_kt_set_map_entry_t
+ **/
+typedef struct xcb_xkb_kt_set_map_entry_t {
+ uint8_t level;
+ uint8_t realMods;
+ uint16_t virtualMods;
+} xcb_xkb_kt_set_map_entry_t;
+
+/**
+ * @brief xcb_xkb_kt_set_map_entry_iterator_t
+ **/
+typedef struct xcb_xkb_kt_set_map_entry_iterator_t {
+ xcb_xkb_kt_set_map_entry_t *data;
+ int rem;
+ int index;
+} xcb_xkb_kt_set_map_entry_iterator_t;
+
+/**
+ * @brief xcb_xkb_set_key_type_t
+ **/
+typedef struct xcb_xkb_set_key_type_t {
+ uint8_t mask;
+ uint8_t realMods;
+ uint16_t virtualMods;
+ uint8_t numLevels;
+ uint8_t nMapEntries;
+ uint8_t preserve;
+ uint8_t pad0;
+} xcb_xkb_set_key_type_t;
+
+/**
+ * @brief xcb_xkb_set_key_type_iterator_t
+ **/
+typedef struct xcb_xkb_set_key_type_iterator_t {
+ xcb_xkb_set_key_type_t *data;
+ int rem;
+ int index;
+} xcb_xkb_set_key_type_iterator_t;
+
+typedef char xcb_xkb_string8_t;
+
+/**
+ * @brief xcb_xkb_string8_iterator_t
+ **/
+typedef struct xcb_xkb_string8_iterator_t {
+ xcb_xkb_string8_t *data;
+ int rem;
+ int index;
+} xcb_xkb_string8_iterator_t;
+
+/**
+ * @brief xcb_xkb_outline_t
+ **/
+typedef struct xcb_xkb_outline_t {
+ uint8_t nPoints;
+ uint8_t cornerRadius;
+ uint8_t pad0[2];
+} xcb_xkb_outline_t;
+
+/**
+ * @brief xcb_xkb_outline_iterator_t
+ **/
+typedef struct xcb_xkb_outline_iterator_t {
+ xcb_xkb_outline_t *data;
+ int rem;
+ int index;
+} xcb_xkb_outline_iterator_t;
+
+/**
+ * @brief xcb_xkb_shape_t
+ **/
+typedef struct xcb_xkb_shape_t {
+ xcb_atom_t name;
+ uint8_t nOutlines;
+ uint8_t primaryNdx;
+ uint8_t approxNdx;
+ uint8_t pad0;
+} xcb_xkb_shape_t;
+
+/**
+ * @brief xcb_xkb_shape_iterator_t
+ **/
+typedef struct xcb_xkb_shape_iterator_t {
+ xcb_xkb_shape_t *data;
+ int rem;
+ int index;
+} xcb_xkb_shape_iterator_t;
+
+/**
+ * @brief xcb_xkb_key_t
+ **/
+typedef struct xcb_xkb_key_t {
+ xcb_xkb_string8_t name[4];
+ int16_t gap;
+ uint8_t shapeNdx;
+ uint8_t colorNdx;
+} xcb_xkb_key_t;
+
+/**
+ * @brief xcb_xkb_key_iterator_t
+ **/
+typedef struct xcb_xkb_key_iterator_t {
+ xcb_xkb_key_t *data;
+ int rem;
+ int index;
+} xcb_xkb_key_iterator_t;
+
+/**
+ * @brief xcb_xkb_overlay_key_t
+ **/
+typedef struct xcb_xkb_overlay_key_t {
+ xcb_xkb_string8_t over[4];
+ xcb_xkb_string8_t under[4];
+} xcb_xkb_overlay_key_t;
+
+/**
+ * @brief xcb_xkb_overlay_key_iterator_t
+ **/
+typedef struct xcb_xkb_overlay_key_iterator_t {
+ xcb_xkb_overlay_key_t *data;
+ int rem;
+ int index;
+} xcb_xkb_overlay_key_iterator_t;
+
+/**
+ * @brief xcb_xkb_overlay_row_t
+ **/
+typedef struct xcb_xkb_overlay_row_t {
+ uint8_t rowUnder;
+ uint8_t nKeys;
+ uint8_t pad0[2];
+} xcb_xkb_overlay_row_t;
+
+/**
+ * @brief xcb_xkb_overlay_row_iterator_t
+ **/
+typedef struct xcb_xkb_overlay_row_iterator_t {
+ xcb_xkb_overlay_row_t *data;
+ int rem;
+ int index;
+} xcb_xkb_overlay_row_iterator_t;
+
+/**
+ * @brief xcb_xkb_overlay_t
+ **/
+typedef struct xcb_xkb_overlay_t {
+ xcb_atom_t name;
+ uint8_t nRows;
+ uint8_t pad0[3];
+} xcb_xkb_overlay_t;
+
+/**
+ * @brief xcb_xkb_overlay_iterator_t
+ **/
+typedef struct xcb_xkb_overlay_iterator_t {
+ xcb_xkb_overlay_t *data;
+ int rem;
+ int index;
+} xcb_xkb_overlay_iterator_t;
+
+/**
+ * @brief xcb_xkb_row_t
+ **/
+typedef struct xcb_xkb_row_t {
+ int16_t top;
+ int16_t left;
+ uint8_t nKeys;
+ uint8_t vertical;
+ uint8_t pad0[2];
+} xcb_xkb_row_t;
+
+/**
+ * @brief xcb_xkb_row_iterator_t
+ **/
+typedef struct xcb_xkb_row_iterator_t {
+ xcb_xkb_row_t *data;
+ int rem;
+ int index;
+} xcb_xkb_row_iterator_t;
+
+typedef enum xcb_xkb_doodad_type_t {
+ XCB_XKB_DOODAD_TYPE_OUTLINE = 1,
+ XCB_XKB_DOODAD_TYPE_SOLID = 2,
+ XCB_XKB_DOODAD_TYPE_TEXT = 3,
+ XCB_XKB_DOODAD_TYPE_INDICATOR = 4,
+ XCB_XKB_DOODAD_TYPE_LOGO = 5
+} xcb_xkb_doodad_type_t;
+
+/**
+ * @brief xcb_xkb_listing_t
+ **/
+typedef struct xcb_xkb_listing_t {
+ uint16_t flags;
+ uint16_t length;
+} xcb_xkb_listing_t;
+
+/**
+ * @brief xcb_xkb_listing_iterator_t
+ **/
+typedef struct xcb_xkb_listing_iterator_t {
+ xcb_xkb_listing_t *data;
+ int rem;
+ int index;
+} xcb_xkb_listing_iterator_t;
+
+/**
+ * @brief xcb_xkb_device_led_info_t
+ **/
+typedef struct xcb_xkb_device_led_info_t {
+ xcb_xkb_led_class_spec_t ledClass;
+ xcb_xkb_id_spec_t ledID;
+ uint32_t namesPresent;
+ uint32_t mapsPresent;
+ uint32_t physIndicators;
+ uint32_t state;
+} xcb_xkb_device_led_info_t;
+
+/**
+ * @brief xcb_xkb_device_led_info_iterator_t
+ **/
+typedef struct xcb_xkb_device_led_info_iterator_t {
+ xcb_xkb_device_led_info_t *data;
+ int rem;
+ int index;
+} xcb_xkb_device_led_info_iterator_t;
+
+typedef enum xcb_xkb_error_t {
+ XCB_XKB_ERROR_BAD_DEVICE = 255,
+ XCB_XKB_ERROR_BAD_CLASS = 254,
+ XCB_XKB_ERROR_BAD_ID = 253
+} xcb_xkb_error_t;
+
+/** Opcode for xcb_xkb_keyboard. */
+#define XCB_XKB_KEYBOARD 0
+
+/**
+ * @brief xcb_xkb_keyboard_error_t
+ **/
+typedef struct xcb_xkb_keyboard_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t value;
+ uint16_t minorOpcode;
+ uint8_t majorOpcode;
+ uint8_t pad0[21];
+} xcb_xkb_keyboard_error_t;
+
+typedef enum xcb_xkb_sa_t {
+ XCB_XKB_SA_CLEAR_LOCKS = 1,
+ XCB_XKB_SA_LATCH_TO_LOCK = 2,
+ XCB_XKB_SA_USE_MOD_MAP_MODS = 4,
+ XCB_XKB_SA_GROUP_ABSOLUTE = 4
+} xcb_xkb_sa_t;
+
+typedef enum xcb_xkb_sa_type_t {
+ XCB_XKB_SA_TYPE_NO_ACTION = 0,
+ XCB_XKB_SA_TYPE_SET_MODS = 1,
+ XCB_XKB_SA_TYPE_LATCH_MODS = 2,
+ XCB_XKB_SA_TYPE_LOCK_MODS = 3,
+ XCB_XKB_SA_TYPE_SET_GROUP = 4,
+ XCB_XKB_SA_TYPE_LATCH_GROUP = 5,
+ XCB_XKB_SA_TYPE_LOCK_GROUP = 6,
+ XCB_XKB_SA_TYPE_MOVE_PTR = 7,
+ XCB_XKB_SA_TYPE_PTR_BTN = 8,
+ XCB_XKB_SA_TYPE_LOCK_PTR_BTN = 9,
+ XCB_XKB_SA_TYPE_SET_PTR_DFLT = 10,
+ XCB_XKB_SA_TYPE_ISO_LOCK = 11,
+ XCB_XKB_SA_TYPE_TERMINATE = 12,
+ XCB_XKB_SA_TYPE_SWITCH_SCREEN = 13,
+ XCB_XKB_SA_TYPE_SET_CONTROLS = 14,
+ XCB_XKB_SA_TYPE_LOCK_CONTROLS = 15,
+ XCB_XKB_SA_TYPE_ACTION_MESSAGE = 16,
+ XCB_XKB_SA_TYPE_REDIRECT_KEY = 17,
+ XCB_XKB_SA_TYPE_DEVICE_BTN = 18,
+ XCB_XKB_SA_TYPE_LOCK_DEVICE_BTN = 19,
+ XCB_XKB_SA_TYPE_DEVICE_VALUATOR = 20
+} xcb_xkb_sa_type_t;
+
+/**
+ * @brief xcb_xkb_sa_no_action_t
+ **/
+typedef struct xcb_xkb_sa_no_action_t {
+ uint8_t type;
+ uint8_t pad0[7];
+} xcb_xkb_sa_no_action_t;
+
+/**
+ * @brief xcb_xkb_sa_no_action_iterator_t
+ **/
+typedef struct xcb_xkb_sa_no_action_iterator_t {
+ xcb_xkb_sa_no_action_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_no_action_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_set_mods_t
+ **/
+typedef struct xcb_xkb_sa_set_mods_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t mask;
+ uint8_t realMods;
+ uint8_t vmodsHigh;
+ uint8_t vmodsLow;
+ uint8_t pad0[2];
+} xcb_xkb_sa_set_mods_t;
+
+/**
+ * @brief xcb_xkb_sa_set_mods_iterator_t
+ **/
+typedef struct xcb_xkb_sa_set_mods_iterator_t {
+ xcb_xkb_sa_set_mods_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_set_mods_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_latch_mods_t
+ **/
+typedef struct xcb_xkb_sa_latch_mods_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t mask;
+ uint8_t realMods;
+ uint8_t vmodsHigh;
+ uint8_t vmodsLow;
+ uint8_t pad0[2];
+} xcb_xkb_sa_latch_mods_t;
+
+/**
+ * @brief xcb_xkb_sa_latch_mods_iterator_t
+ **/
+typedef struct xcb_xkb_sa_latch_mods_iterator_t {
+ xcb_xkb_sa_latch_mods_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_latch_mods_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_mods_t
+ **/
+typedef struct xcb_xkb_sa_lock_mods_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t mask;
+ uint8_t realMods;
+ uint8_t vmodsHigh;
+ uint8_t vmodsLow;
+ uint8_t pad0[2];
+} xcb_xkb_sa_lock_mods_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_mods_iterator_t
+ **/
+typedef struct xcb_xkb_sa_lock_mods_iterator_t {
+ xcb_xkb_sa_lock_mods_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_lock_mods_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_set_group_t
+ **/
+typedef struct xcb_xkb_sa_set_group_t {
+ uint8_t type;
+ uint8_t flags;
+ int8_t group;
+ uint8_t pad0[5];
+} xcb_xkb_sa_set_group_t;
+
+/**
+ * @brief xcb_xkb_sa_set_group_iterator_t
+ **/
+typedef struct xcb_xkb_sa_set_group_iterator_t {
+ xcb_xkb_sa_set_group_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_set_group_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_latch_group_t
+ **/
+typedef struct xcb_xkb_sa_latch_group_t {
+ uint8_t type;
+ uint8_t flags;
+ int8_t group;
+ uint8_t pad0[5];
+} xcb_xkb_sa_latch_group_t;
+
+/**
+ * @brief xcb_xkb_sa_latch_group_iterator_t
+ **/
+typedef struct xcb_xkb_sa_latch_group_iterator_t {
+ xcb_xkb_sa_latch_group_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_latch_group_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_group_t
+ **/
+typedef struct xcb_xkb_sa_lock_group_t {
+ uint8_t type;
+ uint8_t flags;
+ int8_t group;
+ uint8_t pad0[5];
+} xcb_xkb_sa_lock_group_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_group_iterator_t
+ **/
+typedef struct xcb_xkb_sa_lock_group_iterator_t {
+ xcb_xkb_sa_lock_group_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_lock_group_iterator_t;
+
+typedef enum xcb_xkb_sa_move_ptr_flag_t {
+ XCB_XKB_SA_MOVE_PTR_FLAG_NO_ACCELERATION = 1,
+ XCB_XKB_SA_MOVE_PTR_FLAG_MOVE_ABSOLUTE_X = 2,
+ XCB_XKB_SA_MOVE_PTR_FLAG_MOVE_ABSOLUTE_Y = 4
+} xcb_xkb_sa_move_ptr_flag_t;
+
+/**
+ * @brief xcb_xkb_sa_move_ptr_t
+ **/
+typedef struct xcb_xkb_sa_move_ptr_t {
+ uint8_t type;
+ uint8_t flags;
+ int8_t xHigh;
+ uint8_t xLow;
+ int8_t yHigh;
+ uint8_t yLow;
+ uint8_t pad0[2];
+} xcb_xkb_sa_move_ptr_t;
+
+/**
+ * @brief xcb_xkb_sa_move_ptr_iterator_t
+ **/
+typedef struct xcb_xkb_sa_move_ptr_iterator_t {
+ xcb_xkb_sa_move_ptr_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_move_ptr_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_ptr_btn_t
+ **/
+typedef struct xcb_xkb_sa_ptr_btn_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t count;
+ uint8_t button;
+ uint8_t pad0[4];
+} xcb_xkb_sa_ptr_btn_t;
+
+/**
+ * @brief xcb_xkb_sa_ptr_btn_iterator_t
+ **/
+typedef struct xcb_xkb_sa_ptr_btn_iterator_t {
+ xcb_xkb_sa_ptr_btn_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_ptr_btn_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_ptr_btn_t
+ **/
+typedef struct xcb_xkb_sa_lock_ptr_btn_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t pad0;
+ uint8_t button;
+ uint8_t pad1[4];
+} xcb_xkb_sa_lock_ptr_btn_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_ptr_btn_iterator_t
+ **/
+typedef struct xcb_xkb_sa_lock_ptr_btn_iterator_t {
+ xcb_xkb_sa_lock_ptr_btn_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_lock_ptr_btn_iterator_t;
+
+typedef enum xcb_xkb_sa_set_ptr_dflt_flag_t {
+ XCB_XKB_SA_SET_PTR_DFLT_FLAG_DFLT_BTN_ABSOLUTE = 4,
+ XCB_XKB_SA_SET_PTR_DFLT_FLAG_AFFECT_DFLT_BUTTON = 1
+} xcb_xkb_sa_set_ptr_dflt_flag_t;
+
+/**
+ * @brief xcb_xkb_sa_set_ptr_dflt_t
+ **/
+typedef struct xcb_xkb_sa_set_ptr_dflt_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t affect;
+ int8_t value;
+ uint8_t pad0[4];
+} xcb_xkb_sa_set_ptr_dflt_t;
+
+/**
+ * @brief xcb_xkb_sa_set_ptr_dflt_iterator_t
+ **/
+typedef struct xcb_xkb_sa_set_ptr_dflt_iterator_t {
+ xcb_xkb_sa_set_ptr_dflt_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_set_ptr_dflt_iterator_t;
+
+typedef enum xcb_xkb_sa_iso_lock_flag_t {
+ XCB_XKB_SA_ISO_LOCK_FLAG_NO_LOCK = 1,
+ XCB_XKB_SA_ISO_LOCK_FLAG_NO_UNLOCK = 2,
+ XCB_XKB_SA_ISO_LOCK_FLAG_USE_MOD_MAP_MODS = 4,
+ XCB_XKB_SA_ISO_LOCK_FLAG_GROUP_ABSOLUTE = 4,
+ XCB_XKB_SA_ISO_LOCK_FLAG_ISO_DFLT_IS_GROUP = 8
+} xcb_xkb_sa_iso_lock_flag_t;
+
+typedef enum xcb_xkb_sa_iso_lock_no_affect_t {
+ XCB_XKB_SA_ISO_LOCK_NO_AFFECT_CTRLS = 8,
+ XCB_XKB_SA_ISO_LOCK_NO_AFFECT_PTR = 16,
+ XCB_XKB_SA_ISO_LOCK_NO_AFFECT_GROUP = 32,
+ XCB_XKB_SA_ISO_LOCK_NO_AFFECT_MODS = 64
+} xcb_xkb_sa_iso_lock_no_affect_t;
+
+/**
+ * @brief xcb_xkb_sa_iso_lock_t
+ **/
+typedef struct xcb_xkb_sa_iso_lock_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t mask;
+ uint8_t realMods;
+ int8_t group;
+ uint8_t affect;
+ uint8_t vmodsHigh;
+ uint8_t vmodsLow;
+} xcb_xkb_sa_iso_lock_t;
+
+/**
+ * @brief xcb_xkb_sa_iso_lock_iterator_t
+ **/
+typedef struct xcb_xkb_sa_iso_lock_iterator_t {
+ xcb_xkb_sa_iso_lock_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_iso_lock_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_terminate_t
+ **/
+typedef struct xcb_xkb_sa_terminate_t {
+ uint8_t type;
+ uint8_t pad0[7];
+} xcb_xkb_sa_terminate_t;
+
+/**
+ * @brief xcb_xkb_sa_terminate_iterator_t
+ **/
+typedef struct xcb_xkb_sa_terminate_iterator_t {
+ xcb_xkb_sa_terminate_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_terminate_iterator_t;
+
+typedef enum xcb_xkb_switch_screen_flag_t {
+ XCB_XKB_SWITCH_SCREEN_FLAG_APPLICATION = 1,
+ XCB_XKB_SWITCH_SCREEN_FLAG_ABSOLUTE = 4
+} xcb_xkb_switch_screen_flag_t;
+
+/**
+ * @brief xcb_xkb_sa_switch_screen_t
+ **/
+typedef struct xcb_xkb_sa_switch_screen_t {
+ uint8_t type;
+ uint8_t flags;
+ int8_t newScreen;
+ uint8_t pad0[5];
+} xcb_xkb_sa_switch_screen_t;
+
+/**
+ * @brief xcb_xkb_sa_switch_screen_iterator_t
+ **/
+typedef struct xcb_xkb_sa_switch_screen_iterator_t {
+ xcb_xkb_sa_switch_screen_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_switch_screen_iterator_t;
+
+typedef enum xcb_xkb_bool_ctrls_high_t {
+ XCB_XKB_BOOL_CTRLS_HIGH_ACCESS_X_FEEDBACK = 1,
+ XCB_XKB_BOOL_CTRLS_HIGH_AUDIBLE_BELL = 2,
+ XCB_XKB_BOOL_CTRLS_HIGH_OVERLAY_1 = 4,
+ XCB_XKB_BOOL_CTRLS_HIGH_OVERLAY_2 = 8,
+ XCB_XKB_BOOL_CTRLS_HIGH_IGNORE_GROUP_LOCK = 16
+} xcb_xkb_bool_ctrls_high_t;
+
+typedef enum xcb_xkb_bool_ctrls_low_t {
+ XCB_XKB_BOOL_CTRLS_LOW_REPEAT_KEYS = 1,
+ XCB_XKB_BOOL_CTRLS_LOW_SLOW_KEYS = 2,
+ XCB_XKB_BOOL_CTRLS_LOW_BOUNCE_KEYS = 4,
+ XCB_XKB_BOOL_CTRLS_LOW_STICKY_KEYS = 8,
+ XCB_XKB_BOOL_CTRLS_LOW_MOUSE_KEYS = 16,
+ XCB_XKB_BOOL_CTRLS_LOW_MOUSE_KEYS_ACCEL = 32,
+ XCB_XKB_BOOL_CTRLS_LOW_ACCESS_X_KEYS = 64,
+ XCB_XKB_BOOL_CTRLS_LOW_ACCESS_X_TIMEOUT = 128
+} xcb_xkb_bool_ctrls_low_t;
+
+/**
+ * @brief xcb_xkb_sa_set_controls_t
+ **/
+typedef struct xcb_xkb_sa_set_controls_t {
+ uint8_t type;
+ uint8_t pad0[3];
+ uint8_t boolCtrlsHigh;
+ uint8_t boolCtrlsLow;
+ uint8_t pad1[2];
+} xcb_xkb_sa_set_controls_t;
+
+/**
+ * @brief xcb_xkb_sa_set_controls_iterator_t
+ **/
+typedef struct xcb_xkb_sa_set_controls_iterator_t {
+ xcb_xkb_sa_set_controls_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_set_controls_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_controls_t
+ **/
+typedef struct xcb_xkb_sa_lock_controls_t {
+ uint8_t type;
+ uint8_t pad0[3];
+ uint8_t boolCtrlsHigh;
+ uint8_t boolCtrlsLow;
+ uint8_t pad1[2];
+} xcb_xkb_sa_lock_controls_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_controls_iterator_t
+ **/
+typedef struct xcb_xkb_sa_lock_controls_iterator_t {
+ xcb_xkb_sa_lock_controls_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_lock_controls_iterator_t;
+
+typedef enum xcb_xkb_action_message_flag_t {
+ XCB_XKB_ACTION_MESSAGE_FLAG_ON_PRESS = 1,
+ XCB_XKB_ACTION_MESSAGE_FLAG_ON_RELEASE = 2,
+ XCB_XKB_ACTION_MESSAGE_FLAG_GEN_KEY_EVENT = 4
+} xcb_xkb_action_message_flag_t;
+
+/**
+ * @brief xcb_xkb_sa_action_message_t
+ **/
+typedef struct xcb_xkb_sa_action_message_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t message[6];
+} xcb_xkb_sa_action_message_t;
+
+/**
+ * @brief xcb_xkb_sa_action_message_iterator_t
+ **/
+typedef struct xcb_xkb_sa_action_message_iterator_t {
+ xcb_xkb_sa_action_message_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_action_message_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_redirect_key_t
+ **/
+typedef struct xcb_xkb_sa_redirect_key_t {
+ uint8_t type;
+ xcb_keycode_t newkey;
+ uint8_t mask;
+ uint8_t realModifiers;
+ uint8_t vmodsMaskHigh;
+ uint8_t vmodsMaskLow;
+ uint8_t vmodsHigh;
+ uint8_t vmodsLow;
+} xcb_xkb_sa_redirect_key_t;
+
+/**
+ * @brief xcb_xkb_sa_redirect_key_iterator_t
+ **/
+typedef struct xcb_xkb_sa_redirect_key_iterator_t {
+ xcb_xkb_sa_redirect_key_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_redirect_key_iterator_t;
+
+/**
+ * @brief xcb_xkb_sa_device_btn_t
+ **/
+typedef struct xcb_xkb_sa_device_btn_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t count;
+ uint8_t button;
+ uint8_t device;
+ uint8_t pad0[3];
+} xcb_xkb_sa_device_btn_t;
+
+/**
+ * @brief xcb_xkb_sa_device_btn_iterator_t
+ **/
+typedef struct xcb_xkb_sa_device_btn_iterator_t {
+ xcb_xkb_sa_device_btn_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_device_btn_iterator_t;
+
+typedef enum xcb_xkb_lock_device_flags_t {
+ XCB_XKB_LOCK_DEVICE_FLAGS_NO_LOCK = 1,
+ XCB_XKB_LOCK_DEVICE_FLAGS_NO_UNLOCK = 2
+} xcb_xkb_lock_device_flags_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_device_btn_t
+ **/
+typedef struct xcb_xkb_sa_lock_device_btn_t {
+ uint8_t type;
+ uint8_t flags;
+ uint8_t pad0;
+ uint8_t button;
+ uint8_t device;
+ uint8_t pad1[3];
+} xcb_xkb_sa_lock_device_btn_t;
+
+/**
+ * @brief xcb_xkb_sa_lock_device_btn_iterator_t
+ **/
+typedef struct xcb_xkb_sa_lock_device_btn_iterator_t {
+ xcb_xkb_sa_lock_device_btn_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_lock_device_btn_iterator_t;
+
+typedef enum xcb_xkb_sa_val_what_t {
+ XCB_XKB_SA_VAL_WHAT_IGNORE_VAL = 0,
+ XCB_XKB_SA_VAL_WHAT_SET_VAL_MIN = 1,
+ XCB_XKB_SA_VAL_WHAT_SET_VAL_CENTER = 2,
+ XCB_XKB_SA_VAL_WHAT_SET_VAL_MAX = 3,
+ XCB_XKB_SA_VAL_WHAT_SET_VAL_RELATIVE = 4,
+ XCB_XKB_SA_VAL_WHAT_SET_VAL_ABSOLUTE = 5
+} xcb_xkb_sa_val_what_t;
+
+/**
+ * @brief xcb_xkb_sa_device_valuator_t
+ **/
+typedef struct xcb_xkb_sa_device_valuator_t {
+ uint8_t type;
+ uint8_t device;
+ uint8_t val1what;
+ uint8_t val1index;
+ uint8_t val1value;
+ uint8_t val2what;
+ uint8_t val2index;
+ uint8_t val2value;
+} xcb_xkb_sa_device_valuator_t;
+
+/**
+ * @brief xcb_xkb_sa_device_valuator_iterator_t
+ **/
+typedef struct xcb_xkb_sa_device_valuator_iterator_t {
+ xcb_xkb_sa_device_valuator_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sa_device_valuator_iterator_t;
+
+/**
+ * @brief xcb_xkb_si_action_t
+ **/
+typedef struct xcb_xkb_si_action_t {
+ uint8_t type;
+ uint8_t data[7];
+} xcb_xkb_si_action_t;
+
+/**
+ * @brief xcb_xkb_si_action_iterator_t
+ **/
+typedef struct xcb_xkb_si_action_iterator_t {
+ xcb_xkb_si_action_t *data;
+ int rem;
+ int index;
+} xcb_xkb_si_action_iterator_t;
+
+/**
+ * @brief xcb_xkb_sym_interpret_t
+ **/
+typedef struct xcb_xkb_sym_interpret_t {
+ xcb_keysym_t sym;
+ uint8_t mods;
+ uint8_t match;
+ uint8_t virtualMod;
+ uint8_t flags;
+ xcb_xkb_si_action_t action;
+} xcb_xkb_sym_interpret_t;
+
+/**
+ * @brief xcb_xkb_sym_interpret_iterator_t
+ **/
+typedef struct xcb_xkb_sym_interpret_iterator_t {
+ xcb_xkb_sym_interpret_t *data;
+ int rem;
+ int index;
+} xcb_xkb_sym_interpret_iterator_t;
+
+/**
+ * @brief xcb_xkb_action_t
+ **/
+typedef union xcb_xkb_action_t {
+ xcb_xkb_sa_no_action_t noaction;
+ xcb_xkb_sa_set_mods_t setmods;
+ xcb_xkb_sa_latch_mods_t latchmods;
+ xcb_xkb_sa_lock_mods_t lockmods;
+ xcb_xkb_sa_set_group_t setgroup;
+ xcb_xkb_sa_latch_group_t latchgroup;
+ xcb_xkb_sa_lock_group_t lockgroup;
+ xcb_xkb_sa_move_ptr_t moveptr;
+ xcb_xkb_sa_ptr_btn_t ptrbtn;
+ xcb_xkb_sa_lock_ptr_btn_t lockptrbtn;
+ xcb_xkb_sa_set_ptr_dflt_t setptrdflt;
+ xcb_xkb_sa_iso_lock_t isolock;
+ xcb_xkb_sa_terminate_t terminate;
+ xcb_xkb_sa_switch_screen_t switchscreen;
+ xcb_xkb_sa_set_controls_t setcontrols;
+ xcb_xkb_sa_lock_controls_t lockcontrols;
+ xcb_xkb_sa_action_message_t message;
+ xcb_xkb_sa_redirect_key_t redirect;
+ xcb_xkb_sa_device_btn_t devbtn;
+ xcb_xkb_sa_lock_device_btn_t lockdevbtn;
+ xcb_xkb_sa_device_valuator_t devval;
+ uint8_t type;
+} xcb_xkb_action_t;
+
+/**
+ * @brief xcb_xkb_action_iterator_t
+ **/
+typedef struct xcb_xkb_action_iterator_t {
+ xcb_xkb_action_t *data;
+ int rem;
+ int index;
+} xcb_xkb_action_iterator_t;
+
+/**
+ * @brief xcb_xkb_use_extension_cookie_t
+ **/
+typedef struct xcb_xkb_use_extension_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_use_extension_cookie_t;
+
+/** Opcode for xcb_xkb_use_extension. */
+#define XCB_XKB_USE_EXTENSION 0
+
+/**
+ * @brief xcb_xkb_use_extension_request_t
+ **/
+typedef struct xcb_xkb_use_extension_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t wantedMajor;
+ uint16_t wantedMinor;
+} xcb_xkb_use_extension_request_t;
+
+/**
+ * @brief xcb_xkb_use_extension_reply_t
+ **/
+typedef struct xcb_xkb_use_extension_reply_t {
+ uint8_t response_type;
+ uint8_t supported;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t serverMajor;
+ uint16_t serverMinor;
+ uint8_t pad0[20];
+} xcb_xkb_use_extension_reply_t;
+
+/**
+ * @brief xcb_xkb_select_events_details_t
+ **/
+typedef struct xcb_xkb_select_events_details_t {
+ uint16_t affectNewKeyboard;
+ uint16_t newKeyboardDetails;
+ uint16_t affectState;
+ uint16_t stateDetails;
+ uint32_t affectCtrls;
+ uint32_t ctrlDetails;
+ uint32_t affectIndicatorState;
+ uint32_t indicatorStateDetails;
+ uint32_t affectIndicatorMap;
+ uint32_t indicatorMapDetails;
+ uint16_t affectNames;
+ uint16_t namesDetails;
+ uint8_t affectCompat;
+ uint8_t compatDetails;
+ uint8_t affectBell;
+ uint8_t bellDetails;
+ uint8_t affectMsgDetails;
+ uint8_t msgDetails;
+ uint16_t affectAccessX;
+ uint16_t accessXDetails;
+ uint16_t affectExtDev;
+ uint16_t extdevDetails;
+} xcb_xkb_select_events_details_t;
+
+/** Opcode for xcb_xkb_select_events. */
+#define XCB_XKB_SELECT_EVENTS 1
+
+/**
+ * @brief xcb_xkb_select_events_request_t
+ **/
+typedef struct xcb_xkb_select_events_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t affectWhich;
+ uint16_t clear;
+ uint16_t selectAll;
+ uint16_t affectMap;
+ uint16_t map;
+} xcb_xkb_select_events_request_t;
+
+/** Opcode for xcb_xkb_bell. */
+#define XCB_XKB_BELL 3
+
+/**
+ * @brief xcb_xkb_bell_request_t
+ **/
+typedef struct xcb_xkb_bell_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ xcb_xkb_bell_class_spec_t bellClass;
+ xcb_xkb_id_spec_t bellID;
+ int8_t percent;
+ uint8_t forceSound;
+ uint8_t eventOnly;
+ uint8_t pad0;
+ int16_t pitch;
+ int16_t duration;
+ uint8_t pad1[2];
+ xcb_atom_t name;
+ xcb_window_t window;
+} xcb_xkb_bell_request_t;
+
+/**
+ * @brief xcb_xkb_get_state_cookie_t
+ **/
+typedef struct xcb_xkb_get_state_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_state_cookie_t;
+
+/** Opcode for xcb_xkb_get_state. */
+#define XCB_XKB_GET_STATE 4
+
+/**
+ * @brief xcb_xkb_get_state_request_t
+ **/
+typedef struct xcb_xkb_get_state_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+} xcb_xkb_get_state_request_t;
+
+/**
+ * @brief xcb_xkb_get_state_reply_t
+ **/
+typedef struct xcb_xkb_get_state_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t mods;
+ uint8_t baseMods;
+ uint8_t latchedMods;
+ uint8_t lockedMods;
+ uint8_t group;
+ uint8_t lockedGroup;
+ int16_t baseGroup;
+ int16_t latchedGroup;
+ uint8_t compatState;
+ uint8_t grabMods;
+ uint8_t compatGrabMods;
+ uint8_t lookupMods;
+ uint8_t compatLookupMods;
+ uint8_t pad0;
+ uint16_t ptrBtnState;
+ uint8_t pad1[6];
+} xcb_xkb_get_state_reply_t;
+
+/** Opcode for xcb_xkb_latch_lock_state. */
+#define XCB_XKB_LATCH_LOCK_STATE 5
+
+/**
+ * @brief xcb_xkb_latch_lock_state_request_t
+ **/
+typedef struct xcb_xkb_latch_lock_state_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t affectModLocks;
+ uint8_t modLocks;
+ uint8_t lockGroup;
+ uint8_t groupLock;
+ uint8_t affectModLatches;
+ uint8_t pad0;
+ uint8_t pad1;
+ uint8_t latchGroup;
+ uint16_t groupLatch;
+} xcb_xkb_latch_lock_state_request_t;
+
+/**
+ * @brief xcb_xkb_get_controls_cookie_t
+ **/
+typedef struct xcb_xkb_get_controls_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_controls_cookie_t;
+
+/** Opcode for xcb_xkb_get_controls. */
+#define XCB_XKB_GET_CONTROLS 6
+
+/**
+ * @brief xcb_xkb_get_controls_request_t
+ **/
+typedef struct xcb_xkb_get_controls_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+} xcb_xkb_get_controls_request_t;
+
+/**
+ * @brief xcb_xkb_get_controls_reply_t
+ **/
+typedef struct xcb_xkb_get_controls_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t mouseKeysDfltBtn;
+ uint8_t numGroups;
+ uint8_t groupsWrap;
+ uint8_t internalModsMask;
+ uint8_t ignoreLockModsMask;
+ uint8_t internalModsRealMods;
+ uint8_t ignoreLockModsRealMods;
+ uint8_t pad0;
+ uint16_t internalModsVmods;
+ uint16_t ignoreLockModsVmods;
+ uint16_t repeatDelay;
+ uint16_t repeatInterval;
+ uint16_t slowKeysDelay;
+ uint16_t debounceDelay;
+ uint16_t mouseKeysDelay;
+ uint16_t mouseKeysInterval;
+ uint16_t mouseKeysTimeToMax;
+ uint16_t mouseKeysMaxSpeed;
+ int16_t mouseKeysCurve;
+ uint16_t accessXOption;
+ uint16_t accessXTimeout;
+ uint16_t accessXTimeoutOptionsMask;
+ uint16_t accessXTimeoutOptionsValues;
+ uint8_t pad1[2];
+ uint32_t accessXTimeoutMask;
+ uint32_t accessXTimeoutValues;
+ uint32_t enabledControls;
+ uint8_t perKeyRepeat[32];
+} xcb_xkb_get_controls_reply_t;
+
+/** Opcode for xcb_xkb_set_controls. */
+#define XCB_XKB_SET_CONTROLS 7
+
+/**
+ * @brief xcb_xkb_set_controls_request_t
+ **/
+typedef struct xcb_xkb_set_controls_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t affectInternalRealMods;
+ uint8_t internalRealMods;
+ uint8_t affectIgnoreLockRealMods;
+ uint8_t ignoreLockRealMods;
+ uint16_t affectInternalVirtualMods;
+ uint16_t internalVirtualMods;
+ uint16_t affectIgnoreLockVirtualMods;
+ uint16_t ignoreLockVirtualMods;
+ uint8_t mouseKeysDfltBtn;
+ uint8_t groupsWrap;
+ uint16_t accessXOptions;
+ uint8_t pad0[2];
+ uint32_t affectEnabledControls;
+ uint32_t enabledControls;
+ uint32_t changeControls;
+ uint16_t repeatDelay;
+ uint16_t repeatInterval;
+ uint16_t slowKeysDelay;
+ uint16_t debounceDelay;
+ uint16_t mouseKeysDelay;
+ uint16_t mouseKeysInterval;
+ uint16_t mouseKeysTimeToMax;
+ uint16_t mouseKeysMaxSpeed;
+ int16_t mouseKeysCurve;
+ uint16_t accessXTimeout;
+ uint32_t accessXTimeoutMask;
+ uint32_t accessXTimeoutValues;
+ uint16_t accessXTimeoutOptionsMask;
+ uint16_t accessXTimeoutOptionsValues;
+ uint8_t perKeyRepeat[32];
+} xcb_xkb_set_controls_request_t;
+
+/**
+ * @brief xcb_xkb_get_map_cookie_t
+ **/
+typedef struct xcb_xkb_get_map_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_map_cookie_t;
+
+/** Opcode for xcb_xkb_get_map. */
+#define XCB_XKB_GET_MAP 8
+
+/**
+ * @brief xcb_xkb_get_map_request_t
+ **/
+typedef struct xcb_xkb_get_map_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t full;
+ uint16_t partial;
+ uint8_t firstType;
+ uint8_t nTypes;
+ xcb_keycode_t firstKeySym;
+ uint8_t nKeySyms;
+ xcb_keycode_t firstKeyAction;
+ uint8_t nKeyActions;
+ xcb_keycode_t firstKeyBehavior;
+ uint8_t nKeyBehaviors;
+ uint16_t virtualMods;
+ xcb_keycode_t firstKeyExplicit;
+ uint8_t nKeyExplicit;
+ xcb_keycode_t firstModMapKey;
+ uint8_t nModMapKeys;
+ xcb_keycode_t firstVModMapKey;
+ uint8_t nVModMapKeys;
+ uint8_t pad0[2];
+} xcb_xkb_get_map_request_t;
+
+/**
+ * @brief xcb_xkb_get_map_map_t
+ **/
+typedef struct xcb_xkb_get_map_map_t {
+ xcb_xkb_key_type_t *types_rtrn;
+ xcb_xkb_key_sym_map_t *syms_rtrn;
+ uint8_t *acts_rtrn_count;
+ uint8_t *pad2;
+ xcb_xkb_action_t *acts_rtrn_acts;
+ xcb_xkb_set_behavior_t *behaviors_rtrn;
+ uint8_t *vmods_rtrn;
+ uint8_t *pad3;
+ xcb_xkb_set_explicit_t *explicit_rtrn;
+ uint8_t *pad4;
+ xcb_xkb_key_mod_map_t *modmap_rtrn;
+ uint8_t *pad5;
+ xcb_xkb_key_v_mod_map_t *vmodmap_rtrn;
+} xcb_xkb_get_map_map_t;
+
+/**
+ * @brief xcb_xkb_get_map_reply_t
+ **/
+typedef struct xcb_xkb_get_map_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[2];
+ xcb_keycode_t minKeyCode;
+ xcb_keycode_t maxKeyCode;
+ uint16_t present;
+ uint8_t firstType;
+ uint8_t nTypes;
+ uint8_t totalTypes;
+ xcb_keycode_t firstKeySym;
+ uint16_t totalSyms;
+ uint8_t nKeySyms;
+ xcb_keycode_t firstKeyAction;
+ uint16_t totalActions;
+ uint8_t nKeyActions;
+ xcb_keycode_t firstKeyBehavior;
+ uint8_t nKeyBehaviors;
+ uint8_t totalKeyBehaviors;
+ xcb_keycode_t firstKeyExplicit;
+ uint8_t nKeyExplicit;
+ uint8_t totalKeyExplicit;
+ xcb_keycode_t firstModMapKey;
+ uint8_t nModMapKeys;
+ uint8_t totalModMapKeys;
+ xcb_keycode_t firstVModMapKey;
+ uint8_t nVModMapKeys;
+ uint8_t totalVModMapKeys;
+ uint8_t pad1;
+ uint16_t virtualMods;
+} xcb_xkb_get_map_reply_t;
+
+/**
+ * @brief xcb_xkb_set_map_values_t
+ **/
+typedef struct xcb_xkb_set_map_values_t {
+ xcb_xkb_set_key_type_t *types;
+ xcb_xkb_key_sym_map_t *syms;
+ uint8_t *actionsCount;
+ xcb_xkb_action_t *actions;
+ xcb_xkb_set_behavior_t *behaviors;
+ uint8_t *vmods;
+ xcb_xkb_set_explicit_t *explicit;
+ xcb_xkb_key_mod_map_t *modmap;
+ xcb_xkb_key_v_mod_map_t *vmodmap;
+} xcb_xkb_set_map_values_t;
+
+/** Opcode for xcb_xkb_set_map. */
+#define XCB_XKB_SET_MAP 9
+
+/**
+ * @brief xcb_xkb_set_map_request_t
+ **/
+typedef struct xcb_xkb_set_map_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t present;
+ uint16_t flags;
+ xcb_keycode_t minKeyCode;
+ xcb_keycode_t maxKeyCode;
+ uint8_t firstType;
+ uint8_t nTypes;
+ xcb_keycode_t firstKeySym;
+ uint8_t nKeySyms;
+ uint16_t totalSyms;
+ xcb_keycode_t firstKeyAction;
+ uint8_t nKeyActions;
+ uint16_t totalActions;
+ xcb_keycode_t firstKeyBehavior;
+ uint8_t nKeyBehaviors;
+ uint8_t totalKeyBehaviors;
+ xcb_keycode_t firstKeyExplicit;
+ uint8_t nKeyExplicit;
+ uint8_t totalKeyExplicit;
+ xcb_keycode_t firstModMapKey;
+ uint8_t nModMapKeys;
+ uint8_t totalModMapKeys;
+ xcb_keycode_t firstVModMapKey;
+ uint8_t nVModMapKeys;
+ uint8_t totalVModMapKeys;
+ uint16_t virtualMods;
+} xcb_xkb_set_map_request_t;
+
+/**
+ * @brief xcb_xkb_get_compat_map_cookie_t
+ **/
+typedef struct xcb_xkb_get_compat_map_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_compat_map_cookie_t;
+
+/** Opcode for xcb_xkb_get_compat_map. */
+#define XCB_XKB_GET_COMPAT_MAP 10
+
+/**
+ * @brief xcb_xkb_get_compat_map_request_t
+ **/
+typedef struct xcb_xkb_get_compat_map_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t groups;
+ uint8_t getAllSI;
+ uint16_t firstSI;
+ uint16_t nSI;
+} xcb_xkb_get_compat_map_request_t;
+
+/**
+ * @brief xcb_xkb_get_compat_map_reply_t
+ **/
+typedef struct xcb_xkb_get_compat_map_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t groupsRtrn;
+ uint8_t pad0;
+ uint16_t firstSIRtrn;
+ uint16_t nSIRtrn;
+ uint16_t nTotalSI;
+ uint8_t pad1[16];
+} xcb_xkb_get_compat_map_reply_t;
+
+/** Opcode for xcb_xkb_set_compat_map. */
+#define XCB_XKB_SET_COMPAT_MAP 11
+
+/**
+ * @brief xcb_xkb_set_compat_map_request_t
+ **/
+typedef struct xcb_xkb_set_compat_map_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0;
+ uint8_t recomputeActions;
+ uint8_t truncateSI;
+ uint8_t groups;
+ uint16_t firstSI;
+ uint16_t nSI;
+ uint8_t pad1[2];
+} xcb_xkb_set_compat_map_request_t;
+
+/**
+ * @brief xcb_xkb_get_indicator_state_cookie_t
+ **/
+typedef struct xcb_xkb_get_indicator_state_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_indicator_state_cookie_t;
+
+/** Opcode for xcb_xkb_get_indicator_state. */
+#define XCB_XKB_GET_INDICATOR_STATE 12
+
+/**
+ * @brief xcb_xkb_get_indicator_state_request_t
+ **/
+typedef struct xcb_xkb_get_indicator_state_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+} xcb_xkb_get_indicator_state_request_t;
+
+/**
+ * @brief xcb_xkb_get_indicator_state_reply_t
+ **/
+typedef struct xcb_xkb_get_indicator_state_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t state;
+ uint8_t pad0[20];
+} xcb_xkb_get_indicator_state_reply_t;
+
+/**
+ * @brief xcb_xkb_get_indicator_map_cookie_t
+ **/
+typedef struct xcb_xkb_get_indicator_map_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_indicator_map_cookie_t;
+
+/** Opcode for xcb_xkb_get_indicator_map. */
+#define XCB_XKB_GET_INDICATOR_MAP 13
+
+/**
+ * @brief xcb_xkb_get_indicator_map_request_t
+ **/
+typedef struct xcb_xkb_get_indicator_map_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+ uint32_t which;
+} xcb_xkb_get_indicator_map_request_t;
+
+/**
+ * @brief xcb_xkb_get_indicator_map_reply_t
+ **/
+typedef struct xcb_xkb_get_indicator_map_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t which;
+ uint32_t realIndicators;
+ uint8_t nIndicators;
+ uint8_t pad0[15];
+} xcb_xkb_get_indicator_map_reply_t;
+
+/** Opcode for xcb_xkb_set_indicator_map. */
+#define XCB_XKB_SET_INDICATOR_MAP 14
+
+/**
+ * @brief xcb_xkb_set_indicator_map_request_t
+ **/
+typedef struct xcb_xkb_set_indicator_map_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+ uint32_t which;
+} xcb_xkb_set_indicator_map_request_t;
+
+/**
+ * @brief xcb_xkb_get_named_indicator_cookie_t
+ **/
+typedef struct xcb_xkb_get_named_indicator_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_named_indicator_cookie_t;
+
+/** Opcode for xcb_xkb_get_named_indicator. */
+#define XCB_XKB_GET_NAMED_INDICATOR 15
+
+/**
+ * @brief xcb_xkb_get_named_indicator_request_t
+ **/
+typedef struct xcb_xkb_get_named_indicator_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ xcb_xkb_led_class_spec_t ledClass;
+ xcb_xkb_id_spec_t ledID;
+ uint8_t pad0[2];
+ xcb_atom_t indicator;
+} xcb_xkb_get_named_indicator_request_t;
+
+/**
+ * @brief xcb_xkb_get_named_indicator_reply_t
+ **/
+typedef struct xcb_xkb_get_named_indicator_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t indicator;
+ uint8_t found;
+ uint8_t on;
+ uint8_t realIndicator;
+ uint8_t ndx;
+ uint8_t map_flags;
+ uint8_t map_whichGroups;
+ uint8_t map_groups;
+ uint8_t map_whichMods;
+ uint8_t map_mods;
+ uint8_t map_realMods;
+ uint16_t map_vmod;
+ uint32_t map_ctrls;
+ uint8_t supported;
+ uint8_t pad0[3];
+} xcb_xkb_get_named_indicator_reply_t;
+
+/** Opcode for xcb_xkb_set_named_indicator. */
+#define XCB_XKB_SET_NAMED_INDICATOR 16
+
+/**
+ * @brief xcb_xkb_set_named_indicator_request_t
+ **/
+typedef struct xcb_xkb_set_named_indicator_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ xcb_xkb_led_class_spec_t ledClass;
+ xcb_xkb_id_spec_t ledID;
+ uint8_t pad0[2];
+ xcb_atom_t indicator;
+ uint8_t setState;
+ uint8_t on;
+ uint8_t setMap;
+ uint8_t createMap;
+ uint8_t pad1;
+ uint8_t map_flags;
+ uint8_t map_whichGroups;
+ uint8_t map_groups;
+ uint8_t map_whichMods;
+ uint8_t map_realMods;
+ uint16_t map_vmods;
+ uint32_t map_ctrls;
+} xcb_xkb_set_named_indicator_request_t;
+
+/**
+ * @brief xcb_xkb_get_names_cookie_t
+ **/
+typedef struct xcb_xkb_get_names_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_names_cookie_t;
+
+/** Opcode for xcb_xkb_get_names. */
+#define XCB_XKB_GET_NAMES 17
+
+/**
+ * @brief xcb_xkb_get_names_request_t
+ **/
+typedef struct xcb_xkb_get_names_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+ uint32_t which;
+} xcb_xkb_get_names_request_t;
+
+/**
+ * @brief xcb_xkb_get_names_value_list_t
+ **/
+typedef struct xcb_xkb_get_names_value_list_t {
+ xcb_atom_t keycodesName;
+ xcb_atom_t geometryName;
+ xcb_atom_t symbolsName;
+ xcb_atom_t physSymbolsName;
+ xcb_atom_t typesName;
+ xcb_atom_t compatName;
+ xcb_atom_t *typeNames;
+ uint8_t *nLevelsPerType;
+ uint8_t *pad1;
+ xcb_atom_t *ktLevelNames;
+ xcb_atom_t *indicatorNames;
+ xcb_atom_t *virtualModNames;
+ xcb_atom_t *groups;
+ xcb_xkb_key_name_t *keyNames;
+ xcb_xkb_key_alias_t *keyAliases;
+ xcb_atom_t *radioGroupNames;
+} xcb_xkb_get_names_value_list_t;
+
+/**
+ * @brief xcb_xkb_get_names_reply_t
+ **/
+typedef struct xcb_xkb_get_names_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t which;
+ xcb_keycode_t minKeyCode;
+ xcb_keycode_t maxKeyCode;
+ uint8_t nTypes;
+ uint8_t groupNames;
+ uint16_t virtualMods;
+ xcb_keycode_t firstKey;
+ uint8_t nKeys;
+ uint32_t indicators;
+ uint8_t nRadioGroups;
+ uint8_t nKeyAliases;
+ uint16_t nKTLevels;
+ uint8_t pad0[4];
+} xcb_xkb_get_names_reply_t;
+
+/**
+ * @brief xcb_xkb_set_names_values_t
+ **/
+typedef struct xcb_xkb_set_names_values_t {
+ xcb_atom_t keycodesName;
+ xcb_atom_t geometryName;
+ xcb_atom_t symbolsName;
+ xcb_atom_t physSymbolsName;
+ xcb_atom_t typesName;
+ xcb_atom_t compatName;
+ xcb_atom_t *typeNames;
+ uint8_t *nLevelsPerType;
+ xcb_atom_t *ktLevelNames;
+ xcb_atom_t *indicatorNames;
+ xcb_atom_t *virtualModNames;
+ xcb_atom_t *groups;
+ xcb_xkb_key_name_t *keyNames;
+ xcb_xkb_key_alias_t *keyAliases;
+ xcb_atom_t *radioGroupNames;
+} xcb_xkb_set_names_values_t;
+
+/** Opcode for xcb_xkb_set_names. */
+#define XCB_XKB_SET_NAMES 18
+
+/**
+ * @brief xcb_xkb_set_names_request_t
+ **/
+typedef struct xcb_xkb_set_names_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t virtualMods;
+ uint32_t which;
+ uint8_t firstType;
+ uint8_t nTypes;
+ uint8_t firstKTLevelt;
+ uint8_t nKTLevels;
+ uint32_t indicators;
+ uint8_t groupNames;
+ uint8_t nRadioGroups;
+ xcb_keycode_t firstKey;
+ uint8_t nKeys;
+ uint8_t nKeyAliases;
+ uint8_t pad0;
+ uint16_t totalKTLevelNames;
+} xcb_xkb_set_names_request_t;
+
+/**
+ * @brief xcb_xkb_per_client_flags_cookie_t
+ **/
+typedef struct xcb_xkb_per_client_flags_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_per_client_flags_cookie_t;
+
+/** Opcode for xcb_xkb_per_client_flags. */
+#define XCB_XKB_PER_CLIENT_FLAGS 21
+
+/**
+ * @brief xcb_xkb_per_client_flags_request_t
+ **/
+typedef struct xcb_xkb_per_client_flags_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t pad0[2];
+ uint32_t change;
+ uint32_t value;
+ uint32_t ctrlsToChange;
+ uint32_t autoCtrls;
+ uint32_t autoCtrlsValues;
+} xcb_xkb_per_client_flags_request_t;
+
+/**
+ * @brief xcb_xkb_per_client_flags_reply_t
+ **/
+typedef struct xcb_xkb_per_client_flags_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t supported;
+ uint32_t value;
+ uint32_t autoCtrls;
+ uint32_t autoCtrlsValues;
+ uint8_t pad0[8];
+} xcb_xkb_per_client_flags_reply_t;
+
+/**
+ * @brief xcb_xkb_list_components_cookie_t
+ **/
+typedef struct xcb_xkb_list_components_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_list_components_cookie_t;
+
+/** Opcode for xcb_xkb_list_components. */
+#define XCB_XKB_LIST_COMPONENTS 22
+
+/**
+ * @brief xcb_xkb_list_components_request_t
+ **/
+typedef struct xcb_xkb_list_components_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t maxNames;
+} xcb_xkb_list_components_request_t;
+
+/**
+ * @brief xcb_xkb_list_components_reply_t
+ **/
+typedef struct xcb_xkb_list_components_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t nKeymaps;
+ uint16_t nKeycodes;
+ uint16_t nTypes;
+ uint16_t nCompatMaps;
+ uint16_t nSymbols;
+ uint16_t nGeometries;
+ uint16_t extra;
+ uint8_t pad0[10];
+} xcb_xkb_list_components_reply_t;
+
+/**
+ * @brief xcb_xkb_get_kbd_by_name_cookie_t
+ **/
+typedef struct xcb_xkb_get_kbd_by_name_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_kbd_by_name_cookie_t;
+
+/** Opcode for xcb_xkb_get_kbd_by_name. */
+#define XCB_XKB_GET_KBD_BY_NAME 23
+
+/**
+ * @brief xcb_xkb_get_kbd_by_name_request_t
+ **/
+typedef struct xcb_xkb_get_kbd_by_name_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t need;
+ uint16_t want;
+ uint8_t load;
+ uint8_t pad0;
+} xcb_xkb_get_kbd_by_name_request_t;
+
+/**
+ * @brief xcb_xkb_get_kbd_by_name_replies_types_map_t
+ **/
+typedef struct xcb_xkb_get_kbd_by_name_replies_types_map_t {
+ xcb_xkb_key_type_t *types_rtrn;
+ xcb_xkb_key_sym_map_t *syms_rtrn;
+ uint8_t *acts_rtrn_count;
+ xcb_xkb_action_t *acts_rtrn_acts;
+ xcb_xkb_set_behavior_t *behaviors_rtrn;
+ uint8_t *vmods_rtrn;
+ xcb_xkb_set_explicit_t *explicit_rtrn;
+ xcb_xkb_key_mod_map_t *modmap_rtrn;
+ xcb_xkb_key_v_mod_map_t *vmodmap_rtrn;
+} xcb_xkb_get_kbd_by_name_replies_types_map_t;
+
+/**
+ * @brief xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t
+ **/
+typedef struct xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t {
+ xcb_atom_t keycodesName;
+ xcb_atom_t geometryName;
+ xcb_atom_t symbolsName;
+ xcb_atom_t physSymbolsName;
+ xcb_atom_t typesName;
+ xcb_atom_t compatName;
+ xcb_atom_t *typeNames;
+ uint8_t *nLevelsPerType;
+ xcb_atom_t *ktLevelNames;
+ xcb_atom_t *indicatorNames;
+ xcb_atom_t *virtualModNames;
+ xcb_atom_t *groups;
+ xcb_xkb_key_name_t *keyNames;
+ xcb_xkb_key_alias_t *keyAliases;
+ xcb_atom_t *radioGroupNames;
+} xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t;
+
+/**
+ * @brief xcb_xkb_get_kbd_by_name_replies_t
+ **/
+typedef struct xcb_xkb_get_kbd_by_name_replies_t {
+ struct {
+ uint8_t getmap_type;
+ uint8_t typeDeviceID;
+ uint16_t getmap_sequence;
+ uint32_t getmap_length;
+ uint8_t pad1[2];
+ xcb_keycode_t typeMinKeyCode;
+ xcb_keycode_t typeMaxKeyCode;
+ uint16_t present;
+ uint8_t firstType;
+ uint8_t nTypes;
+ uint8_t totalTypes;
+ xcb_keycode_t firstKeySym;
+ uint16_t totalSyms;
+ uint8_t nKeySyms;
+ xcb_keycode_t firstKeyAction;
+ uint16_t totalActions;
+ uint8_t nKeyActions;
+ xcb_keycode_t firstKeyBehavior;
+ uint8_t nKeyBehaviors;
+ uint8_t totalKeyBehaviors;
+ xcb_keycode_t firstKeyExplicit;
+ uint8_t nKeyExplicit;
+ uint8_t totalKeyExplicit;
+ xcb_keycode_t firstModMapKey;
+ uint8_t nModMapKeys;
+ uint8_t totalModMapKeys;
+ xcb_keycode_t firstVModMapKey;
+ uint8_t nVModMapKeys;
+ uint8_t totalVModMapKeys;
+ uint8_t pad2;
+ uint16_t virtualMods;
+ xcb_xkb_get_kbd_by_name_replies_types_map_t map;
+ } types;
+ struct {
+ uint8_t compatmap_type;
+ uint8_t compatDeviceID;
+ uint16_t compatmap_sequence;
+ uint32_t compatmap_length;
+ uint8_t groupsRtrn;
+ uint8_t pad7;
+ uint16_t firstSIRtrn;
+ uint16_t nSIRtrn;
+ uint16_t nTotalSI;
+ uint8_t pad8[16];
+ xcb_xkb_sym_interpret_t *si_rtrn;
+ xcb_xkb_mod_def_t *group_rtrn;
+ } compat_map;
+ struct {
+ uint8_t indicatormap_type;
+ uint8_t indicatorDeviceID;
+ uint16_t indicatormap_sequence;
+ uint32_t indicatormap_length;
+ uint32_t which;
+ uint32_t realIndicators;
+ uint8_t nIndicators;
+ uint8_t pad9[15];
+ xcb_xkb_indicator_map_t *maps;
+ } indicator_maps;
+ struct {
+ uint8_t keyname_type;
+ uint8_t keyDeviceID;
+ uint16_t keyname_sequence;
+ uint32_t keyname_length;
+ uint32_t which;
+ xcb_keycode_t keyMinKeyCode;
+ xcb_keycode_t keyMaxKeyCode;
+ uint8_t nTypes;
+ uint8_t groupNames;
+ uint16_t virtualMods;
+ xcb_keycode_t firstKey;
+ uint8_t nKeys;
+ uint32_t indicators;
+ uint8_t nRadioGroups;
+ uint8_t nKeyAliases;
+ uint16_t nKTLevels;
+ uint8_t pad10[4];
+ xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t valueList;
+ } key_names;
+ struct {
+ uint8_t geometry_type;
+ uint8_t geometryDeviceID;
+ uint16_t geometry_sequence;
+ uint32_t geometry_length;
+ xcb_atom_t name;
+ uint8_t geometryFound;
+ uint8_t pad12;
+ uint16_t widthMM;
+ uint16_t heightMM;
+ uint16_t nProperties;
+ uint16_t nColors;
+ uint16_t nShapes;
+ uint16_t nSections;
+ uint16_t nDoodads;
+ uint16_t nKeyAliases;
+ uint8_t baseColorNdx;
+ uint8_t labelColorNdx;
+ xcb_xkb_counted_string_16_t *labelFont;
+ } geometry;
+} xcb_xkb_get_kbd_by_name_replies_t;
+
+xcb_xkb_get_kbd_by_name_replies_types_map_t *
+xcb_xkb_get_kbd_by_name_replies_types_map (const xcb_xkb_get_kbd_by_name_replies_t *R);
+
+/**
+ * @brief xcb_xkb_get_kbd_by_name_reply_t
+ **/
+typedef struct xcb_xkb_get_kbd_by_name_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_keycode_t minKeyCode;
+ xcb_keycode_t maxKeyCode;
+ uint8_t loaded;
+ uint8_t newKeyboard;
+ uint16_t found;
+ uint16_t reported;
+ uint8_t pad0[16];
+} xcb_xkb_get_kbd_by_name_reply_t;
+
+/**
+ * @brief xcb_xkb_get_device_info_cookie_t
+ **/
+typedef struct xcb_xkb_get_device_info_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_get_device_info_cookie_t;
+
+/** Opcode for xcb_xkb_get_device_info. */
+#define XCB_XKB_GET_DEVICE_INFO 24
+
+/**
+ * @brief xcb_xkb_get_device_info_request_t
+ **/
+typedef struct xcb_xkb_get_device_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint16_t wanted;
+ uint8_t allButtons;
+ uint8_t firstButton;
+ uint8_t nButtons;
+ uint8_t pad0;
+ xcb_xkb_led_class_spec_t ledClass;
+ xcb_xkb_id_spec_t ledID;
+} xcb_xkb_get_device_info_request_t;
+
+/**
+ * @brief xcb_xkb_get_device_info_reply_t
+ **/
+typedef struct xcb_xkb_get_device_info_reply_t {
+ uint8_t response_type;
+ uint8_t deviceID;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t present;
+ uint16_t supported;
+ uint16_t unsupported;
+ uint16_t nDeviceLedFBs;
+ uint8_t firstBtnWanted;
+ uint8_t nBtnsWanted;
+ uint8_t firstBtnRtrn;
+ uint8_t nBtnsRtrn;
+ uint8_t totalBtns;
+ uint8_t hasOwnState;
+ uint16_t dfltKbdFB;
+ uint16_t dfltLedFB;
+ uint8_t pad0[2];
+ xcb_atom_t devType;
+ uint16_t nameLen;
+} xcb_xkb_get_device_info_reply_t;
+
+/** Opcode for xcb_xkb_set_device_info. */
+#define XCB_XKB_SET_DEVICE_INFO 25
+
+/**
+ * @brief xcb_xkb_set_device_info_request_t
+ **/
+typedef struct xcb_xkb_set_device_info_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xkb_device_spec_t deviceSpec;
+ uint8_t firstBtn;
+ uint8_t nBtns;
+ uint16_t change;
+ uint16_t nDeviceLedFBs;
+} xcb_xkb_set_device_info_request_t;
+
+/**
+ * @brief xcb_xkb_set_debugging_flags_cookie_t
+ **/
+typedef struct xcb_xkb_set_debugging_flags_cookie_t {
+ unsigned int sequence;
+} xcb_xkb_set_debugging_flags_cookie_t;
+
+/** Opcode for xcb_xkb_set_debugging_flags. */
+#define XCB_XKB_SET_DEBUGGING_FLAGS 101
+
+/**
+ * @brief xcb_xkb_set_debugging_flags_request_t
+ **/
+typedef struct xcb_xkb_set_debugging_flags_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint16_t msgLength;
+ uint8_t pad0[2];
+ uint32_t affectFlags;
+ uint32_t flags;
+ uint32_t affectCtrls;
+ uint32_t ctrls;
+} xcb_xkb_set_debugging_flags_request_t;
+
+/**
+ * @brief xcb_xkb_set_debugging_flags_reply_t
+ **/
+typedef struct xcb_xkb_set_debugging_flags_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t currentFlags;
+ uint32_t currentCtrls;
+ uint32_t supportedFlags;
+ uint32_t supportedCtrls;
+ uint8_t pad1[8];
+} xcb_xkb_set_debugging_flags_reply_t;
+
+/** Opcode for xcb_xkb_new_keyboard_notify. */
+#define XCB_XKB_NEW_KEYBOARD_NOTIFY 0
+
+/**
+ * @brief xcb_xkb_new_keyboard_notify_event_t
+ **/
+typedef struct xcb_xkb_new_keyboard_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t oldDeviceID;
+ xcb_keycode_t minKeyCode;
+ xcb_keycode_t maxKeyCode;
+ xcb_keycode_t oldMinKeyCode;
+ xcb_keycode_t oldMaxKeyCode;
+ uint8_t requestMajor;
+ uint8_t requestMinor;
+ uint16_t changed;
+ uint8_t pad0[14];
+} xcb_xkb_new_keyboard_notify_event_t;
+
+/** Opcode for xcb_xkb_map_notify. */
+#define XCB_XKB_MAP_NOTIFY 1
+
+/**
+ * @brief xcb_xkb_map_notify_event_t
+ **/
+typedef struct xcb_xkb_map_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t ptrBtnActions;
+ uint16_t changed;
+ xcb_keycode_t minKeyCode;
+ xcb_keycode_t maxKeyCode;
+ uint8_t firstType;
+ uint8_t nTypes;
+ xcb_keycode_t firstKeySym;
+ uint8_t nKeySyms;
+ xcb_keycode_t firstKeyAct;
+ uint8_t nKeyActs;
+ xcb_keycode_t firstKeyBehavior;
+ uint8_t nKeyBehavior;
+ xcb_keycode_t firstKeyExplicit;
+ uint8_t nKeyExplicit;
+ xcb_keycode_t firstModMapKey;
+ uint8_t nModMapKeys;
+ xcb_keycode_t firstVModMapKey;
+ uint8_t nVModMapKeys;
+ uint16_t virtualMods;
+ uint8_t pad0[2];
+} xcb_xkb_map_notify_event_t;
+
+/** Opcode for xcb_xkb_state_notify. */
+#define XCB_XKB_STATE_NOTIFY 2
+
+/**
+ * @brief xcb_xkb_state_notify_event_t
+ **/
+typedef struct xcb_xkb_state_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t mods;
+ uint8_t baseMods;
+ uint8_t latchedMods;
+ uint8_t lockedMods;
+ uint8_t group;
+ int16_t baseGroup;
+ int16_t latchedGroup;
+ uint8_t lockedGroup;
+ uint8_t compatState;
+ uint8_t grabMods;
+ uint8_t compatGrabMods;
+ uint8_t lookupMods;
+ uint8_t compatLoockupMods;
+ uint16_t ptrBtnState;
+ uint16_t changed;
+ xcb_keycode_t keycode;
+ uint8_t eventType;
+ uint8_t requestMajor;
+ uint8_t requestMinor;
+} xcb_xkb_state_notify_event_t;
+
+/** Opcode for xcb_xkb_controls_notify. */
+#define XCB_XKB_CONTROLS_NOTIFY 3
+
+/**
+ * @brief xcb_xkb_controls_notify_event_t
+ **/
+typedef struct xcb_xkb_controls_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t numGroups;
+ uint8_t pad0[2];
+ uint32_t changedControls;
+ uint32_t enabledControls;
+ uint32_t enabledControlChanges;
+ xcb_keycode_t keycode;
+ uint8_t eventType;
+ uint8_t requestMajor;
+ uint8_t requestMinor;
+ uint8_t pad1[4];
+} xcb_xkb_controls_notify_event_t;
+
+/** Opcode for xcb_xkb_indicator_state_notify. */
+#define XCB_XKB_INDICATOR_STATE_NOTIFY 4
+
+/**
+ * @brief xcb_xkb_indicator_state_notify_event_t
+ **/
+typedef struct xcb_xkb_indicator_state_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t pad0[3];
+ uint32_t state;
+ uint32_t stateChanged;
+ uint8_t pad1[12];
+} xcb_xkb_indicator_state_notify_event_t;
+
+/** Opcode for xcb_xkb_indicator_map_notify. */
+#define XCB_XKB_INDICATOR_MAP_NOTIFY 5
+
+/**
+ * @brief xcb_xkb_indicator_map_notify_event_t
+ **/
+typedef struct xcb_xkb_indicator_map_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t pad0[3];
+ uint32_t state;
+ uint32_t mapChanged;
+ uint8_t pad1[12];
+} xcb_xkb_indicator_map_notify_event_t;
+
+/** Opcode for xcb_xkb_names_notify. */
+#define XCB_XKB_NAMES_NOTIFY 6
+
+/**
+ * @brief xcb_xkb_names_notify_event_t
+ **/
+typedef struct xcb_xkb_names_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t pad0;
+ uint16_t changed;
+ uint8_t firstType;
+ uint8_t nTypes;
+ uint8_t firstLevelName;
+ uint8_t nLevelNames;
+ uint8_t pad1;
+ uint8_t nRadioGroups;
+ uint8_t nKeyAliases;
+ uint8_t changedGroupNames;
+ uint16_t changedVirtualMods;
+ xcb_keycode_t firstKey;
+ uint8_t nKeys;
+ uint32_t changedIndicators;
+ uint8_t pad2[4];
+} xcb_xkb_names_notify_event_t;
+
+/** Opcode for xcb_xkb_compat_map_notify. */
+#define XCB_XKB_COMPAT_MAP_NOTIFY 7
+
+/**
+ * @brief xcb_xkb_compat_map_notify_event_t
+ **/
+typedef struct xcb_xkb_compat_map_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t changedGroups;
+ uint16_t firstSI;
+ uint16_t nSI;
+ uint16_t nTotalSI;
+ uint8_t pad0[16];
+} xcb_xkb_compat_map_notify_event_t;
+
+/** Opcode for xcb_xkb_bell_notify. */
+#define XCB_XKB_BELL_NOTIFY 8
+
+/**
+ * @brief xcb_xkb_bell_notify_event_t
+ **/
+typedef struct xcb_xkb_bell_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t bellClass;
+ uint8_t bellID;
+ uint8_t percent;
+ uint16_t pitch;
+ uint16_t duration;
+ xcb_atom_t name;
+ xcb_window_t window;
+ uint8_t eventOnly;
+ uint8_t pad0[7];
+} xcb_xkb_bell_notify_event_t;
+
+/** Opcode for xcb_xkb_action_message. */
+#define XCB_XKB_ACTION_MESSAGE 9
+
+/**
+ * @brief xcb_xkb_action_message_event_t
+ **/
+typedef struct xcb_xkb_action_message_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ xcb_keycode_t keycode;
+ uint8_t press;
+ uint8_t keyEventFollows;
+ uint8_t mods;
+ uint8_t group;
+ xcb_xkb_string8_t message[8];
+ uint8_t pad0[10];
+} xcb_xkb_action_message_event_t;
+
+/** Opcode for xcb_xkb_access_x_notify. */
+#define XCB_XKB_ACCESS_X_NOTIFY 10
+
+/**
+ * @brief xcb_xkb_access_x_notify_event_t
+ **/
+typedef struct xcb_xkb_access_x_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ xcb_keycode_t keycode;
+ uint16_t detailt;
+ uint16_t slowKeysDelay;
+ uint16_t debounceDelay;
+ uint8_t pad0[16];
+} xcb_xkb_access_x_notify_event_t;
+
+/** Opcode for xcb_xkb_extension_device_notify. */
+#define XCB_XKB_EXTENSION_DEVICE_NOTIFY 11
+
+/**
+ * @brief xcb_xkb_extension_device_notify_event_t
+ **/
+typedef struct xcb_xkb_extension_device_notify_event_t {
+ uint8_t response_type;
+ uint8_t xkbType;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ uint8_t deviceID;
+ uint8_t pad0;
+ uint16_t reason;
+ uint16_t ledClass;
+ uint16_t ledID;
+ uint32_t ledsDefined;
+ uint32_t ledState;
+ uint8_t firstButton;
+ uint8_t nButtons;
+ uint16_t supported;
+ uint16_t unsupported;
+ uint8_t pad1[2];
+} xcb_xkb_extension_device_notify_event_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_device_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_device_spec_t)
+ */
+void
+xcb_xkb_device_spec_next (xcb_xkb_device_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_device_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_device_spec_end (xcb_xkb_device_spec_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_led_class_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_led_class_spec_t)
+ */
+void
+xcb_xkb_led_class_spec_next (xcb_xkb_led_class_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_led_class_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_led_class_spec_end (xcb_xkb_led_class_spec_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_bell_class_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_bell_class_spec_t)
+ */
+void
+xcb_xkb_bell_class_spec_next (xcb_xkb_bell_class_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_bell_class_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_bell_class_spec_end (xcb_xkb_bell_class_spec_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_id_spec_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_id_spec_t)
+ */
+void
+xcb_xkb_id_spec_next (xcb_xkb_id_spec_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_id_spec_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_id_spec_end (xcb_xkb_id_spec_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_indicator_map_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_indicator_map_t)
+ */
+void
+xcb_xkb_indicator_map_next (xcb_xkb_indicator_map_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_indicator_map_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_indicator_map_end (xcb_xkb_indicator_map_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_mod_def_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_mod_def_t)
+ */
+void
+xcb_xkb_mod_def_next (xcb_xkb_mod_def_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_mod_def_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_mod_def_end (xcb_xkb_mod_def_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_name_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_name_t)
+ */
+void
+xcb_xkb_key_name_next (xcb_xkb_key_name_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_name_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_name_end (xcb_xkb_key_name_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_alias_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_alias_t)
+ */
+void
+xcb_xkb_key_alias_next (xcb_xkb_key_alias_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_alias_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_alias_end (xcb_xkb_key_alias_iterator_t i);
+
+int
+xcb_xkb_counted_string_16_sizeof (const void *_buffer);
+
+char *
+xcb_xkb_counted_string_16_string (const xcb_xkb_counted_string_16_t *R);
+
+int
+xcb_xkb_counted_string_16_string_length (const xcb_xkb_counted_string_16_t *R);
+
+xcb_generic_iterator_t
+xcb_xkb_counted_string_16_string_end (const xcb_xkb_counted_string_16_t *R);
+
+void *
+xcb_xkb_counted_string_16_alignment_pad (const xcb_xkb_counted_string_16_t *R);
+
+int
+xcb_xkb_counted_string_16_alignment_pad_length (const xcb_xkb_counted_string_16_t *R);
+
+xcb_generic_iterator_t
+xcb_xkb_counted_string_16_alignment_pad_end (const xcb_xkb_counted_string_16_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_counted_string_16_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_counted_string_16_t)
+ */
+void
+xcb_xkb_counted_string_16_next (xcb_xkb_counted_string_16_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_counted_string_16_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_counted_string_16_end (xcb_xkb_counted_string_16_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_kt_map_entry_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_kt_map_entry_t)
+ */
+void
+xcb_xkb_kt_map_entry_next (xcb_xkb_kt_map_entry_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_kt_map_entry_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_kt_map_entry_end (xcb_xkb_kt_map_entry_iterator_t i);
+
+int
+xcb_xkb_key_type_sizeof (const void *_buffer);
+
+xcb_xkb_kt_map_entry_t *
+xcb_xkb_key_type_map (const xcb_xkb_key_type_t *R);
+
+int
+xcb_xkb_key_type_map_length (const xcb_xkb_key_type_t *R);
+
+xcb_xkb_kt_map_entry_iterator_t
+xcb_xkb_key_type_map_iterator (const xcb_xkb_key_type_t *R);
+
+xcb_xkb_mod_def_t *
+xcb_xkb_key_type_preserve (const xcb_xkb_key_type_t *R);
+
+int
+xcb_xkb_key_type_preserve_length (const xcb_xkb_key_type_t *R);
+
+xcb_xkb_mod_def_iterator_t
+xcb_xkb_key_type_preserve_iterator (const xcb_xkb_key_type_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_type_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_type_t)
+ */
+void
+xcb_xkb_key_type_next (xcb_xkb_key_type_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_type_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_type_end (xcb_xkb_key_type_iterator_t i);
+
+int
+xcb_xkb_key_sym_map_sizeof (const void *_buffer);
+
+xcb_keysym_t *
+xcb_xkb_key_sym_map_syms (const xcb_xkb_key_sym_map_t *R);
+
+int
+xcb_xkb_key_sym_map_syms_length (const xcb_xkb_key_sym_map_t *R);
+
+xcb_generic_iterator_t
+xcb_xkb_key_sym_map_syms_end (const xcb_xkb_key_sym_map_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_sym_map_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_sym_map_t)
+ */
+void
+xcb_xkb_key_sym_map_next (xcb_xkb_key_sym_map_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_sym_map_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_sym_map_end (xcb_xkb_key_sym_map_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_common_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_common_behavior_t)
+ */
+void
+xcb_xkb_common_behavior_next (xcb_xkb_common_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_common_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_common_behavior_end (xcb_xkb_common_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_default_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_default_behavior_t)
+ */
+void
+xcb_xkb_default_behavior_next (xcb_xkb_default_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_default_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_default_behavior_end (xcb_xkb_default_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_lock_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_lock_behavior_t)
+ */
+void
+xcb_xkb_lock_behavior_next (xcb_xkb_lock_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_lock_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_lock_behavior_end (xcb_xkb_lock_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_radio_group_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_radio_group_behavior_t)
+ */
+void
+xcb_xkb_radio_group_behavior_next (xcb_xkb_radio_group_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_radio_group_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_radio_group_behavior_end (xcb_xkb_radio_group_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_overlay_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_overlay_behavior_t)
+ */
+void
+xcb_xkb_overlay_behavior_next (xcb_xkb_overlay_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_overlay_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_overlay_behavior_end (xcb_xkb_overlay_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_permament_lock_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_permament_lock_behavior_t)
+ */
+void
+xcb_xkb_permament_lock_behavior_next (xcb_xkb_permament_lock_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_permament_lock_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_permament_lock_behavior_end (xcb_xkb_permament_lock_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_permament_radio_group_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_permament_radio_group_behavior_t)
+ */
+void
+xcb_xkb_permament_radio_group_behavior_next (xcb_xkb_permament_radio_group_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_permament_radio_group_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_permament_radio_group_behavior_end (xcb_xkb_permament_radio_group_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_permament_overlay_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_permament_overlay_behavior_t)
+ */
+void
+xcb_xkb_permament_overlay_behavior_next (xcb_xkb_permament_overlay_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_permament_overlay_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_permament_overlay_behavior_end (xcb_xkb_permament_overlay_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_behavior_t)
+ */
+void
+xcb_xkb_behavior_next (xcb_xkb_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_behavior_end (xcb_xkb_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_set_behavior_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_set_behavior_t)
+ */
+void
+xcb_xkb_set_behavior_next (xcb_xkb_set_behavior_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_set_behavior_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_set_behavior_end (xcb_xkb_set_behavior_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_set_explicit_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_set_explicit_t)
+ */
+void
+xcb_xkb_set_explicit_next (xcb_xkb_set_explicit_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_set_explicit_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_set_explicit_end (xcb_xkb_set_explicit_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_mod_map_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_mod_map_t)
+ */
+void
+xcb_xkb_key_mod_map_next (xcb_xkb_key_mod_map_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_mod_map_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_mod_map_end (xcb_xkb_key_mod_map_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_v_mod_map_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_v_mod_map_t)
+ */
+void
+xcb_xkb_key_v_mod_map_next (xcb_xkb_key_v_mod_map_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_v_mod_map_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_v_mod_map_end (xcb_xkb_key_v_mod_map_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_kt_set_map_entry_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_kt_set_map_entry_t)
+ */
+void
+xcb_xkb_kt_set_map_entry_next (xcb_xkb_kt_set_map_entry_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_kt_set_map_entry_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_kt_set_map_entry_end (xcb_xkb_kt_set_map_entry_iterator_t i);
+
+int
+xcb_xkb_set_key_type_sizeof (const void *_buffer);
+
+xcb_xkb_kt_set_map_entry_t *
+xcb_xkb_set_key_type_entries (const xcb_xkb_set_key_type_t *R);
+
+int
+xcb_xkb_set_key_type_entries_length (const xcb_xkb_set_key_type_t *R);
+
+xcb_xkb_kt_set_map_entry_iterator_t
+xcb_xkb_set_key_type_entries_iterator (const xcb_xkb_set_key_type_t *R);
+
+xcb_xkb_kt_set_map_entry_t *
+xcb_xkb_set_key_type_preserve_entries (const xcb_xkb_set_key_type_t *R);
+
+int
+xcb_xkb_set_key_type_preserve_entries_length (const xcb_xkb_set_key_type_t *R);
+
+xcb_xkb_kt_set_map_entry_iterator_t
+xcb_xkb_set_key_type_preserve_entries_iterator (const xcb_xkb_set_key_type_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_set_key_type_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_set_key_type_t)
+ */
+void
+xcb_xkb_set_key_type_next (xcb_xkb_set_key_type_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_set_key_type_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_set_key_type_end (xcb_xkb_set_key_type_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_string8_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_string8_t)
+ */
+void
+xcb_xkb_string8_next (xcb_xkb_string8_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_string8_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_string8_end (xcb_xkb_string8_iterator_t i);
+
+int
+xcb_xkb_outline_sizeof (const void *_buffer);
+
+xcb_point_t *
+xcb_xkb_outline_points (const xcb_xkb_outline_t *R);
+
+int
+xcb_xkb_outline_points_length (const xcb_xkb_outline_t *R);
+
+xcb_point_iterator_t
+xcb_xkb_outline_points_iterator (const xcb_xkb_outline_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_outline_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_outline_t)
+ */
+void
+xcb_xkb_outline_next (xcb_xkb_outline_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_outline_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_outline_end (xcb_xkb_outline_iterator_t i);
+
+int
+xcb_xkb_shape_sizeof (const void *_buffer);
+
+int
+xcb_xkb_shape_outlines_length (const xcb_xkb_shape_t *R);
+
+xcb_xkb_outline_iterator_t
+xcb_xkb_shape_outlines_iterator (const xcb_xkb_shape_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_shape_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_shape_t)
+ */
+void
+xcb_xkb_shape_next (xcb_xkb_shape_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_shape_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_shape_end (xcb_xkb_shape_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_key_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_key_t)
+ */
+void
+xcb_xkb_key_next (xcb_xkb_key_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_key_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_key_end (xcb_xkb_key_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_overlay_key_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_overlay_key_t)
+ */
+void
+xcb_xkb_overlay_key_next (xcb_xkb_overlay_key_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_overlay_key_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_overlay_key_end (xcb_xkb_overlay_key_iterator_t i);
+
+int
+xcb_xkb_overlay_row_sizeof (const void *_buffer);
+
+xcb_xkb_overlay_key_t *
+xcb_xkb_overlay_row_keys (const xcb_xkb_overlay_row_t *R);
+
+int
+xcb_xkb_overlay_row_keys_length (const xcb_xkb_overlay_row_t *R);
+
+xcb_xkb_overlay_key_iterator_t
+xcb_xkb_overlay_row_keys_iterator (const xcb_xkb_overlay_row_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_overlay_row_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_overlay_row_t)
+ */
+void
+xcb_xkb_overlay_row_next (xcb_xkb_overlay_row_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_overlay_row_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_overlay_row_end (xcb_xkb_overlay_row_iterator_t i);
+
+int
+xcb_xkb_overlay_sizeof (const void *_buffer);
+
+int
+xcb_xkb_overlay_rows_length (const xcb_xkb_overlay_t *R);
+
+xcb_xkb_overlay_row_iterator_t
+xcb_xkb_overlay_rows_iterator (const xcb_xkb_overlay_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_overlay_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_overlay_t)
+ */
+void
+xcb_xkb_overlay_next (xcb_xkb_overlay_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_overlay_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_overlay_end (xcb_xkb_overlay_iterator_t i);
+
+int
+xcb_xkb_row_sizeof (const void *_buffer);
+
+xcb_xkb_key_t *
+xcb_xkb_row_keys (const xcb_xkb_row_t *R);
+
+int
+xcb_xkb_row_keys_length (const xcb_xkb_row_t *R);
+
+xcb_xkb_key_iterator_t
+xcb_xkb_row_keys_iterator (const xcb_xkb_row_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_row_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_row_t)
+ */
+void
+xcb_xkb_row_next (xcb_xkb_row_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_row_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_row_end (xcb_xkb_row_iterator_t i);
+
+int
+xcb_xkb_listing_sizeof (const void *_buffer);
+
+xcb_xkb_string8_t *
+xcb_xkb_listing_string (const xcb_xkb_listing_t *R);
+
+int
+xcb_xkb_listing_string_length (const xcb_xkb_listing_t *R);
+
+xcb_generic_iterator_t
+xcb_xkb_listing_string_end (const xcb_xkb_listing_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_listing_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_listing_t)
+ */
+void
+xcb_xkb_listing_next (xcb_xkb_listing_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_listing_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_listing_end (xcb_xkb_listing_iterator_t i);
+
+int
+xcb_xkb_device_led_info_sizeof (const void *_buffer);
+
+xcb_atom_t *
+xcb_xkb_device_led_info_names (const xcb_xkb_device_led_info_t *R);
+
+int
+xcb_xkb_device_led_info_names_length (const xcb_xkb_device_led_info_t *R);
+
+xcb_generic_iterator_t
+xcb_xkb_device_led_info_names_end (const xcb_xkb_device_led_info_t *R);
+
+xcb_xkb_indicator_map_t *
+xcb_xkb_device_led_info_maps (const xcb_xkb_device_led_info_t *R);
+
+int
+xcb_xkb_device_led_info_maps_length (const xcb_xkb_device_led_info_t *R);
+
+xcb_xkb_indicator_map_iterator_t
+xcb_xkb_device_led_info_maps_iterator (const xcb_xkb_device_led_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_device_led_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_device_led_info_t)
+ */
+void
+xcb_xkb_device_led_info_next (xcb_xkb_device_led_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_device_led_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_device_led_info_end (xcb_xkb_device_led_info_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_no_action_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_no_action_t)
+ */
+void
+xcb_xkb_sa_no_action_next (xcb_xkb_sa_no_action_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_no_action_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_no_action_end (xcb_xkb_sa_no_action_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_set_mods_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_set_mods_t)
+ */
+void
+xcb_xkb_sa_set_mods_next (xcb_xkb_sa_set_mods_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_set_mods_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_set_mods_end (xcb_xkb_sa_set_mods_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_latch_mods_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_latch_mods_t)
+ */
+void
+xcb_xkb_sa_latch_mods_next (xcb_xkb_sa_latch_mods_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_latch_mods_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_latch_mods_end (xcb_xkb_sa_latch_mods_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_lock_mods_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_lock_mods_t)
+ */
+void
+xcb_xkb_sa_lock_mods_next (xcb_xkb_sa_lock_mods_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_lock_mods_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_lock_mods_end (xcb_xkb_sa_lock_mods_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_set_group_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_set_group_t)
+ */
+void
+xcb_xkb_sa_set_group_next (xcb_xkb_sa_set_group_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_set_group_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_set_group_end (xcb_xkb_sa_set_group_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_latch_group_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_latch_group_t)
+ */
+void
+xcb_xkb_sa_latch_group_next (xcb_xkb_sa_latch_group_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_latch_group_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_latch_group_end (xcb_xkb_sa_latch_group_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_lock_group_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_lock_group_t)
+ */
+void
+xcb_xkb_sa_lock_group_next (xcb_xkb_sa_lock_group_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_lock_group_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_lock_group_end (xcb_xkb_sa_lock_group_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_move_ptr_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_move_ptr_t)
+ */
+void
+xcb_xkb_sa_move_ptr_next (xcb_xkb_sa_move_ptr_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_move_ptr_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_move_ptr_end (xcb_xkb_sa_move_ptr_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_ptr_btn_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_ptr_btn_t)
+ */
+void
+xcb_xkb_sa_ptr_btn_next (xcb_xkb_sa_ptr_btn_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_ptr_btn_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_ptr_btn_end (xcb_xkb_sa_ptr_btn_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_lock_ptr_btn_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_lock_ptr_btn_t)
+ */
+void
+xcb_xkb_sa_lock_ptr_btn_next (xcb_xkb_sa_lock_ptr_btn_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_lock_ptr_btn_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_lock_ptr_btn_end (xcb_xkb_sa_lock_ptr_btn_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_set_ptr_dflt_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_set_ptr_dflt_t)
+ */
+void
+xcb_xkb_sa_set_ptr_dflt_next (xcb_xkb_sa_set_ptr_dflt_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_set_ptr_dflt_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_set_ptr_dflt_end (xcb_xkb_sa_set_ptr_dflt_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_iso_lock_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_iso_lock_t)
+ */
+void
+xcb_xkb_sa_iso_lock_next (xcb_xkb_sa_iso_lock_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_iso_lock_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_iso_lock_end (xcb_xkb_sa_iso_lock_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_terminate_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_terminate_t)
+ */
+void
+xcb_xkb_sa_terminate_next (xcb_xkb_sa_terminate_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_terminate_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_terminate_end (xcb_xkb_sa_terminate_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_switch_screen_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_switch_screen_t)
+ */
+void
+xcb_xkb_sa_switch_screen_next (xcb_xkb_sa_switch_screen_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_switch_screen_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_switch_screen_end (xcb_xkb_sa_switch_screen_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_set_controls_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_set_controls_t)
+ */
+void
+xcb_xkb_sa_set_controls_next (xcb_xkb_sa_set_controls_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_set_controls_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_set_controls_end (xcb_xkb_sa_set_controls_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_lock_controls_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_lock_controls_t)
+ */
+void
+xcb_xkb_sa_lock_controls_next (xcb_xkb_sa_lock_controls_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_lock_controls_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_lock_controls_end (xcb_xkb_sa_lock_controls_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_action_message_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_action_message_t)
+ */
+void
+xcb_xkb_sa_action_message_next (xcb_xkb_sa_action_message_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_action_message_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_action_message_end (xcb_xkb_sa_action_message_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_redirect_key_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_redirect_key_t)
+ */
+void
+xcb_xkb_sa_redirect_key_next (xcb_xkb_sa_redirect_key_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_redirect_key_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_redirect_key_end (xcb_xkb_sa_redirect_key_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_device_btn_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_device_btn_t)
+ */
+void
+xcb_xkb_sa_device_btn_next (xcb_xkb_sa_device_btn_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_device_btn_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_device_btn_end (xcb_xkb_sa_device_btn_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_lock_device_btn_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_lock_device_btn_t)
+ */
+void
+xcb_xkb_sa_lock_device_btn_next (xcb_xkb_sa_lock_device_btn_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_lock_device_btn_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_lock_device_btn_end (xcb_xkb_sa_lock_device_btn_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sa_device_valuator_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sa_device_valuator_t)
+ */
+void
+xcb_xkb_sa_device_valuator_next (xcb_xkb_sa_device_valuator_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sa_device_valuator_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sa_device_valuator_end (xcb_xkb_sa_device_valuator_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_si_action_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_si_action_t)
+ */
+void
+xcb_xkb_si_action_next (xcb_xkb_si_action_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_si_action_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_si_action_end (xcb_xkb_si_action_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_sym_interpret_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_sym_interpret_t)
+ */
+void
+xcb_xkb_sym_interpret_next (xcb_xkb_sym_interpret_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_sym_interpret_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_sym_interpret_end (xcb_xkb_sym_interpret_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xkb_action_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xkb_action_t)
+ */
+void
+xcb_xkb_action_next (xcb_xkb_action_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xkb_action_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xkb_action_end (xcb_xkb_action_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_use_extension_cookie_t
+xcb_xkb_use_extension (xcb_connection_t *c,
+ uint16_t wantedMajor,
+ uint16_t wantedMinor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_use_extension_cookie_t
+xcb_xkb_use_extension_unchecked (xcb_connection_t *c,
+ uint16_t wantedMajor,
+ uint16_t wantedMinor);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_use_extension_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_use_extension_reply_t *
+xcb_xkb_use_extension_reply (xcb_connection_t *c,
+ xcb_xkb_use_extension_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_select_events_details_serialize (void **_buffer,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll,
+ const xcb_xkb_select_events_details_t *_aux);
+
+int
+xcb_xkb_select_events_details_unpack (const void *_buffer,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll,
+ xcb_xkb_select_events_details_t *_aux);
+
+int
+xcb_xkb_select_events_details_sizeof (const void *_buffer,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll);
+
+int
+xcb_xkb_select_events_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_select_events_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll,
+ uint16_t affectMap,
+ uint16_t map,
+ const void *details);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_select_events (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll,
+ uint16_t affectMap,
+ uint16_t map,
+ const void *details);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_select_events_aux_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll,
+ uint16_t affectMap,
+ uint16_t map,
+ const xcb_xkb_select_events_details_t *details);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_select_events_aux (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t affectWhich,
+ uint16_t clear,
+ uint16_t selectAll,
+ uint16_t affectMap,
+ uint16_t map,
+ const xcb_xkb_select_events_details_t *details);
+
+void *
+xcb_xkb_select_events_details (const xcb_xkb_select_events_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_bell_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ xcb_xkb_bell_class_spec_t bellClass,
+ xcb_xkb_id_spec_t bellID,
+ int8_t percent,
+ uint8_t forceSound,
+ uint8_t eventOnly,
+ int16_t pitch,
+ int16_t duration,
+ xcb_atom_t name,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_bell (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ xcb_xkb_bell_class_spec_t bellClass,
+ xcb_xkb_id_spec_t bellID,
+ int8_t percent,
+ uint8_t forceSound,
+ uint8_t eventOnly,
+ int16_t pitch,
+ int16_t duration,
+ xcb_atom_t name,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_state_cookie_t
+xcb_xkb_get_state (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_state_cookie_t
+xcb_xkb_get_state_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_state_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_state_reply_t *
+xcb_xkb_get_state_reply (xcb_connection_t *c,
+ xcb_xkb_get_state_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_latch_lock_state_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t affectModLocks,
+ uint8_t modLocks,
+ uint8_t lockGroup,
+ uint8_t groupLock,
+ uint8_t affectModLatches,
+ uint8_t latchGroup,
+ uint16_t groupLatch);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_latch_lock_state (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t affectModLocks,
+ uint8_t modLocks,
+ uint8_t lockGroup,
+ uint8_t groupLock,
+ uint8_t affectModLatches,
+ uint8_t latchGroup,
+ uint16_t groupLatch);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_controls_cookie_t
+xcb_xkb_get_controls (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_controls_cookie_t
+xcb_xkb_get_controls_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_controls_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_controls_reply_t *
+xcb_xkb_get_controls_reply (xcb_connection_t *c,
+ xcb_xkb_get_controls_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_controls_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t affectInternalRealMods,
+ uint8_t internalRealMods,
+ uint8_t affectIgnoreLockRealMods,
+ uint8_t ignoreLockRealMods,
+ uint16_t affectInternalVirtualMods,
+ uint16_t internalVirtualMods,
+ uint16_t affectIgnoreLockVirtualMods,
+ uint16_t ignoreLockVirtualMods,
+ uint8_t mouseKeysDfltBtn,
+ uint8_t groupsWrap,
+ uint16_t accessXOptions,
+ uint32_t affectEnabledControls,
+ uint32_t enabledControls,
+ uint32_t changeControls,
+ uint16_t repeatDelay,
+ uint16_t repeatInterval,
+ uint16_t slowKeysDelay,
+ uint16_t debounceDelay,
+ uint16_t mouseKeysDelay,
+ uint16_t mouseKeysInterval,
+ uint16_t mouseKeysTimeToMax,
+ uint16_t mouseKeysMaxSpeed,
+ int16_t mouseKeysCurve,
+ uint16_t accessXTimeout,
+ uint32_t accessXTimeoutMask,
+ uint32_t accessXTimeoutValues,
+ uint16_t accessXTimeoutOptionsMask,
+ uint16_t accessXTimeoutOptionsValues,
+ const uint8_t *perKeyRepeat);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_controls (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t affectInternalRealMods,
+ uint8_t internalRealMods,
+ uint8_t affectIgnoreLockRealMods,
+ uint8_t ignoreLockRealMods,
+ uint16_t affectInternalVirtualMods,
+ uint16_t internalVirtualMods,
+ uint16_t affectIgnoreLockVirtualMods,
+ uint16_t ignoreLockVirtualMods,
+ uint8_t mouseKeysDfltBtn,
+ uint8_t groupsWrap,
+ uint16_t accessXOptions,
+ uint32_t affectEnabledControls,
+ uint32_t enabledControls,
+ uint32_t changeControls,
+ uint16_t repeatDelay,
+ uint16_t repeatInterval,
+ uint16_t slowKeysDelay,
+ uint16_t debounceDelay,
+ uint16_t mouseKeysDelay,
+ uint16_t mouseKeysInterval,
+ uint16_t mouseKeysTimeToMax,
+ uint16_t mouseKeysMaxSpeed,
+ int16_t mouseKeysCurve,
+ uint16_t accessXTimeout,
+ uint32_t accessXTimeoutMask,
+ uint32_t accessXTimeoutValues,
+ uint16_t accessXTimeoutOptionsMask,
+ uint16_t accessXTimeoutOptionsValues,
+ const uint8_t *perKeyRepeat);
+
+int
+xcb_xkb_get_map_map_types_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_key_type_iterator_t
+xcb_xkb_get_map_map_types_rtrn_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_syms_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_key_sym_map_iterator_t
+xcb_xkb_get_map_map_syms_rtrn_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+uint8_t *
+xcb_xkb_get_map_map_acts_rtrn_count (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_acts_rtrn_count_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_map_map_acts_rtrn_count_end (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_action_t *
+xcb_xkb_get_map_map_acts_rtrn_acts (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_acts_rtrn_acts_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_action_iterator_t
+xcb_xkb_get_map_map_acts_rtrn_acts_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_set_behavior_t *
+xcb_xkb_get_map_map_behaviors_rtrn (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_behaviors_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_set_behavior_iterator_t
+xcb_xkb_get_map_map_behaviors_rtrn_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+uint8_t *
+xcb_xkb_get_map_map_vmods_rtrn (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_vmods_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_map_map_vmods_rtrn_end (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_set_explicit_t *
+xcb_xkb_get_map_map_explicit_rtrn (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_explicit_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_set_explicit_iterator_t
+xcb_xkb_get_map_map_explicit_rtrn_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_key_mod_map_t *
+xcb_xkb_get_map_map_modmap_rtrn (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_modmap_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_key_mod_map_iterator_t
+xcb_xkb_get_map_map_modmap_rtrn_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_key_v_mod_map_t *
+xcb_xkb_get_map_map_vmodmap_rtrn (const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_vmodmap_rtrn_length (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+xcb_xkb_key_v_mod_map_iterator_t
+xcb_xkb_get_map_map_vmodmap_rtrn_iterator (const xcb_xkb_get_map_reply_t *R,
+ const xcb_xkb_get_map_map_t *S);
+
+int
+xcb_xkb_get_map_map_serialize (void **_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present,
+ const xcb_xkb_get_map_map_t *_aux);
+
+int
+xcb_xkb_get_map_map_unpack (const void *_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present,
+ xcb_xkb_get_map_map_t *_aux);
+
+int
+xcb_xkb_get_map_map_sizeof (const void *_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present);
+
+int
+xcb_xkb_get_map_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_map_cookie_t
+xcb_xkb_get_map (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t full,
+ uint16_t partial,
+ uint8_t firstType,
+ uint8_t nTypes,
+ xcb_keycode_t firstKeySym,
+ uint8_t nKeySyms,
+ xcb_keycode_t firstKeyAction,
+ uint8_t nKeyActions,
+ xcb_keycode_t firstKeyBehavior,
+ uint8_t nKeyBehaviors,
+ uint16_t virtualMods,
+ xcb_keycode_t firstKeyExplicit,
+ uint8_t nKeyExplicit,
+ xcb_keycode_t firstModMapKey,
+ uint8_t nModMapKeys,
+ xcb_keycode_t firstVModMapKey,
+ uint8_t nVModMapKeys);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_map_cookie_t
+xcb_xkb_get_map_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t full,
+ uint16_t partial,
+ uint8_t firstType,
+ uint8_t nTypes,
+ xcb_keycode_t firstKeySym,
+ uint8_t nKeySyms,
+ xcb_keycode_t firstKeyAction,
+ uint8_t nKeyActions,
+ xcb_keycode_t firstKeyBehavior,
+ uint8_t nKeyBehaviors,
+ uint16_t virtualMods,
+ xcb_keycode_t firstKeyExplicit,
+ uint8_t nKeyExplicit,
+ xcb_keycode_t firstModMapKey,
+ uint8_t nModMapKeys,
+ xcb_keycode_t firstVModMapKey,
+ uint8_t nVModMapKeys);
+
+void *
+xcb_xkb_get_map_map (const xcb_xkb_get_map_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_map_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_map_reply_t *
+xcb_xkb_get_map_reply (xcb_connection_t *c,
+ xcb_xkb_get_map_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_set_map_values_types_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_set_key_type_iterator_t
+xcb_xkb_set_map_values_types_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_syms_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_key_sym_map_iterator_t
+xcb_xkb_set_map_values_syms_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+uint8_t *
+xcb_xkb_set_map_values_actions_count (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_actions_count_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_map_values_actions_count_end (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_action_t *
+xcb_xkb_set_map_values_actions (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_actions_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_action_iterator_t
+xcb_xkb_set_map_values_actions_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_set_behavior_t *
+xcb_xkb_set_map_values_behaviors (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_behaviors_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_set_behavior_iterator_t
+xcb_xkb_set_map_values_behaviors_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+uint8_t *
+xcb_xkb_set_map_values_vmods (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_vmods_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_map_values_vmods_end (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_set_explicit_t *
+xcb_xkb_set_map_values_explicit (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_explicit_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_set_explicit_iterator_t
+xcb_xkb_set_map_values_explicit_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_key_mod_map_t *
+xcb_xkb_set_map_values_modmap (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_modmap_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_key_mod_map_iterator_t
+xcb_xkb_set_map_values_modmap_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_key_v_mod_map_t *
+xcb_xkb_set_map_values_vmodmap (const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_vmodmap_length (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+xcb_xkb_key_v_mod_map_iterator_t
+xcb_xkb_set_map_values_vmodmap_iterator (const xcb_xkb_set_map_request_t *R,
+ const xcb_xkb_set_map_values_t *S);
+
+int
+xcb_xkb_set_map_values_serialize (void **_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present,
+ const xcb_xkb_set_map_values_t *_aux);
+
+int
+xcb_xkb_set_map_values_unpack (const void *_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present,
+ xcb_xkb_set_map_values_t *_aux);
+
+int
+xcb_xkb_set_map_values_sizeof (const void *_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present);
+
+int
+xcb_xkb_set_map_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_map_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t present,
+ uint16_t flags,
+ xcb_keycode_t minKeyCode,
+ xcb_keycode_t maxKeyCode,
+ uint8_t firstType,
+ uint8_t nTypes,
+ xcb_keycode_t firstKeySym,
+ uint8_t nKeySyms,
+ uint16_t totalSyms,
+ xcb_keycode_t firstKeyAction,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ xcb_keycode_t firstKeyBehavior,
+ uint8_t nKeyBehaviors,
+ uint8_t totalKeyBehaviors,
+ xcb_keycode_t firstKeyExplicit,
+ uint8_t nKeyExplicit,
+ uint8_t totalKeyExplicit,
+ xcb_keycode_t firstModMapKey,
+ uint8_t nModMapKeys,
+ uint8_t totalModMapKeys,
+ xcb_keycode_t firstVModMapKey,
+ uint8_t nVModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t virtualMods,
+ const void *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_map (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t present,
+ uint16_t flags,
+ xcb_keycode_t minKeyCode,
+ xcb_keycode_t maxKeyCode,
+ uint8_t firstType,
+ uint8_t nTypes,
+ xcb_keycode_t firstKeySym,
+ uint8_t nKeySyms,
+ uint16_t totalSyms,
+ xcb_keycode_t firstKeyAction,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ xcb_keycode_t firstKeyBehavior,
+ uint8_t nKeyBehaviors,
+ uint8_t totalKeyBehaviors,
+ xcb_keycode_t firstKeyExplicit,
+ uint8_t nKeyExplicit,
+ uint8_t totalKeyExplicit,
+ xcb_keycode_t firstModMapKey,
+ uint8_t nModMapKeys,
+ uint8_t totalModMapKeys,
+ xcb_keycode_t firstVModMapKey,
+ uint8_t nVModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t virtualMods,
+ const void *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_map_aux_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t present,
+ uint16_t flags,
+ xcb_keycode_t minKeyCode,
+ xcb_keycode_t maxKeyCode,
+ uint8_t firstType,
+ uint8_t nTypes,
+ xcb_keycode_t firstKeySym,
+ uint8_t nKeySyms,
+ uint16_t totalSyms,
+ xcb_keycode_t firstKeyAction,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ xcb_keycode_t firstKeyBehavior,
+ uint8_t nKeyBehaviors,
+ uint8_t totalKeyBehaviors,
+ xcb_keycode_t firstKeyExplicit,
+ uint8_t nKeyExplicit,
+ uint8_t totalKeyExplicit,
+ xcb_keycode_t firstModMapKey,
+ uint8_t nModMapKeys,
+ uint8_t totalModMapKeys,
+ xcb_keycode_t firstVModMapKey,
+ uint8_t nVModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t virtualMods,
+ const xcb_xkb_set_map_values_t *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_map_aux (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t present,
+ uint16_t flags,
+ xcb_keycode_t minKeyCode,
+ xcb_keycode_t maxKeyCode,
+ uint8_t firstType,
+ uint8_t nTypes,
+ xcb_keycode_t firstKeySym,
+ uint8_t nKeySyms,
+ uint16_t totalSyms,
+ xcb_keycode_t firstKeyAction,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ xcb_keycode_t firstKeyBehavior,
+ uint8_t nKeyBehaviors,
+ uint8_t totalKeyBehaviors,
+ xcb_keycode_t firstKeyExplicit,
+ uint8_t nKeyExplicit,
+ uint8_t totalKeyExplicit,
+ xcb_keycode_t firstModMapKey,
+ uint8_t nModMapKeys,
+ uint8_t totalModMapKeys,
+ xcb_keycode_t firstVModMapKey,
+ uint8_t nVModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t virtualMods,
+ const xcb_xkb_set_map_values_t *values);
+
+void *
+xcb_xkb_set_map_values (const xcb_xkb_set_map_request_t *R);
+
+int
+xcb_xkb_get_compat_map_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_compat_map_cookie_t
+xcb_xkb_get_compat_map (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t groups,
+ uint8_t getAllSI,
+ uint16_t firstSI,
+ uint16_t nSI);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_compat_map_cookie_t
+xcb_xkb_get_compat_map_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t groups,
+ uint8_t getAllSI,
+ uint16_t firstSI,
+ uint16_t nSI);
+
+xcb_xkb_sym_interpret_t *
+xcb_xkb_get_compat_map_si_rtrn (const xcb_xkb_get_compat_map_reply_t *R);
+
+int
+xcb_xkb_get_compat_map_si_rtrn_length (const xcb_xkb_get_compat_map_reply_t *R);
+
+xcb_xkb_sym_interpret_iterator_t
+xcb_xkb_get_compat_map_si_rtrn_iterator (const xcb_xkb_get_compat_map_reply_t *R);
+
+xcb_xkb_mod_def_t *
+xcb_xkb_get_compat_map_group_rtrn (const xcb_xkb_get_compat_map_reply_t *R);
+
+int
+xcb_xkb_get_compat_map_group_rtrn_length (const xcb_xkb_get_compat_map_reply_t *R);
+
+xcb_xkb_mod_def_iterator_t
+xcb_xkb_get_compat_map_group_rtrn_iterator (const xcb_xkb_get_compat_map_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_compat_map_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_compat_map_reply_t *
+xcb_xkb_get_compat_map_reply (xcb_connection_t *c,
+ xcb_xkb_get_compat_map_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_set_compat_map_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_compat_map_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t recomputeActions,
+ uint8_t truncateSI,
+ uint8_t groups,
+ uint16_t firstSI,
+ uint16_t nSI,
+ const xcb_xkb_sym_interpret_t *si,
+ const xcb_xkb_mod_def_t *groupMaps);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_compat_map (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t recomputeActions,
+ uint8_t truncateSI,
+ uint8_t groups,
+ uint16_t firstSI,
+ uint16_t nSI,
+ const xcb_xkb_sym_interpret_t *si,
+ const xcb_xkb_mod_def_t *groupMaps);
+
+xcb_xkb_sym_interpret_t *
+xcb_xkb_set_compat_map_si (const xcb_xkb_set_compat_map_request_t *R);
+
+int
+xcb_xkb_set_compat_map_si_length (const xcb_xkb_set_compat_map_request_t *R);
+
+xcb_xkb_sym_interpret_iterator_t
+xcb_xkb_set_compat_map_si_iterator (const xcb_xkb_set_compat_map_request_t *R);
+
+xcb_xkb_mod_def_t *
+xcb_xkb_set_compat_map_group_maps (const xcb_xkb_set_compat_map_request_t *R);
+
+int
+xcb_xkb_set_compat_map_group_maps_length (const xcb_xkb_set_compat_map_request_t *R);
+
+xcb_xkb_mod_def_iterator_t
+xcb_xkb_set_compat_map_group_maps_iterator (const xcb_xkb_set_compat_map_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_indicator_state_cookie_t
+xcb_xkb_get_indicator_state (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_indicator_state_cookie_t
+xcb_xkb_get_indicator_state_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_indicator_state_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_indicator_state_reply_t *
+xcb_xkb_get_indicator_state_reply (xcb_connection_t *c,
+ xcb_xkb_get_indicator_state_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_get_indicator_map_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_indicator_map_cookie_t
+xcb_xkb_get_indicator_map (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t which);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_indicator_map_cookie_t
+xcb_xkb_get_indicator_map_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t which);
+
+xcb_xkb_indicator_map_t *
+xcb_xkb_get_indicator_map_maps (const xcb_xkb_get_indicator_map_reply_t *R);
+
+int
+xcb_xkb_get_indicator_map_maps_length (const xcb_xkb_get_indicator_map_reply_t *R);
+
+xcb_xkb_indicator_map_iterator_t
+xcb_xkb_get_indicator_map_maps_iterator (const xcb_xkb_get_indicator_map_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_indicator_map_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_indicator_map_reply_t *
+xcb_xkb_get_indicator_map_reply (xcb_connection_t *c,
+ xcb_xkb_get_indicator_map_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_set_indicator_map_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_indicator_map_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t which,
+ const xcb_xkb_indicator_map_t *maps);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_indicator_map (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t which,
+ const xcb_xkb_indicator_map_t *maps);
+
+xcb_xkb_indicator_map_t *
+xcb_xkb_set_indicator_map_maps (const xcb_xkb_set_indicator_map_request_t *R);
+
+int
+xcb_xkb_set_indicator_map_maps_length (const xcb_xkb_set_indicator_map_request_t *R);
+
+xcb_xkb_indicator_map_iterator_t
+xcb_xkb_set_indicator_map_maps_iterator (const xcb_xkb_set_indicator_map_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_named_indicator_cookie_t
+xcb_xkb_get_named_indicator (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ xcb_xkb_led_class_spec_t ledClass,
+ xcb_xkb_id_spec_t ledID,
+ xcb_atom_t indicator);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_named_indicator_cookie_t
+xcb_xkb_get_named_indicator_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ xcb_xkb_led_class_spec_t ledClass,
+ xcb_xkb_id_spec_t ledID,
+ xcb_atom_t indicator);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_named_indicator_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_named_indicator_reply_t *
+xcb_xkb_get_named_indicator_reply (xcb_connection_t *c,
+ xcb_xkb_get_named_indicator_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_named_indicator_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ xcb_xkb_led_class_spec_t ledClass,
+ xcb_xkb_id_spec_t ledID,
+ xcb_atom_t indicator,
+ uint8_t setState,
+ uint8_t on,
+ uint8_t setMap,
+ uint8_t createMap,
+ uint8_t map_flags,
+ uint8_t map_whichGroups,
+ uint8_t map_groups,
+ uint8_t map_whichMods,
+ uint8_t map_realMods,
+ uint16_t map_vmods,
+ uint32_t map_ctrls);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_named_indicator (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ xcb_xkb_led_class_spec_t ledClass,
+ xcb_xkb_id_spec_t ledID,
+ xcb_atom_t indicator,
+ uint8_t setState,
+ uint8_t on,
+ uint8_t setMap,
+ uint8_t createMap,
+ uint8_t map_flags,
+ uint8_t map_whichGroups,
+ uint8_t map_groups,
+ uint8_t map_whichMods,
+ uint8_t map_realMods,
+ uint16_t map_vmods,
+ uint32_t map_ctrls);
+
+xcb_atom_t *
+xcb_xkb_get_names_value_list_type_names (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_type_names_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_type_names_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+uint8_t *
+xcb_xkb_get_names_value_list_n_levels_per_type (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_n_levels_per_type_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_n_levels_per_type_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_names_value_list_kt_level_names (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_kt_level_names_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_kt_level_names_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_names_value_list_indicator_names (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_indicator_names_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_indicator_names_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_names_value_list_virtual_mod_names (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_virtual_mod_names_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_virtual_mod_names_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_names_value_list_groups (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_groups_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_groups_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_xkb_key_name_t *
+xcb_xkb_get_names_value_list_key_names (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_key_names_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_xkb_key_name_iterator_t
+xcb_xkb_get_names_value_list_key_names_iterator (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_xkb_key_alias_t *
+xcb_xkb_get_names_value_list_key_aliases (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_key_aliases_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_xkb_key_alias_iterator_t
+xcb_xkb_get_names_value_list_key_aliases_iterator (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_names_value_list_radio_group_names (const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_radio_group_names_length (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_names_value_list_radio_group_names_end (const xcb_xkb_get_names_reply_t *R,
+ const xcb_xkb_get_names_value_list_t *S);
+
+int
+xcb_xkb_get_names_value_list_serialize (void **_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which,
+ const xcb_xkb_get_names_value_list_t *_aux);
+
+int
+xcb_xkb_get_names_value_list_unpack (const void *_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which,
+ xcb_xkb_get_names_value_list_t *_aux);
+
+int
+xcb_xkb_get_names_value_list_sizeof (const void *_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which);
+
+int
+xcb_xkb_get_names_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_names_cookie_t
+xcb_xkb_get_names (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t which);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_names_cookie_t
+xcb_xkb_get_names_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t which);
+
+void *
+xcb_xkb_get_names_value_list (const xcb_xkb_get_names_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_names_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_names_reply_t *
+xcb_xkb_get_names_reply (xcb_connection_t *c,
+ xcb_xkb_get_names_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+xcb_atom_t *
+xcb_xkb_set_names_values_type_names (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_type_names_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_type_names_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+uint8_t *
+xcb_xkb_set_names_values_n_levels_per_type (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_n_levels_per_type_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_n_levels_per_type_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_atom_t *
+xcb_xkb_set_names_values_kt_level_names (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_kt_level_names_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_kt_level_names_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_atom_t *
+xcb_xkb_set_names_values_indicator_names (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_indicator_names_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_indicator_names_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_atom_t *
+xcb_xkb_set_names_values_virtual_mod_names (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_virtual_mod_names_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_virtual_mod_names_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_atom_t *
+xcb_xkb_set_names_values_groups (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_groups_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_groups_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_xkb_key_name_t *
+xcb_xkb_set_names_values_key_names (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_key_names_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_xkb_key_name_iterator_t
+xcb_xkb_set_names_values_key_names_iterator (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_xkb_key_alias_t *
+xcb_xkb_set_names_values_key_aliases (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_key_aliases_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_xkb_key_alias_iterator_t
+xcb_xkb_set_names_values_key_aliases_iterator (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_atom_t *
+xcb_xkb_set_names_values_radio_group_names (const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_radio_group_names_length (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_set_names_values_radio_group_names_end (const xcb_xkb_set_names_request_t *R,
+ const xcb_xkb_set_names_values_t *S);
+
+int
+xcb_xkb_set_names_values_serialize (void **_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which,
+ const xcb_xkb_set_names_values_t *_aux);
+
+int
+xcb_xkb_set_names_values_unpack (const void *_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which,
+ xcb_xkb_set_names_values_t *_aux);
+
+int
+xcb_xkb_set_names_values_sizeof (const void *_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which);
+
+int
+xcb_xkb_set_names_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_names_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t virtualMods,
+ uint32_t which,
+ uint8_t firstType,
+ uint8_t nTypes,
+ uint8_t firstKTLevelt,
+ uint8_t nKTLevels,
+ uint32_t indicators,
+ uint8_t groupNames,
+ uint8_t nRadioGroups,
+ xcb_keycode_t firstKey,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint16_t totalKTLevelNames,
+ const void *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_names (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t virtualMods,
+ uint32_t which,
+ uint8_t firstType,
+ uint8_t nTypes,
+ uint8_t firstKTLevelt,
+ uint8_t nKTLevels,
+ uint32_t indicators,
+ uint8_t groupNames,
+ uint8_t nRadioGroups,
+ xcb_keycode_t firstKey,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint16_t totalKTLevelNames,
+ const void *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_names_aux_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t virtualMods,
+ uint32_t which,
+ uint8_t firstType,
+ uint8_t nTypes,
+ uint8_t firstKTLevelt,
+ uint8_t nKTLevels,
+ uint32_t indicators,
+ uint8_t groupNames,
+ uint8_t nRadioGroups,
+ xcb_keycode_t firstKey,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint16_t totalKTLevelNames,
+ const xcb_xkb_set_names_values_t *values);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_names_aux (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t virtualMods,
+ uint32_t which,
+ uint8_t firstType,
+ uint8_t nTypes,
+ uint8_t firstKTLevelt,
+ uint8_t nKTLevels,
+ uint32_t indicators,
+ uint8_t groupNames,
+ uint8_t nRadioGroups,
+ xcb_keycode_t firstKey,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint16_t totalKTLevelNames,
+ const xcb_xkb_set_names_values_t *values);
+
+void *
+xcb_xkb_set_names_values (const xcb_xkb_set_names_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_per_client_flags_cookie_t
+xcb_xkb_per_client_flags (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t change,
+ uint32_t value,
+ uint32_t ctrlsToChange,
+ uint32_t autoCtrls,
+ uint32_t autoCtrlsValues);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_per_client_flags_cookie_t
+xcb_xkb_per_client_flags_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint32_t change,
+ uint32_t value,
+ uint32_t ctrlsToChange,
+ uint32_t autoCtrls,
+ uint32_t autoCtrlsValues);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_per_client_flags_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_per_client_flags_reply_t *
+xcb_xkb_per_client_flags_reply (xcb_connection_t *c,
+ xcb_xkb_per_client_flags_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_list_components_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_list_components_cookie_t
+xcb_xkb_list_components (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t maxNames);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_list_components_cookie_t
+xcb_xkb_list_components_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t maxNames);
+
+int
+xcb_xkb_list_components_keymaps_length (const xcb_xkb_list_components_reply_t *R);
+
+xcb_xkb_listing_iterator_t
+xcb_xkb_list_components_keymaps_iterator (const xcb_xkb_list_components_reply_t *R);
+
+int
+xcb_xkb_list_components_keycodes_length (const xcb_xkb_list_components_reply_t *R);
+
+xcb_xkb_listing_iterator_t
+xcb_xkb_list_components_keycodes_iterator (const xcb_xkb_list_components_reply_t *R);
+
+int
+xcb_xkb_list_components_types_length (const xcb_xkb_list_components_reply_t *R);
+
+xcb_xkb_listing_iterator_t
+xcb_xkb_list_components_types_iterator (const xcb_xkb_list_components_reply_t *R);
+
+int
+xcb_xkb_list_components_compat_maps_length (const xcb_xkb_list_components_reply_t *R);
+
+xcb_xkb_listing_iterator_t
+xcb_xkb_list_components_compat_maps_iterator (const xcb_xkb_list_components_reply_t *R);
+
+int
+xcb_xkb_list_components_symbols_length (const xcb_xkb_list_components_reply_t *R);
+
+xcb_xkb_listing_iterator_t
+xcb_xkb_list_components_symbols_iterator (const xcb_xkb_list_components_reply_t *R);
+
+int
+xcb_xkb_list_components_geometries_length (const xcb_xkb_list_components_reply_t *R);
+
+xcb_xkb_listing_iterator_t
+xcb_xkb_list_components_geometries_iterator (const xcb_xkb_list_components_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_list_components_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_list_components_reply_t *
+xcb_xkb_list_components_reply (xcb_connection_t *c,
+ xcb_xkb_list_components_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_types_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_type_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_types_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_syms_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_sym_map_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_syms_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+uint8_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_count_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_action_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_action_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_acts_rtrn_acts_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_set_behavior_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_set_behavior_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_behaviors_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+uint8_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_vmods_rtrn_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_set_explicit_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_set_explicit_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_explicit_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_mod_map_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_mod_map_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_modmap_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_v_mod_map_t *
+xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_v_mod_map_iterator_t
+xcb_xkb_get_kbd_by_name_replies_types_map_vmodmap_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_serialize (void **_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present,
+ const xcb_xkb_get_kbd_by_name_replies_types_map_t *_aux);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_unpack (const void *_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present,
+ xcb_xkb_get_kbd_by_name_replies_types_map_t *_aux);
+
+int
+xcb_xkb_get_kbd_by_name_replies_types_map_sizeof (const void *_buffer,
+ uint8_t nTypes,
+ uint8_t nKeySyms,
+ uint8_t nKeyActions,
+ uint16_t totalActions,
+ uint8_t totalKeyBehaviors,
+ uint16_t virtualMods,
+ uint8_t totalKeyExplicit,
+ uint8_t totalModMapKeys,
+ uint8_t totalVModMapKeys,
+ uint16_t present);
+
+xcb_atom_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_type_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+uint8_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_n_levels_per_type_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_kt_level_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_indicator_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_virtual_mod_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_groups_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_name_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_name_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_names_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_alias_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_key_alias_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_key_aliases_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_atom_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_generic_iterator_t
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_radio_group_names_end (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_serialize (void **_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which,
+ const xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *_aux);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_unpack (const void *_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which,
+ xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *_aux);
+
+int
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof (const void *_buffer,
+ uint8_t nTypes,
+ uint32_t indicators,
+ uint16_t virtualMods,
+ uint8_t groupNames,
+ uint8_t nKeys,
+ uint8_t nKeyAliases,
+ uint8_t nRadioGroups,
+ uint32_t which);
+
+xcb_xkb_sym_interpret_t *
+xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_sym_interpret_iterator_t
+xcb_xkb_get_kbd_by_name_replies_compat_map_si_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_mod_def_t *
+xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_mod_def_iterator_t
+xcb_xkb_get_kbd_by_name_replies_compat_map_group_rtrn_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_indicator_map_t *
+xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps (const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+int
+xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps_length (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_indicator_map_iterator_t
+xcb_xkb_get_kbd_by_name_replies_indicator_maps_maps_iterator (const xcb_xkb_get_kbd_by_name_reply_t *R,
+ const xcb_xkb_get_kbd_by_name_replies_t *S);
+
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list_t *
+xcb_xkb_get_kbd_by_name_replies_key_names_value_list (const xcb_xkb_get_kbd_by_name_replies_t *R);
+
+xcb_xkb_counted_string_16_t *
+xcb_xkb_get_kbd_by_name_replies_geometry_label_font (const xcb_xkb_get_kbd_by_name_replies_t *R);
+
+int
+xcb_xkb_get_kbd_by_name_replies_serialize (void **_buffer,
+ uint16_t reported,
+ const xcb_xkb_get_kbd_by_name_replies_t *_aux);
+
+int
+xcb_xkb_get_kbd_by_name_replies_unpack (const void *_buffer,
+ uint16_t reported,
+ xcb_xkb_get_kbd_by_name_replies_t *_aux);
+
+int
+xcb_xkb_get_kbd_by_name_replies_sizeof (const void *_buffer,
+ uint16_t reported);
+
+int
+xcb_xkb_get_kbd_by_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_kbd_by_name_cookie_t
+xcb_xkb_get_kbd_by_name (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t need,
+ uint16_t want,
+ uint8_t load);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_kbd_by_name_cookie_t
+xcb_xkb_get_kbd_by_name_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t need,
+ uint16_t want,
+ uint8_t load);
+
+void *
+xcb_xkb_get_kbd_by_name_replies (const xcb_xkb_get_kbd_by_name_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_kbd_by_name_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_kbd_by_name_reply_t *
+xcb_xkb_get_kbd_by_name_reply (xcb_connection_t *c,
+ xcb_xkb_get_kbd_by_name_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_get_device_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_get_device_info_cookie_t
+xcb_xkb_get_device_info (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t wanted,
+ uint8_t allButtons,
+ uint8_t firstButton,
+ uint8_t nButtons,
+ xcb_xkb_led_class_spec_t ledClass,
+ xcb_xkb_id_spec_t ledID);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_get_device_info_cookie_t
+xcb_xkb_get_device_info_unchecked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint16_t wanted,
+ uint8_t allButtons,
+ uint8_t firstButton,
+ uint8_t nButtons,
+ xcb_xkb_led_class_spec_t ledClass,
+ xcb_xkb_id_spec_t ledID);
+
+xcb_xkb_string8_t *
+xcb_xkb_get_device_info_name (const xcb_xkb_get_device_info_reply_t *R);
+
+int
+xcb_xkb_get_device_info_name_length (const xcb_xkb_get_device_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xkb_get_device_info_name_end (const xcb_xkb_get_device_info_reply_t *R);
+
+xcb_xkb_action_t *
+xcb_xkb_get_device_info_btn_actions (const xcb_xkb_get_device_info_reply_t *R);
+
+int
+xcb_xkb_get_device_info_btn_actions_length (const xcb_xkb_get_device_info_reply_t *R);
+
+xcb_xkb_action_iterator_t
+xcb_xkb_get_device_info_btn_actions_iterator (const xcb_xkb_get_device_info_reply_t *R);
+
+int
+xcb_xkb_get_device_info_leds_length (const xcb_xkb_get_device_info_reply_t *R);
+
+xcb_xkb_device_led_info_iterator_t
+xcb_xkb_get_device_info_leds_iterator (const xcb_xkb_get_device_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_get_device_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_get_device_info_reply_t *
+xcb_xkb_get_device_info_reply (xcb_connection_t *c,
+ xcb_xkb_get_device_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xkb_set_device_info_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xkb_set_device_info_checked (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t firstBtn,
+ uint8_t nBtns,
+ uint16_t change,
+ uint16_t nDeviceLedFBs,
+ const xcb_xkb_action_t *btnActions,
+ const xcb_xkb_device_led_info_t *leds);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xkb_set_device_info (xcb_connection_t *c,
+ xcb_xkb_device_spec_t deviceSpec,
+ uint8_t firstBtn,
+ uint8_t nBtns,
+ uint16_t change,
+ uint16_t nDeviceLedFBs,
+ const xcb_xkb_action_t *btnActions,
+ const xcb_xkb_device_led_info_t *leds);
+
+xcb_xkb_action_t *
+xcb_xkb_set_device_info_btn_actions (const xcb_xkb_set_device_info_request_t *R);
+
+int
+xcb_xkb_set_device_info_btn_actions_length (const xcb_xkb_set_device_info_request_t *R);
+
+xcb_xkb_action_iterator_t
+xcb_xkb_set_device_info_btn_actions_iterator (const xcb_xkb_set_device_info_request_t *R);
+
+int
+xcb_xkb_set_device_info_leds_length (const xcb_xkb_set_device_info_request_t *R);
+
+xcb_xkb_device_led_info_iterator_t
+xcb_xkb_set_device_info_leds_iterator (const xcb_xkb_set_device_info_request_t *R);
+
+int
+xcb_xkb_set_debugging_flags_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xkb_set_debugging_flags_cookie_t
+xcb_xkb_set_debugging_flags (xcb_connection_t *c,
+ uint16_t msgLength,
+ uint32_t affectFlags,
+ uint32_t flags,
+ uint32_t affectCtrls,
+ uint32_t ctrls,
+ const xcb_xkb_string8_t *message);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xkb_set_debugging_flags_cookie_t
+xcb_xkb_set_debugging_flags_unchecked (xcb_connection_t *c,
+ uint16_t msgLength,
+ uint32_t affectFlags,
+ uint32_t flags,
+ uint32_t affectCtrls,
+ uint32_t ctrls,
+ const xcb_xkb_string8_t *message);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xkb_set_debugging_flags_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xkb_set_debugging_flags_reply_t *
+xcb_xkb_set_debugging_flags_reply (xcb_connection_t *c,
+ xcb_xkb_set_debugging_flags_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xprint.h b/depends/libxcb/include/xcb/xprint.h
new file mode 100644
index 0000000..0825bbc
--- /dev/null
+++ b/depends/libxcb/include/xcb/xprint.h
@@ -0,0 +1,1895 @@
+/*
+ * This file generated automatically from xprint.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_XPrint_API XCB XPrint API
+ * @brief XPrint XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XPRINT_H
+#define __XPRINT_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XPRINT_MAJOR_VERSION 1
+#define XCB_XPRINT_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_x_print_id;
+
+typedef char xcb_x_print_string8_t;
+
+/**
+ * @brief xcb_x_print_string8_iterator_t
+ **/
+typedef struct xcb_x_print_string8_iterator_t {
+ xcb_x_print_string8_t *data;
+ int rem;
+ int index;
+} xcb_x_print_string8_iterator_t;
+
+/**
+ * @brief xcb_x_print_printer_t
+ **/
+typedef struct xcb_x_print_printer_t {
+ uint32_t nameLen;
+ uint32_t descLen;
+} xcb_x_print_printer_t;
+
+/**
+ * @brief xcb_x_print_printer_iterator_t
+ **/
+typedef struct xcb_x_print_printer_iterator_t {
+ xcb_x_print_printer_t *data;
+ int rem;
+ int index;
+} xcb_x_print_printer_iterator_t;
+
+typedef uint32_t xcb_x_print_pcontext_t;
+
+/**
+ * @brief xcb_x_print_pcontext_iterator_t
+ **/
+typedef struct xcb_x_print_pcontext_iterator_t {
+ xcb_x_print_pcontext_t *data;
+ int rem;
+ int index;
+} xcb_x_print_pcontext_iterator_t;
+
+typedef enum xcb_x_print_get_doc_t {
+ XCB_X_PRINT_GET_DOC_FINISHED = 0,
+ XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1
+} xcb_x_print_get_doc_t;
+
+typedef enum xcb_x_print_ev_mask_t {
+ XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0,
+ XCB_X_PRINT_EV_MASK_PRINT_MASK = 1,
+ XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2
+} xcb_x_print_ev_mask_t;
+
+typedef enum xcb_x_print_detail_t {
+ XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1,
+ XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2,
+ XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3,
+ XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4,
+ XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5,
+ XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6
+} xcb_x_print_detail_t;
+
+typedef enum xcb_x_print_attr_t {
+ XCB_X_PRINT_ATTR_JOB_ATTR = 1,
+ XCB_X_PRINT_ATTR_DOC_ATTR = 2,
+ XCB_X_PRINT_ATTR_PAGE_ATTR = 3,
+ XCB_X_PRINT_ATTR_PRINTER_ATTR = 4,
+ XCB_X_PRINT_ATTR_SERVER_ATTR = 5,
+ XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6,
+ XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7
+} xcb_x_print_attr_t;
+
+/**
+ * @brief xcb_x_print_print_query_version_cookie_t
+ **/
+typedef struct xcb_x_print_print_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_query_version_cookie_t;
+
+/** Opcode for xcb_x_print_print_query_version. */
+#define XCB_X_PRINT_PRINT_QUERY_VERSION 0
+
+/**
+ * @brief xcb_x_print_print_query_version_request_t
+ **/
+typedef struct xcb_x_print_print_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_x_print_print_query_version_request_t;
+
+/**
+ * @brief xcb_x_print_print_query_version_reply_t
+ **/
+typedef struct xcb_x_print_print_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major_version;
+ uint16_t minor_version;
+} xcb_x_print_print_query_version_reply_t;
+
+/**
+ * @brief xcb_x_print_print_get_printer_list_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_printer_list_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_printer_list_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_printer_list. */
+#define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
+
+/**
+ * @brief xcb_x_print_print_get_printer_list_request_t
+ **/
+typedef struct xcb_x_print_print_get_printer_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t printerNameLen;
+ uint32_t localeLen;
+} xcb_x_print_print_get_printer_list_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_printer_list_reply_t
+ **/
+typedef struct xcb_x_print_print_get_printer_list_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t listCount;
+ uint8_t pad1[20];
+} xcb_x_print_print_get_printer_list_reply_t;
+
+/** Opcode for xcb_x_print_print_rehash_printer_list. */
+#define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
+
+/**
+ * @brief xcb_x_print_print_rehash_printer_list_request_t
+ **/
+typedef struct xcb_x_print_print_rehash_printer_list_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_x_print_print_rehash_printer_list_request_t;
+
+/** Opcode for xcb_x_print_create_context. */
+#define XCB_X_PRINT_CREATE_CONTEXT 2
+
+/**
+ * @brief xcb_x_print_create_context_request_t
+ **/
+typedef struct xcb_x_print_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_id;
+ uint32_t printerNameLen;
+ uint32_t localeLen;
+} xcb_x_print_create_context_request_t;
+
+/** Opcode for xcb_x_print_print_set_context. */
+#define XCB_X_PRINT_PRINT_SET_CONTEXT 3
+
+/**
+ * @brief xcb_x_print_print_set_context_request_t
+ **/
+typedef struct xcb_x_print_print_set_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context;
+} xcb_x_print_print_set_context_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_context_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_context_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_context_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_context. */
+#define XCB_X_PRINT_PRINT_GET_CONTEXT 4
+
+/**
+ * @brief xcb_x_print_print_get_context_request_t
+ **/
+typedef struct xcb_x_print_print_get_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_x_print_print_get_context_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_context_reply_t
+ **/
+typedef struct xcb_x_print_print_get_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context;
+} xcb_x_print_print_get_context_reply_t;
+
+/** Opcode for xcb_x_print_print_destroy_context. */
+#define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
+
+/**
+ * @brief xcb_x_print_print_destroy_context_request_t
+ **/
+typedef struct xcb_x_print_print_destroy_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context;
+} xcb_x_print_print_destroy_context_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_screen_of_context_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_screen_of_context_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_screen_of_context_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_screen_of_context. */
+#define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
+
+/**
+ * @brief xcb_x_print_print_get_screen_of_context_request_t
+ **/
+typedef struct xcb_x_print_print_get_screen_of_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_x_print_print_get_screen_of_context_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_screen_of_context_reply_t
+ **/
+typedef struct xcb_x_print_print_get_screen_of_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t root;
+} xcb_x_print_print_get_screen_of_context_reply_t;
+
+/** Opcode for xcb_x_print_print_start_job. */
+#define XCB_X_PRINT_PRINT_START_JOB 7
+
+/**
+ * @brief xcb_x_print_print_start_job_request_t
+ **/
+typedef struct xcb_x_print_print_start_job_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t output_mode;
+} xcb_x_print_print_start_job_request_t;
+
+/** Opcode for xcb_x_print_print_end_job. */
+#define XCB_X_PRINT_PRINT_END_JOB 8
+
+/**
+ * @brief xcb_x_print_print_end_job_request_t
+ **/
+typedef struct xcb_x_print_print_end_job_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t cancel;
+} xcb_x_print_print_end_job_request_t;
+
+/** Opcode for xcb_x_print_print_start_doc. */
+#define XCB_X_PRINT_PRINT_START_DOC 9
+
+/**
+ * @brief xcb_x_print_print_start_doc_request_t
+ **/
+typedef struct xcb_x_print_print_start_doc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t driver_mode;
+} xcb_x_print_print_start_doc_request_t;
+
+/** Opcode for xcb_x_print_print_end_doc. */
+#define XCB_X_PRINT_PRINT_END_DOC 10
+
+/**
+ * @brief xcb_x_print_print_end_doc_request_t
+ **/
+typedef struct xcb_x_print_print_end_doc_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t cancel;
+} xcb_x_print_print_end_doc_request_t;
+
+/** Opcode for xcb_x_print_print_put_document_data. */
+#define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
+
+/**
+ * @brief xcb_x_print_print_put_document_data_request_t
+ **/
+typedef struct xcb_x_print_print_put_document_data_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint32_t len_data;
+ uint16_t len_fmt;
+ uint16_t len_options;
+} xcb_x_print_print_put_document_data_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_document_data_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_document_data_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_document_data_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_document_data. */
+#define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
+
+/**
+ * @brief xcb_x_print_print_get_document_data_request_t
+ **/
+typedef struct xcb_x_print_print_get_document_data_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+ uint32_t max_bytes;
+} xcb_x_print_print_get_document_data_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_document_data_reply_t
+ **/
+typedef struct xcb_x_print_print_get_document_data_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t status_code;
+ uint32_t finished_flag;
+ uint32_t dataLen;
+ uint8_t pad1[12];
+} xcb_x_print_print_get_document_data_reply_t;
+
+/** Opcode for xcb_x_print_print_start_page. */
+#define XCB_X_PRINT_PRINT_START_PAGE 13
+
+/**
+ * @brief xcb_x_print_print_start_page_request_t
+ **/
+typedef struct xcb_x_print_print_start_page_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_x_print_print_start_page_request_t;
+
+/** Opcode for xcb_x_print_print_end_page. */
+#define XCB_X_PRINT_PRINT_END_PAGE 14
+
+/**
+ * @brief xcb_x_print_print_end_page_request_t
+ **/
+typedef struct xcb_x_print_print_end_page_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t cancel;
+ uint8_t pad0[3];
+} xcb_x_print_print_end_page_request_t;
+
+/** Opcode for xcb_x_print_print_select_input. */
+#define XCB_X_PRINT_PRINT_SELECT_INPUT 15
+
+/**
+ * @brief xcb_x_print_print_select_input_request_t
+ **/
+typedef struct xcb_x_print_print_select_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+ uint32_t event_mask;
+} xcb_x_print_print_select_input_request_t;
+
+/**
+ * @brief xcb_x_print_print_input_selected_cookie_t
+ **/
+typedef struct xcb_x_print_print_input_selected_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_input_selected_cookie_t;
+
+/** Opcode for xcb_x_print_print_input_selected. */
+#define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
+
+/**
+ * @brief xcb_x_print_print_input_selected_request_t
+ **/
+typedef struct xcb_x_print_print_input_selected_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+} xcb_x_print_print_input_selected_request_t;
+
+/**
+ * @brief xcb_x_print_print_input_selected_reply_t
+ **/
+typedef struct xcb_x_print_print_input_selected_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t event_mask;
+ uint32_t all_events_mask;
+} xcb_x_print_print_input_selected_reply_t;
+
+/**
+ * @brief xcb_x_print_print_get_attributes_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_attributes_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_attributes_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_attributes. */
+#define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
+
+/**
+ * @brief xcb_x_print_print_get_attributes_request_t
+ **/
+typedef struct xcb_x_print_print_get_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+ uint8_t pool;
+ uint8_t pad0[3];
+} xcb_x_print_print_get_attributes_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_attributes_reply_t
+ **/
+typedef struct xcb_x_print_print_get_attributes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t stringLen;
+ uint8_t pad1[20];
+} xcb_x_print_print_get_attributes_reply_t;
+
+/**
+ * @brief xcb_x_print_print_get_one_attributes_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_one_attributes_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_one_attributes_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_one_attributes. */
+#define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
+
+/**
+ * @brief xcb_x_print_print_get_one_attributes_request_t
+ **/
+typedef struct xcb_x_print_print_get_one_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+ uint32_t nameLen;
+ uint8_t pool;
+ uint8_t pad0[3];
+} xcb_x_print_print_get_one_attributes_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_one_attributes_reply_t
+ **/
+typedef struct xcb_x_print_print_get_one_attributes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t valueLen;
+ uint8_t pad1[20];
+} xcb_x_print_print_get_one_attributes_reply_t;
+
+/** Opcode for xcb_x_print_print_set_attributes. */
+#define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
+
+/**
+ * @brief xcb_x_print_print_set_attributes_request_t
+ **/
+typedef struct xcb_x_print_print_set_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+ uint32_t stringLen;
+ uint8_t pool;
+ uint8_t rule;
+ uint8_t pad0[2];
+} xcb_x_print_print_set_attributes_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_page_dimensions_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_page_dimensions_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_page_dimensions_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_page_dimensions. */
+#define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
+
+/**
+ * @brief xcb_x_print_print_get_page_dimensions_request_t
+ **/
+typedef struct xcb_x_print_print_get_page_dimensions_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+} xcb_x_print_print_get_page_dimensions_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_page_dimensions_reply_t
+ **/
+typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t width;
+ uint16_t height;
+ uint16_t offset_x;
+ uint16_t offset_y;
+ uint16_t reproducible_width;
+ uint16_t reproducible_height;
+} xcb_x_print_print_get_page_dimensions_reply_t;
+
+/**
+ * @brief xcb_x_print_print_query_screens_cookie_t
+ **/
+typedef struct xcb_x_print_print_query_screens_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_query_screens_cookie_t;
+
+/** Opcode for xcb_x_print_print_query_screens. */
+#define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
+
+/**
+ * @brief xcb_x_print_print_query_screens_request_t
+ **/
+typedef struct xcb_x_print_print_query_screens_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_x_print_print_query_screens_request_t;
+
+/**
+ * @brief xcb_x_print_print_query_screens_reply_t
+ **/
+typedef struct xcb_x_print_print_query_screens_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t listCount;
+ uint8_t pad1[20];
+} xcb_x_print_print_query_screens_reply_t;
+
+/**
+ * @brief xcb_x_print_print_set_image_resolution_cookie_t
+ **/
+typedef struct xcb_x_print_print_set_image_resolution_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_set_image_resolution_cookie_t;
+
+/** Opcode for xcb_x_print_print_set_image_resolution. */
+#define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
+
+/**
+ * @brief xcb_x_print_print_set_image_resolution_request_t
+ **/
+typedef struct xcb_x_print_print_set_image_resolution_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+ uint16_t image_resolution;
+} xcb_x_print_print_set_image_resolution_request_t;
+
+/**
+ * @brief xcb_x_print_print_set_image_resolution_reply_t
+ **/
+typedef struct xcb_x_print_print_set_image_resolution_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t previous_resolutions;
+} xcb_x_print_print_set_image_resolution_reply_t;
+
+/**
+ * @brief xcb_x_print_print_get_image_resolution_cookie_t
+ **/
+typedef struct xcb_x_print_print_get_image_resolution_cookie_t {
+ unsigned int sequence;
+} xcb_x_print_print_get_image_resolution_cookie_t;
+
+/** Opcode for xcb_x_print_print_get_image_resolution. */
+#define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
+
+/**
+ * @brief xcb_x_print_print_get_image_resolution_request_t
+ **/
+typedef struct xcb_x_print_print_get_image_resolution_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_x_print_pcontext_t context;
+} xcb_x_print_print_get_image_resolution_request_t;
+
+/**
+ * @brief xcb_x_print_print_get_image_resolution_reply_t
+ **/
+typedef struct xcb_x_print_print_get_image_resolution_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t image_resolution;
+} xcb_x_print_print_get_image_resolution_reply_t;
+
+/** Opcode for xcb_x_print_notify. */
+#define XCB_X_PRINT_NOTIFY 0
+
+/**
+ * @brief xcb_x_print_notify_event_t
+ **/
+typedef struct xcb_x_print_notify_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_x_print_pcontext_t context;
+ uint8_t cancel;
+} xcb_x_print_notify_event_t;
+
+/** Opcode for xcb_x_print_attribut_notify. */
+#define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
+
+/**
+ * @brief xcb_x_print_attribut_notify_event_t
+ **/
+typedef struct xcb_x_print_attribut_notify_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_x_print_pcontext_t context;
+} xcb_x_print_attribut_notify_event_t;
+
+/** Opcode for xcb_x_print_bad_context. */
+#define XCB_X_PRINT_BAD_CONTEXT 0
+
+/**
+ * @brief xcb_x_print_bad_context_error_t
+ **/
+typedef struct xcb_x_print_bad_context_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_x_print_bad_context_error_t;
+
+/** Opcode for xcb_x_print_bad_sequence. */
+#define XCB_X_PRINT_BAD_SEQUENCE 1
+
+/**
+ * @brief xcb_x_print_bad_sequence_error_t
+ **/
+typedef struct xcb_x_print_bad_sequence_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_x_print_bad_sequence_error_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_x_print_string8_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_x_print_string8_t)
+ */
+void
+xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_x_print_string8_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i);
+
+int
+xcb_x_print_printer_serialize (void **_buffer,
+ const xcb_x_print_printer_t *_aux,
+ const xcb_x_print_string8_t *name,
+ const xcb_x_print_string8_t *description);
+
+int
+xcb_x_print_printer_unserialize (const void *_buffer,
+ xcb_x_print_printer_t **_aux);
+
+int
+xcb_x_print_printer_sizeof (const void *_buffer);
+
+xcb_x_print_string8_t *
+xcb_x_print_printer_name (const xcb_x_print_printer_t *R);
+
+int
+xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R);
+
+xcb_x_print_string8_t *
+xcb_x_print_printer_description (const xcb_x_print_printer_t *R);
+
+int
+xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_x_print_printer_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_x_print_printer_t)
+ */
+void
+xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_x_print_printer_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_x_print_pcontext_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_x_print_pcontext_t)
+ */
+void
+xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_x_print_pcontext_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_query_version_cookie_t
+xcb_x_print_print_query_version (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_query_version_cookie_t
+xcb_x_print_print_query_version_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_query_version_reply_t *
+xcb_x_print_print_query_version_reply (xcb_connection_t *c,
+ xcb_x_print_print_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_x_print_print_get_printer_list_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_printer_list_cookie_t
+xcb_x_print_print_get_printer_list (xcb_connection_t *c,
+ uint32_t printerNameLen,
+ uint32_t localeLen,
+ const xcb_x_print_string8_t *printer_name,
+ const xcb_x_print_string8_t *locale);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_printer_list_cookie_t
+xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c,
+ uint32_t printerNameLen,
+ uint32_t localeLen,
+ const xcb_x_print_string8_t *printer_name,
+ const xcb_x_print_string8_t *locale);
+
+int
+xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R);
+
+xcb_x_print_printer_iterator_t
+xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_printer_list_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_printer_list_reply_t *
+xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_printer_list_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_rehash_printer_list (xcb_connection_t *c);
+
+int
+xcb_x_print_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_create_context_checked (xcb_connection_t *c,
+ uint32_t context_id,
+ uint32_t printerNameLen,
+ uint32_t localeLen,
+ const xcb_x_print_string8_t *printerName,
+ const xcb_x_print_string8_t *locale);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_create_context (xcb_connection_t *c,
+ uint32_t context_id,
+ uint32_t printerNameLen,
+ uint32_t localeLen,
+ const xcb_x_print_string8_t *printerName,
+ const xcb_x_print_string8_t *locale);
+
+xcb_x_print_string8_t *
+xcb_x_print_create_context_printer_name (const xcb_x_print_create_context_request_t *R);
+
+int
+xcb_x_print_create_context_printer_name_length (const xcb_x_print_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_create_context_printer_name_end (const xcb_x_print_create_context_request_t *R);
+
+xcb_x_print_string8_t *
+xcb_x_print_create_context_locale (const xcb_x_print_create_context_request_t *R);
+
+int
+xcb_x_print_create_context_locale_length (const xcb_x_print_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_create_context_locale_end (const xcb_x_print_create_context_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_set_context_checked (xcb_connection_t *c,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_set_context (xcb_connection_t *c,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_context_cookie_t
+xcb_x_print_print_get_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_context_cookie_t
+xcb_x_print_print_get_context_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_context_reply_t *
+xcb_x_print_print_get_context_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_destroy_context_checked (xcb_connection_t *c,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_destroy_context (xcb_connection_t *c,
+ uint32_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_screen_of_context_cookie_t
+xcb_x_print_print_get_screen_of_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_screen_of_context_cookie_t
+xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_screen_of_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_screen_of_context_reply_t *
+xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_start_job_checked (xcb_connection_t *c,
+ uint8_t output_mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_start_job (xcb_connection_t *c,
+ uint8_t output_mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_end_job_checked (xcb_connection_t *c,
+ uint8_t cancel);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_end_job (xcb_connection_t *c,
+ uint8_t cancel);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_start_doc_checked (xcb_connection_t *c,
+ uint8_t driver_mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_start_doc (xcb_connection_t *c,
+ uint8_t driver_mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_end_doc_checked (xcb_connection_t *c,
+ uint8_t cancel);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_end_doc (xcb_connection_t *c,
+ uint8_t cancel);
+
+int
+xcb_x_print_print_put_document_data_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_put_document_data_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t len_data,
+ uint16_t len_fmt,
+ uint16_t len_options,
+ const uint8_t *data,
+ const xcb_x_print_string8_t *doc_format,
+ const xcb_x_print_string8_t *options);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_put_document_data (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint32_t len_data,
+ uint16_t len_fmt,
+ uint16_t len_options,
+ const uint8_t *data,
+ const xcb_x_print_string8_t *doc_format,
+ const xcb_x_print_string8_t *options);
+
+uint8_t *
+xcb_x_print_print_put_document_data_data (const xcb_x_print_print_put_document_data_request_t *R);
+
+int
+xcb_x_print_print_put_document_data_data_length (const xcb_x_print_print_put_document_data_request_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_put_document_data_data_end (const xcb_x_print_print_put_document_data_request_t *R);
+
+xcb_x_print_string8_t *
+xcb_x_print_print_put_document_data_doc_format (const xcb_x_print_print_put_document_data_request_t *R);
+
+int
+xcb_x_print_print_put_document_data_doc_format_length (const xcb_x_print_print_put_document_data_request_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_put_document_data_doc_format_end (const xcb_x_print_print_put_document_data_request_t *R);
+
+xcb_x_print_string8_t *
+xcb_x_print_print_put_document_data_options (const xcb_x_print_print_put_document_data_request_t *R);
+
+int
+xcb_x_print_print_put_document_data_options_length (const xcb_x_print_print_put_document_data_request_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_put_document_data_options_end (const xcb_x_print_print_put_document_data_request_t *R);
+
+int
+xcb_x_print_print_get_document_data_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_document_data_cookie_t
+xcb_x_print_print_get_document_data (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t max_bytes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_document_data_cookie_t
+xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t max_bytes);
+
+uint8_t *
+xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R);
+
+int
+xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_document_data_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_document_data_reply_t *
+xcb_x_print_print_get_document_data_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_document_data_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_start_page_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_start_page (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_end_page_checked (xcb_connection_t *c,
+ uint8_t cancel);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_end_page (xcb_connection_t *c,
+ uint8_t cancel);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_select_input_checked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_select_input (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_input_selected_cookie_t
+xcb_x_print_print_input_selected (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_input_selected_cookie_t
+xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_input_selected_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_input_selected_reply_t *
+xcb_x_print_print_input_selected_reply (xcb_connection_t *c,
+ xcb_x_print_print_input_selected_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_x_print_print_get_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_attributes_cookie_t
+xcb_x_print_print_get_attributes (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint8_t pool);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_attributes_cookie_t
+xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint8_t pool);
+
+xcb_x_print_string8_t *
+xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R);
+
+int
+xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_attributes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_attributes_reply_t *
+xcb_x_print_print_get_attributes_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_attributes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_one_attributes_cookie_t
+xcb_x_print_print_get_one_attributes (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t nameLen,
+ uint8_t pool,
+ const xcb_x_print_string8_t *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_one_attributes_cookie_t
+xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t nameLen,
+ uint8_t pool,
+ const xcb_x_print_string8_t *name);
+
+xcb_x_print_string8_t *
+xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R);
+
+int
+xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_one_attributes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_one_attributes_reply_t *
+xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_x_print_print_set_attributes_sizeof (const void *_buffer,
+ uint32_t attributes_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_x_print_print_set_attributes_checked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t stringLen,
+ uint8_t pool,
+ uint8_t rule,
+ uint32_t attributes_len,
+ const xcb_x_print_string8_t *attributes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_x_print_print_set_attributes (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint32_t stringLen,
+ uint8_t pool,
+ uint8_t rule,
+ uint32_t attributes_len,
+ const xcb_x_print_string8_t *attributes);
+
+xcb_x_print_string8_t *
+xcb_x_print_print_set_attributes_attributes (const xcb_x_print_print_set_attributes_request_t *R);
+
+int
+xcb_x_print_print_set_attributes_attributes_length (const xcb_x_print_print_set_attributes_request_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_set_attributes_attributes_end (const xcb_x_print_print_set_attributes_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_page_dimensions_cookie_t
+xcb_x_print_print_get_page_dimensions (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_page_dimensions_cookie_t
+xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_page_dimensions_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_page_dimensions_reply_t *
+xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_x_print_print_query_screens_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_query_screens_cookie_t
+xcb_x_print_print_query_screens (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_query_screens_cookie_t
+xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c);
+
+xcb_window_t *
+xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R);
+
+int
+xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_query_screens_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_query_screens_reply_t *
+xcb_x_print_print_query_screens_reply (xcb_connection_t *c,
+ xcb_x_print_print_query_screens_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_set_image_resolution_cookie_t
+xcb_x_print_print_set_image_resolution (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint16_t image_resolution);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_set_image_resolution_cookie_t
+xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context,
+ uint16_t image_resolution);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_set_image_resolution_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_set_image_resolution_reply_t *
+xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c,
+ xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_x_print_print_get_image_resolution_cookie_t
+xcb_x_print_print_get_image_resolution (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_x_print_print_get_image_resolution_cookie_t
+xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c,
+ xcb_x_print_pcontext_t context);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_x_print_print_get_image_resolution_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_x_print_print_get_image_resolution_reply_t *
+xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c,
+ xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xproto.h b/depends/libxcb/include/xcb/xproto.h
new file mode 100644
index 0000000..4d87b72
--- /dev/null
+++ b/depends/libxcb/include/xcb/xproto.h
@@ -0,0 +1,12696 @@
+/*
+ * This file generated automatically from xproto.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB__API XCB API
+ * @brief XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XPROTO_H
+#define __XPROTO_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief xcb_char2b_t
+ **/
+typedef struct xcb_char2b_t {
+ uint8_t byte1;
+ uint8_t byte2;
+} xcb_char2b_t;
+
+/**
+ * @brief xcb_char2b_iterator_t
+ **/
+typedef struct xcb_char2b_iterator_t {
+ xcb_char2b_t *data;
+ int rem;
+ int index;
+} xcb_char2b_iterator_t;
+
+typedef uint32_t xcb_window_t;
+
+/**
+ * @brief xcb_window_iterator_t
+ **/
+typedef struct xcb_window_iterator_t {
+ xcb_window_t *data;
+ int rem;
+ int index;
+} xcb_window_iterator_t;
+
+typedef uint32_t xcb_pixmap_t;
+
+/**
+ * @brief xcb_pixmap_iterator_t
+ **/
+typedef struct xcb_pixmap_iterator_t {
+ xcb_pixmap_t *data;
+ int rem;
+ int index;
+} xcb_pixmap_iterator_t;
+
+typedef uint32_t xcb_cursor_t;
+
+/**
+ * @brief xcb_cursor_iterator_t
+ **/
+typedef struct xcb_cursor_iterator_t {
+ xcb_cursor_t *data;
+ int rem;
+ int index;
+} xcb_cursor_iterator_t;
+
+typedef uint32_t xcb_font_t;
+
+/**
+ * @brief xcb_font_iterator_t
+ **/
+typedef struct xcb_font_iterator_t {
+ xcb_font_t *data;
+ int rem;
+ int index;
+} xcb_font_iterator_t;
+
+typedef uint32_t xcb_gcontext_t;
+
+/**
+ * @brief xcb_gcontext_iterator_t
+ **/
+typedef struct xcb_gcontext_iterator_t {
+ xcb_gcontext_t *data;
+ int rem;
+ int index;
+} xcb_gcontext_iterator_t;
+
+typedef uint32_t xcb_colormap_t;
+
+/**
+ * @brief xcb_colormap_iterator_t
+ **/
+typedef struct xcb_colormap_iterator_t {
+ xcb_colormap_t *data;
+ int rem;
+ int index;
+} xcb_colormap_iterator_t;
+
+typedef uint32_t xcb_atom_t;
+
+/**
+ * @brief xcb_atom_iterator_t
+ **/
+typedef struct xcb_atom_iterator_t {
+ xcb_atom_t *data;
+ int rem;
+ int index;
+} xcb_atom_iterator_t;
+
+typedef uint32_t xcb_drawable_t;
+
+/**
+ * @brief xcb_drawable_iterator_t
+ **/
+typedef struct xcb_drawable_iterator_t {
+ xcb_drawable_t *data;
+ int rem;
+ int index;
+} xcb_drawable_iterator_t;
+
+typedef uint32_t xcb_fontable_t;
+
+/**
+ * @brief xcb_fontable_iterator_t
+ **/
+typedef struct xcb_fontable_iterator_t {
+ xcb_fontable_t *data;
+ int rem;
+ int index;
+} xcb_fontable_iterator_t;
+
+typedef uint32_t xcb_bool32_t;
+
+/**
+ * @brief xcb_bool32_iterator_t
+ **/
+typedef struct xcb_bool32_iterator_t {
+ xcb_bool32_t *data;
+ int rem;
+ int index;
+} xcb_bool32_iterator_t;
+
+typedef uint32_t xcb_visualid_t;
+
+/**
+ * @brief xcb_visualid_iterator_t
+ **/
+typedef struct xcb_visualid_iterator_t {
+ xcb_visualid_t *data;
+ int rem;
+ int index;
+} xcb_visualid_iterator_t;
+
+typedef uint32_t xcb_timestamp_t;
+
+/**
+ * @brief xcb_timestamp_iterator_t
+ **/
+typedef struct xcb_timestamp_iterator_t {
+ xcb_timestamp_t *data;
+ int rem;
+ int index;
+} xcb_timestamp_iterator_t;
+
+typedef uint32_t xcb_keysym_t;
+
+/**
+ * @brief xcb_keysym_iterator_t
+ **/
+typedef struct xcb_keysym_iterator_t {
+ xcb_keysym_t *data;
+ int rem;
+ int index;
+} xcb_keysym_iterator_t;
+
+typedef uint8_t xcb_keycode_t;
+
+/**
+ * @brief xcb_keycode_iterator_t
+ **/
+typedef struct xcb_keycode_iterator_t {
+ xcb_keycode_t *data;
+ int rem;
+ int index;
+} xcb_keycode_iterator_t;
+
+typedef uint32_t xcb_keycode32_t;
+
+/**
+ * @brief xcb_keycode32_iterator_t
+ **/
+typedef struct xcb_keycode32_iterator_t {
+ xcb_keycode32_t *data;
+ int rem;
+ int index;
+} xcb_keycode32_iterator_t;
+
+typedef uint8_t xcb_button_t;
+
+/**
+ * @brief xcb_button_iterator_t
+ **/
+typedef struct xcb_button_iterator_t {
+ xcb_button_t *data;
+ int rem;
+ int index;
+} xcb_button_iterator_t;
+
+/**
+ * @brief xcb_point_t
+ **/
+typedef struct xcb_point_t {
+ int16_t x;
+ int16_t y;
+} xcb_point_t;
+
+/**
+ * @brief xcb_point_iterator_t
+ **/
+typedef struct xcb_point_iterator_t {
+ xcb_point_t *data;
+ int rem;
+ int index;
+} xcb_point_iterator_t;
+
+/**
+ * @brief xcb_rectangle_t
+ **/
+typedef struct xcb_rectangle_t {
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+} xcb_rectangle_t;
+
+/**
+ * @brief xcb_rectangle_iterator_t
+ **/
+typedef struct xcb_rectangle_iterator_t {
+ xcb_rectangle_t *data;
+ int rem;
+ int index;
+} xcb_rectangle_iterator_t;
+
+/**
+ * @brief xcb_arc_t
+ **/
+typedef struct xcb_arc_t {
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ int16_t angle1;
+ int16_t angle2;
+} xcb_arc_t;
+
+/**
+ * @brief xcb_arc_iterator_t
+ **/
+typedef struct xcb_arc_iterator_t {
+ xcb_arc_t *data;
+ int rem;
+ int index;
+} xcb_arc_iterator_t;
+
+/**
+ * @brief xcb_format_t
+ **/
+typedef struct xcb_format_t {
+ uint8_t depth;
+ uint8_t bits_per_pixel;
+ uint8_t scanline_pad;
+ uint8_t pad0[5];
+} xcb_format_t;
+
+/**
+ * @brief xcb_format_iterator_t
+ **/
+typedef struct xcb_format_iterator_t {
+ xcb_format_t *data;
+ int rem;
+ int index;
+} xcb_format_iterator_t;
+
+typedef enum xcb_visual_class_t {
+ XCB_VISUAL_CLASS_STATIC_GRAY = 0,
+ XCB_VISUAL_CLASS_GRAY_SCALE = 1,
+ XCB_VISUAL_CLASS_STATIC_COLOR = 2,
+ XCB_VISUAL_CLASS_PSEUDO_COLOR = 3,
+ XCB_VISUAL_CLASS_TRUE_COLOR = 4,
+ XCB_VISUAL_CLASS_DIRECT_COLOR = 5
+} xcb_visual_class_t;
+
+/**
+ * @brief xcb_visualtype_t
+ **/
+typedef struct xcb_visualtype_t {
+ xcb_visualid_t visual_id;
+ uint8_t _class;
+ uint8_t bits_per_rgb_value;
+ uint16_t colormap_entries;
+ uint32_t red_mask;
+ uint32_t green_mask;
+ uint32_t blue_mask;
+ uint8_t pad0[4];
+} xcb_visualtype_t;
+
+/**
+ * @brief xcb_visualtype_iterator_t
+ **/
+typedef struct xcb_visualtype_iterator_t {
+ xcb_visualtype_t *data;
+ int rem;
+ int index;
+} xcb_visualtype_iterator_t;
+
+/**
+ * @brief xcb_depth_t
+ **/
+typedef struct xcb_depth_t {
+ uint8_t depth;
+ uint8_t pad0;
+ uint16_t visuals_len;
+ uint8_t pad1[4];
+} xcb_depth_t;
+
+/**
+ * @brief xcb_depth_iterator_t
+ **/
+typedef struct xcb_depth_iterator_t {
+ xcb_depth_t *data;
+ int rem;
+ int index;
+} xcb_depth_iterator_t;
+
+typedef enum xcb_event_mask_t {
+ XCB_EVENT_MASK_NO_EVENT = 0,
+ XCB_EVENT_MASK_KEY_PRESS = 1,
+ XCB_EVENT_MASK_KEY_RELEASE = 2,
+ XCB_EVENT_MASK_BUTTON_PRESS = 4,
+ XCB_EVENT_MASK_BUTTON_RELEASE = 8,
+ XCB_EVENT_MASK_ENTER_WINDOW = 16,
+ XCB_EVENT_MASK_LEAVE_WINDOW = 32,
+ XCB_EVENT_MASK_POINTER_MOTION = 64,
+ XCB_EVENT_MASK_POINTER_MOTION_HINT = 128,
+ XCB_EVENT_MASK_BUTTON_1_MOTION = 256,
+ XCB_EVENT_MASK_BUTTON_2_MOTION = 512,
+ XCB_EVENT_MASK_BUTTON_3_MOTION = 1024,
+ XCB_EVENT_MASK_BUTTON_4_MOTION = 2048,
+ XCB_EVENT_MASK_BUTTON_5_MOTION = 4096,
+ XCB_EVENT_MASK_BUTTON_MOTION = 8192,
+ XCB_EVENT_MASK_KEYMAP_STATE = 16384,
+ XCB_EVENT_MASK_EXPOSURE = 32768,
+ XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536,
+ XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072,
+ XCB_EVENT_MASK_RESIZE_REDIRECT = 262144,
+ XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288,
+ XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576,
+ XCB_EVENT_MASK_FOCUS_CHANGE = 2097152,
+ XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304,
+ XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608,
+ XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
+} xcb_event_mask_t;
+
+typedef enum xcb_backing_store_t {
+ XCB_BACKING_STORE_NOT_USEFUL = 0,
+ XCB_BACKING_STORE_WHEN_MAPPED = 1,
+ XCB_BACKING_STORE_ALWAYS = 2
+} xcb_backing_store_t;
+
+/**
+ * @brief xcb_screen_t
+ **/
+typedef struct xcb_screen_t {
+ xcb_window_t root;
+ xcb_colormap_t default_colormap;
+ uint32_t white_pixel;
+ uint32_t black_pixel;
+ uint32_t current_input_masks;
+ uint16_t width_in_pixels;
+ uint16_t height_in_pixels;
+ uint16_t width_in_millimeters;
+ uint16_t height_in_millimeters;
+ uint16_t min_installed_maps;
+ uint16_t max_installed_maps;
+ xcb_visualid_t root_visual;
+ uint8_t backing_stores;
+ uint8_t save_unders;
+ uint8_t root_depth;
+ uint8_t allowed_depths_len;
+} xcb_screen_t;
+
+/**
+ * @brief xcb_screen_iterator_t
+ **/
+typedef struct xcb_screen_iterator_t {
+ xcb_screen_t *data;
+ int rem;
+ int index;
+} xcb_screen_iterator_t;
+
+/**
+ * @brief xcb_setup_request_t
+ **/
+typedef struct xcb_setup_request_t {
+ uint8_t byte_order;
+ uint8_t pad0;
+ uint16_t protocol_major_version;
+ uint16_t protocol_minor_version;
+ uint16_t authorization_protocol_name_len;
+ uint16_t authorization_protocol_data_len;
+ uint8_t pad1[2];
+} xcb_setup_request_t;
+
+/**
+ * @brief xcb_setup_request_iterator_t
+ **/
+typedef struct xcb_setup_request_iterator_t {
+ xcb_setup_request_t *data;
+ int rem;
+ int index;
+} xcb_setup_request_iterator_t;
+
+/**
+ * @brief xcb_setup_failed_t
+ **/
+typedef struct xcb_setup_failed_t {
+ uint8_t status;
+ uint8_t reason_len;
+ uint16_t protocol_major_version;
+ uint16_t protocol_minor_version;
+ uint16_t length;
+} xcb_setup_failed_t;
+
+/**
+ * @brief xcb_setup_failed_iterator_t
+ **/
+typedef struct xcb_setup_failed_iterator_t {
+ xcb_setup_failed_t *data;
+ int rem;
+ int index;
+} xcb_setup_failed_iterator_t;
+
+/**
+ * @brief xcb_setup_authenticate_t
+ **/
+typedef struct xcb_setup_authenticate_t {
+ uint8_t status;
+ uint8_t pad0[5];
+ uint16_t length;
+} xcb_setup_authenticate_t;
+
+/**
+ * @brief xcb_setup_authenticate_iterator_t
+ **/
+typedef struct xcb_setup_authenticate_iterator_t {
+ xcb_setup_authenticate_t *data;
+ int rem;
+ int index;
+} xcb_setup_authenticate_iterator_t;
+
+typedef enum xcb_image_order_t {
+ XCB_IMAGE_ORDER_LSB_FIRST = 0,
+ XCB_IMAGE_ORDER_MSB_FIRST = 1
+} xcb_image_order_t;
+
+/**
+ * @brief xcb_setup_t
+ **/
+typedef struct xcb_setup_t {
+ uint8_t status;
+ uint8_t pad0;
+ uint16_t protocol_major_version;
+ uint16_t protocol_minor_version;
+ uint16_t length;
+ uint32_t release_number;
+ uint32_t resource_id_base;
+ uint32_t resource_id_mask;
+ uint32_t motion_buffer_size;
+ uint16_t vendor_len;
+ uint16_t maximum_request_length;
+ uint8_t roots_len;
+ uint8_t pixmap_formats_len;
+ uint8_t image_byte_order;
+ uint8_t bitmap_format_bit_order;
+ uint8_t bitmap_format_scanline_unit;
+ uint8_t bitmap_format_scanline_pad;
+ xcb_keycode_t min_keycode;
+ xcb_keycode_t max_keycode;
+ uint8_t pad1[4];
+} xcb_setup_t;
+
+/**
+ * @brief xcb_setup_iterator_t
+ **/
+typedef struct xcb_setup_iterator_t {
+ xcb_setup_t *data;
+ int rem;
+ int index;
+} xcb_setup_iterator_t;
+
+typedef enum xcb_mod_mask_t {
+ XCB_MOD_MASK_SHIFT = 1,
+ XCB_MOD_MASK_LOCK = 2,
+ XCB_MOD_MASK_CONTROL = 4,
+ XCB_MOD_MASK_1 = 8,
+ XCB_MOD_MASK_2 = 16,
+ XCB_MOD_MASK_3 = 32,
+ XCB_MOD_MASK_4 = 64,
+ XCB_MOD_MASK_5 = 128,
+ XCB_MOD_MASK_ANY = 32768
+} xcb_mod_mask_t;
+
+typedef enum xcb_key_but_mask_t {
+ XCB_KEY_BUT_MASK_SHIFT = 1,
+ XCB_KEY_BUT_MASK_LOCK = 2,
+ XCB_KEY_BUT_MASK_CONTROL = 4,
+ XCB_KEY_BUT_MASK_MOD_1 = 8,
+ XCB_KEY_BUT_MASK_MOD_2 = 16,
+ XCB_KEY_BUT_MASK_MOD_3 = 32,
+ XCB_KEY_BUT_MASK_MOD_4 = 64,
+ XCB_KEY_BUT_MASK_MOD_5 = 128,
+ XCB_KEY_BUT_MASK_BUTTON_1 = 256,
+ XCB_KEY_BUT_MASK_BUTTON_2 = 512,
+ XCB_KEY_BUT_MASK_BUTTON_3 = 1024,
+ XCB_KEY_BUT_MASK_BUTTON_4 = 2048,
+ XCB_KEY_BUT_MASK_BUTTON_5 = 4096
+} xcb_key_but_mask_t;
+
+typedef enum xcb_window_enum_t {
+ XCB_WINDOW_NONE = 0
+} xcb_window_enum_t;
+
+/** Opcode for xcb_key_press. */
+#define XCB_KEY_PRESS 2
+
+/**
+ * @brief xcb_key_press_event_t
+ **/
+typedef struct xcb_key_press_event_t {
+ uint8_t response_type;
+ xcb_keycode_t detail;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ int16_t root_x;
+ int16_t root_y;
+ int16_t event_x;
+ int16_t event_y;
+ uint16_t state;
+ uint8_t same_screen;
+ uint8_t pad0;
+} xcb_key_press_event_t;
+
+/** Opcode for xcb_key_release. */
+#define XCB_KEY_RELEASE 3
+
+typedef xcb_key_press_event_t xcb_key_release_event_t;
+
+typedef enum xcb_button_mask_t {
+ XCB_BUTTON_MASK_1 = 256,
+ XCB_BUTTON_MASK_2 = 512,
+ XCB_BUTTON_MASK_3 = 1024,
+ XCB_BUTTON_MASK_4 = 2048,
+ XCB_BUTTON_MASK_5 = 4096,
+ XCB_BUTTON_MASK_ANY = 32768
+} xcb_button_mask_t;
+
+/** Opcode for xcb_button_press. */
+#define XCB_BUTTON_PRESS 4
+
+/**
+ * @brief xcb_button_press_event_t
+ **/
+typedef struct xcb_button_press_event_t {
+ uint8_t response_type;
+ xcb_button_t detail;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ int16_t root_x;
+ int16_t root_y;
+ int16_t event_x;
+ int16_t event_y;
+ uint16_t state;
+ uint8_t same_screen;
+ uint8_t pad0;
+} xcb_button_press_event_t;
+
+/** Opcode for xcb_button_release. */
+#define XCB_BUTTON_RELEASE 5
+
+typedef xcb_button_press_event_t xcb_button_release_event_t;
+
+typedef enum xcb_motion_t {
+ XCB_MOTION_NORMAL = 0,
+ XCB_MOTION_HINT = 1
+} xcb_motion_t;
+
+/** Opcode for xcb_motion_notify. */
+#define XCB_MOTION_NOTIFY 6
+
+/**
+ * @brief xcb_motion_notify_event_t
+ **/
+typedef struct xcb_motion_notify_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ int16_t root_x;
+ int16_t root_y;
+ int16_t event_x;
+ int16_t event_y;
+ uint16_t state;
+ uint8_t same_screen;
+ uint8_t pad0;
+} xcb_motion_notify_event_t;
+
+typedef enum xcb_notify_detail_t {
+ XCB_NOTIFY_DETAIL_ANCESTOR = 0,
+ XCB_NOTIFY_DETAIL_VIRTUAL = 1,
+ XCB_NOTIFY_DETAIL_INFERIOR = 2,
+ XCB_NOTIFY_DETAIL_NONLINEAR = 3,
+ XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4,
+ XCB_NOTIFY_DETAIL_POINTER = 5,
+ XCB_NOTIFY_DETAIL_POINTER_ROOT = 6,
+ XCB_NOTIFY_DETAIL_NONE = 7
+} xcb_notify_detail_t;
+
+typedef enum xcb_notify_mode_t {
+ XCB_NOTIFY_MODE_NORMAL = 0,
+ XCB_NOTIFY_MODE_GRAB = 1,
+ XCB_NOTIFY_MODE_UNGRAB = 2,
+ XCB_NOTIFY_MODE_WHILE_GRABBED = 3
+} xcb_notify_mode_t;
+
+/** Opcode for xcb_enter_notify. */
+#define XCB_ENTER_NOTIFY 7
+
+/**
+ * @brief xcb_enter_notify_event_t
+ **/
+typedef struct xcb_enter_notify_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t root;
+ xcb_window_t event;
+ xcb_window_t child;
+ int16_t root_x;
+ int16_t root_y;
+ int16_t event_x;
+ int16_t event_y;
+ uint16_t state;
+ uint8_t mode;
+ uint8_t same_screen_focus;
+} xcb_enter_notify_event_t;
+
+/** Opcode for xcb_leave_notify. */
+#define XCB_LEAVE_NOTIFY 8
+
+typedef xcb_enter_notify_event_t xcb_leave_notify_event_t;
+
+/** Opcode for xcb_focus_in. */
+#define XCB_FOCUS_IN 9
+
+/**
+ * @brief xcb_focus_in_event_t
+ **/
+typedef struct xcb_focus_in_event_t {
+ uint8_t response_type;
+ uint8_t detail;
+ uint16_t sequence;
+ xcb_window_t event;
+ uint8_t mode;
+ uint8_t pad0[3];
+} xcb_focus_in_event_t;
+
+/** Opcode for xcb_focus_out. */
+#define XCB_FOCUS_OUT 10
+
+typedef xcb_focus_in_event_t xcb_focus_out_event_t;
+
+/** Opcode for xcb_keymap_notify. */
+#define XCB_KEYMAP_NOTIFY 11
+
+/**
+ * @brief xcb_keymap_notify_event_t
+ **/
+typedef struct xcb_keymap_notify_event_t {
+ uint8_t response_type;
+ uint8_t keys[31];
+} xcb_keymap_notify_event_t;
+
+/** Opcode for xcb_expose. */
+#define XCB_EXPOSE 12
+
+/**
+ * @brief xcb_expose_event_t
+ **/
+typedef struct xcb_expose_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t window;
+ uint16_t x;
+ uint16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t count;
+ uint8_t pad1[2];
+} xcb_expose_event_t;
+
+/** Opcode for xcb_graphics_exposure. */
+#define XCB_GRAPHICS_EXPOSURE 13
+
+/**
+ * @brief xcb_graphics_exposure_event_t
+ **/
+typedef struct xcb_graphics_exposure_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_drawable_t drawable;
+ uint16_t x;
+ uint16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t minor_opcode;
+ uint16_t count;
+ uint8_t major_opcode;
+ uint8_t pad1[3];
+} xcb_graphics_exposure_event_t;
+
+/** Opcode for xcb_no_exposure. */
+#define XCB_NO_EXPOSURE 14
+
+/**
+ * @brief xcb_no_exposure_event_t
+ **/
+typedef struct xcb_no_exposure_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_drawable_t drawable;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t pad1;
+} xcb_no_exposure_event_t;
+
+typedef enum xcb_visibility_t {
+ XCB_VISIBILITY_UNOBSCURED = 0,
+ XCB_VISIBILITY_PARTIALLY_OBSCURED = 1,
+ XCB_VISIBILITY_FULLY_OBSCURED = 2
+} xcb_visibility_t;
+
+/** Opcode for xcb_visibility_notify. */
+#define XCB_VISIBILITY_NOTIFY 15
+
+/**
+ * @brief xcb_visibility_notify_event_t
+ **/
+typedef struct xcb_visibility_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t window;
+ uint8_t state;
+ uint8_t pad1[3];
+} xcb_visibility_notify_event_t;
+
+/** Opcode for xcb_create_notify. */
+#define XCB_CREATE_NOTIFY 16
+
+/**
+ * @brief xcb_create_notify_event_t
+ **/
+typedef struct xcb_create_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t parent;
+ xcb_window_t window;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t border_width;
+ uint8_t override_redirect;
+ uint8_t pad1;
+} xcb_create_notify_event_t;
+
+/** Opcode for xcb_destroy_notify. */
+#define XCB_DESTROY_NOTIFY 17
+
+/**
+ * @brief xcb_destroy_notify_event_t
+ **/
+typedef struct xcb_destroy_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+} xcb_destroy_notify_event_t;
+
+/** Opcode for xcb_unmap_notify. */
+#define XCB_UNMAP_NOTIFY 18
+
+/**
+ * @brief xcb_unmap_notify_event_t
+ **/
+typedef struct xcb_unmap_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+ uint8_t from_configure;
+ uint8_t pad1[3];
+} xcb_unmap_notify_event_t;
+
+/** Opcode for xcb_map_notify. */
+#define XCB_MAP_NOTIFY 19
+
+/**
+ * @brief xcb_map_notify_event_t
+ **/
+typedef struct xcb_map_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+ uint8_t override_redirect;
+ uint8_t pad1[3];
+} xcb_map_notify_event_t;
+
+/** Opcode for xcb_map_request. */
+#define XCB_MAP_REQUEST 20
+
+/**
+ * @brief xcb_map_request_event_t
+ **/
+typedef struct xcb_map_request_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t parent;
+ xcb_window_t window;
+} xcb_map_request_event_t;
+
+/** Opcode for xcb_reparent_notify. */
+#define XCB_REPARENT_NOTIFY 21
+
+/**
+ * @brief xcb_reparent_notify_event_t
+ **/
+typedef struct xcb_reparent_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+ xcb_window_t parent;
+ int16_t x;
+ int16_t y;
+ uint8_t override_redirect;
+ uint8_t pad1[3];
+} xcb_reparent_notify_event_t;
+
+/** Opcode for xcb_configure_notify. */
+#define XCB_CONFIGURE_NOTIFY 22
+
+/**
+ * @brief xcb_configure_notify_event_t
+ **/
+typedef struct xcb_configure_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+ xcb_window_t above_sibling;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t border_width;
+ uint8_t override_redirect;
+ uint8_t pad1;
+} xcb_configure_notify_event_t;
+
+/** Opcode for xcb_configure_request. */
+#define XCB_CONFIGURE_REQUEST 23
+
+/**
+ * @brief xcb_configure_request_event_t
+ **/
+typedef struct xcb_configure_request_event_t {
+ uint8_t response_type;
+ uint8_t stack_mode;
+ uint16_t sequence;
+ xcb_window_t parent;
+ xcb_window_t window;
+ xcb_window_t sibling;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t border_width;
+ uint16_t value_mask;
+} xcb_configure_request_event_t;
+
+/** Opcode for xcb_gravity_notify. */
+#define XCB_GRAVITY_NOTIFY 24
+
+/**
+ * @brief xcb_gravity_notify_event_t
+ **/
+typedef struct xcb_gravity_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+ int16_t x;
+ int16_t y;
+} xcb_gravity_notify_event_t;
+
+/** Opcode for xcb_resize_request. */
+#define XCB_RESIZE_REQUEST 25
+
+/**
+ * @brief xcb_resize_request_event_t
+ **/
+typedef struct xcb_resize_request_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t window;
+ uint16_t width;
+ uint16_t height;
+} xcb_resize_request_event_t;
+
+typedef enum xcb_place_t {
+ XCB_PLACE_ON_TOP = 0,
+/**< The window is now on top of all siblings. */
+
+ XCB_PLACE_ON_BOTTOM = 1
+/**< The window is now below all siblings. */
+
+} xcb_place_t;
+
+/** Opcode for xcb_circulate_notify. */
+#define XCB_CIRCULATE_NOTIFY 26
+
+/**
+ * @brief xcb_circulate_notify_event_t
+ **/
+typedef struct xcb_circulate_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t event;
+ xcb_window_t window;
+ uint8_t pad1[4];
+ uint8_t place;
+ uint8_t pad2[3];
+} xcb_circulate_notify_event_t;
+
+/** Opcode for xcb_circulate_request. */
+#define XCB_CIRCULATE_REQUEST 27
+
+typedef xcb_circulate_notify_event_t xcb_circulate_request_event_t;
+
+typedef enum xcb_property_t {
+ XCB_PROPERTY_NEW_VALUE = 0,
+ XCB_PROPERTY_DELETE = 1
+} xcb_property_t;
+
+/** Opcode for xcb_property_notify. */
+#define XCB_PROPERTY_NOTIFY 28
+
+/**
+ * @brief xcb_property_notify_event_t
+ **/
+typedef struct xcb_property_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t window;
+ xcb_atom_t atom;
+ xcb_timestamp_t time;
+ uint8_t state;
+ uint8_t pad1[3];
+} xcb_property_notify_event_t;
+
+/** Opcode for xcb_selection_clear. */
+#define XCB_SELECTION_CLEAR 29
+
+/**
+ * @brief xcb_selection_clear_event_t
+ **/
+typedef struct xcb_selection_clear_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t owner;
+ xcb_atom_t selection;
+} xcb_selection_clear_event_t;
+
+typedef enum xcb_time_t {
+ XCB_TIME_CURRENT_TIME = 0
+} xcb_time_t;
+
+typedef enum xcb_atom_enum_t {
+ XCB_ATOM_NONE = 0,
+ XCB_ATOM_ANY = 0,
+ XCB_ATOM_PRIMARY = 1,
+ XCB_ATOM_SECONDARY = 2,
+ XCB_ATOM_ARC = 3,
+ XCB_ATOM_ATOM = 4,
+ XCB_ATOM_BITMAP = 5,
+ XCB_ATOM_CARDINAL = 6,
+ XCB_ATOM_COLORMAP = 7,
+ XCB_ATOM_CURSOR = 8,
+ XCB_ATOM_CUT_BUFFER0 = 9,
+ XCB_ATOM_CUT_BUFFER1 = 10,
+ XCB_ATOM_CUT_BUFFER2 = 11,
+ XCB_ATOM_CUT_BUFFER3 = 12,
+ XCB_ATOM_CUT_BUFFER4 = 13,
+ XCB_ATOM_CUT_BUFFER5 = 14,
+ XCB_ATOM_CUT_BUFFER6 = 15,
+ XCB_ATOM_CUT_BUFFER7 = 16,
+ XCB_ATOM_DRAWABLE = 17,
+ XCB_ATOM_FONT = 18,
+ XCB_ATOM_INTEGER = 19,
+ XCB_ATOM_PIXMAP = 20,
+ XCB_ATOM_POINT = 21,
+ XCB_ATOM_RECTANGLE = 22,
+ XCB_ATOM_RESOURCE_MANAGER = 23,
+ XCB_ATOM_RGB_COLOR_MAP = 24,
+ XCB_ATOM_RGB_BEST_MAP = 25,
+ XCB_ATOM_RGB_BLUE_MAP = 26,
+ XCB_ATOM_RGB_DEFAULT_MAP = 27,
+ XCB_ATOM_RGB_GRAY_MAP = 28,
+ XCB_ATOM_RGB_GREEN_MAP = 29,
+ XCB_ATOM_RGB_RED_MAP = 30,
+ XCB_ATOM_STRING = 31,
+ XCB_ATOM_VISUALID = 32,
+ XCB_ATOM_WINDOW = 33,
+ XCB_ATOM_WM_COMMAND = 34,
+ XCB_ATOM_WM_HINTS = 35,
+ XCB_ATOM_WM_CLIENT_MACHINE = 36,
+ XCB_ATOM_WM_ICON_NAME = 37,
+ XCB_ATOM_WM_ICON_SIZE = 38,
+ XCB_ATOM_WM_NAME = 39,
+ XCB_ATOM_WM_NORMAL_HINTS = 40,
+ XCB_ATOM_WM_SIZE_HINTS = 41,
+ XCB_ATOM_WM_ZOOM_HINTS = 42,
+ XCB_ATOM_MIN_SPACE = 43,
+ XCB_ATOM_NORM_SPACE = 44,
+ XCB_ATOM_MAX_SPACE = 45,
+ XCB_ATOM_END_SPACE = 46,
+ XCB_ATOM_SUPERSCRIPT_X = 47,
+ XCB_ATOM_SUPERSCRIPT_Y = 48,
+ XCB_ATOM_SUBSCRIPT_X = 49,
+ XCB_ATOM_SUBSCRIPT_Y = 50,
+ XCB_ATOM_UNDERLINE_POSITION = 51,
+ XCB_ATOM_UNDERLINE_THICKNESS = 52,
+ XCB_ATOM_STRIKEOUT_ASCENT = 53,
+ XCB_ATOM_STRIKEOUT_DESCENT = 54,
+ XCB_ATOM_ITALIC_ANGLE = 55,
+ XCB_ATOM_X_HEIGHT = 56,
+ XCB_ATOM_QUAD_WIDTH = 57,
+ XCB_ATOM_WEIGHT = 58,
+ XCB_ATOM_POINT_SIZE = 59,
+ XCB_ATOM_RESOLUTION = 60,
+ XCB_ATOM_COPYRIGHT = 61,
+ XCB_ATOM_NOTICE = 62,
+ XCB_ATOM_FONT_NAME = 63,
+ XCB_ATOM_FAMILY_NAME = 64,
+ XCB_ATOM_FULL_NAME = 65,
+ XCB_ATOM_CAP_HEIGHT = 66,
+ XCB_ATOM_WM_CLASS = 67,
+ XCB_ATOM_WM_TRANSIENT_FOR = 68
+} xcb_atom_enum_t;
+
+/** Opcode for xcb_selection_request. */
+#define XCB_SELECTION_REQUEST 30
+
+/**
+ * @brief xcb_selection_request_event_t
+ **/
+typedef struct xcb_selection_request_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t owner;
+ xcb_window_t requestor;
+ xcb_atom_t selection;
+ xcb_atom_t target;
+ xcb_atom_t property;
+} xcb_selection_request_event_t;
+
+/** Opcode for xcb_selection_notify. */
+#define XCB_SELECTION_NOTIFY 31
+
+/**
+ * @brief xcb_selection_notify_event_t
+ **/
+typedef struct xcb_selection_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_window_t requestor;
+ xcb_atom_t selection;
+ xcb_atom_t target;
+ xcb_atom_t property;
+} xcb_selection_notify_event_t;
+
+typedef enum xcb_colormap_state_t {
+ XCB_COLORMAP_STATE_UNINSTALLED = 0,
+/**< The colormap was uninstalled. */
+
+ XCB_COLORMAP_STATE_INSTALLED = 1
+/**< The colormap was installed. */
+
+} xcb_colormap_state_t;
+
+typedef enum xcb_colormap_enum_t {
+ XCB_COLORMAP_NONE = 0
+} xcb_colormap_enum_t;
+
+/** Opcode for xcb_colormap_notify. */
+#define XCB_COLORMAP_NOTIFY 32
+
+/**
+ * @brief xcb_colormap_notify_event_t
+ **/
+typedef struct xcb_colormap_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_window_t window;
+ xcb_colormap_t colormap;
+ uint8_t _new;
+ uint8_t state;
+ uint8_t pad1[2];
+} xcb_colormap_notify_event_t;
+
+/**
+ * @brief xcb_client_message_data_t
+ **/
+typedef union xcb_client_message_data_t {
+ uint8_t data8[20];
+ uint16_t data16[10];
+ uint32_t data32[5];
+} xcb_client_message_data_t;
+
+/**
+ * @brief xcb_client_message_data_iterator_t
+ **/
+typedef struct xcb_client_message_data_iterator_t {
+ xcb_client_message_data_t *data;
+ int rem;
+ int index;
+} xcb_client_message_data_iterator_t;
+
+/** Opcode for xcb_client_message. */
+#define XCB_CLIENT_MESSAGE 33
+
+/**
+ * @brief xcb_client_message_event_t
+ **/
+typedef struct xcb_client_message_event_t {
+ uint8_t response_type;
+ uint8_t format;
+ uint16_t sequence;
+ xcb_window_t window;
+ xcb_atom_t type;
+ xcb_client_message_data_t data;
+} xcb_client_message_event_t;
+
+typedef enum xcb_mapping_t {
+ XCB_MAPPING_MODIFIER = 0,
+ XCB_MAPPING_KEYBOARD = 1,
+ XCB_MAPPING_POINTER = 2
+} xcb_mapping_t;
+
+/** Opcode for xcb_mapping_notify. */
+#define XCB_MAPPING_NOTIFY 34
+
+/**
+ * @brief xcb_mapping_notify_event_t
+ **/
+typedef struct xcb_mapping_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint8_t request;
+ xcb_keycode_t first_keycode;
+ uint8_t count;
+ uint8_t pad1;
+} xcb_mapping_notify_event_t;
+
+/** Opcode for xcb_ge_generic. */
+#define XCB_GE_GENERIC 35
+
+/**
+ * @brief xcb_ge_generic_event_t
+ **/
+typedef struct xcb_ge_generic_event_t {
+ uint8_t response_type;
+ uint8_t extension;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t event_type;
+ uint8_t pad0[22];
+ uint32_t full_sequence;
+} xcb_ge_generic_event_t;
+
+/** Opcode for xcb_request. */
+#define XCB_REQUEST 1
+
+/**
+ * @brief xcb_request_error_t
+ **/
+typedef struct xcb_request_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t pad0;
+} xcb_request_error_t;
+
+/** Opcode for xcb_value. */
+#define XCB_VALUE 2
+
+/**
+ * @brief xcb_value_error_t
+ **/
+typedef struct xcb_value_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+ uint8_t pad0;
+} xcb_value_error_t;
+
+/** Opcode for xcb_window. */
+#define XCB_WINDOW 3
+
+typedef xcb_value_error_t xcb_window_error_t;
+
+/** Opcode for xcb_pixmap. */
+#define XCB_PIXMAP 4
+
+typedef xcb_value_error_t xcb_pixmap_error_t;
+
+/** Opcode for xcb_atom. */
+#define XCB_ATOM 5
+
+typedef xcb_value_error_t xcb_atom_error_t;
+
+/** Opcode for xcb_cursor. */
+#define XCB_CURSOR 6
+
+typedef xcb_value_error_t xcb_cursor_error_t;
+
+/** Opcode for xcb_font. */
+#define XCB_FONT 7
+
+typedef xcb_value_error_t xcb_font_error_t;
+
+/** Opcode for xcb_match. */
+#define XCB_MATCH 8
+
+typedef xcb_request_error_t xcb_match_error_t;
+
+/** Opcode for xcb_drawable. */
+#define XCB_DRAWABLE 9
+
+typedef xcb_value_error_t xcb_drawable_error_t;
+
+/** Opcode for xcb_access. */
+#define XCB_ACCESS 10
+
+typedef xcb_request_error_t xcb_access_error_t;
+
+/** Opcode for xcb_alloc. */
+#define XCB_ALLOC 11
+
+typedef xcb_request_error_t xcb_alloc_error_t;
+
+/** Opcode for xcb_colormap. */
+#define XCB_COLORMAP 12
+
+typedef xcb_value_error_t xcb_colormap_error_t;
+
+/** Opcode for xcb_g_context. */
+#define XCB_G_CONTEXT 13
+
+typedef xcb_value_error_t xcb_g_context_error_t;
+
+/** Opcode for xcb_id_choice. */
+#define XCB_ID_CHOICE 14
+
+typedef xcb_value_error_t xcb_id_choice_error_t;
+
+/** Opcode for xcb_name. */
+#define XCB_NAME 15
+
+typedef xcb_request_error_t xcb_name_error_t;
+
+/** Opcode for xcb_length. */
+#define XCB_LENGTH 16
+
+typedef xcb_request_error_t xcb_length_error_t;
+
+/** Opcode for xcb_implementation. */
+#define XCB_IMPLEMENTATION 17
+
+typedef xcb_request_error_t xcb_implementation_error_t;
+
+typedef enum xcb_window_class_t {
+ XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0,
+ XCB_WINDOW_CLASS_INPUT_OUTPUT = 1,
+ XCB_WINDOW_CLASS_INPUT_ONLY = 2
+} xcb_window_class_t;
+
+typedef enum xcb_cw_t {
+ XCB_CW_BACK_PIXMAP = 1,
+/**< Overrides the default background-pixmap. The background pixmap and window must
+have the same root and same depth. Any size pixmap can be used, although some
+sizes may be faster than others.
+
+If `XCB_BACK_PIXMAP_NONE` is specified, the window has no defined background.
+The server may fill the contents with the previous screen contents or with
+contents of its own choosing.
+
+If `XCB_BACK_PIXMAP_PARENT_RELATIVE` is specified, the parent's background is
+used, but the window must have the same depth as the parent (or a Match error
+results). The parent's background is tracked, and the current version is
+used each time the window background is required. */
+
+ XCB_CW_BACK_PIXEL = 2,
+/**< Overrides `BackPixmap`. A pixmap of undefined size filled with the specified
+background pixel is used for the background. Range-checking is not performed,
+the background pixel is truncated to the appropriate number of bits. */
+
+ XCB_CW_BORDER_PIXMAP = 4,
+/**< Overrides the default border-pixmap. The border pixmap and window must have the
+same root and the same depth. Any size pixmap can be used, although some sizes
+may be faster than others.
+
+The special value `XCB_COPY_FROM_PARENT` means the parent's border pixmap is
+copied (subsequent changes to the parent's border attribute do not affect the
+child), but the window must have the same depth as the parent. */
+
+ XCB_CW_BORDER_PIXEL = 8,
+/**< Overrides `BorderPixmap`. A pixmap of undefined size filled with the specified
+border pixel is used for the border. Range checking is not performed on the
+border-pixel value, it is truncated to the appropriate number of bits. */
+
+ XCB_CW_BIT_GRAVITY = 16,
+/**< Defines which region of the window should be retained if the window is resized. */
+
+ XCB_CW_WIN_GRAVITY = 32,
+/**< Defines how the window should be repositioned if the parent is resized (see
+`ConfigureWindow`). */
+
+ XCB_CW_BACKING_STORE = 64,
+/**< A backing-store of `WhenMapped` advises the server that maintaining contents of
+obscured regions when the window is mapped would be beneficial. A backing-store
+of `Always` advises the server that maintaining contents even when the window
+is unmapped would be beneficial. In this case, the server may generate an
+exposure event when the window is created. A value of `NotUseful` advises the
+server that maintaining contents is unnecessary, although a server may still
+choose to maintain contents while the window is mapped. Note that if the server
+maintains contents, then the server should maintain complete contents not just
+the region within the parent boundaries, even if the window is larger than its
+parent. While the server maintains contents, exposure events will not normally
+be generated, but the server may stop maintaining contents at any time. */
+
+ XCB_CW_BACKING_PLANES = 128,
+/**< The backing-planes indicates (with bits set to 1) which bit planes of the
+window hold dynamic data that must be preserved in backing-stores and during
+save-unders. */
+
+ XCB_CW_BACKING_PIXEL = 256,
+/**< The backing-pixel specifies what value to use in planes not covered by
+backing-planes. The server is free to save only the specified bit planes in the
+backing-store or save-under and regenerate the remaining planes with the
+specified pixel value. Any bits beyond the specified depth of the window in
+these values are simply ignored. */
+
+ XCB_CW_OVERRIDE_REDIRECT = 512,
+/**< The override-redirect specifies whether map and configure requests on this
+window should override a SubstructureRedirect on the parent, typically to
+inform a window manager not to tamper with the window. */
+
+ XCB_CW_SAVE_UNDER = 1024,
+/**< If 1, the server is advised that when this window is mapped, saving the
+contents of windows it obscures would be beneficial. */
+
+ XCB_CW_EVENT_MASK = 2048,
+/**< The event-mask defines which events the client is interested in for this window
+(or for some event types, inferiors of the window). */
+
+ XCB_CW_DONT_PROPAGATE = 4096,
+/**< The do-not-propagate-mask defines which events should not be propagated to
+ancestor windows when no client has the event type selected in this window. */
+
+ XCB_CW_COLORMAP = 8192,
+/**< The colormap specifies the colormap that best reflects the true colors of the window. Servers
+capable of supporting multiple hardware colormaps may use this information, and window man-
+agers may use it for InstallColormap requests. The colormap must have the same visual type
+and root as the window (or a Match error results). If CopyFromParent is specified, the parent's
+colormap is copied (subsequent changes to the parent's colormap attribute do not affect the child).
+However, the window must have the same visual type as the parent (or a Match error results),
+and the parent must not have a colormap of None (or a Match error results). For an explanation
+of None, see FreeColormap request. The colormap is copied by sharing the colormap object
+between the child and the parent, not by making a complete copy of the colormap contents. */
+
+ XCB_CW_CURSOR = 16384
+/**< If a cursor is specified, it will be used whenever the pointer is in the window. If None is speci-
+fied, the parent's cursor will be used when the pointer is in the window, and any change in the
+parent's cursor will cause an immediate change in the displayed cursor. */
+
+} xcb_cw_t;
+
+typedef enum xcb_back_pixmap_t {
+ XCB_BACK_PIXMAP_NONE = 0,
+ XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
+} xcb_back_pixmap_t;
+
+typedef enum xcb_gravity_t {
+ XCB_GRAVITY_BIT_FORGET = 0,
+ XCB_GRAVITY_WIN_UNMAP = 0,
+ XCB_GRAVITY_NORTH_WEST = 1,
+ XCB_GRAVITY_NORTH = 2,
+ XCB_GRAVITY_NORTH_EAST = 3,
+ XCB_GRAVITY_WEST = 4,
+ XCB_GRAVITY_CENTER = 5,
+ XCB_GRAVITY_EAST = 6,
+ XCB_GRAVITY_SOUTH_WEST = 7,
+ XCB_GRAVITY_SOUTH = 8,
+ XCB_GRAVITY_SOUTH_EAST = 9,
+ XCB_GRAVITY_STATIC = 10
+} xcb_gravity_t;
+
+/**
+ * @brief xcb_create_window_value_list_t
+ **/
+typedef struct xcb_create_window_value_list_t {
+ xcb_pixmap_t background_pixmap;
+ uint32_t background_pixel;
+ xcb_pixmap_t border_pixmap;
+ uint32_t border_pixel;
+ uint32_t bit_gravity;
+ uint32_t win_gravity;
+ uint32_t backing_store;
+ uint32_t backing_planes;
+ uint32_t backing_pixel;
+ xcb_bool32_t override_redirect;
+ xcb_bool32_t save_under;
+ uint32_t event_mask;
+ uint32_t do_not_propogate_mask;
+ xcb_colormap_t colormap;
+ xcb_cursor_t cursor;
+} xcb_create_window_value_list_t;
+
+/** Opcode for xcb_create_window. */
+#define XCB_CREATE_WINDOW 1
+
+/**
+ * @brief xcb_create_window_request_t
+ **/
+typedef struct xcb_create_window_request_t {
+ uint8_t major_opcode;
+ uint8_t depth;
+ uint16_t length;
+ xcb_window_t wid;
+ xcb_window_t parent;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t border_width;
+ uint16_t _class;
+ xcb_visualid_t visual;
+ uint32_t value_mask;
+} xcb_create_window_request_t;
+
+/**
+ * @brief xcb_change_window_attributes_value_list_t
+ **/
+typedef struct xcb_change_window_attributes_value_list_t {
+ xcb_pixmap_t background_pixmap;
+ uint32_t background_pixel;
+ xcb_pixmap_t border_pixmap;
+ uint32_t border_pixel;
+ uint32_t bit_gravity;
+ uint32_t win_gravity;
+ uint32_t backing_store;
+ uint32_t backing_planes;
+ uint32_t backing_pixel;
+ xcb_bool32_t override_redirect;
+ xcb_bool32_t save_under;
+ uint32_t event_mask;
+ uint32_t do_not_propogate_mask;
+ xcb_colormap_t colormap;
+ xcb_cursor_t cursor;
+} xcb_change_window_attributes_value_list_t;
+
+/** Opcode for xcb_change_window_attributes. */
+#define XCB_CHANGE_WINDOW_ATTRIBUTES 2
+
+/**
+ * @brief xcb_change_window_attributes_request_t
+ **/
+typedef struct xcb_change_window_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+ uint32_t value_mask;
+} xcb_change_window_attributes_request_t;
+
+typedef enum xcb_map_state_t {
+ XCB_MAP_STATE_UNMAPPED = 0,
+ XCB_MAP_STATE_UNVIEWABLE = 1,
+ XCB_MAP_STATE_VIEWABLE = 2
+} xcb_map_state_t;
+
+/**
+ * @brief xcb_get_window_attributes_cookie_t
+ **/
+typedef struct xcb_get_window_attributes_cookie_t {
+ unsigned int sequence;
+} xcb_get_window_attributes_cookie_t;
+
+/** Opcode for xcb_get_window_attributes. */
+#define XCB_GET_WINDOW_ATTRIBUTES 3
+
+/**
+ * @brief xcb_get_window_attributes_request_t
+ **/
+typedef struct xcb_get_window_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_get_window_attributes_request_t;
+
+/**
+ * @brief xcb_get_window_attributes_reply_t
+ **/
+typedef struct xcb_get_window_attributes_reply_t {
+ uint8_t response_type;
+ uint8_t backing_store;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_visualid_t visual;
+ uint16_t _class;
+ uint8_t bit_gravity;
+ uint8_t win_gravity;
+ uint32_t backing_planes;
+ uint32_t backing_pixel;
+ uint8_t save_under;
+ uint8_t map_is_installed;
+ uint8_t map_state;
+ uint8_t override_redirect;
+ xcb_colormap_t colormap;
+ uint32_t all_event_masks;
+ uint32_t your_event_mask;
+ uint16_t do_not_propagate_mask;
+ uint8_t pad0[2];
+} xcb_get_window_attributes_reply_t;
+
+/** Opcode for xcb_destroy_window. */
+#define XCB_DESTROY_WINDOW 4
+
+/**
+ * @brief xcb_destroy_window_request_t
+ **/
+typedef struct xcb_destroy_window_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_destroy_window_request_t;
+
+/** Opcode for xcb_destroy_subwindows. */
+#define XCB_DESTROY_SUBWINDOWS 5
+
+/**
+ * @brief xcb_destroy_subwindows_request_t
+ **/
+typedef struct xcb_destroy_subwindows_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_destroy_subwindows_request_t;
+
+typedef enum xcb_set_mode_t {
+ XCB_SET_MODE_INSERT = 0,
+ XCB_SET_MODE_DELETE = 1
+} xcb_set_mode_t;
+
+/** Opcode for xcb_change_save_set. */
+#define XCB_CHANGE_SAVE_SET 6
+
+/**
+ * @brief xcb_change_save_set_request_t
+ **/
+typedef struct xcb_change_save_set_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_change_save_set_request_t;
+
+/** Opcode for xcb_reparent_window. */
+#define XCB_REPARENT_WINDOW 7
+
+/**
+ * @brief xcb_reparent_window_request_t
+ **/
+typedef struct xcb_reparent_window_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_window_t parent;
+ int16_t x;
+ int16_t y;
+} xcb_reparent_window_request_t;
+
+/** Opcode for xcb_map_window. */
+#define XCB_MAP_WINDOW 8
+
+/**
+ * @brief xcb_map_window_request_t
+ **/
+typedef struct xcb_map_window_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_map_window_request_t;
+
+/** Opcode for xcb_map_subwindows. */
+#define XCB_MAP_SUBWINDOWS 9
+
+/**
+ * @brief xcb_map_subwindows_request_t
+ **/
+typedef struct xcb_map_subwindows_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_map_subwindows_request_t;
+
+/** Opcode for xcb_unmap_window. */
+#define XCB_UNMAP_WINDOW 10
+
+/**
+ * @brief xcb_unmap_window_request_t
+ **/
+typedef struct xcb_unmap_window_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_unmap_window_request_t;
+
+/** Opcode for xcb_unmap_subwindows. */
+#define XCB_UNMAP_SUBWINDOWS 11
+
+/**
+ * @brief xcb_unmap_subwindows_request_t
+ **/
+typedef struct xcb_unmap_subwindows_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_unmap_subwindows_request_t;
+
+typedef enum xcb_config_window_t {
+ XCB_CONFIG_WINDOW_X = 1,
+ XCB_CONFIG_WINDOW_Y = 2,
+ XCB_CONFIG_WINDOW_WIDTH = 4,
+ XCB_CONFIG_WINDOW_HEIGHT = 8,
+ XCB_CONFIG_WINDOW_BORDER_WIDTH = 16,
+ XCB_CONFIG_WINDOW_SIBLING = 32,
+ XCB_CONFIG_WINDOW_STACK_MODE = 64
+} xcb_config_window_t;
+
+typedef enum xcb_stack_mode_t {
+ XCB_STACK_MODE_ABOVE = 0,
+ XCB_STACK_MODE_BELOW = 1,
+ XCB_STACK_MODE_TOP_IF = 2,
+ XCB_STACK_MODE_BOTTOM_IF = 3,
+ XCB_STACK_MODE_OPPOSITE = 4
+} xcb_stack_mode_t;
+
+/**
+ * @brief xcb_configure_window_value_list_t
+ **/
+typedef struct xcb_configure_window_value_list_t {
+ int32_t x;
+ int32_t y;
+ uint32_t width;
+ uint32_t height;
+ uint32_t border_width;
+ xcb_window_t sibling;
+ uint32_t stack_mode;
+} xcb_configure_window_value_list_t;
+
+/** Opcode for xcb_configure_window. */
+#define XCB_CONFIGURE_WINDOW 12
+
+/**
+ * @brief xcb_configure_window_request_t
+ **/
+typedef struct xcb_configure_window_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t value_mask;
+ uint8_t pad1[2];
+} xcb_configure_window_request_t;
+
+typedef enum xcb_circulate_t {
+ XCB_CIRCULATE_RAISE_LOWEST = 0,
+ XCB_CIRCULATE_LOWER_HIGHEST = 1
+} xcb_circulate_t;
+
+/** Opcode for xcb_circulate_window. */
+#define XCB_CIRCULATE_WINDOW 13
+
+/**
+ * @brief xcb_circulate_window_request_t
+ **/
+typedef struct xcb_circulate_window_request_t {
+ uint8_t major_opcode;
+ uint8_t direction;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_circulate_window_request_t;
+
+/**
+ * @brief xcb_get_geometry_cookie_t
+ **/
+typedef struct xcb_get_geometry_cookie_t {
+ unsigned int sequence;
+} xcb_get_geometry_cookie_t;
+
+/** Opcode for xcb_get_geometry. */
+#define XCB_GET_GEOMETRY 14
+
+/**
+ * @brief xcb_get_geometry_request_t
+ **/
+typedef struct xcb_get_geometry_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+} xcb_get_geometry_request_t;
+
+/**
+ * @brief xcb_get_geometry_reply_t
+ **/
+typedef struct xcb_get_geometry_reply_t {
+ uint8_t response_type;
+ uint8_t depth;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t root;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t border_width;
+ uint8_t pad0[2];
+} xcb_get_geometry_reply_t;
+
+/**
+ * @brief xcb_query_tree_cookie_t
+ **/
+typedef struct xcb_query_tree_cookie_t {
+ unsigned int sequence;
+} xcb_query_tree_cookie_t;
+
+/** Opcode for xcb_query_tree. */
+#define XCB_QUERY_TREE 15
+
+/**
+ * @brief xcb_query_tree_request_t
+ **/
+typedef struct xcb_query_tree_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_query_tree_request_t;
+
+/**
+ * @brief xcb_query_tree_reply_t
+ **/
+typedef struct xcb_query_tree_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t root;
+ xcb_window_t parent;
+ uint16_t children_len;
+ uint8_t pad1[14];
+} xcb_query_tree_reply_t;
+
+/**
+ * @brief xcb_intern_atom_cookie_t
+ **/
+typedef struct xcb_intern_atom_cookie_t {
+ unsigned int sequence;
+} xcb_intern_atom_cookie_t;
+
+/** Opcode for xcb_intern_atom. */
+#define XCB_INTERN_ATOM 16
+
+/**
+ * @brief xcb_intern_atom_request_t
+ **/
+typedef struct xcb_intern_atom_request_t {
+ uint8_t major_opcode;
+ uint8_t only_if_exists;
+ uint16_t length;
+ uint16_t name_len;
+ uint8_t pad0[2];
+} xcb_intern_atom_request_t;
+
+/**
+ * @brief xcb_intern_atom_reply_t
+ **/
+typedef struct xcb_intern_atom_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t atom;
+} xcb_intern_atom_reply_t;
+
+/**
+ * @brief xcb_get_atom_name_cookie_t
+ **/
+typedef struct xcb_get_atom_name_cookie_t {
+ unsigned int sequence;
+} xcb_get_atom_name_cookie_t;
+
+/** Opcode for xcb_get_atom_name. */
+#define XCB_GET_ATOM_NAME 17
+
+/**
+ * @brief xcb_get_atom_name_request_t
+ **/
+typedef struct xcb_get_atom_name_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_atom_t atom;
+} xcb_get_atom_name_request_t;
+
+/**
+ * @brief xcb_get_atom_name_reply_t
+ **/
+typedef struct xcb_get_atom_name_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t name_len;
+ uint8_t pad1[22];
+} xcb_get_atom_name_reply_t;
+
+typedef enum xcb_prop_mode_t {
+ XCB_PROP_MODE_REPLACE = 0,
+/**< Discard the previous property value and store the new data. */
+
+ XCB_PROP_MODE_PREPEND = 1,
+/**< Insert the new data before the beginning of existing data. The `format` must
+match existing property value. If the property is undefined, it is treated as
+defined with the correct type and format with zero-length data. */
+
+ XCB_PROP_MODE_APPEND = 2
+/**< Insert the new data after the beginning of existing data. The `format` must
+match existing property value. If the property is undefined, it is treated as
+defined with the correct type and format with zero-length data. */
+
+} xcb_prop_mode_t;
+
+/** Opcode for xcb_change_property. */
+#define XCB_CHANGE_PROPERTY 18
+
+/**
+ * @brief xcb_change_property_request_t
+ **/
+typedef struct xcb_change_property_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint8_t format;
+ uint8_t pad0[3];
+ uint32_t data_len;
+} xcb_change_property_request_t;
+
+/** Opcode for xcb_delete_property. */
+#define XCB_DELETE_PROPERTY 19
+
+/**
+ * @brief xcb_delete_property_request_t
+ **/
+typedef struct xcb_delete_property_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t property;
+} xcb_delete_property_request_t;
+
+typedef enum xcb_get_property_type_t {
+ XCB_GET_PROPERTY_TYPE_ANY = 0
+} xcb_get_property_type_t;
+
+/**
+ * @brief xcb_get_property_cookie_t
+ **/
+typedef struct xcb_get_property_cookie_t {
+ unsigned int sequence;
+} xcb_get_property_cookie_t;
+
+/** Opcode for xcb_get_property. */
+#define XCB_GET_PROPERTY 20
+
+/**
+ * @brief xcb_get_property_request_t
+ **/
+typedef struct xcb_get_property_request_t {
+ uint8_t major_opcode;
+ uint8_t _delete;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t property;
+ xcb_atom_t type;
+ uint32_t long_offset;
+ uint32_t long_length;
+} xcb_get_property_request_t;
+
+/**
+ * @brief xcb_get_property_reply_t
+ **/
+typedef struct xcb_get_property_reply_t {
+ uint8_t response_type;
+ uint8_t format;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_atom_t type;
+ uint32_t bytes_after;
+ uint32_t value_len;
+ uint8_t pad0[12];
+} xcb_get_property_reply_t;
+
+/**
+ * @brief xcb_list_properties_cookie_t
+ **/
+typedef struct xcb_list_properties_cookie_t {
+ unsigned int sequence;
+} xcb_list_properties_cookie_t;
+
+/** Opcode for xcb_list_properties. */
+#define XCB_LIST_PROPERTIES 21
+
+/**
+ * @brief xcb_list_properties_request_t
+ **/
+typedef struct xcb_list_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_list_properties_request_t;
+
+/**
+ * @brief xcb_list_properties_reply_t
+ **/
+typedef struct xcb_list_properties_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t atoms_len;
+ uint8_t pad1[22];
+} xcb_list_properties_reply_t;
+
+/** Opcode for xcb_set_selection_owner. */
+#define XCB_SET_SELECTION_OWNER 22
+
+/**
+ * @brief xcb_set_selection_owner_request_t
+ **/
+typedef struct xcb_set_selection_owner_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t owner;
+ xcb_atom_t selection;
+ xcb_timestamp_t time;
+} xcb_set_selection_owner_request_t;
+
+/**
+ * @brief xcb_get_selection_owner_cookie_t
+ **/
+typedef struct xcb_get_selection_owner_cookie_t {
+ unsigned int sequence;
+} xcb_get_selection_owner_cookie_t;
+
+/** Opcode for xcb_get_selection_owner. */
+#define XCB_GET_SELECTION_OWNER 23
+
+/**
+ * @brief xcb_get_selection_owner_request_t
+ **/
+typedef struct xcb_get_selection_owner_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_atom_t selection;
+} xcb_get_selection_owner_request_t;
+
+/**
+ * @brief xcb_get_selection_owner_reply_t
+ **/
+typedef struct xcb_get_selection_owner_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t owner;
+} xcb_get_selection_owner_reply_t;
+
+/** Opcode for xcb_convert_selection. */
+#define XCB_CONVERT_SELECTION 24
+
+/**
+ * @brief xcb_convert_selection_request_t
+ **/
+typedef struct xcb_convert_selection_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t requestor;
+ xcb_atom_t selection;
+ xcb_atom_t target;
+ xcb_atom_t property;
+ xcb_timestamp_t time;
+} xcb_convert_selection_request_t;
+
+typedef enum xcb_send_event_dest_t {
+ XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0,
+ XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
+} xcb_send_event_dest_t;
+
+/** Opcode for xcb_send_event. */
+#define XCB_SEND_EVENT 25
+
+/**
+ * @brief xcb_send_event_request_t
+ **/
+typedef struct xcb_send_event_request_t {
+ uint8_t major_opcode;
+ uint8_t propagate;
+ uint16_t length;
+ xcb_window_t destination;
+ uint32_t event_mask;
+ char event[32];
+} xcb_send_event_request_t;
+
+typedef enum xcb_grab_mode_t {
+ XCB_GRAB_MODE_SYNC = 0,
+/**< The state of the keyboard appears to freeze: No further keyboard events are
+generated by the server until the grabbing client issues a releasing
+`AllowEvents` request or until the keyboard grab is released. */
+
+ XCB_GRAB_MODE_ASYNC = 1
+/**< Keyboard event processing continues normally. */
+
+} xcb_grab_mode_t;
+
+typedef enum xcb_grab_status_t {
+ XCB_GRAB_STATUS_SUCCESS = 0,
+ XCB_GRAB_STATUS_ALREADY_GRABBED = 1,
+ XCB_GRAB_STATUS_INVALID_TIME = 2,
+ XCB_GRAB_STATUS_NOT_VIEWABLE = 3,
+ XCB_GRAB_STATUS_FROZEN = 4
+} xcb_grab_status_t;
+
+typedef enum xcb_cursor_enum_t {
+ XCB_CURSOR_NONE = 0
+} xcb_cursor_enum_t;
+
+/**
+ * @brief xcb_grab_pointer_cookie_t
+ **/
+typedef struct xcb_grab_pointer_cookie_t {
+ unsigned int sequence;
+} xcb_grab_pointer_cookie_t;
+
+/** Opcode for xcb_grab_pointer. */
+#define XCB_GRAB_POINTER 26
+
+/**
+ * @brief xcb_grab_pointer_request_t
+ **/
+typedef struct xcb_grab_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t owner_events;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t event_mask;
+ uint8_t pointer_mode;
+ uint8_t keyboard_mode;
+ xcb_window_t confine_to;
+ xcb_cursor_t cursor;
+ xcb_timestamp_t time;
+} xcb_grab_pointer_request_t;
+
+/**
+ * @brief xcb_grab_pointer_reply_t
+ **/
+typedef struct xcb_grab_pointer_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_grab_pointer_reply_t;
+
+/** Opcode for xcb_ungrab_pointer. */
+#define XCB_UNGRAB_POINTER 27
+
+/**
+ * @brief xcb_ungrab_pointer_request_t
+ **/
+typedef struct xcb_ungrab_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_timestamp_t time;
+} xcb_ungrab_pointer_request_t;
+
+typedef enum xcb_button_index_t {
+ XCB_BUTTON_INDEX_ANY = 0,
+/**< Any of the following (or none): */
+
+ XCB_BUTTON_INDEX_1 = 1,
+/**< The left mouse button. */
+
+ XCB_BUTTON_INDEX_2 = 2,
+/**< The right mouse button. */
+
+ XCB_BUTTON_INDEX_3 = 3,
+/**< The middle mouse button. */
+
+ XCB_BUTTON_INDEX_4 = 4,
+/**< Scroll wheel. TODO: direction? */
+
+ XCB_BUTTON_INDEX_5 = 5
+/**< Scroll wheel. TODO: direction? */
+
+} xcb_button_index_t;
+
+/** Opcode for xcb_grab_button. */
+#define XCB_GRAB_BUTTON 28
+
+/**
+ * @brief xcb_grab_button_request_t
+ **/
+typedef struct xcb_grab_button_request_t {
+ uint8_t major_opcode;
+ uint8_t owner_events;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t event_mask;
+ uint8_t pointer_mode;
+ uint8_t keyboard_mode;
+ xcb_window_t confine_to;
+ xcb_cursor_t cursor;
+ uint8_t button;
+ uint8_t pad0;
+ uint16_t modifiers;
+} xcb_grab_button_request_t;
+
+/** Opcode for xcb_ungrab_button. */
+#define XCB_UNGRAB_BUTTON 29
+
+/**
+ * @brief xcb_ungrab_button_request_t
+ **/
+typedef struct xcb_ungrab_button_request_t {
+ uint8_t major_opcode;
+ uint8_t button;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t modifiers;
+ uint8_t pad0[2];
+} xcb_ungrab_button_request_t;
+
+/** Opcode for xcb_change_active_pointer_grab. */
+#define XCB_CHANGE_ACTIVE_POINTER_GRAB 30
+
+/**
+ * @brief xcb_change_active_pointer_grab_request_t
+ **/
+typedef struct xcb_change_active_pointer_grab_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_cursor_t cursor;
+ xcb_timestamp_t time;
+ uint16_t event_mask;
+ uint8_t pad1[2];
+} xcb_change_active_pointer_grab_request_t;
+
+/**
+ * @brief xcb_grab_keyboard_cookie_t
+ **/
+typedef struct xcb_grab_keyboard_cookie_t {
+ unsigned int sequence;
+} xcb_grab_keyboard_cookie_t;
+
+/** Opcode for xcb_grab_keyboard. */
+#define XCB_GRAB_KEYBOARD 31
+
+/**
+ * @brief xcb_grab_keyboard_request_t
+ **/
+typedef struct xcb_grab_keyboard_request_t {
+ uint8_t major_opcode;
+ uint8_t owner_events;
+ uint16_t length;
+ xcb_window_t grab_window;
+ xcb_timestamp_t time;
+ uint8_t pointer_mode;
+ uint8_t keyboard_mode;
+ uint8_t pad0[2];
+} xcb_grab_keyboard_request_t;
+
+/**
+ * @brief xcb_grab_keyboard_reply_t
+ **/
+typedef struct xcb_grab_keyboard_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_grab_keyboard_reply_t;
+
+/** Opcode for xcb_ungrab_keyboard. */
+#define XCB_UNGRAB_KEYBOARD 32
+
+/**
+ * @brief xcb_ungrab_keyboard_request_t
+ **/
+typedef struct xcb_ungrab_keyboard_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_timestamp_t time;
+} xcb_ungrab_keyboard_request_t;
+
+typedef enum xcb_grab_t {
+ XCB_GRAB_ANY = 0
+} xcb_grab_t;
+
+/** Opcode for xcb_grab_key. */
+#define XCB_GRAB_KEY 33
+
+/**
+ * @brief xcb_grab_key_request_t
+ **/
+typedef struct xcb_grab_key_request_t {
+ uint8_t major_opcode;
+ uint8_t owner_events;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t modifiers;
+ xcb_keycode_t key;
+ uint8_t pointer_mode;
+ uint8_t keyboard_mode;
+ uint8_t pad0[3];
+} xcb_grab_key_request_t;
+
+/** Opcode for xcb_ungrab_key. */
+#define XCB_UNGRAB_KEY 34
+
+/**
+ * @brief xcb_ungrab_key_request_t
+ **/
+typedef struct xcb_ungrab_key_request_t {
+ uint8_t major_opcode;
+ xcb_keycode_t key;
+ uint16_t length;
+ xcb_window_t grab_window;
+ uint16_t modifiers;
+ uint8_t pad0[2];
+} xcb_ungrab_key_request_t;
+
+typedef enum xcb_allow_t {
+ XCB_ALLOW_ASYNC_POINTER = 0,
+/**< For AsyncPointer, if the pointer is frozen by the client, pointer event
+processing continues normally. If the pointer is frozen twice by the client on
+behalf of two separate grabs, AsyncPointer thaws for both. AsyncPointer has no
+effect if the pointer is not frozen by the client, but the pointer need not be
+grabbed by the client.
+
+TODO: rewrite this in more understandable terms. */
+
+ XCB_ALLOW_SYNC_POINTER = 1,
+/**< For SyncPointer, if the pointer is frozen and actively grabbed by the client,
+pointer event processing continues normally until the next ButtonPress or
+ButtonRelease event is reported to the client, at which time the pointer again
+appears to freeze. However, if the reported event causes the pointer grab to be
+released, then the pointer does not freeze. SyncPointer has no effect if the
+pointer is not frozen by the client or if the pointer is not grabbed by the
+client. */
+
+ XCB_ALLOW_REPLAY_POINTER = 2,
+/**< For ReplayPointer, if the pointer is actively grabbed by the client and is
+frozen as the result of an event having been sent to the client (either from
+the activation of a GrabButton or from a previous AllowEvents with mode
+SyncPointer but not from a GrabPointer), then the pointer grab is released and
+that event is completely reprocessed, this time ignoring any passive grabs at
+or above (towards the root) the grab-window of the grab just released. The
+request has no effect if the pointer is not grabbed by the client or if the
+pointer is not frozen as the result of an event. */
+
+ XCB_ALLOW_ASYNC_KEYBOARD = 3,
+/**< For AsyncKeyboard, if the keyboard is frozen by the client, keyboard event
+processing continues normally. If the keyboard is frozen twice by the client on
+behalf of two separate grabs, AsyncKeyboard thaws for both. AsyncKeyboard has
+no effect if the keyboard is not frozen by the client, but the keyboard need
+not be grabbed by the client. */
+
+ XCB_ALLOW_SYNC_KEYBOARD = 4,
+/**< For SyncKeyboard, if the keyboard is frozen and actively grabbed by the client,
+keyboard event processing continues normally until the next KeyPress or
+KeyRelease event is reported to the client, at which time the keyboard again
+appears to freeze. However, if the reported event causes the keyboard grab to
+be released, then the keyboard does not freeze. SyncKeyboard has no effect if
+the keyboard is not frozen by the client or if the keyboard is not grabbed by
+the client. */
+
+ XCB_ALLOW_REPLAY_KEYBOARD = 5,
+/**< For ReplayKeyboard, if the keyboard is actively grabbed by the client and is
+frozen as the result of an event having been sent to the client (either from
+the activation of a GrabKey or from a previous AllowEvents with mode
+SyncKeyboard but not from a GrabKeyboard), then the keyboard grab is released
+and that event is completely reprocessed, this time ignoring any passive grabs
+at or above (towards the root) the grab-window of the grab just released. The
+request has no effect if the keyboard is not grabbed by the client or if the
+keyboard is not frozen as the result of an event. */
+
+ XCB_ALLOW_ASYNC_BOTH = 6,
+/**< For AsyncBoth, if the pointer and the keyboard are frozen by the client, event
+processing for both devices continues normally. If a device is frozen twice by
+the client on behalf of two separate grabs, AsyncBoth thaws for both. AsyncBoth
+has no effect unless both pointer and keyboard are frozen by the client. */
+
+ XCB_ALLOW_SYNC_BOTH = 7
+/**< For SyncBoth, if both pointer and keyboard are frozen by the client, event
+processing (for both devices) continues normally until the next ButtonPress,
+ButtonRelease, KeyPress, or KeyRelease event is reported to the client for a
+grabbed device (button event for the pointer, key event for the keyboard), at
+which time the devices again appear to freeze. However, if the reported event
+causes the grab to be released, then the devices do not freeze (but if the
+other device is still grabbed, then a subsequent event for it will still cause
+both devices to freeze). SyncBoth has no effect unless both pointer and
+keyboard are frozen by the client. If the pointer or keyboard is frozen twice
+by the client on behalf of two separate grabs, SyncBoth thaws for both (but a
+subsequent freeze for SyncBoth will only freeze each device once). */
+
+} xcb_allow_t;
+
+/** Opcode for xcb_allow_events. */
+#define XCB_ALLOW_EVENTS 35
+
+/**
+ * @brief xcb_allow_events_request_t
+ **/
+typedef struct xcb_allow_events_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+ xcb_timestamp_t time;
+} xcb_allow_events_request_t;
+
+/** Opcode for xcb_grab_server. */
+#define XCB_GRAB_SERVER 36
+
+/**
+ * @brief xcb_grab_server_request_t
+ **/
+typedef struct xcb_grab_server_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_grab_server_request_t;
+
+/** Opcode for xcb_ungrab_server. */
+#define XCB_UNGRAB_SERVER 37
+
+/**
+ * @brief xcb_ungrab_server_request_t
+ **/
+typedef struct xcb_ungrab_server_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_ungrab_server_request_t;
+
+/**
+ * @brief xcb_query_pointer_cookie_t
+ **/
+typedef struct xcb_query_pointer_cookie_t {
+ unsigned int sequence;
+} xcb_query_pointer_cookie_t;
+
+/** Opcode for xcb_query_pointer. */
+#define XCB_QUERY_POINTER 38
+
+/**
+ * @brief xcb_query_pointer_request_t
+ **/
+typedef struct xcb_query_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_query_pointer_request_t;
+
+/**
+ * @brief xcb_query_pointer_reply_t
+ **/
+typedef struct xcb_query_pointer_reply_t {
+ uint8_t response_type;
+ uint8_t same_screen;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t root;
+ xcb_window_t child;
+ int16_t root_x;
+ int16_t root_y;
+ int16_t win_x;
+ int16_t win_y;
+ uint16_t mask;
+ uint8_t pad0[2];
+} xcb_query_pointer_reply_t;
+
+/**
+ * @brief xcb_timecoord_t
+ **/
+typedef struct xcb_timecoord_t {
+ xcb_timestamp_t time;
+ int16_t x;
+ int16_t y;
+} xcb_timecoord_t;
+
+/**
+ * @brief xcb_timecoord_iterator_t
+ **/
+typedef struct xcb_timecoord_iterator_t {
+ xcb_timecoord_t *data;
+ int rem;
+ int index;
+} xcb_timecoord_iterator_t;
+
+/**
+ * @brief xcb_get_motion_events_cookie_t
+ **/
+typedef struct xcb_get_motion_events_cookie_t {
+ unsigned int sequence;
+} xcb_get_motion_events_cookie_t;
+
+/** Opcode for xcb_get_motion_events. */
+#define XCB_GET_MOTION_EVENTS 39
+
+/**
+ * @brief xcb_get_motion_events_request_t
+ **/
+typedef struct xcb_get_motion_events_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_timestamp_t start;
+ xcb_timestamp_t stop;
+} xcb_get_motion_events_request_t;
+
+/**
+ * @brief xcb_get_motion_events_reply_t
+ **/
+typedef struct xcb_get_motion_events_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t events_len;
+ uint8_t pad1[20];
+} xcb_get_motion_events_reply_t;
+
+/**
+ * @brief xcb_translate_coordinates_cookie_t
+ **/
+typedef struct xcb_translate_coordinates_cookie_t {
+ unsigned int sequence;
+} xcb_translate_coordinates_cookie_t;
+
+/** Opcode for xcb_translate_coordinates. */
+#define XCB_TRANSLATE_COORDINATES 40
+
+/**
+ * @brief xcb_translate_coordinates_request_t
+ **/
+typedef struct xcb_translate_coordinates_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t src_window;
+ xcb_window_t dst_window;
+ int16_t src_x;
+ int16_t src_y;
+} xcb_translate_coordinates_request_t;
+
+/**
+ * @brief xcb_translate_coordinates_reply_t
+ **/
+typedef struct xcb_translate_coordinates_reply_t {
+ uint8_t response_type;
+ uint8_t same_screen;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t child;
+ int16_t dst_x;
+ int16_t dst_y;
+} xcb_translate_coordinates_reply_t;
+
+/** Opcode for xcb_warp_pointer. */
+#define XCB_WARP_POINTER 41
+
+/**
+ * @brief xcb_warp_pointer_request_t
+ **/
+typedef struct xcb_warp_pointer_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t src_window;
+ xcb_window_t dst_window;
+ int16_t src_x;
+ int16_t src_y;
+ uint16_t src_width;
+ uint16_t src_height;
+ int16_t dst_x;
+ int16_t dst_y;
+} xcb_warp_pointer_request_t;
+
+typedef enum xcb_input_focus_t {
+ XCB_INPUT_FOCUS_NONE = 0,
+/**< The focus reverts to `XCB_NONE`, so no window will have the input focus. */
+
+ XCB_INPUT_FOCUS_POINTER_ROOT = 1,
+/**< The focus reverts to `XCB_POINTER_ROOT` respectively. When the focus reverts,
+FocusIn and FocusOut events are generated, but the last-focus-change time is
+not changed. */
+
+ XCB_INPUT_FOCUS_PARENT = 2,
+/**< The focus reverts to the parent (or closest viewable ancestor) and the new
+revert_to value is `XCB_INPUT_FOCUS_NONE`. */
+
+ XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
+/**< NOT YET DOCUMENTED. Only relevant for the xinput extension. */
+
+} xcb_input_focus_t;
+
+/** Opcode for xcb_set_input_focus. */
+#define XCB_SET_INPUT_FOCUS 42
+
+/**
+ * @brief xcb_set_input_focus_request_t
+ **/
+typedef struct xcb_set_input_focus_request_t {
+ uint8_t major_opcode;
+ uint8_t revert_to;
+ uint16_t length;
+ xcb_window_t focus;
+ xcb_timestamp_t time;
+} xcb_set_input_focus_request_t;
+
+/**
+ * @brief xcb_get_input_focus_cookie_t
+ **/
+typedef struct xcb_get_input_focus_cookie_t {
+ unsigned int sequence;
+} xcb_get_input_focus_cookie_t;
+
+/** Opcode for xcb_get_input_focus. */
+#define XCB_GET_INPUT_FOCUS 43
+
+/**
+ * @brief xcb_get_input_focus_request_t
+ **/
+typedef struct xcb_get_input_focus_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_input_focus_request_t;
+
+/**
+ * @brief xcb_get_input_focus_reply_t
+ **/
+typedef struct xcb_get_input_focus_reply_t {
+ uint8_t response_type;
+ uint8_t revert_to;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_window_t focus;
+} xcb_get_input_focus_reply_t;
+
+/**
+ * @brief xcb_query_keymap_cookie_t
+ **/
+typedef struct xcb_query_keymap_cookie_t {
+ unsigned int sequence;
+} xcb_query_keymap_cookie_t;
+
+/** Opcode for xcb_query_keymap. */
+#define XCB_QUERY_KEYMAP 44
+
+/**
+ * @brief xcb_query_keymap_request_t
+ **/
+typedef struct xcb_query_keymap_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_query_keymap_request_t;
+
+/**
+ * @brief xcb_query_keymap_reply_t
+ **/
+typedef struct xcb_query_keymap_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t keys[32];
+} xcb_query_keymap_reply_t;
+
+/** Opcode for xcb_open_font. */
+#define XCB_OPEN_FONT 45
+
+/**
+ * @brief xcb_open_font_request_t
+ **/
+typedef struct xcb_open_font_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_font_t fid;
+ uint16_t name_len;
+ uint8_t pad1[2];
+} xcb_open_font_request_t;
+
+/** Opcode for xcb_close_font. */
+#define XCB_CLOSE_FONT 46
+
+/**
+ * @brief xcb_close_font_request_t
+ **/
+typedef struct xcb_close_font_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_font_t font;
+} xcb_close_font_request_t;
+
+typedef enum xcb_font_draw_t {
+ XCB_FONT_DRAW_LEFT_TO_RIGHT = 0,
+ XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
+} xcb_font_draw_t;
+
+/**
+ * @brief xcb_fontprop_t
+ **/
+typedef struct xcb_fontprop_t {
+ xcb_atom_t name;
+ uint32_t value;
+} xcb_fontprop_t;
+
+/**
+ * @brief xcb_fontprop_iterator_t
+ **/
+typedef struct xcb_fontprop_iterator_t {
+ xcb_fontprop_t *data;
+ int rem;
+ int index;
+} xcb_fontprop_iterator_t;
+
+/**
+ * @brief xcb_charinfo_t
+ **/
+typedef struct xcb_charinfo_t {
+ int16_t left_side_bearing;
+ int16_t right_side_bearing;
+ int16_t character_width;
+ int16_t ascent;
+ int16_t descent;
+ uint16_t attributes;
+} xcb_charinfo_t;
+
+/**
+ * @brief xcb_charinfo_iterator_t
+ **/
+typedef struct xcb_charinfo_iterator_t {
+ xcb_charinfo_t *data;
+ int rem;
+ int index;
+} xcb_charinfo_iterator_t;
+
+/**
+ * @brief xcb_query_font_cookie_t
+ **/
+typedef struct xcb_query_font_cookie_t {
+ unsigned int sequence;
+} xcb_query_font_cookie_t;
+
+/** Opcode for xcb_query_font. */
+#define XCB_QUERY_FONT 47
+
+/**
+ * @brief xcb_query_font_request_t
+ **/
+typedef struct xcb_query_font_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_fontable_t font;
+} xcb_query_font_request_t;
+
+/**
+ * @brief xcb_query_font_reply_t
+ **/
+typedef struct xcb_query_font_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_charinfo_t min_bounds;
+ uint8_t pad1[4];
+ xcb_charinfo_t max_bounds;
+ uint8_t pad2[4];
+ uint16_t min_char_or_byte2;
+ uint16_t max_char_or_byte2;
+ uint16_t default_char;
+ uint16_t properties_len;
+ uint8_t draw_direction;
+ uint8_t min_byte1;
+ uint8_t max_byte1;
+ uint8_t all_chars_exist;
+ int16_t font_ascent;
+ int16_t font_descent;
+ uint32_t char_infos_len;
+} xcb_query_font_reply_t;
+
+/**
+ * @brief xcb_query_text_extents_cookie_t
+ **/
+typedef struct xcb_query_text_extents_cookie_t {
+ unsigned int sequence;
+} xcb_query_text_extents_cookie_t;
+
+/** Opcode for xcb_query_text_extents. */
+#define XCB_QUERY_TEXT_EXTENTS 48
+
+/**
+ * @brief xcb_query_text_extents_request_t
+ **/
+typedef struct xcb_query_text_extents_request_t {
+ uint8_t major_opcode;
+ uint8_t odd_length;
+ uint16_t length;
+ xcb_fontable_t font;
+} xcb_query_text_extents_request_t;
+
+/**
+ * @brief xcb_query_text_extents_reply_t
+ **/
+typedef struct xcb_query_text_extents_reply_t {
+ uint8_t response_type;
+ uint8_t draw_direction;
+ uint16_t sequence;
+ uint32_t length;
+ int16_t font_ascent;
+ int16_t font_descent;
+ int16_t overall_ascent;
+ int16_t overall_descent;
+ int32_t overall_width;
+ int32_t overall_left;
+ int32_t overall_right;
+} xcb_query_text_extents_reply_t;
+
+/**
+ * @brief xcb_str_t
+ **/
+typedef struct xcb_str_t {
+ uint8_t name_len;
+} xcb_str_t;
+
+/**
+ * @brief xcb_str_iterator_t
+ **/
+typedef struct xcb_str_iterator_t {
+ xcb_str_t *data;
+ int rem;
+ int index;
+} xcb_str_iterator_t;
+
+/**
+ * @brief xcb_list_fonts_cookie_t
+ **/
+typedef struct xcb_list_fonts_cookie_t {
+ unsigned int sequence;
+} xcb_list_fonts_cookie_t;
+
+/** Opcode for xcb_list_fonts. */
+#define XCB_LIST_FONTS 49
+
+/**
+ * @brief xcb_list_fonts_request_t
+ **/
+typedef struct xcb_list_fonts_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ uint16_t max_names;
+ uint16_t pattern_len;
+} xcb_list_fonts_request_t;
+
+/**
+ * @brief xcb_list_fonts_reply_t
+ **/
+typedef struct xcb_list_fonts_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t names_len;
+ uint8_t pad1[22];
+} xcb_list_fonts_reply_t;
+
+/**
+ * @brief xcb_list_fonts_with_info_cookie_t
+ **/
+typedef struct xcb_list_fonts_with_info_cookie_t {
+ unsigned int sequence;
+} xcb_list_fonts_with_info_cookie_t;
+
+/** Opcode for xcb_list_fonts_with_info. */
+#define XCB_LIST_FONTS_WITH_INFO 50
+
+/**
+ * @brief xcb_list_fonts_with_info_request_t
+ **/
+typedef struct xcb_list_fonts_with_info_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ uint16_t max_names;
+ uint16_t pattern_len;
+} xcb_list_fonts_with_info_request_t;
+
+/**
+ * @brief xcb_list_fonts_with_info_reply_t
+ **/
+typedef struct xcb_list_fonts_with_info_reply_t {
+ uint8_t response_type;
+ uint8_t name_len;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_charinfo_t min_bounds;
+ uint8_t pad0[4];
+ xcb_charinfo_t max_bounds;
+ uint8_t pad1[4];
+ uint16_t min_char_or_byte2;
+ uint16_t max_char_or_byte2;
+ uint16_t default_char;
+ uint16_t properties_len;
+ uint8_t draw_direction;
+ uint8_t min_byte1;
+ uint8_t max_byte1;
+ uint8_t all_chars_exist;
+ int16_t font_ascent;
+ int16_t font_descent;
+ uint32_t replies_hint;
+} xcb_list_fonts_with_info_reply_t;
+
+/** Opcode for xcb_set_font_path. */
+#define XCB_SET_FONT_PATH 51
+
+/**
+ * @brief xcb_set_font_path_request_t
+ **/
+typedef struct xcb_set_font_path_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ uint16_t font_qty;
+ uint8_t pad1[2];
+} xcb_set_font_path_request_t;
+
+/**
+ * @brief xcb_get_font_path_cookie_t
+ **/
+typedef struct xcb_get_font_path_cookie_t {
+ unsigned int sequence;
+} xcb_get_font_path_cookie_t;
+
+/** Opcode for xcb_get_font_path. */
+#define XCB_GET_FONT_PATH 52
+
+/**
+ * @brief xcb_get_font_path_request_t
+ **/
+typedef struct xcb_get_font_path_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_font_path_request_t;
+
+/**
+ * @brief xcb_get_font_path_reply_t
+ **/
+typedef struct xcb_get_font_path_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t path_len;
+ uint8_t pad1[22];
+} xcb_get_font_path_reply_t;
+
+/** Opcode for xcb_create_pixmap. */
+#define XCB_CREATE_PIXMAP 53
+
+/**
+ * @brief xcb_create_pixmap_request_t
+ **/
+typedef struct xcb_create_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t depth;
+ uint16_t length;
+ xcb_pixmap_t pid;
+ xcb_drawable_t drawable;
+ uint16_t width;
+ uint16_t height;
+} xcb_create_pixmap_request_t;
+
+/** Opcode for xcb_free_pixmap. */
+#define XCB_FREE_PIXMAP 54
+
+/**
+ * @brief xcb_free_pixmap_request_t
+ **/
+typedef struct xcb_free_pixmap_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_pixmap_t pixmap;
+} xcb_free_pixmap_request_t;
+
+typedef enum xcb_gc_t {
+ XCB_GC_FUNCTION = 1,
+/**< TODO: Refer to GX */
+
+ XCB_GC_PLANE_MASK = 2,
+/**< In graphics operations, given a source and destination pixel, the result is
+computed bitwise on corresponding bits of the pixels; that is, a Boolean
+operation is performed in each bit plane. The plane-mask restricts the
+operation to a subset of planes, so the result is:
+
+ ((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) */
+
+ XCB_GC_FOREGROUND = 4,
+/**< Foreground colorpixel. */
+
+ XCB_GC_BACKGROUND = 8,
+/**< Background colorpixel. */
+
+ XCB_GC_LINE_WIDTH = 16,
+/**< The line-width is measured in pixels and can be greater than or equal to one, a wide line, or the
+special value zero, a thin line. */
+
+ XCB_GC_LINE_STYLE = 32,
+/**< The line-style defines which sections of a line are drawn:
+Solid The full path of the line is drawn.
+DoubleDash The full path of the line is drawn, but the even dashes are filled differently
+ than the odd dashes (see fill-style), with Butt cap-style used where even and
+ odd dashes meet.
+OnOffDash Only the even dashes are drawn, and cap-style applies to all internal ends of
+ the individual dashes (except NotLast is treated as Butt). */
+
+ XCB_GC_CAP_STYLE = 64,
+/**< The cap-style defines how the endpoints of a path are drawn:
+NotLast The result is equivalent to Butt, except that for a line-width of zero the final
+ endpoint is not drawn.
+Butt The result is square at the endpoint (perpendicular to the slope of the line)
+ with no projection beyond.
+Round The result is a circular arc with its diameter equal to the line-width, centered
+ on the endpoint; it is equivalent to Butt for line-width zero.
+Projecting The result is square at the end, but the path continues beyond the endpoint for
+ a distance equal to half the line-width; it is equivalent to Butt for line-width
+ zero. */
+
+ XCB_GC_JOIN_STYLE = 128,
+/**< The join-style defines how corners are drawn for wide lines:
+Miter The outer edges of the two lines extend to meet at an angle. However, if the
+ angle is less than 11 degrees, a Bevel join-style is used instead.
+Round The result is a circular arc with a diameter equal to the line-width, centered
+ on the joinpoint.
+Bevel The result is Butt endpoint styles, and then the triangular notch is filled. */
+
+ XCB_GC_FILL_STYLE = 256,
+/**< The fill-style defines the contents of the source for line, text, and fill requests. For all text and fill
+requests (for example, PolyText8, PolyText16, PolyFillRectangle, FillPoly, and PolyFillArc)
+as well as for line requests with line-style Solid, (for example, PolyLine, PolySegment,
+PolyRectangle, PolyArc) and for the even dashes for line requests with line-style OnOffDash
+or DoubleDash:
+Solid Foreground
+Tiled Tile
+OpaqueStippled A tile with the same width and height as stipple but with background
+ everywhere stipple has a zero and with foreground everywhere stipple
+ has a one
+Stippled Foreground masked by stipple
+For the odd dashes for line requests with line-style DoubleDash:
+Solid Background
+Tiled Same as for even dashes
+OpaqueStippled Same as for even dashes
+Stippled Background masked by stipple */
+
+ XCB_GC_FILL_RULE = 512,
+/**< */
+
+ XCB_GC_TILE = 1024,
+/**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all
+dimensions. When that plane is superimposed on the drawable for use in a graphics operation,
+the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable
+specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the
+origin of whatever destination drawable is specified in a graphics request.
+The tile pixmap must have the same root and depth as the gcontext (or a Match error results).
+The stipple pixmap must have depth one and must have the same root as the gcontext (or a
+Match error results). For fill-style Stippled (but not fill-style
+OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an
+additional clip mask to be ANDed with the clip-mask.
+Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than
+others. */
+
+ XCB_GC_STIPPLE = 2048,
+/**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all
+dimensions. When that plane is superimposed on the drawable for use in a graphics operation,
+the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable
+specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the
+origin of whatever destination drawable is specified in a graphics request.
+The tile pixmap must have the same root and depth as the gcontext (or a Match error results).
+The stipple pixmap must have depth one and must have the same root as the gcontext (or a
+Match error results). For fill-style Stippled (but not fill-style
+OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an
+additional clip mask to be ANDed with the clip-mask.
+Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than
+others. */
+
+ XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096,
+/**< TODO */
+
+ XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192,
+/**< TODO */
+
+ XCB_GC_FONT = 16384,
+/**< Which font to use for the `ImageText8` and `ImageText16` requests. */
+
+ XCB_GC_SUBWINDOW_MODE = 32768,
+/**< For ClipByChildren, both source and destination windows are additionally
+clipped by all viewable InputOutput children. For IncludeInferiors, neither
+source nor destination window is
+clipped by inferiors. This will result in including subwindow contents in the source and drawing
+through subwindow boundaries of the destination. The use of IncludeInferiors with a source or
+destination window of one depth with mapped inferiors of differing depth is not illegal, but the
+semantics is undefined by the core protocol. */
+
+ XCB_GC_GRAPHICS_EXPOSURES = 65536,
+/**< Whether ExposureEvents should be generated (1) or not (0).
+
+The default is 1. */
+
+ XCB_GC_CLIP_ORIGIN_X = 131072,
+/**< TODO */
+
+ XCB_GC_CLIP_ORIGIN_Y = 262144,
+/**< TODO */
+
+ XCB_GC_CLIP_MASK = 524288,
+/**< The clip-mask restricts writes to the destination drawable. Only pixels where the clip-mask has
+bits set to 1 are drawn. Pixels are not drawn outside the area covered by the clip-mask or where
+the clip-mask has bits set to 0. The clip-mask affects all graphics requests, but it does not clip
+sources. The clip-mask origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. If a pixmap is specified as the clip-mask, it must have
+depth 1 and have the same root as the gcontext (or a Match error results). If clip-mask is None,
+then pixels are always drawn, regardless of the clip origin. The clip-mask can also be set with the
+SetClipRectangles request. */
+
+ XCB_GC_DASH_OFFSET = 1048576,
+/**< TODO */
+
+ XCB_GC_DASH_LIST = 2097152,
+/**< TODO */
+
+ XCB_GC_ARC_MODE = 4194304
+/**< TODO */
+
+} xcb_gc_t;
+
+typedef enum xcb_gx_t {
+ XCB_GX_CLEAR = 0,
+ XCB_GX_AND = 1,
+ XCB_GX_AND_REVERSE = 2,
+ XCB_GX_COPY = 3,
+ XCB_GX_AND_INVERTED = 4,
+ XCB_GX_NOOP = 5,
+ XCB_GX_XOR = 6,
+ XCB_GX_OR = 7,
+ XCB_GX_NOR = 8,
+ XCB_GX_EQUIV = 9,
+ XCB_GX_INVERT = 10,
+ XCB_GX_OR_REVERSE = 11,
+ XCB_GX_COPY_INVERTED = 12,
+ XCB_GX_OR_INVERTED = 13,
+ XCB_GX_NAND = 14,
+ XCB_GX_SET = 15
+} xcb_gx_t;
+
+typedef enum xcb_line_style_t {
+ XCB_LINE_STYLE_SOLID = 0,
+ XCB_LINE_STYLE_ON_OFF_DASH = 1,
+ XCB_LINE_STYLE_DOUBLE_DASH = 2
+} xcb_line_style_t;
+
+typedef enum xcb_cap_style_t {
+ XCB_CAP_STYLE_NOT_LAST = 0,
+ XCB_CAP_STYLE_BUTT = 1,
+ XCB_CAP_STYLE_ROUND = 2,
+ XCB_CAP_STYLE_PROJECTING = 3
+} xcb_cap_style_t;
+
+typedef enum xcb_join_style_t {
+ XCB_JOIN_STYLE_MITER = 0,
+ XCB_JOIN_STYLE_ROUND = 1,
+ XCB_JOIN_STYLE_BEVEL = 2
+} xcb_join_style_t;
+
+typedef enum xcb_fill_style_t {
+ XCB_FILL_STYLE_SOLID = 0,
+ XCB_FILL_STYLE_TILED = 1,
+ XCB_FILL_STYLE_STIPPLED = 2,
+ XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
+} xcb_fill_style_t;
+
+typedef enum xcb_fill_rule_t {
+ XCB_FILL_RULE_EVEN_ODD = 0,
+ XCB_FILL_RULE_WINDING = 1
+} xcb_fill_rule_t;
+
+typedef enum xcb_subwindow_mode_t {
+ XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0,
+ XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
+} xcb_subwindow_mode_t;
+
+typedef enum xcb_arc_mode_t {
+ XCB_ARC_MODE_CHORD = 0,
+ XCB_ARC_MODE_PIE_SLICE = 1
+} xcb_arc_mode_t;
+
+/**
+ * @brief xcb_create_gc_value_list_t
+ **/
+typedef struct xcb_create_gc_value_list_t {
+ uint32_t function;
+ uint32_t plane_mask;
+ uint32_t foreground;
+ uint32_t background;
+ uint32_t line_width;
+ uint32_t line_style;
+ uint32_t cap_style;
+ uint32_t join_style;
+ uint32_t fill_style;
+ uint32_t fill_rule;
+ xcb_pixmap_t tile;
+ xcb_pixmap_t stipple;
+ int32_t tile_stipple_x_origin;
+ int32_t tile_stipple_y_origin;
+ xcb_font_t font;
+ uint32_t subwindow_mode;
+ xcb_bool32_t graphics_exposures;
+ int32_t clip_x_origin;
+ int32_t clip_y_origin;
+ xcb_pixmap_t clip_mask;
+ uint32_t dash_offset;
+ uint32_t dashes;
+ uint32_t arc_mode;
+} xcb_create_gc_value_list_t;
+
+/** Opcode for xcb_create_gc. */
+#define XCB_CREATE_GC 55
+
+/**
+ * @brief xcb_create_gc_request_t
+ **/
+typedef struct xcb_create_gc_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_gcontext_t cid;
+ xcb_drawable_t drawable;
+ uint32_t value_mask;
+} xcb_create_gc_request_t;
+
+/**
+ * @brief xcb_change_gc_value_list_t
+ **/
+typedef struct xcb_change_gc_value_list_t {
+ uint32_t function;
+ uint32_t plane_mask;
+ uint32_t foreground;
+ uint32_t background;
+ uint32_t line_width;
+ uint32_t line_style;
+ uint32_t cap_style;
+ uint32_t join_style;
+ uint32_t fill_style;
+ uint32_t fill_rule;
+ xcb_pixmap_t tile;
+ xcb_pixmap_t stipple;
+ int32_t tile_stipple_x_origin;
+ int32_t tile_stipple_y_origin;
+ xcb_font_t font;
+ uint32_t subwindow_mode;
+ xcb_bool32_t graphics_exposures;
+ int32_t clip_x_origin;
+ int32_t clip_y_origin;
+ xcb_pixmap_t clip_mask;
+ uint32_t dash_offset;
+ uint32_t dashes;
+ uint32_t arc_mode;
+} xcb_change_gc_value_list_t;
+
+/** Opcode for xcb_change_gc. */
+#define XCB_CHANGE_GC 56
+
+/**
+ * @brief xcb_change_gc_request_t
+ **/
+typedef struct xcb_change_gc_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_gcontext_t gc;
+ uint32_t value_mask;
+} xcb_change_gc_request_t;
+
+/** Opcode for xcb_copy_gc. */
+#define XCB_COPY_GC 57
+
+/**
+ * @brief xcb_copy_gc_request_t
+ **/
+typedef struct xcb_copy_gc_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_gcontext_t src_gc;
+ xcb_gcontext_t dst_gc;
+ uint32_t value_mask;
+} xcb_copy_gc_request_t;
+
+/** Opcode for xcb_set_dashes. */
+#define XCB_SET_DASHES 58
+
+/**
+ * @brief xcb_set_dashes_request_t
+ **/
+typedef struct xcb_set_dashes_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_gcontext_t gc;
+ uint16_t dash_offset;
+ uint16_t dashes_len;
+} xcb_set_dashes_request_t;
+
+typedef enum xcb_clip_ordering_t {
+ XCB_CLIP_ORDERING_UNSORTED = 0,
+ XCB_CLIP_ORDERING_Y_SORTED = 1,
+ XCB_CLIP_ORDERING_YX_SORTED = 2,
+ XCB_CLIP_ORDERING_YX_BANDED = 3
+} xcb_clip_ordering_t;
+
+/** Opcode for xcb_set_clip_rectangles. */
+#define XCB_SET_CLIP_RECTANGLES 59
+
+/**
+ * @brief xcb_set_clip_rectangles_request_t
+ **/
+typedef struct xcb_set_clip_rectangles_request_t {
+ uint8_t major_opcode;
+ uint8_t ordering;
+ uint16_t length;
+ xcb_gcontext_t gc;
+ int16_t clip_x_origin;
+ int16_t clip_y_origin;
+} xcb_set_clip_rectangles_request_t;
+
+/** Opcode for xcb_free_gc. */
+#define XCB_FREE_GC 60
+
+/**
+ * @brief xcb_free_gc_request_t
+ **/
+typedef struct xcb_free_gc_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_gcontext_t gc;
+} xcb_free_gc_request_t;
+
+/** Opcode for xcb_clear_area. */
+#define XCB_CLEAR_AREA 61
+
+/**
+ * @brief xcb_clear_area_request_t
+ **/
+typedef struct xcb_clear_area_request_t {
+ uint8_t major_opcode;
+ uint8_t exposures;
+ uint16_t length;
+ xcb_window_t window;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+} xcb_clear_area_request_t;
+
+/** Opcode for xcb_copy_area. */
+#define XCB_COPY_AREA 62
+
+/**
+ * @brief xcb_copy_area_request_t
+ **/
+typedef struct xcb_copy_area_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t src_drawable;
+ xcb_drawable_t dst_drawable;
+ xcb_gcontext_t gc;
+ int16_t src_x;
+ int16_t src_y;
+ int16_t dst_x;
+ int16_t dst_y;
+ uint16_t width;
+ uint16_t height;
+} xcb_copy_area_request_t;
+
+/** Opcode for xcb_copy_plane. */
+#define XCB_COPY_PLANE 63
+
+/**
+ * @brief xcb_copy_plane_request_t
+ **/
+typedef struct xcb_copy_plane_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t src_drawable;
+ xcb_drawable_t dst_drawable;
+ xcb_gcontext_t gc;
+ int16_t src_x;
+ int16_t src_y;
+ int16_t dst_x;
+ int16_t dst_y;
+ uint16_t width;
+ uint16_t height;
+ uint32_t bit_plane;
+} xcb_copy_plane_request_t;
+
+typedef enum xcb_coord_mode_t {
+ XCB_COORD_MODE_ORIGIN = 0,
+/**< Treats all coordinates as relative to the origin. */
+
+ XCB_COORD_MODE_PREVIOUS = 1
+/**< Treats all coordinates after the first as relative to the previous coordinate. */
+
+} xcb_coord_mode_t;
+
+/** Opcode for xcb_poly_point. */
+#define XCB_POLY_POINT 64
+
+/**
+ * @brief xcb_poly_point_request_t
+ **/
+typedef struct xcb_poly_point_request_t {
+ uint8_t major_opcode;
+ uint8_t coordinate_mode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_point_request_t;
+
+/** Opcode for xcb_poly_line. */
+#define XCB_POLY_LINE 65
+
+/**
+ * @brief xcb_poly_line_request_t
+ **/
+typedef struct xcb_poly_line_request_t {
+ uint8_t major_opcode;
+ uint8_t coordinate_mode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_line_request_t;
+
+/**
+ * @brief xcb_segment_t
+ **/
+typedef struct xcb_segment_t {
+ int16_t x1;
+ int16_t y1;
+ int16_t x2;
+ int16_t y2;
+} xcb_segment_t;
+
+/**
+ * @brief xcb_segment_iterator_t
+ **/
+typedef struct xcb_segment_iterator_t {
+ xcb_segment_t *data;
+ int rem;
+ int index;
+} xcb_segment_iterator_t;
+
+/** Opcode for xcb_poly_segment. */
+#define XCB_POLY_SEGMENT 66
+
+/**
+ * @brief xcb_poly_segment_request_t
+ **/
+typedef struct xcb_poly_segment_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_segment_request_t;
+
+/** Opcode for xcb_poly_rectangle. */
+#define XCB_POLY_RECTANGLE 67
+
+/**
+ * @brief xcb_poly_rectangle_request_t
+ **/
+typedef struct xcb_poly_rectangle_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_rectangle_request_t;
+
+/** Opcode for xcb_poly_arc. */
+#define XCB_POLY_ARC 68
+
+/**
+ * @brief xcb_poly_arc_request_t
+ **/
+typedef struct xcb_poly_arc_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_arc_request_t;
+
+typedef enum xcb_poly_shape_t {
+ XCB_POLY_SHAPE_COMPLEX = 0,
+ XCB_POLY_SHAPE_NONCONVEX = 1,
+ XCB_POLY_SHAPE_CONVEX = 2
+} xcb_poly_shape_t;
+
+/** Opcode for xcb_fill_poly. */
+#define XCB_FILL_POLY 69
+
+/**
+ * @brief xcb_fill_poly_request_t
+ **/
+typedef struct xcb_fill_poly_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ uint8_t shape;
+ uint8_t coordinate_mode;
+ uint8_t pad1[2];
+} xcb_fill_poly_request_t;
+
+/** Opcode for xcb_poly_fill_rectangle. */
+#define XCB_POLY_FILL_RECTANGLE 70
+
+/**
+ * @brief xcb_poly_fill_rectangle_request_t
+ **/
+typedef struct xcb_poly_fill_rectangle_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_fill_rectangle_request_t;
+
+/** Opcode for xcb_poly_fill_arc. */
+#define XCB_POLY_FILL_ARC 71
+
+/**
+ * @brief xcb_poly_fill_arc_request_t
+ **/
+typedef struct xcb_poly_fill_arc_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+} xcb_poly_fill_arc_request_t;
+
+typedef enum xcb_image_format_t {
+ XCB_IMAGE_FORMAT_XY_BITMAP = 0,
+ XCB_IMAGE_FORMAT_XY_PIXMAP = 1,
+ XCB_IMAGE_FORMAT_Z_PIXMAP = 2
+} xcb_image_format_t;
+
+/** Opcode for xcb_put_image. */
+#define XCB_PUT_IMAGE 72
+
+/**
+ * @brief xcb_put_image_request_t
+ **/
+typedef struct xcb_put_image_request_t {
+ uint8_t major_opcode;
+ uint8_t format;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ uint16_t width;
+ uint16_t height;
+ int16_t dst_x;
+ int16_t dst_y;
+ uint8_t left_pad;
+ uint8_t depth;
+ uint8_t pad0[2];
+} xcb_put_image_request_t;
+
+/**
+ * @brief xcb_get_image_cookie_t
+ **/
+typedef struct xcb_get_image_cookie_t {
+ unsigned int sequence;
+} xcb_get_image_cookie_t;
+
+/** Opcode for xcb_get_image. */
+#define XCB_GET_IMAGE 73
+
+/**
+ * @brief xcb_get_image_request_t
+ **/
+typedef struct xcb_get_image_request_t {
+ uint8_t major_opcode;
+ uint8_t format;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ int16_t x;
+ int16_t y;
+ uint16_t width;
+ uint16_t height;
+ uint32_t plane_mask;
+} xcb_get_image_request_t;
+
+/**
+ * @brief xcb_get_image_reply_t
+ **/
+typedef struct xcb_get_image_reply_t {
+ uint8_t response_type;
+ uint8_t depth;
+ uint16_t sequence;
+ uint32_t length;
+ xcb_visualid_t visual;
+ uint8_t pad0[20];
+} xcb_get_image_reply_t;
+
+/** Opcode for xcb_poly_text_8. */
+#define XCB_POLY_TEXT_8 74
+
+/**
+ * @brief xcb_poly_text_8_request_t
+ **/
+typedef struct xcb_poly_text_8_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t x;
+ int16_t y;
+} xcb_poly_text_8_request_t;
+
+/** Opcode for xcb_poly_text_16. */
+#define XCB_POLY_TEXT_16 75
+
+/**
+ * @brief xcb_poly_text_16_request_t
+ **/
+typedef struct xcb_poly_text_16_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t x;
+ int16_t y;
+} xcb_poly_text_16_request_t;
+
+/** Opcode for xcb_image_text_8. */
+#define XCB_IMAGE_TEXT_8 76
+
+/**
+ * @brief xcb_image_text_8_request_t
+ **/
+typedef struct xcb_image_text_8_request_t {
+ uint8_t major_opcode;
+ uint8_t string_len;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t x;
+ int16_t y;
+} xcb_image_text_8_request_t;
+
+/** Opcode for xcb_image_text_16. */
+#define XCB_IMAGE_TEXT_16 77
+
+/**
+ * @brief xcb_image_text_16_request_t
+ **/
+typedef struct xcb_image_text_16_request_t {
+ uint8_t major_opcode;
+ uint8_t string_len;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t x;
+ int16_t y;
+} xcb_image_text_16_request_t;
+
+typedef enum xcb_colormap_alloc_t {
+ XCB_COLORMAP_ALLOC_NONE = 0,
+ XCB_COLORMAP_ALLOC_ALL = 1
+} xcb_colormap_alloc_t;
+
+/** Opcode for xcb_create_colormap. */
+#define XCB_CREATE_COLORMAP 78
+
+/**
+ * @brief xcb_create_colormap_request_t
+ **/
+typedef struct xcb_create_colormap_request_t {
+ uint8_t major_opcode;
+ uint8_t alloc;
+ uint16_t length;
+ xcb_colormap_t mid;
+ xcb_window_t window;
+ xcb_visualid_t visual;
+} xcb_create_colormap_request_t;
+
+/** Opcode for xcb_free_colormap. */
+#define XCB_FREE_COLORMAP 79
+
+/**
+ * @brief xcb_free_colormap_request_t
+ **/
+typedef struct xcb_free_colormap_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+} xcb_free_colormap_request_t;
+
+/** Opcode for xcb_copy_colormap_and_free. */
+#define XCB_COPY_COLORMAP_AND_FREE 80
+
+/**
+ * @brief xcb_copy_colormap_and_free_request_t
+ **/
+typedef struct xcb_copy_colormap_and_free_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t mid;
+ xcb_colormap_t src_cmap;
+} xcb_copy_colormap_and_free_request_t;
+
+/** Opcode for xcb_install_colormap. */
+#define XCB_INSTALL_COLORMAP 81
+
+/**
+ * @brief xcb_install_colormap_request_t
+ **/
+typedef struct xcb_install_colormap_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+} xcb_install_colormap_request_t;
+
+/** Opcode for xcb_uninstall_colormap. */
+#define XCB_UNINSTALL_COLORMAP 82
+
+/**
+ * @brief xcb_uninstall_colormap_request_t
+ **/
+typedef struct xcb_uninstall_colormap_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+} xcb_uninstall_colormap_request_t;
+
+/**
+ * @brief xcb_list_installed_colormaps_cookie_t
+ **/
+typedef struct xcb_list_installed_colormaps_cookie_t {
+ unsigned int sequence;
+} xcb_list_installed_colormaps_cookie_t;
+
+/** Opcode for xcb_list_installed_colormaps. */
+#define XCB_LIST_INSTALLED_COLORMAPS 83
+
+/**
+ * @brief xcb_list_installed_colormaps_request_t
+ **/
+typedef struct xcb_list_installed_colormaps_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_list_installed_colormaps_request_t;
+
+/**
+ * @brief xcb_list_installed_colormaps_reply_t
+ **/
+typedef struct xcb_list_installed_colormaps_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t cmaps_len;
+ uint8_t pad1[22];
+} xcb_list_installed_colormaps_reply_t;
+
+/**
+ * @brief xcb_alloc_color_cookie_t
+ **/
+typedef struct xcb_alloc_color_cookie_t {
+ unsigned int sequence;
+} xcb_alloc_color_cookie_t;
+
+/** Opcode for xcb_alloc_color. */
+#define XCB_ALLOC_COLOR 84
+
+/**
+ * @brief xcb_alloc_color_request_t
+ **/
+typedef struct xcb_alloc_color_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ uint8_t pad1[2];
+} xcb_alloc_color_request_t;
+
+/**
+ * @brief xcb_alloc_color_reply_t
+ **/
+typedef struct xcb_alloc_color_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ uint8_t pad1[2];
+ uint32_t pixel;
+} xcb_alloc_color_reply_t;
+
+/**
+ * @brief xcb_alloc_named_color_cookie_t
+ **/
+typedef struct xcb_alloc_named_color_cookie_t {
+ unsigned int sequence;
+} xcb_alloc_named_color_cookie_t;
+
+/** Opcode for xcb_alloc_named_color. */
+#define XCB_ALLOC_NAMED_COLOR 85
+
+/**
+ * @brief xcb_alloc_named_color_request_t
+ **/
+typedef struct xcb_alloc_named_color_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint16_t name_len;
+ uint8_t pad1[2];
+} xcb_alloc_named_color_request_t;
+
+/**
+ * @brief xcb_alloc_named_color_reply_t
+ **/
+typedef struct xcb_alloc_named_color_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t pixel;
+ uint16_t exact_red;
+ uint16_t exact_green;
+ uint16_t exact_blue;
+ uint16_t visual_red;
+ uint16_t visual_green;
+ uint16_t visual_blue;
+} xcb_alloc_named_color_reply_t;
+
+/**
+ * @brief xcb_alloc_color_cells_cookie_t
+ **/
+typedef struct xcb_alloc_color_cells_cookie_t {
+ unsigned int sequence;
+} xcb_alloc_color_cells_cookie_t;
+
+/** Opcode for xcb_alloc_color_cells. */
+#define XCB_ALLOC_COLOR_CELLS 86
+
+/**
+ * @brief xcb_alloc_color_cells_request_t
+ **/
+typedef struct xcb_alloc_color_cells_request_t {
+ uint8_t major_opcode;
+ uint8_t contiguous;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint16_t colors;
+ uint16_t planes;
+} xcb_alloc_color_cells_request_t;
+
+/**
+ * @brief xcb_alloc_color_cells_reply_t
+ **/
+typedef struct xcb_alloc_color_cells_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t pixels_len;
+ uint16_t masks_len;
+ uint8_t pad1[20];
+} xcb_alloc_color_cells_reply_t;
+
+/**
+ * @brief xcb_alloc_color_planes_cookie_t
+ **/
+typedef struct xcb_alloc_color_planes_cookie_t {
+ unsigned int sequence;
+} xcb_alloc_color_planes_cookie_t;
+
+/** Opcode for xcb_alloc_color_planes. */
+#define XCB_ALLOC_COLOR_PLANES 87
+
+/**
+ * @brief xcb_alloc_color_planes_request_t
+ **/
+typedef struct xcb_alloc_color_planes_request_t {
+ uint8_t major_opcode;
+ uint8_t contiguous;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint16_t colors;
+ uint16_t reds;
+ uint16_t greens;
+ uint16_t blues;
+} xcb_alloc_color_planes_request_t;
+
+/**
+ * @brief xcb_alloc_color_planes_reply_t
+ **/
+typedef struct xcb_alloc_color_planes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t pixels_len;
+ uint8_t pad1[2];
+ uint32_t red_mask;
+ uint32_t green_mask;
+ uint32_t blue_mask;
+ uint8_t pad2[8];
+} xcb_alloc_color_planes_reply_t;
+
+/** Opcode for xcb_free_colors. */
+#define XCB_FREE_COLORS 88
+
+/**
+ * @brief xcb_free_colors_request_t
+ **/
+typedef struct xcb_free_colors_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint32_t plane_mask;
+} xcb_free_colors_request_t;
+
+typedef enum xcb_color_flag_t {
+ XCB_COLOR_FLAG_RED = 1,
+ XCB_COLOR_FLAG_GREEN = 2,
+ XCB_COLOR_FLAG_BLUE = 4
+} xcb_color_flag_t;
+
+/**
+ * @brief xcb_coloritem_t
+ **/
+typedef struct xcb_coloritem_t {
+ uint32_t pixel;
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ uint8_t flags;
+ uint8_t pad0;
+} xcb_coloritem_t;
+
+/**
+ * @brief xcb_coloritem_iterator_t
+ **/
+typedef struct xcb_coloritem_iterator_t {
+ xcb_coloritem_t *data;
+ int rem;
+ int index;
+} xcb_coloritem_iterator_t;
+
+/** Opcode for xcb_store_colors. */
+#define XCB_STORE_COLORS 89
+
+/**
+ * @brief xcb_store_colors_request_t
+ **/
+typedef struct xcb_store_colors_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+} xcb_store_colors_request_t;
+
+/** Opcode for xcb_store_named_color. */
+#define XCB_STORE_NAMED_COLOR 90
+
+/**
+ * @brief xcb_store_named_color_request_t
+ **/
+typedef struct xcb_store_named_color_request_t {
+ uint8_t major_opcode;
+ uint8_t flags;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint32_t pixel;
+ uint16_t name_len;
+ uint8_t pad0[2];
+} xcb_store_named_color_request_t;
+
+/**
+ * @brief xcb_rgb_t
+ **/
+typedef struct xcb_rgb_t {
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ uint8_t pad0[2];
+} xcb_rgb_t;
+
+/**
+ * @brief xcb_rgb_iterator_t
+ **/
+typedef struct xcb_rgb_iterator_t {
+ xcb_rgb_t *data;
+ int rem;
+ int index;
+} xcb_rgb_iterator_t;
+
+/**
+ * @brief xcb_query_colors_cookie_t
+ **/
+typedef struct xcb_query_colors_cookie_t {
+ unsigned int sequence;
+} xcb_query_colors_cookie_t;
+
+/** Opcode for xcb_query_colors. */
+#define XCB_QUERY_COLORS 91
+
+/**
+ * @brief xcb_query_colors_request_t
+ **/
+typedef struct xcb_query_colors_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+} xcb_query_colors_request_t;
+
+/**
+ * @brief xcb_query_colors_reply_t
+ **/
+typedef struct xcb_query_colors_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t colors_len;
+ uint8_t pad1[22];
+} xcb_query_colors_reply_t;
+
+/**
+ * @brief xcb_lookup_color_cookie_t
+ **/
+typedef struct xcb_lookup_color_cookie_t {
+ unsigned int sequence;
+} xcb_lookup_color_cookie_t;
+
+/** Opcode for xcb_lookup_color. */
+#define XCB_LOOKUP_COLOR 92
+
+/**
+ * @brief xcb_lookup_color_request_t
+ **/
+typedef struct xcb_lookup_color_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_colormap_t cmap;
+ uint16_t name_len;
+ uint8_t pad1[2];
+} xcb_lookup_color_request_t;
+
+/**
+ * @brief xcb_lookup_color_reply_t
+ **/
+typedef struct xcb_lookup_color_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t exact_red;
+ uint16_t exact_green;
+ uint16_t exact_blue;
+ uint16_t visual_red;
+ uint16_t visual_green;
+ uint16_t visual_blue;
+} xcb_lookup_color_reply_t;
+
+typedef enum xcb_pixmap_enum_t {
+ XCB_PIXMAP_NONE = 0
+} xcb_pixmap_enum_t;
+
+/** Opcode for xcb_create_cursor. */
+#define XCB_CREATE_CURSOR 93
+
+/**
+ * @brief xcb_create_cursor_request_t
+ **/
+typedef struct xcb_create_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_cursor_t cid;
+ xcb_pixmap_t source;
+ xcb_pixmap_t mask;
+ uint16_t fore_red;
+ uint16_t fore_green;
+ uint16_t fore_blue;
+ uint16_t back_red;
+ uint16_t back_green;
+ uint16_t back_blue;
+ uint16_t x;
+ uint16_t y;
+} xcb_create_cursor_request_t;
+
+typedef enum xcb_font_enum_t {
+ XCB_FONT_NONE = 0
+} xcb_font_enum_t;
+
+/** Opcode for xcb_create_glyph_cursor. */
+#define XCB_CREATE_GLYPH_CURSOR 94
+
+/**
+ * @brief xcb_create_glyph_cursor_request_t
+ **/
+typedef struct xcb_create_glyph_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_cursor_t cid;
+ xcb_font_t source_font;
+ xcb_font_t mask_font;
+ uint16_t source_char;
+ uint16_t mask_char;
+ uint16_t fore_red;
+ uint16_t fore_green;
+ uint16_t fore_blue;
+ uint16_t back_red;
+ uint16_t back_green;
+ uint16_t back_blue;
+} xcb_create_glyph_cursor_request_t;
+
+/** Opcode for xcb_free_cursor. */
+#define XCB_FREE_CURSOR 95
+
+/**
+ * @brief xcb_free_cursor_request_t
+ **/
+typedef struct xcb_free_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_cursor_t cursor;
+} xcb_free_cursor_request_t;
+
+/** Opcode for xcb_recolor_cursor. */
+#define XCB_RECOLOR_CURSOR 96
+
+/**
+ * @brief xcb_recolor_cursor_request_t
+ **/
+typedef struct xcb_recolor_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_cursor_t cursor;
+ uint16_t fore_red;
+ uint16_t fore_green;
+ uint16_t fore_blue;
+ uint16_t back_red;
+ uint16_t back_green;
+ uint16_t back_blue;
+} xcb_recolor_cursor_request_t;
+
+typedef enum xcb_query_shape_of_t {
+ XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0,
+ XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1,
+ XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
+} xcb_query_shape_of_t;
+
+/**
+ * @brief xcb_query_best_size_cookie_t
+ **/
+typedef struct xcb_query_best_size_cookie_t {
+ unsigned int sequence;
+} xcb_query_best_size_cookie_t;
+
+/** Opcode for xcb_query_best_size. */
+#define XCB_QUERY_BEST_SIZE 97
+
+/**
+ * @brief xcb_query_best_size_request_t
+ **/
+typedef struct xcb_query_best_size_request_t {
+ uint8_t major_opcode;
+ uint8_t _class;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint16_t width;
+ uint16_t height;
+} xcb_query_best_size_request_t;
+
+/**
+ * @brief xcb_query_best_size_reply_t
+ **/
+typedef struct xcb_query_best_size_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t width;
+ uint16_t height;
+} xcb_query_best_size_reply_t;
+
+/**
+ * @brief xcb_query_extension_cookie_t
+ **/
+typedef struct xcb_query_extension_cookie_t {
+ unsigned int sequence;
+} xcb_query_extension_cookie_t;
+
+/** Opcode for xcb_query_extension. */
+#define XCB_QUERY_EXTENSION 98
+
+/**
+ * @brief xcb_query_extension_request_t
+ **/
+typedef struct xcb_query_extension_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ uint16_t name_len;
+ uint8_t pad1[2];
+} xcb_query_extension_request_t;
+
+/**
+ * @brief xcb_query_extension_reply_t
+ **/
+typedef struct xcb_query_extension_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t present;
+ uint8_t major_opcode;
+ uint8_t first_event;
+ uint8_t first_error;
+} xcb_query_extension_reply_t;
+
+/**
+ * @brief xcb_list_extensions_cookie_t
+ **/
+typedef struct xcb_list_extensions_cookie_t {
+ unsigned int sequence;
+} xcb_list_extensions_cookie_t;
+
+/** Opcode for xcb_list_extensions. */
+#define XCB_LIST_EXTENSIONS 99
+
+/**
+ * @brief xcb_list_extensions_request_t
+ **/
+typedef struct xcb_list_extensions_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_list_extensions_request_t;
+
+/**
+ * @brief xcb_list_extensions_reply_t
+ **/
+typedef struct xcb_list_extensions_reply_t {
+ uint8_t response_type;
+ uint8_t names_len;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_list_extensions_reply_t;
+
+/** Opcode for xcb_change_keyboard_mapping. */
+#define XCB_CHANGE_KEYBOARD_MAPPING 100
+
+/**
+ * @brief xcb_change_keyboard_mapping_request_t
+ **/
+typedef struct xcb_change_keyboard_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t keycode_count;
+ uint16_t length;
+ xcb_keycode_t first_keycode;
+ uint8_t keysyms_per_keycode;
+ uint8_t pad0[2];
+} xcb_change_keyboard_mapping_request_t;
+
+/**
+ * @brief xcb_get_keyboard_mapping_cookie_t
+ **/
+typedef struct xcb_get_keyboard_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_get_keyboard_mapping_cookie_t;
+
+/** Opcode for xcb_get_keyboard_mapping. */
+#define XCB_GET_KEYBOARD_MAPPING 101
+
+/**
+ * @brief xcb_get_keyboard_mapping_request_t
+ **/
+typedef struct xcb_get_keyboard_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_keycode_t first_keycode;
+ uint8_t count;
+} xcb_get_keyboard_mapping_request_t;
+
+/**
+ * @brief xcb_get_keyboard_mapping_reply_t
+ **/
+typedef struct xcb_get_keyboard_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t keysyms_per_keycode;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_get_keyboard_mapping_reply_t;
+
+typedef enum xcb_kb_t {
+ XCB_KB_KEY_CLICK_PERCENT = 1,
+ XCB_KB_BELL_PERCENT = 2,
+ XCB_KB_BELL_PITCH = 4,
+ XCB_KB_BELL_DURATION = 8,
+ XCB_KB_LED = 16,
+ XCB_KB_LED_MODE = 32,
+ XCB_KB_KEY = 64,
+ XCB_KB_AUTO_REPEAT_MODE = 128
+} xcb_kb_t;
+
+typedef enum xcb_led_mode_t {
+ XCB_LED_MODE_OFF = 0,
+ XCB_LED_MODE_ON = 1
+} xcb_led_mode_t;
+
+typedef enum xcb_auto_repeat_mode_t {
+ XCB_AUTO_REPEAT_MODE_OFF = 0,
+ XCB_AUTO_REPEAT_MODE_ON = 1,
+ XCB_AUTO_REPEAT_MODE_DEFAULT = 2
+} xcb_auto_repeat_mode_t;
+
+/**
+ * @brief xcb_change_keyboard_control_value_list_t
+ **/
+typedef struct xcb_change_keyboard_control_value_list_t {
+ int32_t key_click_percent;
+ int32_t bell_percent;
+ int32_t bell_pitch;
+ int32_t bell_duration;
+ uint32_t led;
+ uint32_t led_mode;
+ xcb_keycode32_t key;
+ uint32_t auto_repeat_mode;
+} xcb_change_keyboard_control_value_list_t;
+
+/** Opcode for xcb_change_keyboard_control. */
+#define XCB_CHANGE_KEYBOARD_CONTROL 102
+
+/**
+ * @brief xcb_change_keyboard_control_request_t
+ **/
+typedef struct xcb_change_keyboard_control_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ uint32_t value_mask;
+} xcb_change_keyboard_control_request_t;
+
+/**
+ * @brief xcb_get_keyboard_control_cookie_t
+ **/
+typedef struct xcb_get_keyboard_control_cookie_t {
+ unsigned int sequence;
+} xcb_get_keyboard_control_cookie_t;
+
+/** Opcode for xcb_get_keyboard_control. */
+#define XCB_GET_KEYBOARD_CONTROL 103
+
+/**
+ * @brief xcb_get_keyboard_control_request_t
+ **/
+typedef struct xcb_get_keyboard_control_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_keyboard_control_request_t;
+
+/**
+ * @brief xcb_get_keyboard_control_reply_t
+ **/
+typedef struct xcb_get_keyboard_control_reply_t {
+ uint8_t response_type;
+ uint8_t global_auto_repeat;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t led_mask;
+ uint8_t key_click_percent;
+ uint8_t bell_percent;
+ uint16_t bell_pitch;
+ uint16_t bell_duration;
+ uint8_t pad0[2];
+ uint8_t auto_repeats[32];
+} xcb_get_keyboard_control_reply_t;
+
+/** Opcode for xcb_bell. */
+#define XCB_BELL 104
+
+/**
+ * @brief xcb_bell_request_t
+ **/
+typedef struct xcb_bell_request_t {
+ uint8_t major_opcode;
+ int8_t percent;
+ uint16_t length;
+} xcb_bell_request_t;
+
+/** Opcode for xcb_change_pointer_control. */
+#define XCB_CHANGE_POINTER_CONTROL 105
+
+/**
+ * @brief xcb_change_pointer_control_request_t
+ **/
+typedef struct xcb_change_pointer_control_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ int16_t acceleration_numerator;
+ int16_t acceleration_denominator;
+ int16_t threshold;
+ uint8_t do_acceleration;
+ uint8_t do_threshold;
+} xcb_change_pointer_control_request_t;
+
+/**
+ * @brief xcb_get_pointer_control_cookie_t
+ **/
+typedef struct xcb_get_pointer_control_cookie_t {
+ unsigned int sequence;
+} xcb_get_pointer_control_cookie_t;
+
+/** Opcode for xcb_get_pointer_control. */
+#define XCB_GET_POINTER_CONTROL 106
+
+/**
+ * @brief xcb_get_pointer_control_request_t
+ **/
+typedef struct xcb_get_pointer_control_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_pointer_control_request_t;
+
+/**
+ * @brief xcb_get_pointer_control_reply_t
+ **/
+typedef struct xcb_get_pointer_control_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t acceleration_numerator;
+ uint16_t acceleration_denominator;
+ uint16_t threshold;
+ uint8_t pad1[18];
+} xcb_get_pointer_control_reply_t;
+
+typedef enum xcb_blanking_t {
+ XCB_BLANKING_NOT_PREFERRED = 0,
+ XCB_BLANKING_PREFERRED = 1,
+ XCB_BLANKING_DEFAULT = 2
+} xcb_blanking_t;
+
+typedef enum xcb_exposures_t {
+ XCB_EXPOSURES_NOT_ALLOWED = 0,
+ XCB_EXPOSURES_ALLOWED = 1,
+ XCB_EXPOSURES_DEFAULT = 2
+} xcb_exposures_t;
+
+/** Opcode for xcb_set_screen_saver. */
+#define XCB_SET_SCREEN_SAVER 107
+
+/**
+ * @brief xcb_set_screen_saver_request_t
+ **/
+typedef struct xcb_set_screen_saver_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ int16_t timeout;
+ int16_t interval;
+ uint8_t prefer_blanking;
+ uint8_t allow_exposures;
+} xcb_set_screen_saver_request_t;
+
+/**
+ * @brief xcb_get_screen_saver_cookie_t
+ **/
+typedef struct xcb_get_screen_saver_cookie_t {
+ unsigned int sequence;
+} xcb_get_screen_saver_cookie_t;
+
+/** Opcode for xcb_get_screen_saver. */
+#define XCB_GET_SCREEN_SAVER 108
+
+/**
+ * @brief xcb_get_screen_saver_request_t
+ **/
+typedef struct xcb_get_screen_saver_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_screen_saver_request_t;
+
+/**
+ * @brief xcb_get_screen_saver_reply_t
+ **/
+typedef struct xcb_get_screen_saver_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t timeout;
+ uint16_t interval;
+ uint8_t prefer_blanking;
+ uint8_t allow_exposures;
+ uint8_t pad1[18];
+} xcb_get_screen_saver_reply_t;
+
+typedef enum xcb_host_mode_t {
+ XCB_HOST_MODE_INSERT = 0,
+ XCB_HOST_MODE_DELETE = 1
+} xcb_host_mode_t;
+
+typedef enum xcb_family_t {
+ XCB_FAMILY_INTERNET = 0,
+ XCB_FAMILY_DECNET = 1,
+ XCB_FAMILY_CHAOS = 2,
+ XCB_FAMILY_SERVER_INTERPRETED = 5,
+ XCB_FAMILY_INTERNET_6 = 6
+} xcb_family_t;
+
+/** Opcode for xcb_change_hosts. */
+#define XCB_CHANGE_HOSTS 109
+
+/**
+ * @brief xcb_change_hosts_request_t
+ **/
+typedef struct xcb_change_hosts_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+ uint8_t family;
+ uint8_t pad0;
+ uint16_t address_len;
+} xcb_change_hosts_request_t;
+
+/**
+ * @brief xcb_host_t
+ **/
+typedef struct xcb_host_t {
+ uint8_t family;
+ uint8_t pad0;
+ uint16_t address_len;
+} xcb_host_t;
+
+/**
+ * @brief xcb_host_iterator_t
+ **/
+typedef struct xcb_host_iterator_t {
+ xcb_host_t *data;
+ int rem;
+ int index;
+} xcb_host_iterator_t;
+
+/**
+ * @brief xcb_list_hosts_cookie_t
+ **/
+typedef struct xcb_list_hosts_cookie_t {
+ unsigned int sequence;
+} xcb_list_hosts_cookie_t;
+
+/** Opcode for xcb_list_hosts. */
+#define XCB_LIST_HOSTS 110
+
+/**
+ * @brief xcb_list_hosts_request_t
+ **/
+typedef struct xcb_list_hosts_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_list_hosts_request_t;
+
+/**
+ * @brief xcb_list_hosts_reply_t
+ **/
+typedef struct xcb_list_hosts_reply_t {
+ uint8_t response_type;
+ uint8_t mode;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t hosts_len;
+ uint8_t pad0[22];
+} xcb_list_hosts_reply_t;
+
+typedef enum xcb_access_control_t {
+ XCB_ACCESS_CONTROL_DISABLE = 0,
+ XCB_ACCESS_CONTROL_ENABLE = 1
+} xcb_access_control_t;
+
+/** Opcode for xcb_set_access_control. */
+#define XCB_SET_ACCESS_CONTROL 111
+
+/**
+ * @brief xcb_set_access_control_request_t
+ **/
+typedef struct xcb_set_access_control_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+} xcb_set_access_control_request_t;
+
+typedef enum xcb_close_down_t {
+ XCB_CLOSE_DOWN_DESTROY_ALL = 0,
+ XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1,
+ XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
+} xcb_close_down_t;
+
+/** Opcode for xcb_set_close_down_mode. */
+#define XCB_SET_CLOSE_DOWN_MODE 112
+
+/**
+ * @brief xcb_set_close_down_mode_request_t
+ **/
+typedef struct xcb_set_close_down_mode_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+} xcb_set_close_down_mode_request_t;
+
+typedef enum xcb_kill_t {
+ XCB_KILL_ALL_TEMPORARY = 0
+} xcb_kill_t;
+
+/** Opcode for xcb_kill_client. */
+#define XCB_KILL_CLIENT 113
+
+/**
+ * @brief xcb_kill_client_request_t
+ **/
+typedef struct xcb_kill_client_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ uint32_t resource;
+} xcb_kill_client_request_t;
+
+/** Opcode for xcb_rotate_properties. */
+#define XCB_ROTATE_PROPERTIES 114
+
+/**
+ * @brief xcb_rotate_properties_request_t
+ **/
+typedef struct xcb_rotate_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+ xcb_window_t window;
+ uint16_t atoms_len;
+ int16_t delta;
+} xcb_rotate_properties_request_t;
+
+typedef enum xcb_screen_saver_t {
+ XCB_SCREEN_SAVER_RESET = 0,
+ XCB_SCREEN_SAVER_ACTIVE = 1
+} xcb_screen_saver_t;
+
+/** Opcode for xcb_force_screen_saver. */
+#define XCB_FORCE_SCREEN_SAVER 115
+
+/**
+ * @brief xcb_force_screen_saver_request_t
+ **/
+typedef struct xcb_force_screen_saver_request_t {
+ uint8_t major_opcode;
+ uint8_t mode;
+ uint16_t length;
+} xcb_force_screen_saver_request_t;
+
+typedef enum xcb_mapping_status_t {
+ XCB_MAPPING_STATUS_SUCCESS = 0,
+ XCB_MAPPING_STATUS_BUSY = 1,
+ XCB_MAPPING_STATUS_FAILURE = 2
+} xcb_mapping_status_t;
+
+/**
+ * @brief xcb_set_pointer_mapping_cookie_t
+ **/
+typedef struct xcb_set_pointer_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_set_pointer_mapping_cookie_t;
+
+/** Opcode for xcb_set_pointer_mapping. */
+#define XCB_SET_POINTER_MAPPING 116
+
+/**
+ * @brief xcb_set_pointer_mapping_request_t
+ **/
+typedef struct xcb_set_pointer_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t map_len;
+ uint16_t length;
+} xcb_set_pointer_mapping_request_t;
+
+/**
+ * @brief xcb_set_pointer_mapping_reply_t
+ **/
+typedef struct xcb_set_pointer_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_set_pointer_mapping_reply_t;
+
+/**
+ * @brief xcb_get_pointer_mapping_cookie_t
+ **/
+typedef struct xcb_get_pointer_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_get_pointer_mapping_cookie_t;
+
+/** Opcode for xcb_get_pointer_mapping. */
+#define XCB_GET_POINTER_MAPPING 117
+
+/**
+ * @brief xcb_get_pointer_mapping_request_t
+ **/
+typedef struct xcb_get_pointer_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_pointer_mapping_request_t;
+
+/**
+ * @brief xcb_get_pointer_mapping_reply_t
+ **/
+typedef struct xcb_get_pointer_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t map_len;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_get_pointer_mapping_reply_t;
+
+typedef enum xcb_map_index_t {
+ XCB_MAP_INDEX_SHIFT = 0,
+ XCB_MAP_INDEX_LOCK = 1,
+ XCB_MAP_INDEX_CONTROL = 2,
+ XCB_MAP_INDEX_1 = 3,
+ XCB_MAP_INDEX_2 = 4,
+ XCB_MAP_INDEX_3 = 5,
+ XCB_MAP_INDEX_4 = 6,
+ XCB_MAP_INDEX_5 = 7
+} xcb_map_index_t;
+
+/**
+ * @brief xcb_set_modifier_mapping_cookie_t
+ **/
+typedef struct xcb_set_modifier_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_set_modifier_mapping_cookie_t;
+
+/** Opcode for xcb_set_modifier_mapping. */
+#define XCB_SET_MODIFIER_MAPPING 118
+
+/**
+ * @brief xcb_set_modifier_mapping_request_t
+ **/
+typedef struct xcb_set_modifier_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t keycodes_per_modifier;
+ uint16_t length;
+} xcb_set_modifier_mapping_request_t;
+
+/**
+ * @brief xcb_set_modifier_mapping_reply_t
+ **/
+typedef struct xcb_set_modifier_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t status;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_set_modifier_mapping_reply_t;
+
+/**
+ * @brief xcb_get_modifier_mapping_cookie_t
+ **/
+typedef struct xcb_get_modifier_mapping_cookie_t {
+ unsigned int sequence;
+} xcb_get_modifier_mapping_cookie_t;
+
+/** Opcode for xcb_get_modifier_mapping. */
+#define XCB_GET_MODIFIER_MAPPING 119
+
+/**
+ * @brief xcb_get_modifier_mapping_request_t
+ **/
+typedef struct xcb_get_modifier_mapping_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_get_modifier_mapping_request_t;
+
+/**
+ * @brief xcb_get_modifier_mapping_reply_t
+ **/
+typedef struct xcb_get_modifier_mapping_reply_t {
+ uint8_t response_type;
+ uint8_t keycodes_per_modifier;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad0[24];
+} xcb_get_modifier_mapping_reply_t;
+
+/** Opcode for xcb_no_operation. */
+#define XCB_NO_OPERATION 127
+
+/**
+ * @brief xcb_no_operation_request_t
+ **/
+typedef struct xcb_no_operation_request_t {
+ uint8_t major_opcode;
+ uint8_t pad0;
+ uint16_t length;
+} xcb_no_operation_request_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_char2b_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_char2b_t)
+ */
+void
+xcb_char2b_next (xcb_char2b_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_char2b_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_char2b_end (xcb_char2b_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_window_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_window_t)
+ */
+void
+xcb_window_next (xcb_window_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_window_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_window_end (xcb_window_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_pixmap_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_pixmap_t)
+ */
+void
+xcb_pixmap_next (xcb_pixmap_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_pixmap_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_pixmap_end (xcb_pixmap_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_cursor_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_cursor_t)
+ */
+void
+xcb_cursor_next (xcb_cursor_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_cursor_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_cursor_end (xcb_cursor_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_font_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_font_t)
+ */
+void
+xcb_font_next (xcb_font_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_font_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_font_end (xcb_font_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_gcontext_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_gcontext_t)
+ */
+void
+xcb_gcontext_next (xcb_gcontext_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_gcontext_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_gcontext_end (xcb_gcontext_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_colormap_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_colormap_t)
+ */
+void
+xcb_colormap_next (xcb_colormap_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_colormap_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_colormap_end (xcb_colormap_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_atom_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_atom_t)
+ */
+void
+xcb_atom_next (xcb_atom_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_atom_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_atom_end (xcb_atom_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_drawable_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_drawable_t)
+ */
+void
+xcb_drawable_next (xcb_drawable_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_drawable_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_drawable_end (xcb_drawable_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_fontable_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_fontable_t)
+ */
+void
+xcb_fontable_next (xcb_fontable_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_fontable_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_fontable_end (xcb_fontable_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_bool32_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_bool32_t)
+ */
+void
+xcb_bool32_next (xcb_bool32_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_bool32_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_bool32_end (xcb_bool32_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_visualid_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_visualid_t)
+ */
+void
+xcb_visualid_next (xcb_visualid_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_visualid_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_visualid_end (xcb_visualid_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_timestamp_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_timestamp_t)
+ */
+void
+xcb_timestamp_next (xcb_timestamp_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_timestamp_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_timestamp_end (xcb_timestamp_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_keysym_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_keysym_t)
+ */
+void
+xcb_keysym_next (xcb_keysym_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_keysym_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_keysym_end (xcb_keysym_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_keycode_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_keycode_t)
+ */
+void
+xcb_keycode_next (xcb_keycode_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_keycode_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_keycode_end (xcb_keycode_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_keycode32_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_keycode32_t)
+ */
+void
+xcb_keycode32_next (xcb_keycode32_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_keycode32_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_keycode32_end (xcb_keycode32_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_button_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_button_t)
+ */
+void
+xcb_button_next (xcb_button_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_button_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_button_end (xcb_button_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_point_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_point_t)
+ */
+void
+xcb_point_next (xcb_point_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_point_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_point_end (xcb_point_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_rectangle_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_rectangle_t)
+ */
+void
+xcb_rectangle_next (xcb_rectangle_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_rectangle_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_rectangle_end (xcb_rectangle_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_arc_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_arc_t)
+ */
+void
+xcb_arc_next (xcb_arc_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_arc_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_arc_end (xcb_arc_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_format_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_format_t)
+ */
+void
+xcb_format_next (xcb_format_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_format_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_format_end (xcb_format_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_visualtype_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_visualtype_t)
+ */
+void
+xcb_visualtype_next (xcb_visualtype_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_visualtype_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_visualtype_end (xcb_visualtype_iterator_t i);
+
+int
+xcb_depth_sizeof (const void *_buffer);
+
+xcb_visualtype_t *
+xcb_depth_visuals (const xcb_depth_t *R);
+
+int
+xcb_depth_visuals_length (const xcb_depth_t *R);
+
+xcb_visualtype_iterator_t
+xcb_depth_visuals_iterator (const xcb_depth_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_depth_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_depth_t)
+ */
+void
+xcb_depth_next (xcb_depth_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_depth_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_depth_end (xcb_depth_iterator_t i);
+
+int
+xcb_screen_sizeof (const void *_buffer);
+
+int
+xcb_screen_allowed_depths_length (const xcb_screen_t *R);
+
+xcb_depth_iterator_t
+xcb_screen_allowed_depths_iterator (const xcb_screen_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_screen_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_screen_t)
+ */
+void
+xcb_screen_next (xcb_screen_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_screen_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_screen_end (xcb_screen_iterator_t i);
+
+int
+xcb_setup_request_sizeof (const void *_buffer);
+
+char *
+xcb_setup_request_authorization_protocol_name (const xcb_setup_request_t *R);
+
+int
+xcb_setup_request_authorization_protocol_name_length (const xcb_setup_request_t *R);
+
+xcb_generic_iterator_t
+xcb_setup_request_authorization_protocol_name_end (const xcb_setup_request_t *R);
+
+char *
+xcb_setup_request_authorization_protocol_data (const xcb_setup_request_t *R);
+
+int
+xcb_setup_request_authorization_protocol_data_length (const xcb_setup_request_t *R);
+
+xcb_generic_iterator_t
+xcb_setup_request_authorization_protocol_data_end (const xcb_setup_request_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_setup_request_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_setup_request_t)
+ */
+void
+xcb_setup_request_next (xcb_setup_request_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_setup_request_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_setup_request_end (xcb_setup_request_iterator_t i);
+
+int
+xcb_setup_failed_sizeof (const void *_buffer);
+
+char *
+xcb_setup_failed_reason (const xcb_setup_failed_t *R);
+
+int
+xcb_setup_failed_reason_length (const xcb_setup_failed_t *R);
+
+xcb_generic_iterator_t
+xcb_setup_failed_reason_end (const xcb_setup_failed_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_setup_failed_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_setup_failed_t)
+ */
+void
+xcb_setup_failed_next (xcb_setup_failed_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_setup_failed_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_setup_failed_end (xcb_setup_failed_iterator_t i);
+
+int
+xcb_setup_authenticate_sizeof (const void *_buffer);
+
+char *
+xcb_setup_authenticate_reason (const xcb_setup_authenticate_t *R);
+
+int
+xcb_setup_authenticate_reason_length (const xcb_setup_authenticate_t *R);
+
+xcb_generic_iterator_t
+xcb_setup_authenticate_reason_end (const xcb_setup_authenticate_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_setup_authenticate_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_setup_authenticate_t)
+ */
+void
+xcb_setup_authenticate_next (xcb_setup_authenticate_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_setup_authenticate_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_setup_authenticate_end (xcb_setup_authenticate_iterator_t i);
+
+int
+xcb_setup_sizeof (const void *_buffer);
+
+char *
+xcb_setup_vendor (const xcb_setup_t *R);
+
+int
+xcb_setup_vendor_length (const xcb_setup_t *R);
+
+xcb_generic_iterator_t
+xcb_setup_vendor_end (const xcb_setup_t *R);
+
+xcb_format_t *
+xcb_setup_pixmap_formats (const xcb_setup_t *R);
+
+int
+xcb_setup_pixmap_formats_length (const xcb_setup_t *R);
+
+xcb_format_iterator_t
+xcb_setup_pixmap_formats_iterator (const xcb_setup_t *R);
+
+int
+xcb_setup_roots_length (const xcb_setup_t *R);
+
+xcb_screen_iterator_t
+xcb_setup_roots_iterator (const xcb_setup_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_setup_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_setup_t)
+ */
+void
+xcb_setup_next (xcb_setup_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_setup_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_setup_end (xcb_setup_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_client_message_data_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_client_message_data_t)
+ */
+void
+xcb_client_message_data_next (xcb_client_message_data_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_client_message_data_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_client_message_data_end (xcb_client_message_data_iterator_t i);
+
+int
+xcb_create_window_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_create_window_value_list_t *_aux);
+
+int
+xcb_create_window_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_create_window_value_list_t *_aux);
+
+int
+xcb_create_window_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_create_window_sizeof (const void *_buffer);
+
+/**
+ * @brief Creates a window
+ *
+ * @param c The connection
+ * @param depth Specifies the new window's depth (TODO: what unit?).
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
+ * \a parent window.
+ * @param wid The ID with which you will refer to the new window, created by
+ * `xcb_generate_id`.
+ * @param parent The parent window of the new window.
+ * @param x The X coordinate of the new window.
+ * @param y The Y coordinate of the new window.
+ * @param width The width of the new window.
+ * @param height The height of the new window.
+ * @param border_width TODO:
+ * \n
+ * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
+ * @param _class A bitmask of #xcb_window_class_t values.
+ * @param _class \n
+ * @param visual Specifies the id for the new window's visual.
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
+ * \a parent window.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @return A cookie
+ *
+ * Creates an unmapped window as child of the specified \a parent window. A
+ * CreateNotify event will be generated. The new window is placed on top in the
+ * stacking order with respect to siblings.
+ *
+ * The coordinate system has the X axis horizontal and the Y axis vertical with
+ * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
+ * of pixels, and coincide with pixel centers. Each window and pixmap has its own
+ * coordinate system. For a window, the origin is inside the border at the inside,
+ * upper-left corner.
+ *
+ * The created window is not yet displayed (mapped), call `xcb_map_window` to
+ * display it.
+ *
+ * The created window will initially use the same cursor as its parent.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_window_checked (xcb_connection_t *c,
+ uint8_t depth,
+ xcb_window_t wid,
+ xcb_window_t parent,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint16_t _class,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief Creates a window
+ *
+ * @param c The connection
+ * @param depth Specifies the new window's depth (TODO: what unit?).
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
+ * \a parent window.
+ * @param wid The ID with which you will refer to the new window, created by
+ * `xcb_generate_id`.
+ * @param parent The parent window of the new window.
+ * @param x The X coordinate of the new window.
+ * @param y The Y coordinate of the new window.
+ * @param width The width of the new window.
+ * @param height The height of the new window.
+ * @param border_width TODO:
+ * \n
+ * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
+ * @param _class A bitmask of #xcb_window_class_t values.
+ * @param _class \n
+ * @param visual Specifies the id for the new window's visual.
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
+ * \a parent window.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @return A cookie
+ *
+ * Creates an unmapped window as child of the specified \a parent window. A
+ * CreateNotify event will be generated. The new window is placed on top in the
+ * stacking order with respect to siblings.
+ *
+ * The coordinate system has the X axis horizontal and the Y axis vertical with
+ * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
+ * of pixels, and coincide with pixel centers. Each window and pixmap has its own
+ * coordinate system. For a window, the origin is inside the border at the inside,
+ * upper-left corner.
+ *
+ * The created window is not yet displayed (mapped), call `xcb_map_window` to
+ * display it.
+ *
+ * The created window will initially use the same cursor as its parent.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_window (xcb_connection_t *c,
+ uint8_t depth,
+ xcb_window_t wid,
+ xcb_window_t parent,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint16_t _class,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief Creates a window
+ *
+ * @param c The connection
+ * @param depth Specifies the new window's depth (TODO: what unit?).
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
+ * \a parent window.
+ * @param wid The ID with which you will refer to the new window, created by
+ * `xcb_generate_id`.
+ * @param parent The parent window of the new window.
+ * @param x The X coordinate of the new window.
+ * @param y The Y coordinate of the new window.
+ * @param width The width of the new window.
+ * @param height The height of the new window.
+ * @param border_width TODO:
+ * \n
+ * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
+ * @param _class A bitmask of #xcb_window_class_t values.
+ * @param _class \n
+ * @param visual Specifies the id for the new window's visual.
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
+ * \a parent window.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @return A cookie
+ *
+ * Creates an unmapped window as child of the specified \a parent window. A
+ * CreateNotify event will be generated. The new window is placed on top in the
+ * stacking order with respect to siblings.
+ *
+ * The coordinate system has the X axis horizontal and the Y axis vertical with
+ * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
+ * of pixels, and coincide with pixel centers. Each window and pixmap has its own
+ * coordinate system. For a window, the origin is inside the border at the inside,
+ * upper-left corner.
+ *
+ * The created window is not yet displayed (mapped), call `xcb_map_window` to
+ * display it.
+ *
+ * The created window will initially use the same cursor as its parent.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_window_aux_checked (xcb_connection_t *c,
+ uint8_t depth,
+ xcb_window_t wid,
+ xcb_window_t parent,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint16_t _class,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const xcb_create_window_value_list_t *value_list);
+
+/**
+ * @brief Creates a window
+ *
+ * @param c The connection
+ * @param depth Specifies the new window's depth (TODO: what unit?).
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
+ * \a parent window.
+ * @param wid The ID with which you will refer to the new window, created by
+ * `xcb_generate_id`.
+ * @param parent The parent window of the new window.
+ * @param x The X coordinate of the new window.
+ * @param y The Y coordinate of the new window.
+ * @param width The width of the new window.
+ * @param height The height of the new window.
+ * @param border_width TODO:
+ * \n
+ * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
+ * @param _class A bitmask of #xcb_window_class_t values.
+ * @param _class \n
+ * @param visual Specifies the id for the new window's visual.
+ * \n
+ * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
+ * \a parent window.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @return A cookie
+ *
+ * Creates an unmapped window as child of the specified \a parent window. A
+ * CreateNotify event will be generated. The new window is placed on top in the
+ * stacking order with respect to siblings.
+ *
+ * The coordinate system has the X axis horizontal and the Y axis vertical with
+ * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
+ * of pixels, and coincide with pixel centers. Each window and pixmap has its own
+ * coordinate system. For a window, the origin is inside the border at the inside,
+ * upper-left corner.
+ *
+ * The created window is not yet displayed (mapped), call `xcb_map_window` to
+ * display it.
+ *
+ * The created window will initially use the same cursor as its parent.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_window_aux (xcb_connection_t *c,
+ uint8_t depth,
+ xcb_window_t wid,
+ xcb_window_t parent,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint16_t border_width,
+ uint16_t _class,
+ xcb_visualid_t visual,
+ uint32_t value_mask,
+ const xcb_create_window_value_list_t *value_list);
+
+void *
+xcb_create_window_value_list (const xcb_create_window_request_t *R);
+
+int
+xcb_change_window_attributes_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_change_window_attributes_value_list_t *_aux);
+
+int
+xcb_change_window_attributes_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_change_window_attributes_value_list_t *_aux);
+
+int
+xcb_change_window_attributes_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_change_window_attributes_sizeof (const void *_buffer);
+
+/**
+ * @brief change window attributes
+ *
+ * @param c The connection
+ * @param window The window to change.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the attributes specified by \a value_mask for the specified \a window.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_window_attributes_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief change window attributes
+ *
+ * @param c The connection
+ * @param window The window to change.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the attributes specified by \a value_mask for the specified \a window.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_window_attributes (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief change window attributes
+ *
+ * @param c The connection
+ * @param window The window to change.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the attributes specified by \a value_mask for the specified \a window.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_window_attributes_aux_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t value_mask,
+ const xcb_change_window_attributes_value_list_t *value_list);
+
+/**
+ * @brief change window attributes
+ *
+ * @param c The connection
+ * @param window The window to change.
+ * @param value_mask A bitmask of #xcb_cw_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the attributes specified by \a value_mask for the specified \a window.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_window_attributes_aux (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t value_mask,
+ const xcb_change_window_attributes_value_list_t *value_list);
+
+void *
+xcb_change_window_attributes_value_list (const xcb_change_window_attributes_request_t *R);
+
+/**
+ * @brief Gets window attributes
+ *
+ * @param c The connection
+ * @param window The window to get the attributes from.
+ * @return A cookie
+ *
+ * Gets the current attributes for the specified \a window.
+ *
+ */
+xcb_get_window_attributes_cookie_t
+xcb_get_window_attributes (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief Gets window attributes
+ *
+ * @param c The connection
+ * @param window The window to get the attributes from.
+ * @return A cookie
+ *
+ * Gets the current attributes for the specified \a window.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_window_attributes_cookie_t
+xcb_get_window_attributes_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_window_attributes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_window_attributes_reply_t *
+xcb_get_window_attributes_reply (xcb_connection_t *c,
+ xcb_get_window_attributes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * @brief Destroys a window
+ *
+ * @param c The connection
+ * @param window The window to destroy.
+ * @return A cookie
+ *
+ * Destroys the specified window and all of its subwindows. A DestroyNotify event
+ * is generated for each destroyed window (a DestroyNotify event is first generated
+ * for any given window's inferiors). If the window was mapped, it will be
+ * automatically unmapped before destroying.
+ *
+ * Calling DestroyWindow on the root window will do nothing.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_destroy_window_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief Destroys a window
+ *
+ * @param c The connection
+ * @param window The window to destroy.
+ * @return A cookie
+ *
+ * Destroys the specified window and all of its subwindows. A DestroyNotify event
+ * is generated for each destroyed window (a DestroyNotify event is first generated
+ * for any given window's inferiors). If the window was mapped, it will be
+ * automatically unmapped before destroying.
+ *
+ * Calling DestroyWindow on the root window will do nothing.
+ *
+ */
+xcb_void_cookie_t
+xcb_destroy_window (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_destroy_subwindows_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_destroy_subwindows (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief Changes a client's save set
+ *
+ * @param c The connection
+ * @param mode A bitmask of #xcb_set_mode_t values.
+ * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set.
+ * @param window The window to add or delete to/from your save set.
+ * @return A cookie
+ *
+ * TODO: explain what the save set is for.
+ *
+ * This function either adds or removes the specified window to the client's (your
+ * application's) save set.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_save_set_checked (xcb_connection_t *c,
+ uint8_t mode,
+ xcb_window_t window);
+
+/**
+ * @brief Changes a client's save set
+ *
+ * @param c The connection
+ * @param mode A bitmask of #xcb_set_mode_t values.
+ * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set.
+ * @param window The window to add or delete to/from your save set.
+ * @return A cookie
+ *
+ * TODO: explain what the save set is for.
+ *
+ * This function either adds or removes the specified window to the client's (your
+ * application's) save set.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_save_set (xcb_connection_t *c,
+ uint8_t mode,
+ xcb_window_t window);
+
+/**
+ * @brief Reparents a window
+ *
+ * @param c The connection
+ * @param window The window to reparent.
+ * @param parent The new parent of the window.
+ * @param x The X position of the window within its new parent.
+ * @param y The Y position of the window within its new parent.
+ * @return A cookie
+ *
+ * Makes the specified window a child of the specified parent window. If the
+ * window is mapped, it will automatically be unmapped before reparenting and
+ * re-mapped after reparenting. The window is placed in the stacking order on top
+ * with respect to sibling windows.
+ *
+ * After reparenting, a ReparentNotify event is generated.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_reparent_window_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_window_t parent,
+ int16_t x,
+ int16_t y);
+
+/**
+ * @brief Reparents a window
+ *
+ * @param c The connection
+ * @param window The window to reparent.
+ * @param parent The new parent of the window.
+ * @param x The X position of the window within its new parent.
+ * @param y The Y position of the window within its new parent.
+ * @return A cookie
+ *
+ * Makes the specified window a child of the specified parent window. If the
+ * window is mapped, it will automatically be unmapped before reparenting and
+ * re-mapped after reparenting. The window is placed in the stacking order on top
+ * with respect to sibling windows.
+ *
+ * After reparenting, a ReparentNotify event is generated.
+ *
+ */
+xcb_void_cookie_t
+xcb_reparent_window (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_window_t parent,
+ int16_t x,
+ int16_t y);
+
+/**
+ * @brief Makes a window visible
+ *
+ * @param c The connection
+ * @param window The window to make visible.
+ * @return A cookie
+ *
+ * Maps the specified window. This means making the window visible (as long as its
+ * parent is visible).
+ *
+ * This MapWindow request will be translated to a MapRequest request if a window
+ * manager is running. The window manager then decides to either map the window or
+ * not. Set the override-redirect window attribute to true if you want to bypass
+ * this mechanism.
+ *
+ * If the window manager decides to map the window (or if no window manager is
+ * running), a MapNotify event is generated.
+ *
+ * If the window becomes viewable and no earlier contents for it are remembered,
+ * the X server tiles the window with its background. If the window's background
+ * is undefined, the existing screen contents are not altered, and the X server
+ * generates zero or more Expose events.
+ *
+ * If the window type is InputOutput, an Expose event will be generated when the
+ * window becomes visible. The normal response to an Expose event should be to
+ * repaint the window.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_map_window_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief Makes a window visible
+ *
+ * @param c The connection
+ * @param window The window to make visible.
+ * @return A cookie
+ *
+ * Maps the specified window. This means making the window visible (as long as its
+ * parent is visible).
+ *
+ * This MapWindow request will be translated to a MapRequest request if a window
+ * manager is running. The window manager then decides to either map the window or
+ * not. Set the override-redirect window attribute to true if you want to bypass
+ * this mechanism.
+ *
+ * If the window manager decides to map the window (or if no window manager is
+ * running), a MapNotify event is generated.
+ *
+ * If the window becomes viewable and no earlier contents for it are remembered,
+ * the X server tiles the window with its background. If the window's background
+ * is undefined, the existing screen contents are not altered, and the X server
+ * generates zero or more Expose events.
+ *
+ * If the window type is InputOutput, an Expose event will be generated when the
+ * window becomes visible. The normal response to an Expose event should be to
+ * repaint the window.
+ *
+ */
+xcb_void_cookie_t
+xcb_map_window (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_map_subwindows_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_map_subwindows (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief Makes a window invisible
+ *
+ * @param c The connection
+ * @param window The window to make invisible.
+ * @return A cookie
+ *
+ * Unmaps the specified window. This means making the window invisible (and all
+ * its child windows).
+ *
+ * Unmapping a window leads to the `UnmapNotify` event being generated. Also,
+ * `Expose` events are generated for formerly obscured windows.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_unmap_window_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief Makes a window invisible
+ *
+ * @param c The connection
+ * @param window The window to make invisible.
+ * @return A cookie
+ *
+ * Unmaps the specified window. This means making the window invisible (and all
+ * its child windows).
+ *
+ * Unmapping a window leads to the `UnmapNotify` event being generated. Also,
+ * `Expose` events are generated for formerly obscured windows.
+ *
+ */
+xcb_void_cookie_t
+xcb_unmap_window (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_unmap_subwindows_checked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_unmap_subwindows (xcb_connection_t *c,
+ xcb_window_t window);
+
+int
+xcb_configure_window_value_list_serialize (void **_buffer,
+ uint16_t value_mask,
+ const xcb_configure_window_value_list_t *_aux);
+
+int
+xcb_configure_window_value_list_unpack (const void *_buffer,
+ uint16_t value_mask,
+ xcb_configure_window_value_list_t *_aux);
+
+int
+xcb_configure_window_value_list_sizeof (const void *_buffer,
+ uint16_t value_mask);
+
+int
+xcb_configure_window_sizeof (const void *_buffer);
+
+/**
+ * @brief Configures window attributes
+ *
+ * @param c The connection
+ * @param window The window to configure.
+ * @param value_mask Bitmask of attributes to change.
+ * @param value_list New values, corresponding to the attributes in value_mask. The order has to
+ * correspond to the order of possible \a value_mask bits. See the example.
+ * @return A cookie
+ *
+ * Configures a window's size, position, border width and stacking order.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_configure_window_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief Configures window attributes
+ *
+ * @param c The connection
+ * @param window The window to configure.
+ * @param value_mask Bitmask of attributes to change.
+ * @param value_list New values, corresponding to the attributes in value_mask. The order has to
+ * correspond to the order of possible \a value_mask bits. See the example.
+ * @return A cookie
+ *
+ * Configures a window's size, position, border width and stacking order.
+ *
+ */
+xcb_void_cookie_t
+xcb_configure_window (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief Configures window attributes
+ *
+ * @param c The connection
+ * @param window The window to configure.
+ * @param value_mask Bitmask of attributes to change.
+ * @param value_list New values, corresponding to the attributes in value_mask. The order has to
+ * correspond to the order of possible \a value_mask bits. See the example.
+ * @return A cookie
+ *
+ * Configures a window's size, position, border width and stacking order.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_configure_window_aux_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t value_mask,
+ const xcb_configure_window_value_list_t *value_list);
+
+/**
+ * @brief Configures window attributes
+ *
+ * @param c The connection
+ * @param window The window to configure.
+ * @param value_mask Bitmask of attributes to change.
+ * @param value_list New values, corresponding to the attributes in value_mask. The order has to
+ * correspond to the order of possible \a value_mask bits. See the example.
+ * @return A cookie
+ *
+ * Configures a window's size, position, border width and stacking order.
+ *
+ */
+xcb_void_cookie_t
+xcb_configure_window_aux (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t value_mask,
+ const xcb_configure_window_value_list_t *value_list);
+
+void *
+xcb_configure_window_value_list (const xcb_configure_window_request_t *R);
+
+/**
+ * @brief Change window stacking order
+ *
+ * @param c The connection
+ * @param direction A bitmask of #xcb_circulate_t values.
+ * @param direction \n
+ * @param window The window to raise/lower (depending on \a direction).
+ * @return A cookie
+ *
+ * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if
+ * any) will be raised to the top of the stack.
+ *
+ * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will
+ * be lowered to the bottom of the stack.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_circulate_window_checked (xcb_connection_t *c,
+ uint8_t direction,
+ xcb_window_t window);
+
+/**
+ * @brief Change window stacking order
+ *
+ * @param c The connection
+ * @param direction A bitmask of #xcb_circulate_t values.
+ * @param direction \n
+ * @param window The window to raise/lower (depending on \a direction).
+ * @return A cookie
+ *
+ * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if
+ * any) will be raised to the top of the stack.
+ *
+ * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will
+ * be lowered to the bottom of the stack.
+ *
+ */
+xcb_void_cookie_t
+xcb_circulate_window (xcb_connection_t *c,
+ uint8_t direction,
+ xcb_window_t window);
+
+/**
+ * @brief Get current window geometry
+ *
+ * @param c The connection
+ * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received.
+ * @return A cookie
+ *
+ * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`).
+ *
+ */
+xcb_get_geometry_cookie_t
+xcb_get_geometry (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ * @brief Get current window geometry
+ *
+ * @param c The connection
+ * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received.
+ * @return A cookie
+ *
+ * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`).
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_geometry_cookie_t
+xcb_get_geometry_unchecked (xcb_connection_t *c,
+ xcb_drawable_t drawable);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_geometry_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_geometry_reply_t *
+xcb_get_geometry_reply (xcb_connection_t *c,
+ xcb_get_geometry_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_query_tree_sizeof (const void *_buffer);
+
+/**
+ * @brief query the window tree
+ *
+ * @param c The connection
+ * @param window The \a window to query.
+ * @return A cookie
+ *
+ * Gets the root window ID, parent window ID and list of children windows for the
+ * specified \a window. The children are listed in bottom-to-top stacking order.
+ *
+ */
+xcb_query_tree_cookie_t
+xcb_query_tree (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief query the window tree
+ *
+ * @param c The connection
+ * @param window The \a window to query.
+ * @return A cookie
+ *
+ * Gets the root window ID, parent window ID and list of children windows for the
+ * specified \a window. The children are listed in bottom-to-top stacking order.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_tree_cookie_t
+xcb_query_tree_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_window_t *
+xcb_query_tree_children (const xcb_query_tree_reply_t *R);
+
+int
+xcb_query_tree_children_length (const xcb_query_tree_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_query_tree_children_end (const xcb_query_tree_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_tree_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_tree_reply_t *
+xcb_query_tree_reply (xcb_connection_t *c,
+ xcb_query_tree_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_intern_atom_sizeof (const void *_buffer);
+
+/**
+ * @brief Get atom identifier by name
+ *
+ * @param c The connection
+ * @param only_if_exists Return a valid atom id only if the atom already exists.
+ * @param name_len The length of the following \a name.
+ * @param name The name of the atom.
+ * @return A cookie
+ *
+ * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified
+ * name. Atoms are used in protocols like EWMH, for example to store window titles
+ * (`_NET_WM_NAME` atom) as property of a window.
+ *
+ * If \a only_if_exists is 0, the atom will be created if it does not already exist.
+ * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does
+ * not yet exist.
+ *
+ */
+xcb_intern_atom_cookie_t
+xcb_intern_atom (xcb_connection_t *c,
+ uint8_t only_if_exists,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * @brief Get atom identifier by name
+ *
+ * @param c The connection
+ * @param only_if_exists Return a valid atom id only if the atom already exists.
+ * @param name_len The length of the following \a name.
+ * @param name The name of the atom.
+ * @return A cookie
+ *
+ * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified
+ * name. Atoms are used in protocols like EWMH, for example to store window titles
+ * (`_NET_WM_NAME` atom) as property of a window.
+ *
+ * If \a only_if_exists is 0, the atom will be created if it does not already exist.
+ * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does
+ * not yet exist.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_intern_atom_cookie_t
+xcb_intern_atom_unchecked (xcb_connection_t *c,
+ uint8_t only_if_exists,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_intern_atom_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_intern_atom_reply_t *
+xcb_intern_atom_reply (xcb_connection_t *c,
+ xcb_intern_atom_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_get_atom_name_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_atom_name_cookie_t
+xcb_get_atom_name (xcb_connection_t *c,
+ xcb_atom_t atom);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_atom_name_cookie_t
+xcb_get_atom_name_unchecked (xcb_connection_t *c,
+ xcb_atom_t atom);
+
+char *
+xcb_get_atom_name_name (const xcb_get_atom_name_reply_t *R);
+
+int
+xcb_get_atom_name_name_length (const xcb_get_atom_name_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_get_atom_name_name_end (const xcb_get_atom_name_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_atom_name_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_atom_name_reply_t *
+xcb_get_atom_name_reply (xcb_connection_t *c,
+ xcb_get_atom_name_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_change_property_sizeof (const void *_buffer);
+
+/**
+ * @brief Changes a window property
+ *
+ * @param c The connection
+ * @param mode A bitmask of #xcb_prop_mode_t values.
+ * @param mode \n
+ * @param window The window whose property you want to change.
+ * @param property The property you want to change (an atom).
+ * @param type The type of the property you want to change (an atom).
+ * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or
+ * 32-bit quantities. Possible values are 8, 16 and 32. This information allows
+ * the X server to correctly perform byte-swap operations as necessary.
+ * @param data_len Specifies the number of elements (see \a format).
+ * @param data The property data.
+ * @return A cookie
+ *
+ * Sets or updates a property on the specified \a window. Properties are for
+ * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
+ * Protocols such as EWMH also use properties - for example EWMH defines the
+ * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_property_checked (xcb_connection_t *c,
+ uint8_t mode,
+ xcb_window_t window,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t format,
+ uint32_t data_len,
+ const void *data);
+
+/**
+ * @brief Changes a window property
+ *
+ * @param c The connection
+ * @param mode A bitmask of #xcb_prop_mode_t values.
+ * @param mode \n
+ * @param window The window whose property you want to change.
+ * @param property The property you want to change (an atom).
+ * @param type The type of the property you want to change (an atom).
+ * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or
+ * 32-bit quantities. Possible values are 8, 16 and 32. This information allows
+ * the X server to correctly perform byte-swap operations as necessary.
+ * @param data_len Specifies the number of elements (see \a format).
+ * @param data The property data.
+ * @return A cookie
+ *
+ * Sets or updates a property on the specified \a window. Properties are for
+ * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
+ * Protocols such as EWMH also use properties - for example EWMH defines the
+ * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_property (xcb_connection_t *c,
+ uint8_t mode,
+ xcb_window_t window,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint8_t format,
+ uint32_t data_len,
+ const void *data);
+
+void *
+xcb_change_property_data (const xcb_change_property_request_t *R);
+
+int
+xcb_change_property_data_length (const xcb_change_property_request_t *R);
+
+xcb_generic_iterator_t
+xcb_change_property_data_end (const xcb_change_property_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_delete_property_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_delete_property (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t property);
+
+int
+xcb_get_property_sizeof (const void *_buffer);
+
+/**
+ * @brief Gets a window property
+ *
+ * @param c The connection
+ * @param _delete Whether the property should actually be deleted. For deleting a property, the
+ * specified \a type has to match the actual property type.
+ * @param window The window whose property you want to get.
+ * @param property The property you want to get (an atom).
+ * @param type The type of the property you want to get (an atom).
+ * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the
+ * data is to be retrieved.
+ * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you
+ * set \a long_length to 4, you will receive 16 bytes of data).
+ * @return A cookie
+ *
+ * Gets the specified \a property from the specified \a window. Properties are for
+ * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
+ * Protocols such as EWMH also use properties - for example EWMH defines the
+ * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
+ *
+ * TODO: talk about \a type
+ *
+ * TODO: talk about `delete`
+ *
+ * TODO: talk about the offset/length thing. what's a valid use case?
+ *
+ */
+xcb_get_property_cookie_t
+xcb_get_property (xcb_connection_t *c,
+ uint8_t _delete,
+ xcb_window_t window,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t long_offset,
+ uint32_t long_length);
+
+/**
+ * @brief Gets a window property
+ *
+ * @param c The connection
+ * @param _delete Whether the property should actually be deleted. For deleting a property, the
+ * specified \a type has to match the actual property type.
+ * @param window The window whose property you want to get.
+ * @param property The property you want to get (an atom).
+ * @param type The type of the property you want to get (an atom).
+ * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the
+ * data is to be retrieved.
+ * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you
+ * set \a long_length to 4, you will receive 16 bytes of data).
+ * @return A cookie
+ *
+ * Gets the specified \a property from the specified \a window. Properties are for
+ * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
+ * Protocols such as EWMH also use properties - for example EWMH defines the
+ * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
+ *
+ * TODO: talk about \a type
+ *
+ * TODO: talk about `delete`
+ *
+ * TODO: talk about the offset/length thing. what's a valid use case?
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_property_cookie_t
+xcb_get_property_unchecked (xcb_connection_t *c,
+ uint8_t _delete,
+ xcb_window_t window,
+ xcb_atom_t property,
+ xcb_atom_t type,
+ uint32_t long_offset,
+ uint32_t long_length);
+
+void *
+xcb_get_property_value (const xcb_get_property_reply_t *R);
+
+int
+xcb_get_property_value_length (const xcb_get_property_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_get_property_value_end (const xcb_get_property_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_property_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_property_reply_t *
+xcb_get_property_reply (xcb_connection_t *c,
+ xcb_get_property_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_list_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_list_properties_cookie_t
+xcb_list_properties (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_list_properties_cookie_t
+xcb_list_properties_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_atom_t *
+xcb_list_properties_atoms (const xcb_list_properties_reply_t *R);
+
+int
+xcb_list_properties_atoms_length (const xcb_list_properties_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_list_properties_atoms_end (const xcb_list_properties_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_list_properties_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_list_properties_reply_t *
+xcb_list_properties_reply (xcb_connection_t *c,
+ xcb_list_properties_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * @brief Sets the owner of a selection
+ *
+ * @param c The connection
+ * @param owner The new owner of the selection.
+ * \n
+ * The special value `XCB_NONE` means that the selection will have no owner.
+ * @param selection The selection.
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The selection will not be changed if \a time is earlier than the current
+ * last-change time of the \a selection or is later than the current X server time.
+ * Otherwise, the last-change time is set to the specified time.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Makes `window` the owner of the selection \a selection and updates the
+ * last-change time of the specified selection.
+ *
+ * TODO: briefly explain what a selection is.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_selection_owner_checked (xcb_connection_t *c,
+ xcb_window_t owner,
+ xcb_atom_t selection,
+ xcb_timestamp_t time);
+
+/**
+ * @brief Sets the owner of a selection
+ *
+ * @param c The connection
+ * @param owner The new owner of the selection.
+ * \n
+ * The special value `XCB_NONE` means that the selection will have no owner.
+ * @param selection The selection.
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The selection will not be changed if \a time is earlier than the current
+ * last-change time of the \a selection or is later than the current X server time.
+ * Otherwise, the last-change time is set to the specified time.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Makes `window` the owner of the selection \a selection and updates the
+ * last-change time of the specified selection.
+ *
+ * TODO: briefly explain what a selection is.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_selection_owner (xcb_connection_t *c,
+ xcb_window_t owner,
+ xcb_atom_t selection,
+ xcb_timestamp_t time);
+
+/**
+ * @brief Gets the owner of a selection
+ *
+ * @param c The connection
+ * @param selection The selection.
+ * @return A cookie
+ *
+ * Gets the owner of the specified selection.
+ *
+ * TODO: briefly explain what a selection is.
+ *
+ */
+xcb_get_selection_owner_cookie_t
+xcb_get_selection_owner (xcb_connection_t *c,
+ xcb_atom_t selection);
+
+/**
+ * @brief Gets the owner of a selection
+ *
+ * @param c The connection
+ * @param selection The selection.
+ * @return A cookie
+ *
+ * Gets the owner of the specified selection.
+ *
+ * TODO: briefly explain what a selection is.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_selection_owner_cookie_t
+xcb_get_selection_owner_unchecked (xcb_connection_t *c,
+ xcb_atom_t selection);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_selection_owner_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_selection_owner_reply_t *
+xcb_get_selection_owner_reply (xcb_connection_t *c,
+ xcb_get_selection_owner_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_convert_selection_checked (xcb_connection_t *c,
+ xcb_window_t requestor,
+ xcb_atom_t selection,
+ xcb_atom_t target,
+ xcb_atom_t property,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_convert_selection (xcb_connection_t *c,
+ xcb_window_t requestor,
+ xcb_atom_t selection,
+ xcb_atom_t target,
+ xcb_atom_t property,
+ xcb_timestamp_t time);
+
+/**
+ * @brief send an event
+ *
+ * @param c The connection
+ * @param propagate If \a propagate is true and no clients have selected any event on \a destination,
+ * the destination is replaced with the closest ancestor of \a destination for
+ * which some client has selected a type in \a event_mask and for which no
+ * intervening window has that type in its do-not-propagate-mask. If no such
+ * window exists or if the window is an ancestor of the focus window and
+ * `InputFocus` was originally specified as the destination, the event is not sent
+ * to any clients. Otherwise, the event is reported to every client selecting on
+ * the final destination any of the types specified in \a event_mask.
+ * @param destination The window to send this event to. Every client which selects any event within
+ * \a event_mask on \a destination will get the event.
+ * \n
+ * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window
+ * that contains the mouse pointer.
+ * \n
+ * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which
+ * has the keyboard focus.
+ * @param event_mask Event_mask for determining which clients should receive the specified event.
+ * See \a destination and \a propagate.
+ * @param event The event to send to the specified \a destination.
+ * @return A cookie
+ *
+ * Identifies the \a destination window, determines which clients should receive
+ * the specified event and ignores any active grabs.
+ *
+ * The \a event must be one of the core events or an event defined by an extension,
+ * so that the X server can correctly byte-swap the contents as necessary. The
+ * contents of \a event are otherwise unaltered and unchecked except for the
+ * `send_event` field which is forced to 'true'.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_send_event_checked (xcb_connection_t *c,
+ uint8_t propagate,
+ xcb_window_t destination,
+ uint32_t event_mask,
+ const char *event);
+
+/**
+ * @brief send an event
+ *
+ * @param c The connection
+ * @param propagate If \a propagate is true and no clients have selected any event on \a destination,
+ * the destination is replaced with the closest ancestor of \a destination for
+ * which some client has selected a type in \a event_mask and for which no
+ * intervening window has that type in its do-not-propagate-mask. If no such
+ * window exists or if the window is an ancestor of the focus window and
+ * `InputFocus` was originally specified as the destination, the event is not sent
+ * to any clients. Otherwise, the event is reported to every client selecting on
+ * the final destination any of the types specified in \a event_mask.
+ * @param destination The window to send this event to. Every client which selects any event within
+ * \a event_mask on \a destination will get the event.
+ * \n
+ * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window
+ * that contains the mouse pointer.
+ * \n
+ * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which
+ * has the keyboard focus.
+ * @param event_mask Event_mask for determining which clients should receive the specified event.
+ * See \a destination and \a propagate.
+ * @param event The event to send to the specified \a destination.
+ * @return A cookie
+ *
+ * Identifies the \a destination window, determines which clients should receive
+ * the specified event and ignores any active grabs.
+ *
+ * The \a event must be one of the core events or an event defined by an extension,
+ * so that the X server can correctly byte-swap the contents as necessary. The
+ * contents of \a event are otherwise unaltered and unchecked except for the
+ * `send_event` field which is forced to 'true'.
+ *
+ */
+xcb_void_cookie_t
+xcb_send_event (xcb_connection_t *c,
+ uint8_t propagate,
+ xcb_window_t destination,
+ uint32_t event_mask,
+ const char *event);
+
+/**
+ * @brief Grab the pointer
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the pointer should be grabbed.
+ * @param event_mask Specifies which pointer events are reported to the client.
+ * \n
+ * TODO: which values?
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
+ * move the pointer out of that window).
+ * \n
+ * The special value `XCB_NONE` means don't confine the pointer.
+ * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
+ * cursor.
+ * @param time The time argument allows you to avoid certain circumstances that come up if
+ * applications take a long time to respond or if there are long network delays.
+ * Consider a situation where you have two applications, both of which normally
+ * grab the pointer when clicked on. If both applications specify the timestamp
+ * from the event, the second application may wake up faster and successfully grab
+ * the pointer before the first application. The first application then will get
+ * an indication that the other application grabbed the pointer before its request
+ * was processed.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client.
+ *
+ */
+xcb_grab_pointer_cookie_t
+xcb_grab_pointer (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ uint16_t event_mask,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode,
+ xcb_window_t confine_to,
+ xcb_cursor_t cursor,
+ xcb_timestamp_t time);
+
+/**
+ * @brief Grab the pointer
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the pointer should be grabbed.
+ * @param event_mask Specifies which pointer events are reported to the client.
+ * \n
+ * TODO: which values?
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
+ * move the pointer out of that window).
+ * \n
+ * The special value `XCB_NONE` means don't confine the pointer.
+ * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
+ * cursor.
+ * @param time The time argument allows you to avoid certain circumstances that come up if
+ * applications take a long time to respond or if there are long network delays.
+ * Consider a situation where you have two applications, both of which normally
+ * grab the pointer when clicked on. If both applications specify the timestamp
+ * from the event, the second application may wake up faster and successfully grab
+ * the pointer before the first application. The first application then will get
+ * an indication that the other application grabbed the pointer before its request
+ * was processed.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_grab_pointer_cookie_t
+xcb_grab_pointer_unchecked (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ uint16_t event_mask,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode,
+ xcb_window_t confine_to,
+ xcb_cursor_t cursor,
+ xcb_timestamp_t time);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_grab_pointer_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_grab_pointer_reply_t *
+xcb_grab_pointer_reply (xcb_connection_t *c,
+ xcb_grab_pointer_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * @brief release the pointer
+ *
+ * @param c The connection
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The pointer will not be released if \a time is earlier than the
+ * last-pointer-grab time or later than the current X server time.
+ * @return A cookie
+ *
+ * Releases the pointer and any queued events if you actively grabbed the pointer
+ * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button
+ * press.
+ *
+ * EnterNotify and LeaveNotify events are generated.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_ungrab_pointer_checked (xcb_connection_t *c,
+ xcb_timestamp_t time);
+
+/**
+ * @brief release the pointer
+ *
+ * @param c The connection
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The pointer will not be released if \a time is earlier than the
+ * last-pointer-grab time or later than the current X server time.
+ * @return A cookie
+ *
+ * Releases the pointer and any queued events if you actively grabbed the pointer
+ * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button
+ * press.
+ *
+ * EnterNotify and LeaveNotify events are generated.
+ *
+ */
+xcb_void_cookie_t
+xcb_ungrab_pointer (xcb_connection_t *c,
+ xcb_timestamp_t time);
+
+/**
+ * @brief Grab pointer button(s)
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the pointer should be grabbed.
+ * @param event_mask Specifies which pointer events are reported to the client.
+ * \n
+ * TODO: which values?
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
+ * move the pointer out of that window).
+ * \n
+ * The special value `XCB_NONE` means don't confine the pointer.
+ * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
+ * cursor.
+ * @param button A bitmask of #xcb_button_index_t values.
+ * @param button \n
+ * @param modifiers The modifiers to grab.
+ * \n
+ * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all
+ * possible modifier combinations.
+ * @return A cookie
+ *
+ * This request establishes a passive grab. The pointer is actively grabbed as
+ * described in GrabPointer, the last-pointer-grab time is set to the time at
+ * which the button was pressed (as transmitted in the ButtonPress event), and the
+ * ButtonPress event is reported if all of the following conditions are true:
+ *
+ * The pointer is not grabbed and the specified button is logically pressed when
+ * the specified modifier keys are logically down, and no other buttons or
+ * modifier keys are logically down.
+ *
+ * The grab-window contains the pointer.
+ *
+ * The confine-to window (if any) is viewable.
+ *
+ * A passive grab on the same button/key combination does not exist on any
+ * ancestor of grab-window.
+ *
+ * The interpretation of the remaining arguments is the same as for GrabPointer.
+ * The active grab is terminated automatically when the logical state of the
+ * pointer has all buttons released, independent of the logical state of modifier
+ * keys. Note that the logical state of a device (as seen by means of the
+ * protocol) may lag the physical state if device event processing is frozen. This
+ * request overrides all previous passive grabs by the same client on the same
+ * button/key combinations on the same window. A modifier of AnyModifier is
+ * equivalent to issuing the request for all possible modifier combinations
+ * (including the combination of no modifiers). It is not required that all
+ * specified modifiers have currently assigned keycodes. A button of AnyButton is
+ * equivalent to issuing the request for all possible buttons. Otherwise, it is
+ * not required that the button specified currently be assigned to a physical
+ * button.
+ *
+ * An Access error is generated if some other client has already issued a
+ * GrabButton request with the same button/key combination on the same window.
+ * When using AnyModifier or AnyButton, the request fails completely (no grabs are
+ * established), and an Access error is generated if there is a conflicting grab
+ * for any combination. The request has no effect on an active grab.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_grab_button_checked (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ uint16_t event_mask,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode,
+ xcb_window_t confine_to,
+ xcb_cursor_t cursor,
+ uint8_t button,
+ uint16_t modifiers);
+
+/**
+ * @brief Grab pointer button(s)
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the pointer should be grabbed.
+ * @param event_mask Specifies which pointer events are reported to the client.
+ * \n
+ * TODO: which values?
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
+ * move the pointer out of that window).
+ * \n
+ * The special value `XCB_NONE` means don't confine the pointer.
+ * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
+ * cursor.
+ * @param button A bitmask of #xcb_button_index_t values.
+ * @param button \n
+ * @param modifiers The modifiers to grab.
+ * \n
+ * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all
+ * possible modifier combinations.
+ * @return A cookie
+ *
+ * This request establishes a passive grab. The pointer is actively grabbed as
+ * described in GrabPointer, the last-pointer-grab time is set to the time at
+ * which the button was pressed (as transmitted in the ButtonPress event), and the
+ * ButtonPress event is reported if all of the following conditions are true:
+ *
+ * The pointer is not grabbed and the specified button is logically pressed when
+ * the specified modifier keys are logically down, and no other buttons or
+ * modifier keys are logically down.
+ *
+ * The grab-window contains the pointer.
+ *
+ * The confine-to window (if any) is viewable.
+ *
+ * A passive grab on the same button/key combination does not exist on any
+ * ancestor of grab-window.
+ *
+ * The interpretation of the remaining arguments is the same as for GrabPointer.
+ * The active grab is terminated automatically when the logical state of the
+ * pointer has all buttons released, independent of the logical state of modifier
+ * keys. Note that the logical state of a device (as seen by means of the
+ * protocol) may lag the physical state if device event processing is frozen. This
+ * request overrides all previous passive grabs by the same client on the same
+ * button/key combinations on the same window. A modifier of AnyModifier is
+ * equivalent to issuing the request for all possible modifier combinations
+ * (including the combination of no modifiers). It is not required that all
+ * specified modifiers have currently assigned keycodes. A button of AnyButton is
+ * equivalent to issuing the request for all possible buttons. Otherwise, it is
+ * not required that the button specified currently be assigned to a physical
+ * button.
+ *
+ * An Access error is generated if some other client has already issued a
+ * GrabButton request with the same button/key combination on the same window.
+ * When using AnyModifier or AnyButton, the request fails completely (no grabs are
+ * established), and an Access error is generated if there is a conflicting grab
+ * for any combination. The request has no effect on an active grab.
+ *
+ */
+xcb_void_cookie_t
+xcb_grab_button (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ uint16_t event_mask,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode,
+ xcb_window_t confine_to,
+ xcb_cursor_t cursor,
+ uint8_t button,
+ uint16_t modifiers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_ungrab_button_checked (xcb_connection_t *c,
+ uint8_t button,
+ xcb_window_t grab_window,
+ uint16_t modifiers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_ungrab_button (xcb_connection_t *c,
+ uint8_t button,
+ xcb_window_t grab_window,
+ uint16_t modifiers);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_active_pointer_grab_checked (xcb_connection_t *c,
+ xcb_cursor_t cursor,
+ xcb_timestamp_t time,
+ uint16_t event_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_active_pointer_grab (xcb_connection_t *c,
+ xcb_cursor_t cursor,
+ xcb_timestamp_t time,
+ uint16_t event_mask);
+
+/**
+ * @brief Grab the keyboard
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the pointer should be grabbed.
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @return A cookie
+ *
+ * Actively grabs control of the keyboard and generates FocusIn and FocusOut
+ * events. Further key events are reported only to the grabbing client.
+ *
+ * Any active keyboard grab by this client is overridden. If the keyboard is
+ * actively grabbed by some other client, `AlreadyGrabbed` is returned. If
+ * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard
+ * is frozen by an active grab of another client, `GrabFrozen` is returned. If the
+ * specified \a time is earlier than the last-keyboard-grab time or later than the
+ * current X server time, `GrabInvalidTime` is returned. Otherwise, the
+ * last-keyboard-grab time is set to the specified time.
+ *
+ */
+xcb_grab_keyboard_cookie_t
+xcb_grab_keyboard (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ xcb_timestamp_t time,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode);
+
+/**
+ * @brief Grab the keyboard
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the pointer should be grabbed.
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @return A cookie
+ *
+ * Actively grabs control of the keyboard and generates FocusIn and FocusOut
+ * events. Further key events are reported only to the grabbing client.
+ *
+ * Any active keyboard grab by this client is overridden. If the keyboard is
+ * actively grabbed by some other client, `AlreadyGrabbed` is returned. If
+ * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard
+ * is frozen by an active grab of another client, `GrabFrozen` is returned. If the
+ * specified \a time is earlier than the last-keyboard-grab time or later than the
+ * current X server time, `GrabInvalidTime` is returned. Otherwise, the
+ * last-keyboard-grab time is set to the specified time.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_grab_keyboard_cookie_t
+xcb_grab_keyboard_unchecked (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ xcb_timestamp_t time,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_grab_keyboard_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_grab_keyboard_reply_t *
+xcb_grab_keyboard_reply (xcb_connection_t *c,
+ xcb_grab_keyboard_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_ungrab_keyboard_checked (xcb_connection_t *c,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_ungrab_keyboard (xcb_connection_t *c,
+ xcb_timestamp_t time);
+
+/**
+ * @brief Grab keyboard key(s)
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the key events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the key should be grabbed.
+ * @param modifiers The modifiers to grab.
+ * \n
+ * Using the special value `XCB_MOD_MASK_ANY` means grab the key with all
+ * possible modifier combinations.
+ * @param key The keycode of the key to grab.
+ * \n
+ * The special value `XCB_GRAB_ANY` means grab any key.
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @return A cookie
+ *
+ * Establishes a passive grab on the keyboard. In the future, the keyboard is
+ * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to
+ * the time at which the key was pressed (as transmitted in the KeyPress event),
+ * and the KeyPress event is reported if all of the following conditions are true:
+ *
+ * The keyboard is not grabbed and the specified key (which can itself be a
+ * modifier key) is logically pressed when the specified modifier keys are
+ * logically down, and no other modifier keys are logically down.
+ *
+ * Either the grab_window is an ancestor of (or is) the focus window, or the
+ * grab_window is a descendant of the focus window and contains the pointer.
+ *
+ * A passive grab on the same key combination does not exist on any ancestor of
+ * grab_window.
+ *
+ * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated
+ * automatically when the logical state of the keyboard has the specified key released (independent of the
+ * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window.
+ *
+ * Note that the logical state of a device (as seen by client applications) may lag the physical state if
+ * device event processing is frozen.
+ *
+ * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified
+ * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for
+ * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode
+ * and max_keycode in the connection setup, or a BadValue error results.
+ *
+ * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess
+ * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error
+ * results (no grabs are established) if there is a conflicting grab for any combination.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_grab_key_checked (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ uint16_t modifiers,
+ xcb_keycode_t key,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode);
+
+/**
+ * @brief Grab keyboard key(s)
+ *
+ * @param c The connection
+ * @param owner_events If 1, the \a grab_window will still get the key events. If 0, events are not
+ * reported to the \a grab_window.
+ * @param grab_window Specifies the window on which the key should be grabbed.
+ * @param modifiers The modifiers to grab.
+ * \n
+ * Using the special value `XCB_MOD_MASK_ANY` means grab the key with all
+ * possible modifier combinations.
+ * @param key The keycode of the key to grab.
+ * \n
+ * The special value `XCB_GRAB_ANY` means grab any key.
+ * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
+ * @param pointer_mode \n
+ * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
+ * @param keyboard_mode \n
+ * @return A cookie
+ *
+ * Establishes a passive grab on the keyboard. In the future, the keyboard is
+ * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to
+ * the time at which the key was pressed (as transmitted in the KeyPress event),
+ * and the KeyPress event is reported if all of the following conditions are true:
+ *
+ * The keyboard is not grabbed and the specified key (which can itself be a
+ * modifier key) is logically pressed when the specified modifier keys are
+ * logically down, and no other modifier keys are logically down.
+ *
+ * Either the grab_window is an ancestor of (or is) the focus window, or the
+ * grab_window is a descendant of the focus window and contains the pointer.
+ *
+ * A passive grab on the same key combination does not exist on any ancestor of
+ * grab_window.
+ *
+ * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated
+ * automatically when the logical state of the keyboard has the specified key released (independent of the
+ * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window.
+ *
+ * Note that the logical state of a device (as seen by client applications) may lag the physical state if
+ * device event processing is frozen.
+ *
+ * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified
+ * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for
+ * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode
+ * and max_keycode in the connection setup, or a BadValue error results.
+ *
+ * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess
+ * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error
+ * results (no grabs are established) if there is a conflicting grab for any combination.
+ *
+ */
+xcb_void_cookie_t
+xcb_grab_key (xcb_connection_t *c,
+ uint8_t owner_events,
+ xcb_window_t grab_window,
+ uint16_t modifiers,
+ xcb_keycode_t key,
+ uint8_t pointer_mode,
+ uint8_t keyboard_mode);
+
+/**
+ * @brief release a key combination
+ *
+ * @param c The connection
+ * @param key The keycode of the specified key combination.
+ * \n
+ * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes.
+ * @param grab_window The window on which the grabbed key combination will be released.
+ * @param modifiers The modifiers of the specified key combination.
+ * \n
+ * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination
+ * with every possible modifier combination.
+ * @return A cookie
+ *
+ * Releases the key combination on \a grab_window if you grabbed it using
+ * `xcb_grab_key` before.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_ungrab_key_checked (xcb_connection_t *c,
+ xcb_keycode_t key,
+ xcb_window_t grab_window,
+ uint16_t modifiers);
+
+/**
+ * @brief release a key combination
+ *
+ * @param c The connection
+ * @param key The keycode of the specified key combination.
+ * \n
+ * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes.
+ * @param grab_window The window on which the grabbed key combination will be released.
+ * @param modifiers The modifiers of the specified key combination.
+ * \n
+ * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination
+ * with every possible modifier combination.
+ * @return A cookie
+ *
+ * Releases the key combination on \a grab_window if you grabbed it using
+ * `xcb_grab_key` before.
+ *
+ */
+xcb_void_cookie_t
+xcb_ungrab_key (xcb_connection_t *c,
+ xcb_keycode_t key,
+ xcb_window_t grab_window,
+ uint16_t modifiers);
+
+/**
+ * @brief release queued events
+ *
+ * @param c The connection
+ * @param mode A bitmask of #xcb_allow_t values.
+ * @param mode \n
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Releases queued events if the client has caused a device (pointer/keyboard) to
+ * freeze due to grabbing it actively. This request has no effect if \a time is
+ * earlier than the last-grab time of the most recent active grab for this client
+ * or if \a time is later than the current X server time.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_allow_events_checked (xcb_connection_t *c,
+ uint8_t mode,
+ xcb_timestamp_t time);
+
+/**
+ * @brief release queued events
+ *
+ * @param c The connection
+ * @param mode A bitmask of #xcb_allow_t values.
+ * @param mode \n
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Releases queued events if the client has caused a device (pointer/keyboard) to
+ * freeze due to grabbing it actively. This request has no effect if \a time is
+ * earlier than the last-grab time of the most recent active grab for this client
+ * or if \a time is later than the current X server time.
+ *
+ */
+xcb_void_cookie_t
+xcb_allow_events (xcb_connection_t *c,
+ uint8_t mode,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_grab_server_checked (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_grab_server (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_ungrab_server_checked (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_ungrab_server (xcb_connection_t *c);
+
+/**
+ * @brief get pointer coordinates
+ *
+ * @param c The connection
+ * @param window A window to check if the pointer is on the same screen as \a window (see the
+ * `same_screen` field in the reply).
+ * @return A cookie
+ *
+ * Gets the root window the pointer is logically on and the pointer coordinates
+ * relative to the root window's origin.
+ *
+ */
+xcb_query_pointer_cookie_t
+xcb_query_pointer (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * @brief get pointer coordinates
+ *
+ * @param c The connection
+ * @param window A window to check if the pointer is on the same screen as \a window (see the
+ * `same_screen` field in the reply).
+ * @return A cookie
+ *
+ * Gets the root window the pointer is logically on and the pointer coordinates
+ * relative to the root window's origin.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_pointer_cookie_t
+xcb_query_pointer_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_pointer_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_pointer_reply_t *
+xcb_query_pointer_reply (xcb_connection_t *c,
+ xcb_query_pointer_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_timecoord_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_timecoord_t)
+ */
+void
+xcb_timecoord_next (xcb_timecoord_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_timecoord_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_timecoord_end (xcb_timecoord_iterator_t i);
+
+int
+xcb_get_motion_events_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_motion_events_cookie_t
+xcb_get_motion_events (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t start,
+ xcb_timestamp_t stop);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_motion_events_cookie_t
+xcb_get_motion_events_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_timestamp_t start,
+ xcb_timestamp_t stop);
+
+xcb_timecoord_t *
+xcb_get_motion_events_events (const xcb_get_motion_events_reply_t *R);
+
+int
+xcb_get_motion_events_events_length (const xcb_get_motion_events_reply_t *R);
+
+xcb_timecoord_iterator_t
+xcb_get_motion_events_events_iterator (const xcb_get_motion_events_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_motion_events_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_motion_events_reply_t *
+xcb_get_motion_events_reply (xcb_connection_t *c,
+ xcb_get_motion_events_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_translate_coordinates_cookie_t
+xcb_translate_coordinates (xcb_connection_t *c,
+ xcb_window_t src_window,
+ xcb_window_t dst_window,
+ int16_t src_x,
+ int16_t src_y);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_translate_coordinates_cookie_t
+xcb_translate_coordinates_unchecked (xcb_connection_t *c,
+ xcb_window_t src_window,
+ xcb_window_t dst_window,
+ int16_t src_x,
+ int16_t src_y);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_translate_coordinates_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_translate_coordinates_reply_t *
+xcb_translate_coordinates_reply (xcb_connection_t *c,
+ xcb_translate_coordinates_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * @brief move mouse pointer
+ *
+ * @param c The connection
+ * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
+ * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
+ * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
+ * \a src_window.
+ * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
+ * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
+ * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
+ * relative to the current position of the pointer.
+ * @return A cookie
+ *
+ * Moves the mouse pointer to the specified position.
+ *
+ * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
+ * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
+ * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
+ * \a src_window.
+ *
+ * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
+ * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
+ * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
+ * relative to the current position of the pointer.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_warp_pointer_checked (xcb_connection_t *c,
+ xcb_window_t src_window,
+ xcb_window_t dst_window,
+ int16_t src_x,
+ int16_t src_y,
+ uint16_t src_width,
+ uint16_t src_height,
+ int16_t dst_x,
+ int16_t dst_y);
+
+/**
+ * @brief move mouse pointer
+ *
+ * @param c The connection
+ * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
+ * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
+ * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
+ * \a src_window.
+ * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
+ * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
+ * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
+ * relative to the current position of the pointer.
+ * @return A cookie
+ *
+ * Moves the mouse pointer to the specified position.
+ *
+ * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
+ * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
+ * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
+ * \a src_window.
+ *
+ * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
+ * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
+ * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
+ * relative to the current position of the pointer.
+ *
+ */
+xcb_void_cookie_t
+xcb_warp_pointer (xcb_connection_t *c,
+ xcb_window_t src_window,
+ xcb_window_t dst_window,
+ int16_t src_x,
+ int16_t src_y,
+ uint16_t src_width,
+ uint16_t src_height,
+ int16_t dst_x,
+ int16_t dst_y);
+
+/**
+ * @brief Sets input focus
+ *
+ * @param c The connection
+ * @param revert_to A bitmask of #xcb_input_focus_t values.
+ * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus
+ * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`).
+ * @param focus The window to focus. All keyboard events will be reported to this window. The
+ * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO).
+ * \n
+ * If \a focus is `XCB_NONE` (TODO), all keyboard events are
+ * discarded until a new focus window is set.
+ * \n
+ * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the
+ * screen on which the pointer is on currently.
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Changes the input focus and the last-focus-change time. If the specified \a time
+ * is earlier than the current last-focus-change time, the request is ignored (to
+ * avoid race conditions when running X over the network).
+ *
+ * A FocusIn and FocusOut event is generated when focus is changed.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_input_focus_checked (xcb_connection_t *c,
+ uint8_t revert_to,
+ xcb_window_t focus,
+ xcb_timestamp_t time);
+
+/**
+ * @brief Sets input focus
+ *
+ * @param c The connection
+ * @param revert_to A bitmask of #xcb_input_focus_t values.
+ * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus
+ * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`).
+ * @param focus The window to focus. All keyboard events will be reported to this window. The
+ * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO).
+ * \n
+ * If \a focus is `XCB_NONE` (TODO), all keyboard events are
+ * discarded until a new focus window is set.
+ * \n
+ * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the
+ * screen on which the pointer is on currently.
+ * @param time Timestamp to avoid race conditions when running X over the network.
+ * \n
+ * The special value `XCB_CURRENT_TIME` will be replaced with the current server
+ * time.
+ * @return A cookie
+ *
+ * Changes the input focus and the last-focus-change time. If the specified \a time
+ * is earlier than the current last-focus-change time, the request is ignored (to
+ * avoid race conditions when running X over the network).
+ *
+ * A FocusIn and FocusOut event is generated when focus is changed.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_input_focus (xcb_connection_t *c,
+ uint8_t revert_to,
+ xcb_window_t focus,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_input_focus_cookie_t
+xcb_get_input_focus (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_input_focus_cookie_t
+xcb_get_input_focus_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_input_focus_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_input_focus_reply_t *
+xcb_get_input_focus_reply (xcb_connection_t *c,
+ xcb_get_input_focus_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_query_keymap_cookie_t
+xcb_query_keymap (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_keymap_cookie_t
+xcb_query_keymap_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_keymap_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_keymap_reply_t *
+xcb_query_keymap_reply (xcb_connection_t *c,
+ xcb_query_keymap_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_open_font_sizeof (const void *_buffer);
+
+/**
+ * @brief opens a font
+ *
+ * @param c The connection
+ * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`.
+ * @param name_len Length (in bytes) of \a name.
+ * @param name A pattern describing an X core font.
+ * @return A cookie
+ *
+ * Opens any X core font matching the given \a name (for example "-misc-fixed-*").
+ *
+ * Note that X core fonts are deprecated (but still supported) in favor of
+ * client-side rendering using Xft.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_open_font_checked (xcb_connection_t *c,
+ xcb_font_t fid,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * @brief opens a font
+ *
+ * @param c The connection
+ * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`.
+ * @param name_len Length (in bytes) of \a name.
+ * @param name A pattern describing an X core font.
+ * @return A cookie
+ *
+ * Opens any X core font matching the given \a name (for example "-misc-fixed-*").
+ *
+ * Note that X core fonts are deprecated (but still supported) in favor of
+ * client-side rendering using Xft.
+ *
+ */
+xcb_void_cookie_t
+xcb_open_font (xcb_connection_t *c,
+ xcb_font_t fid,
+ uint16_t name_len,
+ const char *name);
+
+char *
+xcb_open_font_name (const xcb_open_font_request_t *R);
+
+int
+xcb_open_font_name_length (const xcb_open_font_request_t *R);
+
+xcb_generic_iterator_t
+xcb_open_font_name_end (const xcb_open_font_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_close_font_checked (xcb_connection_t *c,
+ xcb_font_t font);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_close_font (xcb_connection_t *c,
+ xcb_font_t font);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_fontprop_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_fontprop_t)
+ */
+void
+xcb_fontprop_next (xcb_fontprop_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_fontprop_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_fontprop_end (xcb_fontprop_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_charinfo_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_charinfo_t)
+ */
+void
+xcb_charinfo_next (xcb_charinfo_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_charinfo_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_charinfo_end (xcb_charinfo_iterator_t i);
+
+int
+xcb_query_font_sizeof (const void *_buffer);
+
+/**
+ * @brief query font metrics
+ *
+ * @param c The connection
+ * @param font The fontable (Font or Graphics Context) to query.
+ * @return A cookie
+ *
+ * Queries information associated with the font.
+ *
+ */
+xcb_query_font_cookie_t
+xcb_query_font (xcb_connection_t *c,
+ xcb_fontable_t font);
+
+/**
+ * @brief query font metrics
+ *
+ * @param c The connection
+ * @param font The fontable (Font or Graphics Context) to query.
+ * @return A cookie
+ *
+ * Queries information associated with the font.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_font_cookie_t
+xcb_query_font_unchecked (xcb_connection_t *c,
+ xcb_fontable_t font);
+
+xcb_fontprop_t *
+xcb_query_font_properties (const xcb_query_font_reply_t *R);
+
+int
+xcb_query_font_properties_length (const xcb_query_font_reply_t *R);
+
+xcb_fontprop_iterator_t
+xcb_query_font_properties_iterator (const xcb_query_font_reply_t *R);
+
+xcb_charinfo_t *
+xcb_query_font_char_infos (const xcb_query_font_reply_t *R);
+
+int
+xcb_query_font_char_infos_length (const xcb_query_font_reply_t *R);
+
+xcb_charinfo_iterator_t
+xcb_query_font_char_infos_iterator (const xcb_query_font_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_font_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_font_reply_t *
+xcb_query_font_reply (xcb_connection_t *c,
+ xcb_query_font_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_query_text_extents_sizeof (const void *_buffer,
+ uint32_t string_len);
+
+/**
+ * @brief get text extents
+ *
+ * @param c The connection
+ * @param font The \a font to calculate text extents in. You can also pass a graphics context.
+ * @param string_len The number of characters in \a string.
+ * @param string The text to get text extents for.
+ * @return A cookie
+ *
+ * Query text extents from the X11 server. This request returns the bounding box
+ * of the specified 16-bit character string in the specified \a font or the font
+ * contained in the specified graphics context.
+ *
+ * `font_ascent` is set to the maximum of the ascent metrics of all characters in
+ * the string. `font_descent` is set to the maximum of the descent metrics.
+ * `overall_width` is set to the sum of the character-width metrics of all
+ * characters in the string. For each character in the string, let W be the sum of
+ * the character-width metrics of all characters preceding it in the string. Let L
+ * be the left-side-bearing metric of the character plus W. Let R be the
+ * right-side-bearing metric of the character plus W. The lbearing member is set
+ * to the minimum L of all characters in the string. The rbearing member is set to
+ * the maximum R.
+ *
+ * For fonts defined with linear indexing rather than 2-byte matrix indexing, each
+ * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the
+ * most significant byte. If the font has no defined default character, undefined
+ * characters in the string are taken to have all zero metrics.
+ *
+ * Characters with all zero metrics are ignored. If the font has no defined
+ * default_char, the undefined characters in the string are also ignored.
+ *
+ */
+xcb_query_text_extents_cookie_t
+xcb_query_text_extents (xcb_connection_t *c,
+ xcb_fontable_t font,
+ uint32_t string_len,
+ const xcb_char2b_t *string);
+
+/**
+ * @brief get text extents
+ *
+ * @param c The connection
+ * @param font The \a font to calculate text extents in. You can also pass a graphics context.
+ * @param string_len The number of characters in \a string.
+ * @param string The text to get text extents for.
+ * @return A cookie
+ *
+ * Query text extents from the X11 server. This request returns the bounding box
+ * of the specified 16-bit character string in the specified \a font or the font
+ * contained in the specified graphics context.
+ *
+ * `font_ascent` is set to the maximum of the ascent metrics of all characters in
+ * the string. `font_descent` is set to the maximum of the descent metrics.
+ * `overall_width` is set to the sum of the character-width metrics of all
+ * characters in the string. For each character in the string, let W be the sum of
+ * the character-width metrics of all characters preceding it in the string. Let L
+ * be the left-side-bearing metric of the character plus W. Let R be the
+ * right-side-bearing metric of the character plus W. The lbearing member is set
+ * to the minimum L of all characters in the string. The rbearing member is set to
+ * the maximum R.
+ *
+ * For fonts defined with linear indexing rather than 2-byte matrix indexing, each
+ * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the
+ * most significant byte. If the font has no defined default character, undefined
+ * characters in the string are taken to have all zero metrics.
+ *
+ * Characters with all zero metrics are ignored. If the font has no defined
+ * default_char, the undefined characters in the string are also ignored.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_text_extents_cookie_t
+xcb_query_text_extents_unchecked (xcb_connection_t *c,
+ xcb_fontable_t font,
+ uint32_t string_len,
+ const xcb_char2b_t *string);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_text_extents_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_text_extents_reply_t *
+xcb_query_text_extents_reply (xcb_connection_t *c,
+ xcb_query_text_extents_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_str_sizeof (const void *_buffer);
+
+char *
+xcb_str_name (const xcb_str_t *R);
+
+int
+xcb_str_name_length (const xcb_str_t *R);
+
+xcb_generic_iterator_t
+xcb_str_name_end (const xcb_str_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_str_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_str_t)
+ */
+void
+xcb_str_next (xcb_str_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_str_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_str_end (xcb_str_iterator_t i);
+
+int
+xcb_list_fonts_sizeof (const void *_buffer);
+
+/**
+ * @brief get matching font names
+ *
+ * @param c The connection
+ * @param max_names The maximum number of fonts to be returned.
+ * @param pattern_len The length (in bytes) of \a pattern.
+ * @param pattern A font pattern, for example "-misc-fixed-*".
+ * \n
+ * The asterisk (*) is a wildcard for any number of characters. The question mark
+ * (?) is a wildcard for a single character. Use of uppercase or lowercase does
+ * not matter.
+ * @return A cookie
+ *
+ * Gets a list of available font names which match the given \a pattern.
+ *
+ */
+xcb_list_fonts_cookie_t
+xcb_list_fonts (xcb_connection_t *c,
+ uint16_t max_names,
+ uint16_t pattern_len,
+ const char *pattern);
+
+/**
+ * @brief get matching font names
+ *
+ * @param c The connection
+ * @param max_names The maximum number of fonts to be returned.
+ * @param pattern_len The length (in bytes) of \a pattern.
+ * @param pattern A font pattern, for example "-misc-fixed-*".
+ * \n
+ * The asterisk (*) is a wildcard for any number of characters. The question mark
+ * (?) is a wildcard for a single character. Use of uppercase or lowercase does
+ * not matter.
+ * @return A cookie
+ *
+ * Gets a list of available font names which match the given \a pattern.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_list_fonts_cookie_t
+xcb_list_fonts_unchecked (xcb_connection_t *c,
+ uint16_t max_names,
+ uint16_t pattern_len,
+ const char *pattern);
+
+int
+xcb_list_fonts_names_length (const xcb_list_fonts_reply_t *R);
+
+xcb_str_iterator_t
+xcb_list_fonts_names_iterator (const xcb_list_fonts_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_list_fonts_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_list_fonts_reply_t *
+xcb_list_fonts_reply (xcb_connection_t *c,
+ xcb_list_fonts_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_list_fonts_with_info_sizeof (const void *_buffer);
+
+/**
+ * @brief get matching font names and information
+ *
+ * @param c The connection
+ * @param max_names The maximum number of fonts to be returned.
+ * @param pattern_len The length (in bytes) of \a pattern.
+ * @param pattern A font pattern, for example "-misc-fixed-*".
+ * \n
+ * The asterisk (*) is a wildcard for any number of characters. The question mark
+ * (?) is a wildcard for a single character. Use of uppercase or lowercase does
+ * not matter.
+ * @return A cookie
+ *
+ * Gets a list of available font names which match the given \a pattern.
+ *
+ */
+xcb_list_fonts_with_info_cookie_t
+xcb_list_fonts_with_info (xcb_connection_t *c,
+ uint16_t max_names,
+ uint16_t pattern_len,
+ const char *pattern);
+
+/**
+ * @brief get matching font names and information
+ *
+ * @param c The connection
+ * @param max_names The maximum number of fonts to be returned.
+ * @param pattern_len The length (in bytes) of \a pattern.
+ * @param pattern A font pattern, for example "-misc-fixed-*".
+ * \n
+ * The asterisk (*) is a wildcard for any number of characters. The question mark
+ * (?) is a wildcard for a single character. Use of uppercase or lowercase does
+ * not matter.
+ * @return A cookie
+ *
+ * Gets a list of available font names which match the given \a pattern.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_list_fonts_with_info_cookie_t
+xcb_list_fonts_with_info_unchecked (xcb_connection_t *c,
+ uint16_t max_names,
+ uint16_t pattern_len,
+ const char *pattern);
+
+xcb_fontprop_t *
+xcb_list_fonts_with_info_properties (const xcb_list_fonts_with_info_reply_t *R);
+
+int
+xcb_list_fonts_with_info_properties_length (const xcb_list_fonts_with_info_reply_t *R);
+
+xcb_fontprop_iterator_t
+xcb_list_fonts_with_info_properties_iterator (const xcb_list_fonts_with_info_reply_t *R);
+
+char *
+xcb_list_fonts_with_info_name (const xcb_list_fonts_with_info_reply_t *R);
+
+int
+xcb_list_fonts_with_info_name_length (const xcb_list_fonts_with_info_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_list_fonts_with_info_name_end (const xcb_list_fonts_with_info_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_list_fonts_with_info_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_list_fonts_with_info_reply_t *
+xcb_list_fonts_with_info_reply (xcb_connection_t *c,
+ xcb_list_fonts_with_info_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_set_font_path_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_font_path_checked (xcb_connection_t *c,
+ uint16_t font_qty,
+ const xcb_str_t *font);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_font_path (xcb_connection_t *c,
+ uint16_t font_qty,
+ const xcb_str_t *font);
+
+int
+xcb_set_font_path_font_length (const xcb_set_font_path_request_t *R);
+
+xcb_str_iterator_t
+xcb_set_font_path_font_iterator (const xcb_set_font_path_request_t *R);
+
+int
+xcb_get_font_path_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_font_path_cookie_t
+xcb_get_font_path (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_font_path_cookie_t
+xcb_get_font_path_unchecked (xcb_connection_t *c);
+
+int
+xcb_get_font_path_path_length (const xcb_get_font_path_reply_t *R);
+
+xcb_str_iterator_t
+xcb_get_font_path_path_iterator (const xcb_get_font_path_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_font_path_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_font_path_reply_t *
+xcb_get_font_path_reply (xcb_connection_t *c,
+ xcb_get_font_path_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * @brief Creates a pixmap
+ *
+ * @param c The connection
+ * @param depth TODO
+ * @param pid The ID with which you will refer to the new pixmap, created by
+ * `xcb_generate_id`.
+ * @param drawable Drawable to get the screen from.
+ * @param width The width of the new pixmap.
+ * @param height The height of the new pixmap.
+ * @return A cookie
+ *
+ * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable
+ * is on and only with drawables of the same \a depth.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_pixmap_checked (xcb_connection_t *c,
+ uint8_t depth,
+ xcb_pixmap_t pid,
+ xcb_drawable_t drawable,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ * @brief Creates a pixmap
+ *
+ * @param c The connection
+ * @param depth TODO
+ * @param pid The ID with which you will refer to the new pixmap, created by
+ * `xcb_generate_id`.
+ * @param drawable Drawable to get the screen from.
+ * @param width The width of the new pixmap.
+ * @param height The height of the new pixmap.
+ * @return A cookie
+ *
+ * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable
+ * is on and only with drawables of the same \a depth.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_pixmap (xcb_connection_t *c,
+ uint8_t depth,
+ xcb_pixmap_t pid,
+ xcb_drawable_t drawable,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ * @brief Destroys a pixmap
+ *
+ * @param c The connection
+ * @param pixmap The pixmap to destroy.
+ * @return A cookie
+ *
+ * Deletes the association between the pixmap ID and the pixmap. The pixmap
+ * storage will be freed when there are no more references to it.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_free_pixmap_checked (xcb_connection_t *c,
+ xcb_pixmap_t pixmap);
+
+/**
+ * @brief Destroys a pixmap
+ *
+ * @param c The connection
+ * @param pixmap The pixmap to destroy.
+ * @return A cookie
+ *
+ * Deletes the association between the pixmap ID and the pixmap. The pixmap
+ * storage will be freed when there are no more references to it.
+ *
+ */
+xcb_void_cookie_t
+xcb_free_pixmap (xcb_connection_t *c,
+ xcb_pixmap_t pixmap);
+
+int
+xcb_create_gc_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_create_gc_value_list_t *_aux);
+
+int
+xcb_create_gc_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_create_gc_value_list_t *_aux);
+
+int
+xcb_create_gc_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_create_gc_sizeof (const void *_buffer);
+
+/**
+ * @brief Creates a graphics context
+ *
+ * @param c The connection
+ * @param cid The ID with which you will refer to the graphics context, created by
+ * `xcb_generate_id`.
+ * @param drawable Drawable to get the root/depth from.
+ * @return A cookie
+ *
+ * Creates a graphics context. The graphics context can be used with any drawable
+ * that has the same root and depth as the specified drawable.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_gc_checked (xcb_connection_t *c,
+ xcb_gcontext_t cid,
+ xcb_drawable_t drawable,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief Creates a graphics context
+ *
+ * @param c The connection
+ * @param cid The ID with which you will refer to the graphics context, created by
+ * `xcb_generate_id`.
+ * @param drawable Drawable to get the root/depth from.
+ * @return A cookie
+ *
+ * Creates a graphics context. The graphics context can be used with any drawable
+ * that has the same root and depth as the specified drawable.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_gc (xcb_connection_t *c,
+ xcb_gcontext_t cid,
+ xcb_drawable_t drawable,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief Creates a graphics context
+ *
+ * @param c The connection
+ * @param cid The ID with which you will refer to the graphics context, created by
+ * `xcb_generate_id`.
+ * @param drawable Drawable to get the root/depth from.
+ * @return A cookie
+ *
+ * Creates a graphics context. The graphics context can be used with any drawable
+ * that has the same root and depth as the specified drawable.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_gc_aux_checked (xcb_connection_t *c,
+ xcb_gcontext_t cid,
+ xcb_drawable_t drawable,
+ uint32_t value_mask,
+ const xcb_create_gc_value_list_t *value_list);
+
+/**
+ * @brief Creates a graphics context
+ *
+ * @param c The connection
+ * @param cid The ID with which you will refer to the graphics context, created by
+ * `xcb_generate_id`.
+ * @param drawable Drawable to get the root/depth from.
+ * @return A cookie
+ *
+ * Creates a graphics context. The graphics context can be used with any drawable
+ * that has the same root and depth as the specified drawable.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_gc_aux (xcb_connection_t *c,
+ xcb_gcontext_t cid,
+ xcb_drawable_t drawable,
+ uint32_t value_mask,
+ const xcb_create_gc_value_list_t *value_list);
+
+void *
+xcb_create_gc_value_list (const xcb_create_gc_request_t *R);
+
+int
+xcb_change_gc_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_change_gc_value_list_t *_aux);
+
+int
+xcb_change_gc_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_change_gc_value_list_t *_aux);
+
+int
+xcb_change_gc_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_change_gc_sizeof (const void *_buffer);
+
+/**
+ * @brief change graphics context components
+ *
+ * @param c The connection
+ * @param gc The graphics context to change.
+ * @param value_mask A bitmask of #xcb_gc_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the components specified by \a value_mask for the specified graphics context.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_gc_checked (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief change graphics context components
+ *
+ * @param c The connection
+ * @param gc The graphics context to change.
+ * @param value_mask A bitmask of #xcb_gc_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the components specified by \a value_mask for the specified graphics context.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_gc (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ * @brief change graphics context components
+ *
+ * @param c The connection
+ * @param gc The graphics context to change.
+ * @param value_mask A bitmask of #xcb_gc_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the components specified by \a value_mask for the specified graphics context.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_gc_aux_checked (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ uint32_t value_mask,
+ const xcb_change_gc_value_list_t *value_list);
+
+/**
+ * @brief change graphics context components
+ *
+ * @param c The connection
+ * @param gc The graphics context to change.
+ * @param value_mask A bitmask of #xcb_gc_t values.
+ * @param value_mask \n
+ * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
+ * order has to correspond to the order of possible \a value_mask bits. See the
+ * example.
+ * @return A cookie
+ *
+ * Changes the components specified by \a value_mask for the specified graphics context.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_gc_aux (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ uint32_t value_mask,
+ const xcb_change_gc_value_list_t *value_list);
+
+void *
+xcb_change_gc_value_list (const xcb_change_gc_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_copy_gc_checked (xcb_connection_t *c,
+ xcb_gcontext_t src_gc,
+ xcb_gcontext_t dst_gc,
+ uint32_t value_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_copy_gc (xcb_connection_t *c,
+ xcb_gcontext_t src_gc,
+ xcb_gcontext_t dst_gc,
+ uint32_t value_mask);
+
+int
+xcb_set_dashes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_dashes_checked (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ uint16_t dash_offset,
+ uint16_t dashes_len,
+ const uint8_t *dashes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_dashes (xcb_connection_t *c,
+ xcb_gcontext_t gc,
+ uint16_t dash_offset,
+ uint16_t dashes_len,
+ const uint8_t *dashes);
+
+uint8_t *
+xcb_set_dashes_dashes (const xcb_set_dashes_request_t *R);
+
+int
+xcb_set_dashes_dashes_length (const xcb_set_dashes_request_t *R);
+
+xcb_generic_iterator_t
+xcb_set_dashes_dashes_end (const xcb_set_dashes_request_t *R);
+
+int
+xcb_set_clip_rectangles_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_clip_rectangles_checked (xcb_connection_t *c,
+ uint8_t ordering,
+ xcb_gcontext_t gc,
+ int16_t clip_x_origin,
+ int16_t clip_y_origin,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_clip_rectangles (xcb_connection_t *c,
+ uint8_t ordering,
+ xcb_gcontext_t gc,
+ int16_t clip_x_origin,
+ int16_t clip_y_origin,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_set_clip_rectangles_rectangles (const xcb_set_clip_rectangles_request_t *R);
+
+int
+xcb_set_clip_rectangles_rectangles_length (const xcb_set_clip_rectangles_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_set_clip_rectangles_rectangles_iterator (const xcb_set_clip_rectangles_request_t *R);
+
+/**
+ * @brief Destroys a graphics context
+ *
+ * @param c The connection
+ * @param gc The graphics context to destroy.
+ * @return A cookie
+ *
+ * Destroys the specified \a gc and all associated storage.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_free_gc_checked (xcb_connection_t *c,
+ xcb_gcontext_t gc);
+
+/**
+ * @brief Destroys a graphics context
+ *
+ * @param c The connection
+ * @param gc The graphics context to destroy.
+ * @return A cookie
+ *
+ * Destroys the specified \a gc and all associated storage.
+ *
+ */
+xcb_void_cookie_t
+xcb_free_gc (xcb_connection_t *c,
+ xcb_gcontext_t gc);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_clear_area_checked (xcb_connection_t *c,
+ uint8_t exposures,
+ xcb_window_t window,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_clear_area (xcb_connection_t *c,
+ uint8_t exposures,
+ xcb_window_t window,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ * @brief copy areas
+ *
+ * @param c The connection
+ * @param src_drawable The source drawable (Window or Pixmap).
+ * @param dst_drawable The destination drawable (Window or Pixmap).
+ * @param gc The graphics context to use.
+ * @param src_x The source X coordinate.
+ * @param src_y The source Y coordinate.
+ * @param dst_x The destination X coordinate.
+ * @param dst_y The destination Y coordinate.
+ * @param width The width of the area to copy (in pixels).
+ * @param height The height of the area to copy (in pixels).
+ * @return A cookie
+ *
+ * Copies the specified rectangle from \a src_drawable to \a dst_drawable.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_copy_area_checked (xcb_connection_t *c,
+ xcb_drawable_t src_drawable,
+ xcb_drawable_t dst_drawable,
+ xcb_gcontext_t gc,
+ int16_t src_x,
+ int16_t src_y,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ * @brief copy areas
+ *
+ * @param c The connection
+ * @param src_drawable The source drawable (Window or Pixmap).
+ * @param dst_drawable The destination drawable (Window or Pixmap).
+ * @param gc The graphics context to use.
+ * @param src_x The source X coordinate.
+ * @param src_y The source Y coordinate.
+ * @param dst_x The destination X coordinate.
+ * @param dst_y The destination Y coordinate.
+ * @param width The width of the area to copy (in pixels).
+ * @param height The height of the area to copy (in pixels).
+ * @return A cookie
+ *
+ * Copies the specified rectangle from \a src_drawable to \a dst_drawable.
+ *
+ */
+xcb_void_cookie_t
+xcb_copy_area (xcb_connection_t *c,
+ xcb_drawable_t src_drawable,
+ xcb_drawable_t dst_drawable,
+ xcb_gcontext_t gc,
+ int16_t src_x,
+ int16_t src_y,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_copy_plane_checked (xcb_connection_t *c,
+ xcb_drawable_t src_drawable,
+ xcb_drawable_t dst_drawable,
+ xcb_gcontext_t gc,
+ int16_t src_x,
+ int16_t src_y,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint16_t width,
+ uint16_t height,
+ uint32_t bit_plane);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_copy_plane (xcb_connection_t *c,
+ xcb_drawable_t src_drawable,
+ xcb_drawable_t dst_drawable,
+ xcb_gcontext_t gc,
+ int16_t src_x,
+ int16_t src_y,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint16_t width,
+ uint16_t height,
+ uint32_t bit_plane);
+
+int
+xcb_poly_point_sizeof (const void *_buffer,
+ uint32_t points_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_point_checked (xcb_connection_t *c,
+ uint8_t coordinate_mode,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t points_len,
+ const xcb_point_t *points);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_point (xcb_connection_t *c,
+ uint8_t coordinate_mode,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t points_len,
+ const xcb_point_t *points);
+
+xcb_point_t *
+xcb_poly_point_points (const xcb_poly_point_request_t *R);
+
+int
+xcb_poly_point_points_length (const xcb_poly_point_request_t *R);
+
+xcb_point_iterator_t
+xcb_poly_point_points_iterator (const xcb_poly_point_request_t *R);
+
+int
+xcb_poly_line_sizeof (const void *_buffer,
+ uint32_t points_len);
+
+/**
+ * @brief draw lines
+ *
+ * @param c The connection
+ * @param coordinate_mode A bitmask of #xcb_coord_mode_t values.
+ * @param coordinate_mode \n
+ * @param drawable The drawable to draw the line(s) on.
+ * @param gc The graphics context to use.
+ * @param points_len The number of `xcb_point_t` structures in \a points.
+ * @param points An array of points.
+ * @return A cookie
+ *
+ * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1])
+ * in the \a points array. The lines are drawn in the order listed in the array.
+ * They join correctly at all intermediate points, and if the first and last
+ * points coincide, the first and last lines also join correctly. For any given
+ * line, a pixel is not drawn more than once. If thin (zero line-width) lines
+ * intersect, the intersecting pixels are drawn multiple times. If wide lines
+ * intersect, the intersecting pixels are drawn only once, as though the entire
+ * request were a single, filled shape.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_line_checked (xcb_connection_t *c,
+ uint8_t coordinate_mode,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t points_len,
+ const xcb_point_t *points);
+
+/**
+ * @brief draw lines
+ *
+ * @param c The connection
+ * @param coordinate_mode A bitmask of #xcb_coord_mode_t values.
+ * @param coordinate_mode \n
+ * @param drawable The drawable to draw the line(s) on.
+ * @param gc The graphics context to use.
+ * @param points_len The number of `xcb_point_t` structures in \a points.
+ * @param points An array of points.
+ * @return A cookie
+ *
+ * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1])
+ * in the \a points array. The lines are drawn in the order listed in the array.
+ * They join correctly at all intermediate points, and if the first and last
+ * points coincide, the first and last lines also join correctly. For any given
+ * line, a pixel is not drawn more than once. If thin (zero line-width) lines
+ * intersect, the intersecting pixels are drawn multiple times. If wide lines
+ * intersect, the intersecting pixels are drawn only once, as though the entire
+ * request were a single, filled shape.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_line (xcb_connection_t *c,
+ uint8_t coordinate_mode,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t points_len,
+ const xcb_point_t *points);
+
+xcb_point_t *
+xcb_poly_line_points (const xcb_poly_line_request_t *R);
+
+int
+xcb_poly_line_points_length (const xcb_poly_line_request_t *R);
+
+xcb_point_iterator_t
+xcb_poly_line_points_iterator (const xcb_poly_line_request_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_segment_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_segment_t)
+ */
+void
+xcb_segment_next (xcb_segment_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_segment_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_segment_end (xcb_segment_iterator_t i);
+
+int
+xcb_poly_segment_sizeof (const void *_buffer,
+ uint32_t segments_len);
+
+/**
+ * @brief draw lines
+ *
+ * @param c The connection
+ * @param drawable A drawable (Window or Pixmap) to draw on.
+ * @param gc The graphics context to use.
+ * \n
+ * TODO: document which attributes of a gc are used
+ * @param segments_len The number of `xcb_segment_t` structures in \a segments.
+ * @param segments An array of `xcb_segment_t` structures.
+ * @return A cookie
+ *
+ * Draws multiple, unconnected lines. For each segment, a line is drawn between
+ * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of
+ * `xcb_segment_t` structures and does not perform joining at coincident
+ * endpoints. For any given line, a pixel is not drawn more than once. If lines
+ * intersect, the intersecting pixels are drawn multiple times.
+ *
+ * TODO: include the xcb_segment_t data structure
+ *
+ * TODO: an example
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_segment_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t segments_len,
+ const xcb_segment_t *segments);
+
+/**
+ * @brief draw lines
+ *
+ * @param c The connection
+ * @param drawable A drawable (Window or Pixmap) to draw on.
+ * @param gc The graphics context to use.
+ * \n
+ * TODO: document which attributes of a gc are used
+ * @param segments_len The number of `xcb_segment_t` structures in \a segments.
+ * @param segments An array of `xcb_segment_t` structures.
+ * @return A cookie
+ *
+ * Draws multiple, unconnected lines. For each segment, a line is drawn between
+ * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of
+ * `xcb_segment_t` structures and does not perform joining at coincident
+ * endpoints. For any given line, a pixel is not drawn more than once. If lines
+ * intersect, the intersecting pixels are drawn multiple times.
+ *
+ * TODO: include the xcb_segment_t data structure
+ *
+ * TODO: an example
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_segment (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t segments_len,
+ const xcb_segment_t *segments);
+
+xcb_segment_t *
+xcb_poly_segment_segments (const xcb_poly_segment_request_t *R);
+
+int
+xcb_poly_segment_segments_length (const xcb_poly_segment_request_t *R);
+
+xcb_segment_iterator_t
+xcb_poly_segment_segments_iterator (const xcb_poly_segment_request_t *R);
+
+int
+xcb_poly_rectangle_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_rectangle_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_rectangle (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_poly_rectangle_rectangles (const xcb_poly_rectangle_request_t *R);
+
+int
+xcb_poly_rectangle_rectangles_length (const xcb_poly_rectangle_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_poly_rectangle_rectangles_iterator (const xcb_poly_rectangle_request_t *R);
+
+int
+xcb_poly_arc_sizeof (const void *_buffer,
+ uint32_t arcs_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_arc_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t arcs_len,
+ const xcb_arc_t *arcs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_arc (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t arcs_len,
+ const xcb_arc_t *arcs);
+
+xcb_arc_t *
+xcb_poly_arc_arcs (const xcb_poly_arc_request_t *R);
+
+int
+xcb_poly_arc_arcs_length (const xcb_poly_arc_request_t *R);
+
+xcb_arc_iterator_t
+xcb_poly_arc_arcs_iterator (const xcb_poly_arc_request_t *R);
+
+int
+xcb_fill_poly_sizeof (const void *_buffer,
+ uint32_t points_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_fill_poly_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint8_t shape,
+ uint8_t coordinate_mode,
+ uint32_t points_len,
+ const xcb_point_t *points);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_fill_poly (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint8_t shape,
+ uint8_t coordinate_mode,
+ uint32_t points_len,
+ const xcb_point_t *points);
+
+xcb_point_t *
+xcb_fill_poly_points (const xcb_fill_poly_request_t *R);
+
+int
+xcb_fill_poly_points_length (const xcb_fill_poly_request_t *R);
+
+xcb_point_iterator_t
+xcb_fill_poly_points_iterator (const xcb_fill_poly_request_t *R);
+
+int
+xcb_poly_fill_rectangle_sizeof (const void *_buffer,
+ uint32_t rectangles_len);
+
+/**
+ * @brief Fills rectangles
+ *
+ * @param c The connection
+ * @param drawable The drawable (Window or Pixmap) to draw on.
+ * @param gc The graphics context to use.
+ * \n
+ * The following graphics context components are used: function, plane-mask,
+ * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
+ * \n
+ * The following graphics context mode-dependent components are used:
+ * foreground, background, tile, stipple, tile-stipple-x-origin, and
+ * tile-stipple-y-origin.
+ * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles.
+ * @param rectangles The rectangles to fill.
+ * @return A cookie
+ *
+ * Fills the specified rectangle(s) in the order listed in the array. For any
+ * given rectangle, each pixel is not drawn more than once. If rectangles
+ * intersect, the intersecting pixels are drawn multiple times.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_fill_rectangle_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+/**
+ * @brief Fills rectangles
+ *
+ * @param c The connection
+ * @param drawable The drawable (Window or Pixmap) to draw on.
+ * @param gc The graphics context to use.
+ * \n
+ * The following graphics context components are used: function, plane-mask,
+ * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
+ * \n
+ * The following graphics context mode-dependent components are used:
+ * foreground, background, tile, stipple, tile-stipple-x-origin, and
+ * tile-stipple-y-origin.
+ * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles.
+ * @param rectangles The rectangles to fill.
+ * @return A cookie
+ *
+ * Fills the specified rectangle(s) in the order listed in the array. For any
+ * given rectangle, each pixel is not drawn more than once. If rectangles
+ * intersect, the intersecting pixels are drawn multiple times.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_fill_rectangle (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t rectangles_len,
+ const xcb_rectangle_t *rectangles);
+
+xcb_rectangle_t *
+xcb_poly_fill_rectangle_rectangles (const xcb_poly_fill_rectangle_request_t *R);
+
+int
+xcb_poly_fill_rectangle_rectangles_length (const xcb_poly_fill_rectangle_request_t *R);
+
+xcb_rectangle_iterator_t
+xcb_poly_fill_rectangle_rectangles_iterator (const xcb_poly_fill_rectangle_request_t *R);
+
+int
+xcb_poly_fill_arc_sizeof (const void *_buffer,
+ uint32_t arcs_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_fill_arc_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t arcs_len,
+ const xcb_arc_t *arcs);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_fill_arc (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t arcs_len,
+ const xcb_arc_t *arcs);
+
+xcb_arc_t *
+xcb_poly_fill_arc_arcs (const xcb_poly_fill_arc_request_t *R);
+
+int
+xcb_poly_fill_arc_arcs_length (const xcb_poly_fill_arc_request_t *R);
+
+xcb_arc_iterator_t
+xcb_poly_fill_arc_arcs_iterator (const xcb_poly_fill_arc_request_t *R);
+
+int
+xcb_put_image_sizeof (const void *_buffer,
+ uint32_t data_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_put_image_checked (xcb_connection_t *c,
+ uint8_t format,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint16_t width,
+ uint16_t height,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint8_t left_pad,
+ uint8_t depth,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_put_image (xcb_connection_t *c,
+ uint8_t format,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint16_t width,
+ uint16_t height,
+ int16_t dst_x,
+ int16_t dst_y,
+ uint8_t left_pad,
+ uint8_t depth,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint8_t *
+xcb_put_image_data (const xcb_put_image_request_t *R);
+
+int
+xcb_put_image_data_length (const xcb_put_image_request_t *R);
+
+xcb_generic_iterator_t
+xcb_put_image_data_end (const xcb_put_image_request_t *R);
+
+int
+xcb_get_image_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_image_cookie_t
+xcb_get_image (xcb_connection_t *c,
+ uint8_t format,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint32_t plane_mask);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_image_cookie_t
+xcb_get_image_unchecked (xcb_connection_t *c,
+ uint8_t format,
+ xcb_drawable_t drawable,
+ int16_t x,
+ int16_t y,
+ uint16_t width,
+ uint16_t height,
+ uint32_t plane_mask);
+
+uint8_t *
+xcb_get_image_data (const xcb_get_image_reply_t *R);
+
+int
+xcb_get_image_data_length (const xcb_get_image_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_get_image_data_end (const xcb_get_image_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_image_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_image_reply_t *
+xcb_get_image_reply (xcb_connection_t *c,
+ xcb_get_image_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_poly_text_8_sizeof (const void *_buffer,
+ uint32_t items_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_text_8_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ uint32_t items_len,
+ const uint8_t *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_text_8 (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ uint32_t items_len,
+ const uint8_t *items);
+
+uint8_t *
+xcb_poly_text_8_items (const xcb_poly_text_8_request_t *R);
+
+int
+xcb_poly_text_8_items_length (const xcb_poly_text_8_request_t *R);
+
+xcb_generic_iterator_t
+xcb_poly_text_8_items_end (const xcb_poly_text_8_request_t *R);
+
+int
+xcb_poly_text_16_sizeof (const void *_buffer,
+ uint32_t items_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_poly_text_16_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ uint32_t items_len,
+ const uint8_t *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_poly_text_16 (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ uint32_t items_len,
+ const uint8_t *items);
+
+uint8_t *
+xcb_poly_text_16_items (const xcb_poly_text_16_request_t *R);
+
+int
+xcb_poly_text_16_items_length (const xcb_poly_text_16_request_t *R);
+
+xcb_generic_iterator_t
+xcb_poly_text_16_items_end (const xcb_poly_text_16_request_t *R);
+
+int
+xcb_image_text_8_sizeof (const void *_buffer);
+
+/**
+ * @brief Draws text
+ *
+ * @param c The connection
+ * @param string_len The length of the \a string. Note that this parameter limited by 255 due to
+ * using 8 bits!
+ * @param drawable The drawable (Window or Pixmap) to draw text on.
+ * @param gc The graphics context to use.
+ * \n
+ * The following graphics context components are used: plane-mask, foreground,
+ * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
+ * @param x The x coordinate of the first character, relative to the origin of \a drawable.
+ * @param y The y coordinate of the first character, relative to the origin of \a drawable.
+ * @param string The string to draw. Only the first 255 characters are relevant due to the data
+ * type of \a string_len.
+ * @return A cookie
+ *
+ * Fills the destination rectangle with the background pixel from \a gc, then
+ * paints the text with the foreground pixel from \a gc. The upper-left corner of
+ * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
+ * the height is font-ascent + font-descent. The overall-width, font-ascent and
+ * font-descent are as returned by `xcb_query_text_extents` (TODO).
+ *
+ * Note that using X core fonts is deprecated (but still supported) in favor of
+ * client-side rendering using Xft.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_image_text_8_checked (xcb_connection_t *c,
+ uint8_t string_len,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ const char *string);
+
+/**
+ * @brief Draws text
+ *
+ * @param c The connection
+ * @param string_len The length of the \a string. Note that this parameter limited by 255 due to
+ * using 8 bits!
+ * @param drawable The drawable (Window or Pixmap) to draw text on.
+ * @param gc The graphics context to use.
+ * \n
+ * The following graphics context components are used: plane-mask, foreground,
+ * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
+ * @param x The x coordinate of the first character, relative to the origin of \a drawable.
+ * @param y The y coordinate of the first character, relative to the origin of \a drawable.
+ * @param string The string to draw. Only the first 255 characters are relevant due to the data
+ * type of \a string_len.
+ * @return A cookie
+ *
+ * Fills the destination rectangle with the background pixel from \a gc, then
+ * paints the text with the foreground pixel from \a gc. The upper-left corner of
+ * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
+ * the height is font-ascent + font-descent. The overall-width, font-ascent and
+ * font-descent are as returned by `xcb_query_text_extents` (TODO).
+ *
+ * Note that using X core fonts is deprecated (but still supported) in favor of
+ * client-side rendering using Xft.
+ *
+ */
+xcb_void_cookie_t
+xcb_image_text_8 (xcb_connection_t *c,
+ uint8_t string_len,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ const char *string);
+
+char *
+xcb_image_text_8_string (const xcb_image_text_8_request_t *R);
+
+int
+xcb_image_text_8_string_length (const xcb_image_text_8_request_t *R);
+
+xcb_generic_iterator_t
+xcb_image_text_8_string_end (const xcb_image_text_8_request_t *R);
+
+int
+xcb_image_text_16_sizeof (const void *_buffer);
+
+/**
+ * @brief Draws text
+ *
+ * @param c The connection
+ * @param string_len The length of the \a string in characters. Note that this parameter limited by
+ * 255 due to using 8 bits!
+ * @param drawable The drawable (Window or Pixmap) to draw text on.
+ * @param gc The graphics context to use.
+ * \n
+ * The following graphics context components are used: plane-mask, foreground,
+ * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
+ * @param x The x coordinate of the first character, relative to the origin of \a drawable.
+ * @param y The y coordinate of the first character, relative to the origin of \a drawable.
+ * @param string The string to draw. Only the first 255 characters are relevant due to the data
+ * type of \a string_len. Every character uses 2 bytes (hence the 16 in this
+ * request's name).
+ * @return A cookie
+ *
+ * Fills the destination rectangle with the background pixel from \a gc, then
+ * paints the text with the foreground pixel from \a gc. The upper-left corner of
+ * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
+ * the height is font-ascent + font-descent. The overall-width, font-ascent and
+ * font-descent are as returned by `xcb_query_text_extents` (TODO).
+ *
+ * Note that using X core fonts is deprecated (but still supported) in favor of
+ * client-side rendering using Xft.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_image_text_16_checked (xcb_connection_t *c,
+ uint8_t string_len,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ const xcb_char2b_t *string);
+
+/**
+ * @brief Draws text
+ *
+ * @param c The connection
+ * @param string_len The length of the \a string in characters. Note that this parameter limited by
+ * 255 due to using 8 bits!
+ * @param drawable The drawable (Window or Pixmap) to draw text on.
+ * @param gc The graphics context to use.
+ * \n
+ * The following graphics context components are used: plane-mask, foreground,
+ * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
+ * @param x The x coordinate of the first character, relative to the origin of \a drawable.
+ * @param y The y coordinate of the first character, relative to the origin of \a drawable.
+ * @param string The string to draw. Only the first 255 characters are relevant due to the data
+ * type of \a string_len. Every character uses 2 bytes (hence the 16 in this
+ * request's name).
+ * @return A cookie
+ *
+ * Fills the destination rectangle with the background pixel from \a gc, then
+ * paints the text with the foreground pixel from \a gc. The upper-left corner of
+ * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
+ * the height is font-ascent + font-descent. The overall-width, font-ascent and
+ * font-descent are as returned by `xcb_query_text_extents` (TODO).
+ *
+ * Note that using X core fonts is deprecated (but still supported) in favor of
+ * client-side rendering using Xft.
+ *
+ */
+xcb_void_cookie_t
+xcb_image_text_16 (xcb_connection_t *c,
+ uint8_t string_len,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t x,
+ int16_t y,
+ const xcb_char2b_t *string);
+
+xcb_char2b_t *
+xcb_image_text_16_string (const xcb_image_text_16_request_t *R);
+
+int
+xcb_image_text_16_string_length (const xcb_image_text_16_request_t *R);
+
+xcb_char2b_iterator_t
+xcb_image_text_16_string_iterator (const xcb_image_text_16_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_colormap_checked (xcb_connection_t *c,
+ uint8_t alloc,
+ xcb_colormap_t mid,
+ xcb_window_t window,
+ xcb_visualid_t visual);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_colormap (xcb_connection_t *c,
+ uint8_t alloc,
+ xcb_colormap_t mid,
+ xcb_window_t window,
+ xcb_visualid_t visual);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_free_colormap_checked (xcb_connection_t *c,
+ xcb_colormap_t cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_free_colormap (xcb_connection_t *c,
+ xcb_colormap_t cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_copy_colormap_and_free_checked (xcb_connection_t *c,
+ xcb_colormap_t mid,
+ xcb_colormap_t src_cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_copy_colormap_and_free (xcb_connection_t *c,
+ xcb_colormap_t mid,
+ xcb_colormap_t src_cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_install_colormap_checked (xcb_connection_t *c,
+ xcb_colormap_t cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_install_colormap (xcb_connection_t *c,
+ xcb_colormap_t cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_uninstall_colormap_checked (xcb_connection_t *c,
+ xcb_colormap_t cmap);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_uninstall_colormap (xcb_connection_t *c,
+ xcb_colormap_t cmap);
+
+int
+xcb_list_installed_colormaps_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_list_installed_colormaps_cookie_t
+xcb_list_installed_colormaps (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_list_installed_colormaps_cookie_t
+xcb_list_installed_colormaps_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+xcb_colormap_t *
+xcb_list_installed_colormaps_cmaps (const xcb_list_installed_colormaps_reply_t *R);
+
+int
+xcb_list_installed_colormaps_cmaps_length (const xcb_list_installed_colormaps_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_list_installed_colormaps_cmaps_end (const xcb_list_installed_colormaps_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_list_installed_colormaps_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_list_installed_colormaps_reply_t *
+xcb_list_installed_colormaps_reply (xcb_connection_t *c,
+ xcb_list_installed_colormaps_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ * @brief Allocate a color
+ *
+ * @param c The connection
+ * @param cmap TODO
+ * @param red The red value of your color.
+ * @param green The green value of your color.
+ * @param blue The blue value of your color.
+ * @return A cookie
+ *
+ * Allocates a read-only colormap entry corresponding to the closest RGB value
+ * supported by the hardware. If you are using TrueColor, you can take a shortcut
+ * and directly calculate the color pixel value to avoid the round trip. But, for
+ * example, on 16-bit color setups (VNC), you can easily get the closest supported
+ * RGB value to the RGB value you are specifying.
+ *
+ */
+xcb_alloc_color_cookie_t
+xcb_alloc_color (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint16_t red,
+ uint16_t green,
+ uint16_t blue);
+
+/**
+ * @brief Allocate a color
+ *
+ * @param c The connection
+ * @param cmap TODO
+ * @param red The red value of your color.
+ * @param green The green value of your color.
+ * @param blue The blue value of your color.
+ * @return A cookie
+ *
+ * Allocates a read-only colormap entry corresponding to the closest RGB value
+ * supported by the hardware. If you are using TrueColor, you can take a shortcut
+ * and directly calculate the color pixel value to avoid the round trip. But, for
+ * example, on 16-bit color setups (VNC), you can easily get the closest supported
+ * RGB value to the RGB value you are specifying.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_alloc_color_cookie_t
+xcb_alloc_color_unchecked (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint16_t red,
+ uint16_t green,
+ uint16_t blue);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_alloc_color_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_alloc_color_reply_t *
+xcb_alloc_color_reply (xcb_connection_t *c,
+ xcb_alloc_color_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_alloc_named_color_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_alloc_named_color_cookie_t
+xcb_alloc_named_color (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_alloc_named_color_cookie_t
+xcb_alloc_named_color_unchecked (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_alloc_named_color_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_alloc_named_color_reply_t *
+xcb_alloc_named_color_reply (xcb_connection_t *c,
+ xcb_alloc_named_color_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_alloc_color_cells_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_alloc_color_cells_cookie_t
+xcb_alloc_color_cells (xcb_connection_t *c,
+ uint8_t contiguous,
+ xcb_colormap_t cmap,
+ uint16_t colors,
+ uint16_t planes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_alloc_color_cells_cookie_t
+xcb_alloc_color_cells_unchecked (xcb_connection_t *c,
+ uint8_t contiguous,
+ xcb_colormap_t cmap,
+ uint16_t colors,
+ uint16_t planes);
+
+uint32_t *
+xcb_alloc_color_cells_pixels (const xcb_alloc_color_cells_reply_t *R);
+
+int
+xcb_alloc_color_cells_pixels_length (const xcb_alloc_color_cells_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_alloc_color_cells_pixels_end (const xcb_alloc_color_cells_reply_t *R);
+
+uint32_t *
+xcb_alloc_color_cells_masks (const xcb_alloc_color_cells_reply_t *R);
+
+int
+xcb_alloc_color_cells_masks_length (const xcb_alloc_color_cells_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_alloc_color_cells_masks_end (const xcb_alloc_color_cells_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_alloc_color_cells_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_alloc_color_cells_reply_t *
+xcb_alloc_color_cells_reply (xcb_connection_t *c,
+ xcb_alloc_color_cells_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_alloc_color_planes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_alloc_color_planes_cookie_t
+xcb_alloc_color_planes (xcb_connection_t *c,
+ uint8_t contiguous,
+ xcb_colormap_t cmap,
+ uint16_t colors,
+ uint16_t reds,
+ uint16_t greens,
+ uint16_t blues);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_alloc_color_planes_cookie_t
+xcb_alloc_color_planes_unchecked (xcb_connection_t *c,
+ uint8_t contiguous,
+ xcb_colormap_t cmap,
+ uint16_t colors,
+ uint16_t reds,
+ uint16_t greens,
+ uint16_t blues);
+
+uint32_t *
+xcb_alloc_color_planes_pixels (const xcb_alloc_color_planes_reply_t *R);
+
+int
+xcb_alloc_color_planes_pixels_length (const xcb_alloc_color_planes_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_alloc_color_planes_pixels_end (const xcb_alloc_color_planes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_alloc_color_planes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_alloc_color_planes_reply_t *
+xcb_alloc_color_planes_reply (xcb_connection_t *c,
+ xcb_alloc_color_planes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_free_colors_sizeof (const void *_buffer,
+ uint32_t pixels_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_free_colors_checked (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint32_t plane_mask,
+ uint32_t pixels_len,
+ const uint32_t *pixels);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_free_colors (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint32_t plane_mask,
+ uint32_t pixels_len,
+ const uint32_t *pixels);
+
+uint32_t *
+xcb_free_colors_pixels (const xcb_free_colors_request_t *R);
+
+int
+xcb_free_colors_pixels_length (const xcb_free_colors_request_t *R);
+
+xcb_generic_iterator_t
+xcb_free_colors_pixels_end (const xcb_free_colors_request_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_coloritem_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_coloritem_t)
+ */
+void
+xcb_coloritem_next (xcb_coloritem_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_coloritem_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_coloritem_end (xcb_coloritem_iterator_t i);
+
+int
+xcb_store_colors_sizeof (const void *_buffer,
+ uint32_t items_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_store_colors_checked (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint32_t items_len,
+ const xcb_coloritem_t *items);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_store_colors (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint32_t items_len,
+ const xcb_coloritem_t *items);
+
+xcb_coloritem_t *
+xcb_store_colors_items (const xcb_store_colors_request_t *R);
+
+int
+xcb_store_colors_items_length (const xcb_store_colors_request_t *R);
+
+xcb_coloritem_iterator_t
+xcb_store_colors_items_iterator (const xcb_store_colors_request_t *R);
+
+int
+xcb_store_named_color_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_store_named_color_checked (xcb_connection_t *c,
+ uint8_t flags,
+ xcb_colormap_t cmap,
+ uint32_t pixel,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_store_named_color (xcb_connection_t *c,
+ uint8_t flags,
+ xcb_colormap_t cmap,
+ uint32_t pixel,
+ uint16_t name_len,
+ const char *name);
+
+char *
+xcb_store_named_color_name (const xcb_store_named_color_request_t *R);
+
+int
+xcb_store_named_color_name_length (const xcb_store_named_color_request_t *R);
+
+xcb_generic_iterator_t
+xcb_store_named_color_name_end (const xcb_store_named_color_request_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_rgb_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_rgb_t)
+ */
+void
+xcb_rgb_next (xcb_rgb_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_rgb_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_rgb_end (xcb_rgb_iterator_t i);
+
+int
+xcb_query_colors_sizeof (const void *_buffer,
+ uint32_t pixels_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_query_colors_cookie_t
+xcb_query_colors (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint32_t pixels_len,
+ const uint32_t *pixels);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_colors_cookie_t
+xcb_query_colors_unchecked (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint32_t pixels_len,
+ const uint32_t *pixels);
+
+xcb_rgb_t *
+xcb_query_colors_colors (const xcb_query_colors_reply_t *R);
+
+int
+xcb_query_colors_colors_length (const xcb_query_colors_reply_t *R);
+
+xcb_rgb_iterator_t
+xcb_query_colors_colors_iterator (const xcb_query_colors_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_colors_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_colors_reply_t *
+xcb_query_colors_reply (xcb_connection_t *c,
+ xcb_query_colors_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_lookup_color_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_lookup_color_cookie_t
+xcb_lookup_color (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_lookup_color_cookie_t
+xcb_lookup_color_unchecked (xcb_connection_t *c,
+ xcb_colormap_t cmap,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_lookup_color_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_lookup_color_reply_t *
+xcb_lookup_color_reply (xcb_connection_t *c,
+ xcb_lookup_color_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ xcb_pixmap_t source,
+ xcb_pixmap_t mask,
+ uint16_t fore_red,
+ uint16_t fore_green,
+ uint16_t fore_blue,
+ uint16_t back_red,
+ uint16_t back_green,
+ uint16_t back_blue,
+ uint16_t x,
+ uint16_t y);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_create_cursor (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ xcb_pixmap_t source,
+ xcb_pixmap_t mask,
+ uint16_t fore_red,
+ uint16_t fore_green,
+ uint16_t fore_blue,
+ uint16_t back_red,
+ uint16_t back_green,
+ uint16_t back_blue,
+ uint16_t x,
+ uint16_t y);
+
+/**
+ * @brief create cursor
+ *
+ * @param c The connection
+ * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`.
+ * @param source_font In which font to look for the cursor glyph.
+ * @param mask_font In which font to look for the mask glyph.
+ * @param source_char The glyph of \a source_font to use.
+ * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define
+ * which source pixels are displayed. All pixels which are set to 0 are not
+ * displayed.
+ * @param fore_red The red value of the foreground color.
+ * @param fore_green The green value of the foreground color.
+ * @param fore_blue The blue value of the foreground color.
+ * @param back_red The red value of the background color.
+ * @param back_green The green value of the background color.
+ * @param back_blue The blue value of the background color.
+ * @return A cookie
+ *
+ * Creates a cursor from a font glyph. X provides a set of standard cursor shapes
+ * in a special font named cursor. Applications are encouraged to use this
+ * interface for their cursors because the font can be customized for the
+ * individual display type.
+ *
+ * All pixels which are set to 1 in the source will use the foreground color (as
+ * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0
+ * will use the background color (as specified by \a back_red, \a back_green and
+ * \a back_blue).
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_create_glyph_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ xcb_font_t source_font,
+ xcb_font_t mask_font,
+ uint16_t source_char,
+ uint16_t mask_char,
+ uint16_t fore_red,
+ uint16_t fore_green,
+ uint16_t fore_blue,
+ uint16_t back_red,
+ uint16_t back_green,
+ uint16_t back_blue);
+
+/**
+ * @brief create cursor
+ *
+ * @param c The connection
+ * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`.
+ * @param source_font In which font to look for the cursor glyph.
+ * @param mask_font In which font to look for the mask glyph.
+ * @param source_char The glyph of \a source_font to use.
+ * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define
+ * which source pixels are displayed. All pixels which are set to 0 are not
+ * displayed.
+ * @param fore_red The red value of the foreground color.
+ * @param fore_green The green value of the foreground color.
+ * @param fore_blue The blue value of the foreground color.
+ * @param back_red The red value of the background color.
+ * @param back_green The green value of the background color.
+ * @param back_blue The blue value of the background color.
+ * @return A cookie
+ *
+ * Creates a cursor from a font glyph. X provides a set of standard cursor shapes
+ * in a special font named cursor. Applications are encouraged to use this
+ * interface for their cursors because the font can be customized for the
+ * individual display type.
+ *
+ * All pixels which are set to 1 in the source will use the foreground color (as
+ * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0
+ * will use the background color (as specified by \a back_red, \a back_green and
+ * \a back_blue).
+ *
+ */
+xcb_void_cookie_t
+xcb_create_glyph_cursor (xcb_connection_t *c,
+ xcb_cursor_t cid,
+ xcb_font_t source_font,
+ xcb_font_t mask_font,
+ uint16_t source_char,
+ uint16_t mask_char,
+ uint16_t fore_red,
+ uint16_t fore_green,
+ uint16_t fore_blue,
+ uint16_t back_red,
+ uint16_t back_green,
+ uint16_t back_blue);
+
+/**
+ * @brief Deletes a cursor
+ *
+ * @param c The connection
+ * @param cursor The cursor to destroy.
+ * @return A cookie
+ *
+ * Deletes the association between the cursor resource ID and the specified
+ * cursor. The cursor is freed when no other resource references it.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_free_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t cursor);
+
+/**
+ * @brief Deletes a cursor
+ *
+ * @param c The connection
+ * @param cursor The cursor to destroy.
+ * @return A cookie
+ *
+ * Deletes the association between the cursor resource ID and the specified
+ * cursor. The cursor is freed when no other resource references it.
+ *
+ */
+xcb_void_cookie_t
+xcb_free_cursor (xcb_connection_t *c,
+ xcb_cursor_t cursor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_recolor_cursor_checked (xcb_connection_t *c,
+ xcb_cursor_t cursor,
+ uint16_t fore_red,
+ uint16_t fore_green,
+ uint16_t fore_blue,
+ uint16_t back_red,
+ uint16_t back_green,
+ uint16_t back_blue);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_recolor_cursor (xcb_connection_t *c,
+ xcb_cursor_t cursor,
+ uint16_t fore_red,
+ uint16_t fore_green,
+ uint16_t fore_blue,
+ uint16_t back_red,
+ uint16_t back_green,
+ uint16_t back_blue);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_query_best_size_cookie_t
+xcb_query_best_size (xcb_connection_t *c,
+ uint8_t _class,
+ xcb_drawable_t drawable,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_best_size_cookie_t
+xcb_query_best_size_unchecked (xcb_connection_t *c,
+ uint8_t _class,
+ xcb_drawable_t drawable,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_best_size_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_best_size_reply_t *
+xcb_query_best_size_reply (xcb_connection_t *c,
+ xcb_query_best_size_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_query_extension_sizeof (const void *_buffer);
+
+/**
+ * @brief check if extension is present
+ *
+ * @param c The connection
+ * @param name_len The length of \a name in bytes.
+ * @param name The name of the extension to query, for example "RANDR". This is case
+ * sensitive!
+ * @return A cookie
+ *
+ * Determines if the specified extension is present on this X11 server.
+ *
+ * Every extension has a unique `major_opcode` to identify requests, the minor
+ * opcodes and request formats are extension-specific. If the extension provides
+ * events and errors, the `first_event` and `first_error` fields in the reply are
+ * set accordingly.
+ *
+ * There should rarely be a need to use this request directly, XCB provides the
+ * `xcb_get_extension_data` function instead.
+ *
+ */
+xcb_query_extension_cookie_t
+xcb_query_extension (xcb_connection_t *c,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * @brief check if extension is present
+ *
+ * @param c The connection
+ * @param name_len The length of \a name in bytes.
+ * @param name The name of the extension to query, for example "RANDR". This is case
+ * sensitive!
+ * @return A cookie
+ *
+ * Determines if the specified extension is present on this X11 server.
+ *
+ * Every extension has a unique `major_opcode` to identify requests, the minor
+ * opcodes and request formats are extension-specific. If the extension provides
+ * events and errors, the `first_event` and `first_error` fields in the reply are
+ * set accordingly.
+ *
+ * There should rarely be a need to use this request directly, XCB provides the
+ * `xcb_get_extension_data` function instead.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_query_extension_cookie_t
+xcb_query_extension_unchecked (xcb_connection_t *c,
+ uint16_t name_len,
+ const char *name);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_query_extension_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_query_extension_reply_t *
+xcb_query_extension_reply (xcb_connection_t *c,
+ xcb_query_extension_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_list_extensions_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_list_extensions_cookie_t
+xcb_list_extensions (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_list_extensions_cookie_t
+xcb_list_extensions_unchecked (xcb_connection_t *c);
+
+int
+xcb_list_extensions_names_length (const xcb_list_extensions_reply_t *R);
+
+xcb_str_iterator_t
+xcb_list_extensions_names_iterator (const xcb_list_extensions_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_list_extensions_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_list_extensions_reply_t *
+xcb_list_extensions_reply (xcb_connection_t *c,
+ xcb_list_extensions_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_change_keyboard_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_keyboard_mapping_checked (xcb_connection_t *c,
+ uint8_t keycode_count,
+ xcb_keycode_t first_keycode,
+ uint8_t keysyms_per_keycode,
+ const xcb_keysym_t *keysyms);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_keyboard_mapping (xcb_connection_t *c,
+ uint8_t keycode_count,
+ xcb_keycode_t first_keycode,
+ uint8_t keysyms_per_keycode,
+ const xcb_keysym_t *keysyms);
+
+xcb_keysym_t *
+xcb_change_keyboard_mapping_keysyms (const xcb_change_keyboard_mapping_request_t *R);
+
+int
+xcb_change_keyboard_mapping_keysyms_length (const xcb_change_keyboard_mapping_request_t *R);
+
+xcb_generic_iterator_t
+xcb_change_keyboard_mapping_keysyms_end (const xcb_change_keyboard_mapping_request_t *R);
+
+int
+xcb_get_keyboard_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_keyboard_mapping_cookie_t
+xcb_get_keyboard_mapping (xcb_connection_t *c,
+ xcb_keycode_t first_keycode,
+ uint8_t count);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_keyboard_mapping_cookie_t
+xcb_get_keyboard_mapping_unchecked (xcb_connection_t *c,
+ xcb_keycode_t first_keycode,
+ uint8_t count);
+
+xcb_keysym_t *
+xcb_get_keyboard_mapping_keysyms (const xcb_get_keyboard_mapping_reply_t *R);
+
+int
+xcb_get_keyboard_mapping_keysyms_length (const xcb_get_keyboard_mapping_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_get_keyboard_mapping_keysyms_end (const xcb_get_keyboard_mapping_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_keyboard_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_keyboard_mapping_reply_t *
+xcb_get_keyboard_mapping_reply (xcb_connection_t *c,
+ xcb_get_keyboard_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_change_keyboard_control_value_list_serialize (void **_buffer,
+ uint32_t value_mask,
+ const xcb_change_keyboard_control_value_list_t *_aux);
+
+int
+xcb_change_keyboard_control_value_list_unpack (const void *_buffer,
+ uint32_t value_mask,
+ xcb_change_keyboard_control_value_list_t *_aux);
+
+int
+xcb_change_keyboard_control_value_list_sizeof (const void *_buffer,
+ uint32_t value_mask);
+
+int
+xcb_change_keyboard_control_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_keyboard_control_checked (xcb_connection_t *c,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_keyboard_control (xcb_connection_t *c,
+ uint32_t value_mask,
+ const void *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_keyboard_control_aux_checked (xcb_connection_t *c,
+ uint32_t value_mask,
+ const xcb_change_keyboard_control_value_list_t *value_list);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_keyboard_control_aux (xcb_connection_t *c,
+ uint32_t value_mask,
+ const xcb_change_keyboard_control_value_list_t *value_list);
+
+void *
+xcb_change_keyboard_control_value_list (const xcb_change_keyboard_control_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_keyboard_control_cookie_t
+xcb_get_keyboard_control (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_keyboard_control_cookie_t
+xcb_get_keyboard_control_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_keyboard_control_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_keyboard_control_reply_t *
+xcb_get_keyboard_control_reply (xcb_connection_t *c,
+ xcb_get_keyboard_control_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_bell_checked (xcb_connection_t *c,
+ int8_t percent);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_bell (xcb_connection_t *c,
+ int8_t percent);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_pointer_control_checked (xcb_connection_t *c,
+ int16_t acceleration_numerator,
+ int16_t acceleration_denominator,
+ int16_t threshold,
+ uint8_t do_acceleration,
+ uint8_t do_threshold);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_pointer_control (xcb_connection_t *c,
+ int16_t acceleration_numerator,
+ int16_t acceleration_denominator,
+ int16_t threshold,
+ uint8_t do_acceleration,
+ uint8_t do_threshold);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_pointer_control_cookie_t
+xcb_get_pointer_control (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_pointer_control_cookie_t
+xcb_get_pointer_control_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_pointer_control_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_pointer_control_reply_t *
+xcb_get_pointer_control_reply (xcb_connection_t *c,
+ xcb_get_pointer_control_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_screen_saver_checked (xcb_connection_t *c,
+ int16_t timeout,
+ int16_t interval,
+ uint8_t prefer_blanking,
+ uint8_t allow_exposures);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_screen_saver (xcb_connection_t *c,
+ int16_t timeout,
+ int16_t interval,
+ uint8_t prefer_blanking,
+ uint8_t allow_exposures);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_screen_saver_cookie_t
+xcb_get_screen_saver (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_screen_saver_cookie_t
+xcb_get_screen_saver_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_screen_saver_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_screen_saver_reply_t *
+xcb_get_screen_saver_reply (xcb_connection_t *c,
+ xcb_get_screen_saver_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_change_hosts_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_change_hosts_checked (xcb_connection_t *c,
+ uint8_t mode,
+ uint8_t family,
+ uint16_t address_len,
+ const uint8_t *address);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_change_hosts (xcb_connection_t *c,
+ uint8_t mode,
+ uint8_t family,
+ uint16_t address_len,
+ const uint8_t *address);
+
+uint8_t *
+xcb_change_hosts_address (const xcb_change_hosts_request_t *R);
+
+int
+xcb_change_hosts_address_length (const xcb_change_hosts_request_t *R);
+
+xcb_generic_iterator_t
+xcb_change_hosts_address_end (const xcb_change_hosts_request_t *R);
+
+int
+xcb_host_sizeof (const void *_buffer);
+
+uint8_t *
+xcb_host_address (const xcb_host_t *R);
+
+int
+xcb_host_address_length (const xcb_host_t *R);
+
+xcb_generic_iterator_t
+xcb_host_address_end (const xcb_host_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_host_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_host_t)
+ */
+void
+xcb_host_next (xcb_host_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_host_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_host_end (xcb_host_iterator_t i);
+
+int
+xcb_list_hosts_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_list_hosts_cookie_t
+xcb_list_hosts (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_list_hosts_cookie_t
+xcb_list_hosts_unchecked (xcb_connection_t *c);
+
+int
+xcb_list_hosts_hosts_length (const xcb_list_hosts_reply_t *R);
+
+xcb_host_iterator_t
+xcb_list_hosts_hosts_iterator (const xcb_list_hosts_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_list_hosts_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_list_hosts_reply_t *
+xcb_list_hosts_reply (xcb_connection_t *c,
+ xcb_list_hosts_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_access_control_checked (xcb_connection_t *c,
+ uint8_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_access_control (xcb_connection_t *c,
+ uint8_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_set_close_down_mode_checked (xcb_connection_t *c,
+ uint8_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_set_close_down_mode (xcb_connection_t *c,
+ uint8_t mode);
+
+/**
+ * @brief kills a client
+ *
+ * @param c The connection
+ * @param resource Any resource belonging to the client (for example a Window), used to identify
+ * the client connection.
+ * \n
+ * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients
+ * that have terminated in `RetainTemporary` (TODO) are destroyed.
+ * @return A cookie
+ *
+ * Forces a close down of the client that created the specified \a resource.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_kill_client_checked (xcb_connection_t *c,
+ uint32_t resource);
+
+/**
+ * @brief kills a client
+ *
+ * @param c The connection
+ * @param resource Any resource belonging to the client (for example a Window), used to identify
+ * the client connection.
+ * \n
+ * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients
+ * that have terminated in `RetainTemporary` (TODO) are destroyed.
+ * @return A cookie
+ *
+ * Forces a close down of the client that created the specified \a resource.
+ *
+ */
+xcb_void_cookie_t
+xcb_kill_client (xcb_connection_t *c,
+ uint32_t resource);
+
+int
+xcb_rotate_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_rotate_properties_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t atoms_len,
+ int16_t delta,
+ const xcb_atom_t *atoms);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_rotate_properties (xcb_connection_t *c,
+ xcb_window_t window,
+ uint16_t atoms_len,
+ int16_t delta,
+ const xcb_atom_t *atoms);
+
+xcb_atom_t *
+xcb_rotate_properties_atoms (const xcb_rotate_properties_request_t *R);
+
+int
+xcb_rotate_properties_atoms_length (const xcb_rotate_properties_request_t *R);
+
+xcb_generic_iterator_t
+xcb_rotate_properties_atoms_end (const xcb_rotate_properties_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_force_screen_saver_checked (xcb_connection_t *c,
+ uint8_t mode);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_force_screen_saver (xcb_connection_t *c,
+ uint8_t mode);
+
+int
+xcb_set_pointer_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_set_pointer_mapping_cookie_t
+xcb_set_pointer_mapping (xcb_connection_t *c,
+ uint8_t map_len,
+ const uint8_t *map);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_set_pointer_mapping_cookie_t
+xcb_set_pointer_mapping_unchecked (xcb_connection_t *c,
+ uint8_t map_len,
+ const uint8_t *map);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_set_pointer_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_set_pointer_mapping_reply_t *
+xcb_set_pointer_mapping_reply (xcb_connection_t *c,
+ xcb_set_pointer_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_get_pointer_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_pointer_mapping_cookie_t
+xcb_get_pointer_mapping (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_pointer_mapping_cookie_t
+xcb_get_pointer_mapping_unchecked (xcb_connection_t *c);
+
+uint8_t *
+xcb_get_pointer_mapping_map (const xcb_get_pointer_mapping_reply_t *R);
+
+int
+xcb_get_pointer_mapping_map_length (const xcb_get_pointer_mapping_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_get_pointer_mapping_map_end (const xcb_get_pointer_mapping_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_pointer_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_pointer_mapping_reply_t *
+xcb_get_pointer_mapping_reply (xcb_connection_t *c,
+ xcb_get_pointer_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_set_modifier_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_set_modifier_mapping_cookie_t
+xcb_set_modifier_mapping (xcb_connection_t *c,
+ uint8_t keycodes_per_modifier,
+ const xcb_keycode_t *keycodes);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_set_modifier_mapping_cookie_t
+xcb_set_modifier_mapping_unchecked (xcb_connection_t *c,
+ uint8_t keycodes_per_modifier,
+ const xcb_keycode_t *keycodes);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_set_modifier_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_set_modifier_mapping_reply_t *
+xcb_set_modifier_mapping_reply (xcb_connection_t *c,
+ xcb_set_modifier_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_get_modifier_mapping_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_get_modifier_mapping_cookie_t
+xcb_get_modifier_mapping (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_get_modifier_mapping_cookie_t
+xcb_get_modifier_mapping_unchecked (xcb_connection_t *c);
+
+xcb_keycode_t *
+xcb_get_modifier_mapping_keycodes (const xcb_get_modifier_mapping_reply_t *R);
+
+int
+xcb_get_modifier_mapping_keycodes_length (const xcb_get_modifier_mapping_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_get_modifier_mapping_keycodes_end (const xcb_get_modifier_mapping_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_get_modifier_mapping_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_get_modifier_mapping_reply_t *
+xcb_get_modifier_mapping_reply (xcb_connection_t *c,
+ xcb_get_modifier_mapping_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_no_operation_checked (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_no_operation (xcb_connection_t *c);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xselinux.h b/depends/libxcb/include/xcb/xselinux.h
new file mode 100644
index 0000000..abcb28d
--- /dev/null
+++ b/depends/libxcb/include/xcb/xselinux.h
@@ -0,0 +1,1889 @@
+/*
+ * This file generated automatically from xselinux.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_SELinux_API XCB SELinux API
+ * @brief SELinux XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XSELINUX_H
+#define __XSELINUX_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_SELINUX_MAJOR_VERSION 1
+#define XCB_SELINUX_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_selinux_id;
+
+/**
+ * @brief xcb_selinux_query_version_cookie_t
+ **/
+typedef struct xcb_selinux_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_query_version_cookie_t;
+
+/** Opcode for xcb_selinux_query_version. */
+#define XCB_SELINUX_QUERY_VERSION 0
+
+/**
+ * @brief xcb_selinux_query_version_request_t
+ **/
+typedef struct xcb_selinux_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t client_major;
+ uint8_t client_minor;
+} xcb_selinux_query_version_request_t;
+
+/**
+ * @brief xcb_selinux_query_version_reply_t
+ **/
+typedef struct xcb_selinux_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t server_major;
+ uint16_t server_minor;
+} xcb_selinux_query_version_reply_t;
+
+/** Opcode for xcb_selinux_set_device_create_context. */
+#define XCB_SELINUX_SET_DEVICE_CREATE_CONTEXT 1
+
+/**
+ * @brief xcb_selinux_set_device_create_context_request_t
+ **/
+typedef struct xcb_selinux_set_device_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_len;
+} xcb_selinux_set_device_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_device_create_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_device_create_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_device_create_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_device_create_context. */
+#define XCB_SELINUX_GET_DEVICE_CREATE_CONTEXT 2
+
+/**
+ * @brief xcb_selinux_get_device_create_context_request_t
+ **/
+typedef struct xcb_selinux_get_device_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_get_device_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_device_create_context_reply_t
+ **/
+typedef struct xcb_selinux_get_device_create_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_device_create_context_reply_t;
+
+/** Opcode for xcb_selinux_set_device_context. */
+#define XCB_SELINUX_SET_DEVICE_CONTEXT 3
+
+/**
+ * @brief xcb_selinux_set_device_context_request_t
+ **/
+typedef struct xcb_selinux_set_device_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t device;
+ uint32_t context_len;
+} xcb_selinux_set_device_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_device_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_device_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_device_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_device_context. */
+#define XCB_SELINUX_GET_DEVICE_CONTEXT 4
+
+/**
+ * @brief xcb_selinux_get_device_context_request_t
+ **/
+typedef struct xcb_selinux_get_device_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t device;
+} xcb_selinux_get_device_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_device_context_reply_t
+ **/
+typedef struct xcb_selinux_get_device_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_device_context_reply_t;
+
+/** Opcode for xcb_selinux_set_window_create_context. */
+#define XCB_SELINUX_SET_WINDOW_CREATE_CONTEXT 5
+
+/**
+ * @brief xcb_selinux_set_window_create_context_request_t
+ **/
+typedef struct xcb_selinux_set_window_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_len;
+} xcb_selinux_set_window_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_window_create_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_window_create_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_window_create_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_window_create_context. */
+#define XCB_SELINUX_GET_WINDOW_CREATE_CONTEXT 6
+
+/**
+ * @brief xcb_selinux_get_window_create_context_request_t
+ **/
+typedef struct xcb_selinux_get_window_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_get_window_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_window_create_context_reply_t
+ **/
+typedef struct xcb_selinux_get_window_create_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_window_create_context_reply_t;
+
+/**
+ * @brief xcb_selinux_get_window_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_window_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_window_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_window_context. */
+#define XCB_SELINUX_GET_WINDOW_CONTEXT 7
+
+/**
+ * @brief xcb_selinux_get_window_context_request_t
+ **/
+typedef struct xcb_selinux_get_window_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_selinux_get_window_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_window_context_reply_t
+ **/
+typedef struct xcb_selinux_get_window_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_window_context_reply_t;
+
+/**
+ * @brief xcb_selinux_list_item_t
+ **/
+typedef struct xcb_selinux_list_item_t {
+ xcb_atom_t name;
+ uint32_t object_context_len;
+ uint32_t data_context_len;
+} xcb_selinux_list_item_t;
+
+/**
+ * @brief xcb_selinux_list_item_iterator_t
+ **/
+typedef struct xcb_selinux_list_item_iterator_t {
+ xcb_selinux_list_item_t *data;
+ int rem;
+ int index;
+} xcb_selinux_list_item_iterator_t;
+
+/** Opcode for xcb_selinux_set_property_create_context. */
+#define XCB_SELINUX_SET_PROPERTY_CREATE_CONTEXT 8
+
+/**
+ * @brief xcb_selinux_set_property_create_context_request_t
+ **/
+typedef struct xcb_selinux_set_property_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_len;
+} xcb_selinux_set_property_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_property_create_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_property_create_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_property_create_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_property_create_context. */
+#define XCB_SELINUX_GET_PROPERTY_CREATE_CONTEXT 9
+
+/**
+ * @brief xcb_selinux_get_property_create_context_request_t
+ **/
+typedef struct xcb_selinux_get_property_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_get_property_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_property_create_context_reply_t
+ **/
+typedef struct xcb_selinux_get_property_create_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_property_create_context_reply_t;
+
+/** Opcode for xcb_selinux_set_property_use_context. */
+#define XCB_SELINUX_SET_PROPERTY_USE_CONTEXT 10
+
+/**
+ * @brief xcb_selinux_set_property_use_context_request_t
+ **/
+typedef struct xcb_selinux_set_property_use_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_len;
+} xcb_selinux_set_property_use_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_property_use_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_property_use_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_property_use_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_property_use_context. */
+#define XCB_SELINUX_GET_PROPERTY_USE_CONTEXT 11
+
+/**
+ * @brief xcb_selinux_get_property_use_context_request_t
+ **/
+typedef struct xcb_selinux_get_property_use_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_get_property_use_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_property_use_context_reply_t
+ **/
+typedef struct xcb_selinux_get_property_use_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_property_use_context_reply_t;
+
+/**
+ * @brief xcb_selinux_get_property_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_property_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_property_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_property_context. */
+#define XCB_SELINUX_GET_PROPERTY_CONTEXT 12
+
+/**
+ * @brief xcb_selinux_get_property_context_request_t
+ **/
+typedef struct xcb_selinux_get_property_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t property;
+} xcb_selinux_get_property_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_property_context_reply_t
+ **/
+typedef struct xcb_selinux_get_property_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_property_context_reply_t;
+
+/**
+ * @brief xcb_selinux_get_property_data_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_property_data_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_property_data_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_property_data_context. */
+#define XCB_SELINUX_GET_PROPERTY_DATA_CONTEXT 13
+
+/**
+ * @brief xcb_selinux_get_property_data_context_request_t
+ **/
+typedef struct xcb_selinux_get_property_data_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_atom_t property;
+} xcb_selinux_get_property_data_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_property_data_context_reply_t
+ **/
+typedef struct xcb_selinux_get_property_data_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_property_data_context_reply_t;
+
+/**
+ * @brief xcb_selinux_list_properties_cookie_t
+ **/
+typedef struct xcb_selinux_list_properties_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_list_properties_cookie_t;
+
+/** Opcode for xcb_selinux_list_properties. */
+#define XCB_SELINUX_LIST_PROPERTIES 14
+
+/**
+ * @brief xcb_selinux_list_properties_request_t
+ **/
+typedef struct xcb_selinux_list_properties_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_selinux_list_properties_request_t;
+
+/**
+ * @brief xcb_selinux_list_properties_reply_t
+ **/
+typedef struct xcb_selinux_list_properties_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t properties_len;
+ uint8_t pad1[20];
+} xcb_selinux_list_properties_reply_t;
+
+/** Opcode for xcb_selinux_set_selection_create_context. */
+#define XCB_SELINUX_SET_SELECTION_CREATE_CONTEXT 15
+
+/**
+ * @brief xcb_selinux_set_selection_create_context_request_t
+ **/
+typedef struct xcb_selinux_set_selection_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_len;
+} xcb_selinux_set_selection_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_selection_create_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_selection_create_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_selection_create_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_selection_create_context. */
+#define XCB_SELINUX_GET_SELECTION_CREATE_CONTEXT 16
+
+/**
+ * @brief xcb_selinux_get_selection_create_context_request_t
+ **/
+typedef struct xcb_selinux_get_selection_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_get_selection_create_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_selection_create_context_reply_t
+ **/
+typedef struct xcb_selinux_get_selection_create_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_selection_create_context_reply_t;
+
+/** Opcode for xcb_selinux_set_selection_use_context. */
+#define XCB_SELINUX_SET_SELECTION_USE_CONTEXT 17
+
+/**
+ * @brief xcb_selinux_set_selection_use_context_request_t
+ **/
+typedef struct xcb_selinux_set_selection_use_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t context_len;
+} xcb_selinux_set_selection_use_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_selection_use_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_selection_use_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_selection_use_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_selection_use_context. */
+#define XCB_SELINUX_GET_SELECTION_USE_CONTEXT 18
+
+/**
+ * @brief xcb_selinux_get_selection_use_context_request_t
+ **/
+typedef struct xcb_selinux_get_selection_use_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_get_selection_use_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_selection_use_context_reply_t
+ **/
+typedef struct xcb_selinux_get_selection_use_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_selection_use_context_reply_t;
+
+/**
+ * @brief xcb_selinux_get_selection_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_selection_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_selection_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_selection_context. */
+#define XCB_SELINUX_GET_SELECTION_CONTEXT 19
+
+/**
+ * @brief xcb_selinux_get_selection_context_request_t
+ **/
+typedef struct xcb_selinux_get_selection_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_atom_t selection;
+} xcb_selinux_get_selection_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_selection_context_reply_t
+ **/
+typedef struct xcb_selinux_get_selection_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_selection_context_reply_t;
+
+/**
+ * @brief xcb_selinux_get_selection_data_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_selection_data_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_selection_data_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_selection_data_context. */
+#define XCB_SELINUX_GET_SELECTION_DATA_CONTEXT 20
+
+/**
+ * @brief xcb_selinux_get_selection_data_context_request_t
+ **/
+typedef struct xcb_selinux_get_selection_data_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_atom_t selection;
+} xcb_selinux_get_selection_data_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_selection_data_context_reply_t
+ **/
+typedef struct xcb_selinux_get_selection_data_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_selection_data_context_reply_t;
+
+/**
+ * @brief xcb_selinux_list_selections_cookie_t
+ **/
+typedef struct xcb_selinux_list_selections_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_list_selections_cookie_t;
+
+/** Opcode for xcb_selinux_list_selections. */
+#define XCB_SELINUX_LIST_SELECTIONS 21
+
+/**
+ * @brief xcb_selinux_list_selections_request_t
+ **/
+typedef struct xcb_selinux_list_selections_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_selinux_list_selections_request_t;
+
+/**
+ * @brief xcb_selinux_list_selections_reply_t
+ **/
+typedef struct xcb_selinux_list_selections_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t selections_len;
+ uint8_t pad1[20];
+} xcb_selinux_list_selections_reply_t;
+
+/**
+ * @brief xcb_selinux_get_client_context_cookie_t
+ **/
+typedef struct xcb_selinux_get_client_context_cookie_t {
+ unsigned int sequence;
+} xcb_selinux_get_client_context_cookie_t;
+
+/** Opcode for xcb_selinux_get_client_context. */
+#define XCB_SELINUX_GET_CLIENT_CONTEXT 22
+
+/**
+ * @brief xcb_selinux_get_client_context_request_t
+ **/
+typedef struct xcb_selinux_get_client_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint32_t resource;
+} xcb_selinux_get_client_context_request_t;
+
+/**
+ * @brief xcb_selinux_get_client_context_reply_t
+ **/
+typedef struct xcb_selinux_get_client_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t context_len;
+ uint8_t pad1[20];
+} xcb_selinux_get_client_context_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_query_version_cookie_t
+xcb_selinux_query_version (xcb_connection_t *c,
+ uint8_t client_major,
+ uint8_t client_minor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_query_version_cookie_t
+xcb_selinux_query_version_unchecked (xcb_connection_t *c,
+ uint8_t client_major,
+ uint8_t client_minor);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_query_version_reply_t *
+xcb_selinux_query_version_reply (xcb_connection_t *c,
+ xcb_selinux_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_set_device_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_device_create_context_checked (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_device_create_context (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_device_create_context_context (const xcb_selinux_set_device_create_context_request_t *R);
+
+int
+xcb_selinux_set_device_create_context_context_length (const xcb_selinux_set_device_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_device_create_context_context_end (const xcb_selinux_set_device_create_context_request_t *R);
+
+int
+xcb_selinux_get_device_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_device_create_context_cookie_t
+xcb_selinux_get_device_create_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_device_create_context_cookie_t
+xcb_selinux_get_device_create_context_unchecked (xcb_connection_t *c);
+
+char *
+xcb_selinux_get_device_create_context_context (const xcb_selinux_get_device_create_context_reply_t *R);
+
+int
+xcb_selinux_get_device_create_context_context_length (const xcb_selinux_get_device_create_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_device_create_context_context_end (const xcb_selinux_get_device_create_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_device_create_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_device_create_context_reply_t *
+xcb_selinux_get_device_create_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_device_create_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_set_device_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_device_context_checked (xcb_connection_t *c,
+ uint32_t device,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_device_context (xcb_connection_t *c,
+ uint32_t device,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_device_context_context (const xcb_selinux_set_device_context_request_t *R);
+
+int
+xcb_selinux_set_device_context_context_length (const xcb_selinux_set_device_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_device_context_context_end (const xcb_selinux_set_device_context_request_t *R);
+
+int
+xcb_selinux_get_device_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_device_context_cookie_t
+xcb_selinux_get_device_context (xcb_connection_t *c,
+ uint32_t device);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_device_context_cookie_t
+xcb_selinux_get_device_context_unchecked (xcb_connection_t *c,
+ uint32_t device);
+
+char *
+xcb_selinux_get_device_context_context (const xcb_selinux_get_device_context_reply_t *R);
+
+int
+xcb_selinux_get_device_context_context_length (const xcb_selinux_get_device_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_device_context_context_end (const xcb_selinux_get_device_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_device_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_device_context_reply_t *
+xcb_selinux_get_device_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_device_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_set_window_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_window_create_context_checked (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_window_create_context (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_window_create_context_context (const xcb_selinux_set_window_create_context_request_t *R);
+
+int
+xcb_selinux_set_window_create_context_context_length (const xcb_selinux_set_window_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_window_create_context_context_end (const xcb_selinux_set_window_create_context_request_t *R);
+
+int
+xcb_selinux_get_window_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_window_create_context_cookie_t
+xcb_selinux_get_window_create_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_window_create_context_cookie_t
+xcb_selinux_get_window_create_context_unchecked (xcb_connection_t *c);
+
+char *
+xcb_selinux_get_window_create_context_context (const xcb_selinux_get_window_create_context_reply_t *R);
+
+int
+xcb_selinux_get_window_create_context_context_length (const xcb_selinux_get_window_create_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_window_create_context_context_end (const xcb_selinux_get_window_create_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_window_create_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_window_create_context_reply_t *
+xcb_selinux_get_window_create_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_window_create_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_get_window_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_window_context_cookie_t
+xcb_selinux_get_window_context (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_window_context_cookie_t
+xcb_selinux_get_window_context_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+char *
+xcb_selinux_get_window_context_context (const xcb_selinux_get_window_context_reply_t *R);
+
+int
+xcb_selinux_get_window_context_context_length (const xcb_selinux_get_window_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_window_context_context_end (const xcb_selinux_get_window_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_window_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_window_context_reply_t *
+xcb_selinux_get_window_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_window_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_list_item_sizeof (const void *_buffer);
+
+char *
+xcb_selinux_list_item_object_context (const xcb_selinux_list_item_t *R);
+
+int
+xcb_selinux_list_item_object_context_length (const xcb_selinux_list_item_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_list_item_object_context_end (const xcb_selinux_list_item_t *R);
+
+char *
+xcb_selinux_list_item_data_context (const xcb_selinux_list_item_t *R);
+
+int
+xcb_selinux_list_item_data_context_length (const xcb_selinux_list_item_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_list_item_data_context_end (const xcb_selinux_list_item_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_selinux_list_item_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_selinux_list_item_t)
+ */
+void
+xcb_selinux_list_item_next (xcb_selinux_list_item_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_selinux_list_item_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_selinux_list_item_end (xcb_selinux_list_item_iterator_t i);
+
+int
+xcb_selinux_set_property_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_property_create_context_checked (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_property_create_context (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_property_create_context_context (const xcb_selinux_set_property_create_context_request_t *R);
+
+int
+xcb_selinux_set_property_create_context_context_length (const xcb_selinux_set_property_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_property_create_context_context_end (const xcb_selinux_set_property_create_context_request_t *R);
+
+int
+xcb_selinux_get_property_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_property_create_context_cookie_t
+xcb_selinux_get_property_create_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_property_create_context_cookie_t
+xcb_selinux_get_property_create_context_unchecked (xcb_connection_t *c);
+
+char *
+xcb_selinux_get_property_create_context_context (const xcb_selinux_get_property_create_context_reply_t *R);
+
+int
+xcb_selinux_get_property_create_context_context_length (const xcb_selinux_get_property_create_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_property_create_context_context_end (const xcb_selinux_get_property_create_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_property_create_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_property_create_context_reply_t *
+xcb_selinux_get_property_create_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_property_create_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_set_property_use_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_property_use_context_checked (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_property_use_context (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_property_use_context_context (const xcb_selinux_set_property_use_context_request_t *R);
+
+int
+xcb_selinux_set_property_use_context_context_length (const xcb_selinux_set_property_use_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_property_use_context_context_end (const xcb_selinux_set_property_use_context_request_t *R);
+
+int
+xcb_selinux_get_property_use_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_property_use_context_cookie_t
+xcb_selinux_get_property_use_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_property_use_context_cookie_t
+xcb_selinux_get_property_use_context_unchecked (xcb_connection_t *c);
+
+char *
+xcb_selinux_get_property_use_context_context (const xcb_selinux_get_property_use_context_reply_t *R);
+
+int
+xcb_selinux_get_property_use_context_context_length (const xcb_selinux_get_property_use_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_property_use_context_context_end (const xcb_selinux_get_property_use_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_property_use_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_property_use_context_reply_t *
+xcb_selinux_get_property_use_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_property_use_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_get_property_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_property_context_cookie_t
+xcb_selinux_get_property_context (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_property_context_cookie_t
+xcb_selinux_get_property_context_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t property);
+
+char *
+xcb_selinux_get_property_context_context (const xcb_selinux_get_property_context_reply_t *R);
+
+int
+xcb_selinux_get_property_context_context_length (const xcb_selinux_get_property_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_property_context_context_end (const xcb_selinux_get_property_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_property_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_property_context_reply_t *
+xcb_selinux_get_property_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_property_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_get_property_data_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_property_data_context_cookie_t
+xcb_selinux_get_property_data_context (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t property);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_property_data_context_cookie_t
+xcb_selinux_get_property_data_context_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_atom_t property);
+
+char *
+xcb_selinux_get_property_data_context_context (const xcb_selinux_get_property_data_context_reply_t *R);
+
+int
+xcb_selinux_get_property_data_context_context_length (const xcb_selinux_get_property_data_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_property_data_context_context_end (const xcb_selinux_get_property_data_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_property_data_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_property_data_context_reply_t *
+xcb_selinux_get_property_data_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_property_data_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_list_properties_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_list_properties_cookie_t
+xcb_selinux_list_properties (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_list_properties_cookie_t
+xcb_selinux_list_properties_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+int
+xcb_selinux_list_properties_properties_length (const xcb_selinux_list_properties_reply_t *R);
+
+xcb_selinux_list_item_iterator_t
+xcb_selinux_list_properties_properties_iterator (const xcb_selinux_list_properties_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_list_properties_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_list_properties_reply_t *
+xcb_selinux_list_properties_reply (xcb_connection_t *c,
+ xcb_selinux_list_properties_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_set_selection_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_selection_create_context_checked (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_selection_create_context (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_selection_create_context_context (const xcb_selinux_set_selection_create_context_request_t *R);
+
+int
+xcb_selinux_set_selection_create_context_context_length (const xcb_selinux_set_selection_create_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_selection_create_context_context_end (const xcb_selinux_set_selection_create_context_request_t *R);
+
+int
+xcb_selinux_get_selection_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_selection_create_context_cookie_t
+xcb_selinux_get_selection_create_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_selection_create_context_cookie_t
+xcb_selinux_get_selection_create_context_unchecked (xcb_connection_t *c);
+
+char *
+xcb_selinux_get_selection_create_context_context (const xcb_selinux_get_selection_create_context_reply_t *R);
+
+int
+xcb_selinux_get_selection_create_context_context_length (const xcb_selinux_get_selection_create_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_selection_create_context_context_end (const xcb_selinux_get_selection_create_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_selection_create_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_selection_create_context_reply_t *
+xcb_selinux_get_selection_create_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_selection_create_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_set_selection_use_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_selinux_set_selection_use_context_checked (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_selinux_set_selection_use_context (xcb_connection_t *c,
+ uint32_t context_len,
+ const char *context);
+
+char *
+xcb_selinux_set_selection_use_context_context (const xcb_selinux_set_selection_use_context_request_t *R);
+
+int
+xcb_selinux_set_selection_use_context_context_length (const xcb_selinux_set_selection_use_context_request_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_set_selection_use_context_context_end (const xcb_selinux_set_selection_use_context_request_t *R);
+
+int
+xcb_selinux_get_selection_use_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_selection_use_context_cookie_t
+xcb_selinux_get_selection_use_context (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_selection_use_context_cookie_t
+xcb_selinux_get_selection_use_context_unchecked (xcb_connection_t *c);
+
+char *
+xcb_selinux_get_selection_use_context_context (const xcb_selinux_get_selection_use_context_reply_t *R);
+
+int
+xcb_selinux_get_selection_use_context_context_length (const xcb_selinux_get_selection_use_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_selection_use_context_context_end (const xcb_selinux_get_selection_use_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_selection_use_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_selection_use_context_reply_t *
+xcb_selinux_get_selection_use_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_selection_use_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_get_selection_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_selection_context_cookie_t
+xcb_selinux_get_selection_context (xcb_connection_t *c,
+ xcb_atom_t selection);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_selection_context_cookie_t
+xcb_selinux_get_selection_context_unchecked (xcb_connection_t *c,
+ xcb_atom_t selection);
+
+char *
+xcb_selinux_get_selection_context_context (const xcb_selinux_get_selection_context_reply_t *R);
+
+int
+xcb_selinux_get_selection_context_context_length (const xcb_selinux_get_selection_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_selection_context_context_end (const xcb_selinux_get_selection_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_selection_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_selection_context_reply_t *
+xcb_selinux_get_selection_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_selection_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_get_selection_data_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_selection_data_context_cookie_t
+xcb_selinux_get_selection_data_context (xcb_connection_t *c,
+ xcb_atom_t selection);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_selection_data_context_cookie_t
+xcb_selinux_get_selection_data_context_unchecked (xcb_connection_t *c,
+ xcb_atom_t selection);
+
+char *
+xcb_selinux_get_selection_data_context_context (const xcb_selinux_get_selection_data_context_reply_t *R);
+
+int
+xcb_selinux_get_selection_data_context_context_length (const xcb_selinux_get_selection_data_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_selection_data_context_context_end (const xcb_selinux_get_selection_data_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_selection_data_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_selection_data_context_reply_t *
+xcb_selinux_get_selection_data_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_selection_data_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_list_selections_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_list_selections_cookie_t
+xcb_selinux_list_selections (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_list_selections_cookie_t
+xcb_selinux_list_selections_unchecked (xcb_connection_t *c);
+
+int
+xcb_selinux_list_selections_selections_length (const xcb_selinux_list_selections_reply_t *R);
+
+xcb_selinux_list_item_iterator_t
+xcb_selinux_list_selections_selections_iterator (const xcb_selinux_list_selections_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_list_selections_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_list_selections_reply_t *
+xcb_selinux_list_selections_reply (xcb_connection_t *c,
+ xcb_selinux_list_selections_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_selinux_get_client_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_selinux_get_client_context_cookie_t
+xcb_selinux_get_client_context (xcb_connection_t *c,
+ uint32_t resource);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_selinux_get_client_context_cookie_t
+xcb_selinux_get_client_context_unchecked (xcb_connection_t *c,
+ uint32_t resource);
+
+char *
+xcb_selinux_get_client_context_context (const xcb_selinux_get_client_context_reply_t *R);
+
+int
+xcb_selinux_get_client_context_context_length (const xcb_selinux_get_client_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_selinux_get_client_context_context_end (const xcb_selinux_get_client_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_selinux_get_client_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_selinux_get_client_context_reply_t *
+xcb_selinux_get_client_context_reply (xcb_connection_t *c,
+ xcb_selinux_get_client_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xtest.h b/depends/libxcb/include/xcb/xtest.h
new file mode 100644
index 0000000..e97733e
--- /dev/null
+++ b/depends/libxcb/include/xcb/xtest.h
@@ -0,0 +1,303 @@
+/*
+ * This file generated automatically from xtest.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Test_API XCB Test API
+ * @brief Test XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XTEST_H
+#define __XTEST_H
+
+#include "xcb.h"
+#include "xproto.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_TEST_MAJOR_VERSION 2
+#define XCB_TEST_MINOR_VERSION 2
+
+extern xcb_extension_t xcb_test_id;
+
+/**
+ * @brief xcb_test_get_version_cookie_t
+ **/
+typedef struct xcb_test_get_version_cookie_t {
+ unsigned int sequence;
+} xcb_test_get_version_cookie_t;
+
+/** Opcode for xcb_test_get_version. */
+#define XCB_TEST_GET_VERSION 0
+
+/**
+ * @brief xcb_test_get_version_request_t
+ **/
+typedef struct xcb_test_get_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t major_version;
+ uint8_t pad0;
+ uint16_t minor_version;
+} xcb_test_get_version_request_t;
+
+/**
+ * @brief xcb_test_get_version_reply_t
+ **/
+typedef struct xcb_test_get_version_reply_t {
+ uint8_t response_type;
+ uint8_t major_version;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t minor_version;
+} xcb_test_get_version_reply_t;
+
+typedef enum xcb_test_cursor_t {
+ XCB_TEST_CURSOR_NONE = 0,
+ XCB_TEST_CURSOR_CURRENT = 1
+} xcb_test_cursor_t;
+
+/**
+ * @brief xcb_test_compare_cursor_cookie_t
+ **/
+typedef struct xcb_test_compare_cursor_cookie_t {
+ unsigned int sequence;
+} xcb_test_compare_cursor_cookie_t;
+
+/** Opcode for xcb_test_compare_cursor. */
+#define XCB_TEST_COMPARE_CURSOR 1
+
+/**
+ * @brief xcb_test_compare_cursor_request_t
+ **/
+typedef struct xcb_test_compare_cursor_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+ xcb_cursor_t cursor;
+} xcb_test_compare_cursor_request_t;
+
+/**
+ * @brief xcb_test_compare_cursor_reply_t
+ **/
+typedef struct xcb_test_compare_cursor_reply_t {
+ uint8_t response_type;
+ uint8_t same;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_test_compare_cursor_reply_t;
+
+/** Opcode for xcb_test_fake_input. */
+#define XCB_TEST_FAKE_INPUT 2
+
+/**
+ * @brief xcb_test_fake_input_request_t
+ **/
+typedef struct xcb_test_fake_input_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t type;
+ uint8_t detail;
+ uint8_t pad0[2];
+ uint32_t time;
+ xcb_window_t root;
+ uint8_t pad1[8];
+ int16_t rootX;
+ int16_t rootY;
+ uint8_t pad2[7];
+ uint8_t deviceid;
+} xcb_test_fake_input_request_t;
+
+/** Opcode for xcb_test_grab_control. */
+#define XCB_TEST_GRAB_CONTROL 3
+
+/**
+ * @brief xcb_test_grab_control_request_t
+ **/
+typedef struct xcb_test_grab_control_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ uint8_t impervious;
+ uint8_t pad0[3];
+} xcb_test_grab_control_request_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_test_get_version_cookie_t
+xcb_test_get_version (xcb_connection_t *c,
+ uint8_t major_version,
+ uint16_t minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_test_get_version_cookie_t
+xcb_test_get_version_unchecked (xcb_connection_t *c,
+ uint8_t major_version,
+ uint16_t minor_version);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_test_get_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_test_get_version_reply_t *
+xcb_test_get_version_reply (xcb_connection_t *c,
+ xcb_test_get_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_test_compare_cursor_cookie_t
+xcb_test_compare_cursor (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_cursor_t cursor);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_test_compare_cursor_cookie_t
+xcb_test_compare_cursor_unchecked (xcb_connection_t *c,
+ xcb_window_t window,
+ xcb_cursor_t cursor);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_test_compare_cursor_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_test_compare_cursor_reply_t *
+xcb_test_compare_cursor_reply (xcb_connection_t *c,
+ xcb_test_compare_cursor_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_test_fake_input_checked (xcb_connection_t *c,
+ uint8_t type,
+ uint8_t detail,
+ uint32_t time,
+ xcb_window_t root,
+ int16_t rootX,
+ int16_t rootY,
+ uint8_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_test_fake_input (xcb_connection_t *c,
+ uint8_t type,
+ uint8_t detail,
+ uint32_t time,
+ xcb_window_t root,
+ int16_t rootX,
+ int16_t rootY,
+ uint8_t deviceid);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_test_grab_control_checked (xcb_connection_t *c,
+ uint8_t impervious);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_test_grab_control (xcb_connection_t *c,
+ uint8_t impervious);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xv.h b/depends/libxcb/include/xcb/xv.h
new file mode 100644
index 0000000..9e50008
--- /dev/null
+++ b/depends/libxcb/include/xcb/xv.h
@@ -0,0 +1,2096 @@
+/*
+ * This file generated automatically from xv.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_Xv_API XCB Xv API
+ * @brief Xv XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XV_H
+#define __XV_H
+
+#include "xcb.h"
+#include "xproto.h"
+#include "shm.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XV_MAJOR_VERSION 2
+#define XCB_XV_MINOR_VERSION 2
+
+extern xcb_extension_t xcb_xv_id;
+
+typedef uint32_t xcb_xv_port_t;
+
+/**
+ * @brief xcb_xv_port_iterator_t
+ **/
+typedef struct xcb_xv_port_iterator_t {
+ xcb_xv_port_t *data;
+ int rem;
+ int index;
+} xcb_xv_port_iterator_t;
+
+typedef uint32_t xcb_xv_encoding_t;
+
+/**
+ * @brief xcb_xv_encoding_iterator_t
+ **/
+typedef struct xcb_xv_encoding_iterator_t {
+ xcb_xv_encoding_t *data;
+ int rem;
+ int index;
+} xcb_xv_encoding_iterator_t;
+
+typedef enum xcb_xv_type_t {
+ XCB_XV_TYPE_INPUT_MASK = 1,
+ XCB_XV_TYPE_OUTPUT_MASK = 2,
+ XCB_XV_TYPE_VIDEO_MASK = 4,
+ XCB_XV_TYPE_STILL_MASK = 8,
+ XCB_XV_TYPE_IMAGE_MASK = 16
+} xcb_xv_type_t;
+
+typedef enum xcb_xv_image_format_info_type_t {
+ XCB_XV_IMAGE_FORMAT_INFO_TYPE_RGB = 0,
+ XCB_XV_IMAGE_FORMAT_INFO_TYPE_YUV = 1
+} xcb_xv_image_format_info_type_t;
+
+typedef enum xcb_xv_image_format_info_format_t {
+ XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PACKED = 0,
+ XCB_XV_IMAGE_FORMAT_INFO_FORMAT_PLANAR = 1
+} xcb_xv_image_format_info_format_t;
+
+typedef enum xcb_xv_attribute_flag_t {
+ XCB_XV_ATTRIBUTE_FLAG_GETTABLE = 1,
+ XCB_XV_ATTRIBUTE_FLAG_SETTABLE = 2
+} xcb_xv_attribute_flag_t;
+
+typedef enum xcb_xv_video_notify_reason_t {
+ XCB_XV_VIDEO_NOTIFY_REASON_STARTED = 0,
+ XCB_XV_VIDEO_NOTIFY_REASON_STOPPED = 1,
+ XCB_XV_VIDEO_NOTIFY_REASON_BUSY = 2,
+ XCB_XV_VIDEO_NOTIFY_REASON_PREEMPTED = 3,
+ XCB_XV_VIDEO_NOTIFY_REASON_HARD_ERROR = 4
+} xcb_xv_video_notify_reason_t;
+
+typedef enum xcb_xv_scanline_order_t {
+ XCB_XV_SCANLINE_ORDER_TOP_TO_BOTTOM = 0,
+ XCB_XV_SCANLINE_ORDER_BOTTOM_TO_TOP = 1
+} xcb_xv_scanline_order_t;
+
+typedef enum xcb_xv_grab_port_status_t {
+ XCB_XV_GRAB_PORT_STATUS_SUCCESS = 0,
+ XCB_XV_GRAB_PORT_STATUS_BAD_EXTENSION = 1,
+ XCB_XV_GRAB_PORT_STATUS_ALREADY_GRABBED = 2,
+ XCB_XV_GRAB_PORT_STATUS_INVALID_TIME = 3,
+ XCB_XV_GRAB_PORT_STATUS_BAD_REPLY = 4,
+ XCB_XV_GRAB_PORT_STATUS_BAD_ALLOC = 5
+} xcb_xv_grab_port_status_t;
+
+/**
+ * @brief xcb_xv_rational_t
+ **/
+typedef struct xcb_xv_rational_t {
+ int32_t numerator;
+ int32_t denominator;
+} xcb_xv_rational_t;
+
+/**
+ * @brief xcb_xv_rational_iterator_t
+ **/
+typedef struct xcb_xv_rational_iterator_t {
+ xcb_xv_rational_t *data;
+ int rem;
+ int index;
+} xcb_xv_rational_iterator_t;
+
+/**
+ * @brief xcb_xv_format_t
+ **/
+typedef struct xcb_xv_format_t {
+ xcb_visualid_t visual;
+ uint8_t depth;
+ uint8_t pad0[3];
+} xcb_xv_format_t;
+
+/**
+ * @brief xcb_xv_format_iterator_t
+ **/
+typedef struct xcb_xv_format_iterator_t {
+ xcb_xv_format_t *data;
+ int rem;
+ int index;
+} xcb_xv_format_iterator_t;
+
+/**
+ * @brief xcb_xv_adaptor_info_t
+ **/
+typedef struct xcb_xv_adaptor_info_t {
+ xcb_xv_port_t base_id;
+ uint16_t name_size;
+ uint16_t num_ports;
+ uint16_t num_formats;
+ uint8_t type;
+ uint8_t pad0;
+} xcb_xv_adaptor_info_t;
+
+/**
+ * @brief xcb_xv_adaptor_info_iterator_t
+ **/
+typedef struct xcb_xv_adaptor_info_iterator_t {
+ xcb_xv_adaptor_info_t *data;
+ int rem;
+ int index;
+} xcb_xv_adaptor_info_iterator_t;
+
+/**
+ * @brief xcb_xv_encoding_info_t
+ **/
+typedef struct xcb_xv_encoding_info_t {
+ xcb_xv_encoding_t encoding;
+ uint16_t name_size;
+ uint16_t width;
+ uint16_t height;
+ uint8_t pad0[2];
+ xcb_xv_rational_t rate;
+} xcb_xv_encoding_info_t;
+
+/**
+ * @brief xcb_xv_encoding_info_iterator_t
+ **/
+typedef struct xcb_xv_encoding_info_iterator_t {
+ xcb_xv_encoding_info_t *data;
+ int rem;
+ int index;
+} xcb_xv_encoding_info_iterator_t;
+
+/**
+ * @brief xcb_xv_image_t
+ **/
+typedef struct xcb_xv_image_t {
+ uint32_t id;
+ uint16_t width;
+ uint16_t height;
+ uint32_t data_size;
+ uint32_t num_planes;
+} xcb_xv_image_t;
+
+/**
+ * @brief xcb_xv_image_iterator_t
+ **/
+typedef struct xcb_xv_image_iterator_t {
+ xcb_xv_image_t *data;
+ int rem;
+ int index;
+} xcb_xv_image_iterator_t;
+
+/**
+ * @brief xcb_xv_attribute_info_t
+ **/
+typedef struct xcb_xv_attribute_info_t {
+ uint32_t flags;
+ int32_t min;
+ int32_t max;
+ uint32_t size;
+} xcb_xv_attribute_info_t;
+
+/**
+ * @brief xcb_xv_attribute_info_iterator_t
+ **/
+typedef struct xcb_xv_attribute_info_iterator_t {
+ xcb_xv_attribute_info_t *data;
+ int rem;
+ int index;
+} xcb_xv_attribute_info_iterator_t;
+
+/**
+ * @brief xcb_xv_image_format_info_t
+ **/
+typedef struct xcb_xv_image_format_info_t {
+ uint32_t id;
+ uint8_t type;
+ uint8_t byte_order;
+ uint8_t pad0[2];
+ uint8_t guid[16];
+ uint8_t bpp;
+ uint8_t num_planes;
+ uint8_t pad1[2];
+ uint8_t depth;
+ uint8_t pad2[3];
+ uint32_t red_mask;
+ uint32_t green_mask;
+ uint32_t blue_mask;
+ uint8_t format;
+ uint8_t pad3[3];
+ uint32_t y_sample_bits;
+ uint32_t u_sample_bits;
+ uint32_t v_sample_bits;
+ uint32_t vhorz_y_period;
+ uint32_t vhorz_u_period;
+ uint32_t vhorz_v_period;
+ uint32_t vvert_y_period;
+ uint32_t vvert_u_period;
+ uint32_t vvert_v_period;
+ uint8_t vcomp_order[32];
+ uint8_t vscanline_order;
+ uint8_t pad4[11];
+} xcb_xv_image_format_info_t;
+
+/**
+ * @brief xcb_xv_image_format_info_iterator_t
+ **/
+typedef struct xcb_xv_image_format_info_iterator_t {
+ xcb_xv_image_format_info_t *data;
+ int rem;
+ int index;
+} xcb_xv_image_format_info_iterator_t;
+
+/** Opcode for xcb_xv_bad_port. */
+#define XCB_XV_BAD_PORT 0
+
+/**
+ * @brief xcb_xv_bad_port_error_t
+ **/
+typedef struct xcb_xv_bad_port_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_xv_bad_port_error_t;
+
+/** Opcode for xcb_xv_bad_encoding. */
+#define XCB_XV_BAD_ENCODING 1
+
+/**
+ * @brief xcb_xv_bad_encoding_error_t
+ **/
+typedef struct xcb_xv_bad_encoding_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_xv_bad_encoding_error_t;
+
+/** Opcode for xcb_xv_bad_control. */
+#define XCB_XV_BAD_CONTROL 2
+
+/**
+ * @brief xcb_xv_bad_control_error_t
+ **/
+typedef struct xcb_xv_bad_control_error_t {
+ uint8_t response_type;
+ uint8_t error_code;
+ uint16_t sequence;
+ uint32_t bad_value;
+ uint16_t minor_opcode;
+ uint8_t major_opcode;
+} xcb_xv_bad_control_error_t;
+
+/** Opcode for xcb_xv_video_notify. */
+#define XCB_XV_VIDEO_NOTIFY 0
+
+/**
+ * @brief xcb_xv_video_notify_event_t
+ **/
+typedef struct xcb_xv_video_notify_event_t {
+ uint8_t response_type;
+ uint8_t reason;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_drawable_t drawable;
+ xcb_xv_port_t port;
+} xcb_xv_video_notify_event_t;
+
+/** Opcode for xcb_xv_port_notify. */
+#define XCB_XV_PORT_NOTIFY 1
+
+/**
+ * @brief xcb_xv_port_notify_event_t
+ **/
+typedef struct xcb_xv_port_notify_event_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ xcb_timestamp_t time;
+ xcb_xv_port_t port;
+ xcb_atom_t attribute;
+ int32_t value;
+} xcb_xv_port_notify_event_t;
+
+/**
+ * @brief xcb_xv_query_extension_cookie_t
+ **/
+typedef struct xcb_xv_query_extension_cookie_t {
+ unsigned int sequence;
+} xcb_xv_query_extension_cookie_t;
+
+/** Opcode for xcb_xv_query_extension. */
+#define XCB_XV_QUERY_EXTENSION 0
+
+/**
+ * @brief xcb_xv_query_extension_request_t
+ **/
+typedef struct xcb_xv_query_extension_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xv_query_extension_request_t;
+
+/**
+ * @brief xcb_xv_query_extension_reply_t
+ **/
+typedef struct xcb_xv_query_extension_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t major;
+ uint16_t minor;
+} xcb_xv_query_extension_reply_t;
+
+/**
+ * @brief xcb_xv_query_adaptors_cookie_t
+ **/
+typedef struct xcb_xv_query_adaptors_cookie_t {
+ unsigned int sequence;
+} xcb_xv_query_adaptors_cookie_t;
+
+/** Opcode for xcb_xv_query_adaptors. */
+#define XCB_XV_QUERY_ADAPTORS 1
+
+/**
+ * @brief xcb_xv_query_adaptors_request_t
+ **/
+typedef struct xcb_xv_query_adaptors_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_window_t window;
+} xcb_xv_query_adaptors_request_t;
+
+/**
+ * @brief xcb_xv_query_adaptors_reply_t
+ **/
+typedef struct xcb_xv_query_adaptors_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_adaptors;
+ uint8_t pad1[22];
+} xcb_xv_query_adaptors_reply_t;
+
+/**
+ * @brief xcb_xv_query_encodings_cookie_t
+ **/
+typedef struct xcb_xv_query_encodings_cookie_t {
+ unsigned int sequence;
+} xcb_xv_query_encodings_cookie_t;
+
+/** Opcode for xcb_xv_query_encodings. */
+#define XCB_XV_QUERY_ENCODINGS 2
+
+/**
+ * @brief xcb_xv_query_encodings_request_t
+ **/
+typedef struct xcb_xv_query_encodings_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+} xcb_xv_query_encodings_request_t;
+
+/**
+ * @brief xcb_xv_query_encodings_reply_t
+ **/
+typedef struct xcb_xv_query_encodings_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t num_encodings;
+ uint8_t pad1[22];
+} xcb_xv_query_encodings_reply_t;
+
+/**
+ * @brief xcb_xv_grab_port_cookie_t
+ **/
+typedef struct xcb_xv_grab_port_cookie_t {
+ unsigned int sequence;
+} xcb_xv_grab_port_cookie_t;
+
+/** Opcode for xcb_xv_grab_port. */
+#define XCB_XV_GRAB_PORT 3
+
+/**
+ * @brief xcb_xv_grab_port_request_t
+ **/
+typedef struct xcb_xv_grab_port_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_timestamp_t time;
+} xcb_xv_grab_port_request_t;
+
+/**
+ * @brief xcb_xv_grab_port_reply_t
+ **/
+typedef struct xcb_xv_grab_port_reply_t {
+ uint8_t response_type;
+ uint8_t result;
+ uint16_t sequence;
+ uint32_t length;
+} xcb_xv_grab_port_reply_t;
+
+/** Opcode for xcb_xv_ungrab_port. */
+#define XCB_XV_UNGRAB_PORT 4
+
+/**
+ * @brief xcb_xv_ungrab_port_request_t
+ **/
+typedef struct xcb_xv_ungrab_port_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_timestamp_t time;
+} xcb_xv_ungrab_port_request_t;
+
+/** Opcode for xcb_xv_put_video. */
+#define XCB_XV_PUT_VIDEO 5
+
+/**
+ * @brief xcb_xv_put_video_request_t
+ **/
+typedef struct xcb_xv_put_video_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t vid_x;
+ int16_t vid_y;
+ uint16_t vid_w;
+ uint16_t vid_h;
+ int16_t drw_x;
+ int16_t drw_y;
+ uint16_t drw_w;
+ uint16_t drw_h;
+} xcb_xv_put_video_request_t;
+
+/** Opcode for xcb_xv_put_still. */
+#define XCB_XV_PUT_STILL 6
+
+/**
+ * @brief xcb_xv_put_still_request_t
+ **/
+typedef struct xcb_xv_put_still_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t vid_x;
+ int16_t vid_y;
+ uint16_t vid_w;
+ uint16_t vid_h;
+ int16_t drw_x;
+ int16_t drw_y;
+ uint16_t drw_w;
+ uint16_t drw_h;
+} xcb_xv_put_still_request_t;
+
+/** Opcode for xcb_xv_get_video. */
+#define XCB_XV_GET_VIDEO 7
+
+/**
+ * @brief xcb_xv_get_video_request_t
+ **/
+typedef struct xcb_xv_get_video_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t vid_x;
+ int16_t vid_y;
+ uint16_t vid_w;
+ uint16_t vid_h;
+ int16_t drw_x;
+ int16_t drw_y;
+ uint16_t drw_w;
+ uint16_t drw_h;
+} xcb_xv_get_video_request_t;
+
+/** Opcode for xcb_xv_get_still. */
+#define XCB_XV_GET_STILL 8
+
+/**
+ * @brief xcb_xv_get_still_request_t
+ **/
+typedef struct xcb_xv_get_still_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ int16_t vid_x;
+ int16_t vid_y;
+ uint16_t vid_w;
+ uint16_t vid_h;
+ int16_t drw_x;
+ int16_t drw_y;
+ uint16_t drw_w;
+ uint16_t drw_h;
+} xcb_xv_get_still_request_t;
+
+/** Opcode for xcb_xv_stop_video. */
+#define XCB_XV_STOP_VIDEO 9
+
+/**
+ * @brief xcb_xv_stop_video_request_t
+ **/
+typedef struct xcb_xv_stop_video_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+} xcb_xv_stop_video_request_t;
+
+/** Opcode for xcb_xv_select_video_notify. */
+#define XCB_XV_SELECT_VIDEO_NOTIFY 10
+
+/**
+ * @brief xcb_xv_select_video_notify_request_t
+ **/
+typedef struct xcb_xv_select_video_notify_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_drawable_t drawable;
+ uint8_t onoff;
+ uint8_t pad0[3];
+} xcb_xv_select_video_notify_request_t;
+
+/** Opcode for xcb_xv_select_port_notify. */
+#define XCB_XV_SELECT_PORT_NOTIFY 11
+
+/**
+ * @brief xcb_xv_select_port_notify_request_t
+ **/
+typedef struct xcb_xv_select_port_notify_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ uint8_t onoff;
+ uint8_t pad0[3];
+} xcb_xv_select_port_notify_request_t;
+
+/**
+ * @brief xcb_xv_query_best_size_cookie_t
+ **/
+typedef struct xcb_xv_query_best_size_cookie_t {
+ unsigned int sequence;
+} xcb_xv_query_best_size_cookie_t;
+
+/** Opcode for xcb_xv_query_best_size. */
+#define XCB_XV_QUERY_BEST_SIZE 12
+
+/**
+ * @brief xcb_xv_query_best_size_request_t
+ **/
+typedef struct xcb_xv_query_best_size_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ uint16_t vid_w;
+ uint16_t vid_h;
+ uint16_t drw_w;
+ uint16_t drw_h;
+ uint8_t motion;
+ uint8_t pad0[3];
+} xcb_xv_query_best_size_request_t;
+
+/**
+ * @brief xcb_xv_query_best_size_reply_t
+ **/
+typedef struct xcb_xv_query_best_size_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t actual_width;
+ uint16_t actual_height;
+} xcb_xv_query_best_size_reply_t;
+
+/** Opcode for xcb_xv_set_port_attribute. */
+#define XCB_XV_SET_PORT_ATTRIBUTE 13
+
+/**
+ * @brief xcb_xv_set_port_attribute_request_t
+ **/
+typedef struct xcb_xv_set_port_attribute_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_atom_t attribute;
+ int32_t value;
+} xcb_xv_set_port_attribute_request_t;
+
+/**
+ * @brief xcb_xv_get_port_attribute_cookie_t
+ **/
+typedef struct xcb_xv_get_port_attribute_cookie_t {
+ unsigned int sequence;
+} xcb_xv_get_port_attribute_cookie_t;
+
+/** Opcode for xcb_xv_get_port_attribute. */
+#define XCB_XV_GET_PORT_ATTRIBUTE 14
+
+/**
+ * @brief xcb_xv_get_port_attribute_request_t
+ **/
+typedef struct xcb_xv_get_port_attribute_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_atom_t attribute;
+} xcb_xv_get_port_attribute_request_t;
+
+/**
+ * @brief xcb_xv_get_port_attribute_reply_t
+ **/
+typedef struct xcb_xv_get_port_attribute_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ int32_t value;
+} xcb_xv_get_port_attribute_reply_t;
+
+/**
+ * @brief xcb_xv_query_port_attributes_cookie_t
+ **/
+typedef struct xcb_xv_query_port_attributes_cookie_t {
+ unsigned int sequence;
+} xcb_xv_query_port_attributes_cookie_t;
+
+/** Opcode for xcb_xv_query_port_attributes. */
+#define XCB_XV_QUERY_PORT_ATTRIBUTES 15
+
+/**
+ * @brief xcb_xv_query_port_attributes_request_t
+ **/
+typedef struct xcb_xv_query_port_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+} xcb_xv_query_port_attributes_request_t;
+
+/**
+ * @brief xcb_xv_query_port_attributes_reply_t
+ **/
+typedef struct xcb_xv_query_port_attributes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_attributes;
+ uint32_t text_size;
+ uint8_t pad1[16];
+} xcb_xv_query_port_attributes_reply_t;
+
+/**
+ * @brief xcb_xv_list_image_formats_cookie_t
+ **/
+typedef struct xcb_xv_list_image_formats_cookie_t {
+ unsigned int sequence;
+} xcb_xv_list_image_formats_cookie_t;
+
+/** Opcode for xcb_xv_list_image_formats. */
+#define XCB_XV_LIST_IMAGE_FORMATS 16
+
+/**
+ * @brief xcb_xv_list_image_formats_request_t
+ **/
+typedef struct xcb_xv_list_image_formats_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+} xcb_xv_list_image_formats_request_t;
+
+/**
+ * @brief xcb_xv_list_image_formats_reply_t
+ **/
+typedef struct xcb_xv_list_image_formats_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_formats;
+ uint8_t pad1[20];
+} xcb_xv_list_image_formats_reply_t;
+
+/**
+ * @brief xcb_xv_query_image_attributes_cookie_t
+ **/
+typedef struct xcb_xv_query_image_attributes_cookie_t {
+ unsigned int sequence;
+} xcb_xv_query_image_attributes_cookie_t;
+
+/** Opcode for xcb_xv_query_image_attributes. */
+#define XCB_XV_QUERY_IMAGE_ATTRIBUTES 17
+
+/**
+ * @brief xcb_xv_query_image_attributes_request_t
+ **/
+typedef struct xcb_xv_query_image_attributes_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ uint32_t id;
+ uint16_t width;
+ uint16_t height;
+} xcb_xv_query_image_attributes_request_t;
+
+/**
+ * @brief xcb_xv_query_image_attributes_reply_t
+ **/
+typedef struct xcb_xv_query_image_attributes_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num_planes;
+ uint32_t data_size;
+ uint16_t width;
+ uint16_t height;
+ uint8_t pad1[12];
+} xcb_xv_query_image_attributes_reply_t;
+
+/** Opcode for xcb_xv_put_image. */
+#define XCB_XV_PUT_IMAGE 18
+
+/**
+ * @brief xcb_xv_put_image_request_t
+ **/
+typedef struct xcb_xv_put_image_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ uint32_t id;
+ int16_t src_x;
+ int16_t src_y;
+ uint16_t src_w;
+ uint16_t src_h;
+ int16_t drw_x;
+ int16_t drw_y;
+ uint16_t drw_w;
+ uint16_t drw_h;
+ uint16_t width;
+ uint16_t height;
+} xcb_xv_put_image_request_t;
+
+/** Opcode for xcb_xv_shm_put_image. */
+#define XCB_XV_SHM_PUT_IMAGE 19
+
+/**
+ * @brief xcb_xv_shm_put_image_request_t
+ **/
+typedef struct xcb_xv_shm_put_image_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port;
+ xcb_drawable_t drawable;
+ xcb_gcontext_t gc;
+ xcb_shm_seg_t shmseg;
+ uint32_t id;
+ uint32_t offset;
+ int16_t src_x;
+ int16_t src_y;
+ uint16_t src_w;
+ uint16_t src_h;
+ int16_t drw_x;
+ int16_t drw_y;
+ uint16_t drw_w;
+ uint16_t drw_h;
+ uint16_t width;
+ uint16_t height;
+ uint8_t send_event;
+ uint8_t pad0[3];
+} xcb_xv_shm_put_image_request_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_port_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_port_t)
+ */
+void
+xcb_xv_port_next (xcb_xv_port_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_port_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_port_end (xcb_xv_port_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_encoding_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_encoding_t)
+ */
+void
+xcb_xv_encoding_next (xcb_xv_encoding_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_encoding_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_encoding_end (xcb_xv_encoding_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_rational_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_rational_t)
+ */
+void
+xcb_xv_rational_next (xcb_xv_rational_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_rational_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_rational_end (xcb_xv_rational_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_format_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_format_t)
+ */
+void
+xcb_xv_format_next (xcb_xv_format_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_format_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_format_end (xcb_xv_format_iterator_t i);
+
+int
+xcb_xv_adaptor_info_sizeof (const void *_buffer);
+
+char *
+xcb_xv_adaptor_info_name (const xcb_xv_adaptor_info_t *R);
+
+int
+xcb_xv_adaptor_info_name_length (const xcb_xv_adaptor_info_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_adaptor_info_name_end (const xcb_xv_adaptor_info_t *R);
+
+xcb_xv_format_t *
+xcb_xv_adaptor_info_formats (const xcb_xv_adaptor_info_t *R);
+
+int
+xcb_xv_adaptor_info_formats_length (const xcb_xv_adaptor_info_t *R);
+
+xcb_xv_format_iterator_t
+xcb_xv_adaptor_info_formats_iterator (const xcb_xv_adaptor_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_adaptor_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_adaptor_info_t)
+ */
+void
+xcb_xv_adaptor_info_next (xcb_xv_adaptor_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_adaptor_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_adaptor_info_end (xcb_xv_adaptor_info_iterator_t i);
+
+int
+xcb_xv_encoding_info_sizeof (const void *_buffer);
+
+char *
+xcb_xv_encoding_info_name (const xcb_xv_encoding_info_t *R);
+
+int
+xcb_xv_encoding_info_name_length (const xcb_xv_encoding_info_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_encoding_info_name_end (const xcb_xv_encoding_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_encoding_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_encoding_info_t)
+ */
+void
+xcb_xv_encoding_info_next (xcb_xv_encoding_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_encoding_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_encoding_info_end (xcb_xv_encoding_info_iterator_t i);
+
+int
+xcb_xv_image_sizeof (const void *_buffer);
+
+uint32_t *
+xcb_xv_image_pitches (const xcb_xv_image_t *R);
+
+int
+xcb_xv_image_pitches_length (const xcb_xv_image_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_image_pitches_end (const xcb_xv_image_t *R);
+
+uint32_t *
+xcb_xv_image_offsets (const xcb_xv_image_t *R);
+
+int
+xcb_xv_image_offsets_length (const xcb_xv_image_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_image_offsets_end (const xcb_xv_image_t *R);
+
+uint8_t *
+xcb_xv_image_data (const xcb_xv_image_t *R);
+
+int
+xcb_xv_image_data_length (const xcb_xv_image_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_image_data_end (const xcb_xv_image_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_image_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_image_t)
+ */
+void
+xcb_xv_image_next (xcb_xv_image_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_image_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_image_end (xcb_xv_image_iterator_t i);
+
+int
+xcb_xv_attribute_info_sizeof (const void *_buffer);
+
+char *
+xcb_xv_attribute_info_name (const xcb_xv_attribute_info_t *R);
+
+int
+xcb_xv_attribute_info_name_length (const xcb_xv_attribute_info_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_attribute_info_name_end (const xcb_xv_attribute_info_t *R);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_attribute_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_attribute_info_t)
+ */
+void
+xcb_xv_attribute_info_next (xcb_xv_attribute_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_attribute_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_attribute_info_end (xcb_xv_attribute_info_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xv_image_format_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xv_image_format_info_t)
+ */
+void
+xcb_xv_image_format_info_next (xcb_xv_image_format_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xv_image_format_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xv_image_format_info_end (xcb_xv_image_format_info_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_query_extension_cookie_t
+xcb_xv_query_extension (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_query_extension_cookie_t
+xcb_xv_query_extension_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_query_extension_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_query_extension_reply_t *
+xcb_xv_query_extension_reply (xcb_connection_t *c,
+ xcb_xv_query_extension_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xv_query_adaptors_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_query_adaptors_cookie_t
+xcb_xv_query_adaptors (xcb_connection_t *c,
+ xcb_window_t window);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_query_adaptors_cookie_t
+xcb_xv_query_adaptors_unchecked (xcb_connection_t *c,
+ xcb_window_t window);
+
+int
+xcb_xv_query_adaptors_info_length (const xcb_xv_query_adaptors_reply_t *R);
+
+xcb_xv_adaptor_info_iterator_t
+xcb_xv_query_adaptors_info_iterator (const xcb_xv_query_adaptors_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_query_adaptors_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_query_adaptors_reply_t *
+xcb_xv_query_adaptors_reply (xcb_connection_t *c,
+ xcb_xv_query_adaptors_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xv_query_encodings_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_query_encodings_cookie_t
+xcb_xv_query_encodings (xcb_connection_t *c,
+ xcb_xv_port_t port);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_query_encodings_cookie_t
+xcb_xv_query_encodings_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port);
+
+int
+xcb_xv_query_encodings_info_length (const xcb_xv_query_encodings_reply_t *R);
+
+xcb_xv_encoding_info_iterator_t
+xcb_xv_query_encodings_info_iterator (const xcb_xv_query_encodings_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_query_encodings_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_query_encodings_reply_t *
+xcb_xv_query_encodings_reply (xcb_connection_t *c,
+ xcb_xv_query_encodings_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_grab_port_cookie_t
+xcb_xv_grab_port (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_grab_port_cookie_t
+xcb_xv_grab_port_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_timestamp_t time);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_grab_port_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_grab_port_reply_t *
+xcb_xv_grab_port_reply (xcb_connection_t *c,
+ xcb_xv_grab_port_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_ungrab_port_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_ungrab_port (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_timestamp_t time);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_put_video_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_put_video (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_put_still_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_put_still (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_get_video_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_get_video (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_get_still_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_get_still (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ int16_t vid_x,
+ int16_t vid_y,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_stop_video_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_stop_video (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_select_video_notify_checked (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint8_t onoff);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_select_video_notify (xcb_connection_t *c,
+ xcb_drawable_t drawable,
+ uint8_t onoff);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_select_port_notify_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ uint8_t onoff);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_select_port_notify (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ uint8_t onoff);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_query_best_size_cookie_t
+xcb_xv_query_best_size (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ uint16_t drw_w,
+ uint16_t drw_h,
+ uint8_t motion);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_query_best_size_cookie_t
+xcb_xv_query_best_size_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ uint16_t vid_w,
+ uint16_t vid_h,
+ uint16_t drw_w,
+ uint16_t drw_h,
+ uint8_t motion);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_query_best_size_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_query_best_size_reply_t *
+xcb_xv_query_best_size_reply (xcb_connection_t *c,
+ xcb_xv_query_best_size_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_set_port_attribute_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_atom_t attribute,
+ int32_t value);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_set_port_attribute (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_atom_t attribute,
+ int32_t value);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_get_port_attribute_cookie_t
+xcb_xv_get_port_attribute (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_atom_t attribute);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_get_port_attribute_cookie_t
+xcb_xv_get_port_attribute_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_atom_t attribute);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_get_port_attribute_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_get_port_attribute_reply_t *
+xcb_xv_get_port_attribute_reply (xcb_connection_t *c,
+ xcb_xv_get_port_attribute_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xv_query_port_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_query_port_attributes_cookie_t
+xcb_xv_query_port_attributes (xcb_connection_t *c,
+ xcb_xv_port_t port);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_query_port_attributes_cookie_t
+xcb_xv_query_port_attributes_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port);
+
+int
+xcb_xv_query_port_attributes_attributes_length (const xcb_xv_query_port_attributes_reply_t *R);
+
+xcb_xv_attribute_info_iterator_t
+xcb_xv_query_port_attributes_attributes_iterator (const xcb_xv_query_port_attributes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_query_port_attributes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_query_port_attributes_reply_t *
+xcb_xv_query_port_attributes_reply (xcb_connection_t *c,
+ xcb_xv_query_port_attributes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xv_list_image_formats_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_list_image_formats_cookie_t
+xcb_xv_list_image_formats (xcb_connection_t *c,
+ xcb_xv_port_t port);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_list_image_formats_cookie_t
+xcb_xv_list_image_formats_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port);
+
+xcb_xv_image_format_info_t *
+xcb_xv_list_image_formats_format (const xcb_xv_list_image_formats_reply_t *R);
+
+int
+xcb_xv_list_image_formats_format_length (const xcb_xv_list_image_formats_reply_t *R);
+
+xcb_xv_image_format_info_iterator_t
+xcb_xv_list_image_formats_format_iterator (const xcb_xv_list_image_formats_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_list_image_formats_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_list_image_formats_reply_t *
+xcb_xv_list_image_formats_reply (xcb_connection_t *c,
+ xcb_xv_list_image_formats_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xv_query_image_attributes_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xv_query_image_attributes_cookie_t
+xcb_xv_query_image_attributes (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ uint32_t id,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xv_query_image_attributes_cookie_t
+xcb_xv_query_image_attributes_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ uint32_t id,
+ uint16_t width,
+ uint16_t height);
+
+uint32_t *
+xcb_xv_query_image_attributes_pitches (const xcb_xv_query_image_attributes_reply_t *R);
+
+int
+xcb_xv_query_image_attributes_pitches_length (const xcb_xv_query_image_attributes_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_query_image_attributes_pitches_end (const xcb_xv_query_image_attributes_reply_t *R);
+
+uint32_t *
+xcb_xv_query_image_attributes_offsets (const xcb_xv_query_image_attributes_reply_t *R);
+
+int
+xcb_xv_query_image_attributes_offsets_length (const xcb_xv_query_image_attributes_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_query_image_attributes_offsets_end (const xcb_xv_query_image_attributes_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xv_query_image_attributes_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xv_query_image_attributes_reply_t *
+xcb_xv_query_image_attributes_reply (xcb_connection_t *c,
+ xcb_xv_query_image_attributes_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xv_put_image_sizeof (const void *_buffer,
+ uint32_t data_len);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_put_image_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t id,
+ int16_t src_x,
+ int16_t src_y,
+ uint16_t src_w,
+ uint16_t src_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h,
+ uint16_t width,
+ uint16_t height,
+ uint32_t data_len,
+ const uint8_t *data);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_put_image (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ uint32_t id,
+ int16_t src_x,
+ int16_t src_y,
+ uint16_t src_w,
+ uint16_t src_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h,
+ uint16_t width,
+ uint16_t height,
+ uint32_t data_len,
+ const uint8_t *data);
+
+uint8_t *
+xcb_xv_put_image_data (const xcb_xv_put_image_request_t *R);
+
+int
+xcb_xv_put_image_data_length (const xcb_xv_put_image_request_t *R);
+
+xcb_generic_iterator_t
+xcb_xv_put_image_data_end (const xcb_xv_put_image_request_t *R);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xv_shm_put_image_checked (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ xcb_shm_seg_t shmseg,
+ uint32_t id,
+ uint32_t offset,
+ int16_t src_x,
+ int16_t src_y,
+ uint16_t src_w,
+ uint16_t src_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h,
+ uint16_t width,
+ uint16_t height,
+ uint8_t send_event);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xv_shm_put_image (xcb_connection_t *c,
+ xcb_xv_port_t port,
+ xcb_drawable_t drawable,
+ xcb_gcontext_t gc,
+ xcb_shm_seg_t shmseg,
+ uint32_t id,
+ uint32_t offset,
+ int16_t src_x,
+ int16_t src_y,
+ uint16_t src_w,
+ uint16_t src_h,
+ int16_t drw_x,
+ int16_t drw_y,
+ uint16_t drw_w,
+ uint16_t drw_h,
+ uint16_t width,
+ uint16_t height,
+ uint8_t send_event);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff --git a/depends/libxcb/include/xcb/xvmc.h b/depends/libxcb/include/xcb/xvmc.h
new file mode 100644
index 0000000..6305416
--- /dev/null
+++ b/depends/libxcb/include/xcb/xvmc.h
@@ -0,0 +1,868 @@
+/*
+ * This file generated automatically from xvmc.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_XvMC_API XCB XvMC API
+ * @brief XvMC XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __XVMC_H
+#define __XVMC_H
+
+#include "xcb.h"
+#include "xv.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_XVMC_MAJOR_VERSION 1
+#define XCB_XVMC_MINOR_VERSION 1
+
+extern xcb_extension_t xcb_xvmc_id;
+
+typedef uint32_t xcb_xvmc_context_t;
+
+/**
+ * @brief xcb_xvmc_context_iterator_t
+ **/
+typedef struct xcb_xvmc_context_iterator_t {
+ xcb_xvmc_context_t *data;
+ int rem;
+ int index;
+} xcb_xvmc_context_iterator_t;
+
+typedef uint32_t xcb_xvmc_surface_t;
+
+/**
+ * @brief xcb_xvmc_surface_iterator_t
+ **/
+typedef struct xcb_xvmc_surface_iterator_t {
+ xcb_xvmc_surface_t *data;
+ int rem;
+ int index;
+} xcb_xvmc_surface_iterator_t;
+
+typedef uint32_t xcb_xvmc_subpicture_t;
+
+/**
+ * @brief xcb_xvmc_subpicture_iterator_t
+ **/
+typedef struct xcb_xvmc_subpicture_iterator_t {
+ xcb_xvmc_subpicture_t *data;
+ int rem;
+ int index;
+} xcb_xvmc_subpicture_iterator_t;
+
+/**
+ * @brief xcb_xvmc_surface_info_t
+ **/
+typedef struct xcb_xvmc_surface_info_t {
+ xcb_xvmc_surface_t id;
+ uint16_t chroma_format;
+ uint16_t pad0;
+ uint16_t max_width;
+ uint16_t max_height;
+ uint16_t subpicture_max_width;
+ uint16_t subpicture_max_height;
+ uint32_t mc_type;
+ uint32_t flags;
+} xcb_xvmc_surface_info_t;
+
+/**
+ * @brief xcb_xvmc_surface_info_iterator_t
+ **/
+typedef struct xcb_xvmc_surface_info_iterator_t {
+ xcb_xvmc_surface_info_t *data;
+ int rem;
+ int index;
+} xcb_xvmc_surface_info_iterator_t;
+
+/**
+ * @brief xcb_xvmc_query_version_cookie_t
+ **/
+typedef struct xcb_xvmc_query_version_cookie_t {
+ unsigned int sequence;
+} xcb_xvmc_query_version_cookie_t;
+
+/** Opcode for xcb_xvmc_query_version. */
+#define XCB_XVMC_QUERY_VERSION 0
+
+/**
+ * @brief xcb_xvmc_query_version_request_t
+ **/
+typedef struct xcb_xvmc_query_version_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+} xcb_xvmc_query_version_request_t;
+
+/**
+ * @brief xcb_xvmc_query_version_reply_t
+ **/
+typedef struct xcb_xvmc_query_version_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t major;
+ uint32_t minor;
+} xcb_xvmc_query_version_reply_t;
+
+/**
+ * @brief xcb_xvmc_list_surface_types_cookie_t
+ **/
+typedef struct xcb_xvmc_list_surface_types_cookie_t {
+ unsigned int sequence;
+} xcb_xvmc_list_surface_types_cookie_t;
+
+/** Opcode for xcb_xvmc_list_surface_types. */
+#define XCB_XVMC_LIST_SURFACE_TYPES 1
+
+/**
+ * @brief xcb_xvmc_list_surface_types_request_t
+ **/
+typedef struct xcb_xvmc_list_surface_types_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port_id;
+} xcb_xvmc_list_surface_types_request_t;
+
+/**
+ * @brief xcb_xvmc_list_surface_types_reply_t
+ **/
+typedef struct xcb_xvmc_list_surface_types_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num;
+ uint8_t pad1[20];
+} xcb_xvmc_list_surface_types_reply_t;
+
+/**
+ * @brief xcb_xvmc_create_context_cookie_t
+ **/
+typedef struct xcb_xvmc_create_context_cookie_t {
+ unsigned int sequence;
+} xcb_xvmc_create_context_cookie_t;
+
+/** Opcode for xcb_xvmc_create_context. */
+#define XCB_XVMC_CREATE_CONTEXT 2
+
+/**
+ * @brief xcb_xvmc_create_context_request_t
+ **/
+typedef struct xcb_xvmc_create_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xvmc_context_t context_id;
+ xcb_xv_port_t port_id;
+ xcb_xvmc_surface_t surface_id;
+ uint16_t width;
+ uint16_t height;
+ uint32_t flags;
+} xcb_xvmc_create_context_request_t;
+
+/**
+ * @brief xcb_xvmc_create_context_reply_t
+ **/
+typedef struct xcb_xvmc_create_context_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t width_actual;
+ uint16_t height_actual;
+ uint32_t flags_return;
+ uint8_t pad1[20];
+} xcb_xvmc_create_context_reply_t;
+
+/** Opcode for xcb_xvmc_destroy_context. */
+#define XCB_XVMC_DESTROY_CONTEXT 3
+
+/**
+ * @brief xcb_xvmc_destroy_context_request_t
+ **/
+typedef struct xcb_xvmc_destroy_context_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xvmc_context_t context_id;
+} xcb_xvmc_destroy_context_request_t;
+
+/**
+ * @brief xcb_xvmc_create_surface_cookie_t
+ **/
+typedef struct xcb_xvmc_create_surface_cookie_t {
+ unsigned int sequence;
+} xcb_xvmc_create_surface_cookie_t;
+
+/** Opcode for xcb_xvmc_create_surface. */
+#define XCB_XVMC_CREATE_SURFACE 4
+
+/**
+ * @brief xcb_xvmc_create_surface_request_t
+ **/
+typedef struct xcb_xvmc_create_surface_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xvmc_surface_t surface_id;
+ xcb_xvmc_context_t context_id;
+} xcb_xvmc_create_surface_request_t;
+
+/**
+ * @brief xcb_xvmc_create_surface_reply_t
+ **/
+typedef struct xcb_xvmc_create_surface_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint8_t pad1[24];
+} xcb_xvmc_create_surface_reply_t;
+
+/** Opcode for xcb_xvmc_destroy_surface. */
+#define XCB_XVMC_DESTROY_SURFACE 5
+
+/**
+ * @brief xcb_xvmc_destroy_surface_request_t
+ **/
+typedef struct xcb_xvmc_destroy_surface_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xvmc_surface_t surface_id;
+} xcb_xvmc_destroy_surface_request_t;
+
+/**
+ * @brief xcb_xvmc_create_subpicture_cookie_t
+ **/
+typedef struct xcb_xvmc_create_subpicture_cookie_t {
+ unsigned int sequence;
+} xcb_xvmc_create_subpicture_cookie_t;
+
+/** Opcode for xcb_xvmc_create_subpicture. */
+#define XCB_XVMC_CREATE_SUBPICTURE 6
+
+/**
+ * @brief xcb_xvmc_create_subpicture_request_t
+ **/
+typedef struct xcb_xvmc_create_subpicture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xvmc_subpicture_t subpicture_id;
+ xcb_xvmc_context_t context;
+ uint32_t xvimage_id;
+ uint16_t width;
+ uint16_t height;
+} xcb_xvmc_create_subpicture_request_t;
+
+/**
+ * @brief xcb_xvmc_create_subpicture_reply_t
+ **/
+typedef struct xcb_xvmc_create_subpicture_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint16_t width_actual;
+ uint16_t height_actual;
+ uint16_t num_palette_entries;
+ uint16_t entry_bytes;
+ uint8_t component_order[4];
+ uint8_t pad1[12];
+} xcb_xvmc_create_subpicture_reply_t;
+
+/** Opcode for xcb_xvmc_destroy_subpicture. */
+#define XCB_XVMC_DESTROY_SUBPICTURE 7
+
+/**
+ * @brief xcb_xvmc_destroy_subpicture_request_t
+ **/
+typedef struct xcb_xvmc_destroy_subpicture_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xvmc_subpicture_t subpicture_id;
+} xcb_xvmc_destroy_subpicture_request_t;
+
+/**
+ * @brief xcb_xvmc_list_subpicture_types_cookie_t
+ **/
+typedef struct xcb_xvmc_list_subpicture_types_cookie_t {
+ unsigned int sequence;
+} xcb_xvmc_list_subpicture_types_cookie_t;
+
+/** Opcode for xcb_xvmc_list_subpicture_types. */
+#define XCB_XVMC_LIST_SUBPICTURE_TYPES 8
+
+/**
+ * @brief xcb_xvmc_list_subpicture_types_request_t
+ **/
+typedef struct xcb_xvmc_list_subpicture_types_request_t {
+ uint8_t major_opcode;
+ uint8_t minor_opcode;
+ uint16_t length;
+ xcb_xv_port_t port_id;
+ xcb_xvmc_surface_t surface_id;
+} xcb_xvmc_list_subpicture_types_request_t;
+
+/**
+ * @brief xcb_xvmc_list_subpicture_types_reply_t
+ **/
+typedef struct xcb_xvmc_list_subpicture_types_reply_t {
+ uint8_t response_type;
+ uint8_t pad0;
+ uint16_t sequence;
+ uint32_t length;
+ uint32_t num;
+ uint8_t pad1[20];
+} xcb_xvmc_list_subpicture_types_reply_t;
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xvmc_context_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xvmc_context_t)
+ */
+void
+xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xvmc_context_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xvmc_surface_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xvmc_surface_t)
+ */
+void
+xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xvmc_surface_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xvmc_subpicture_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xvmc_subpicture_t)
+ */
+void
+xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xvmc_subpicture_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i);
+
+/**
+ * Get the next element of the iterator
+ * @param i Pointer to a xcb_xvmc_surface_info_iterator_t
+ *
+ * Get the next element in the iterator. The member rem is
+ * decreased by one. The member data points to the next
+ * element. The member index is increased by sizeof(xcb_xvmc_surface_info_t)
+ */
+void
+xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i);
+
+/**
+ * Return the iterator pointing to the last element
+ * @param i An xcb_xvmc_surface_info_iterator_t
+ * @return The iterator pointing to the last element
+ *
+ * Set the current element in the iterator to the last element.
+ * The member rem is set to 0. The member data points to the
+ * last element.
+ */
+xcb_generic_iterator_t
+xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xvmc_query_version_cookie_t
+xcb_xvmc_query_version (xcb_connection_t *c);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xvmc_query_version_cookie_t
+xcb_xvmc_query_version_unchecked (xcb_connection_t *c);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xvmc_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xvmc_query_version_reply_t *
+xcb_xvmc_query_version_reply (xcb_connection_t *c,
+ xcb_xvmc_query_version_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xvmc_list_surface_types_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xvmc_list_surface_types_cookie_t
+xcb_xvmc_list_surface_types (xcb_connection_t *c,
+ xcb_xv_port_t port_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xvmc_list_surface_types_cookie_t
+xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port_id);
+
+xcb_xvmc_surface_info_t *
+xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R);
+
+int
+xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R);
+
+xcb_xvmc_surface_info_iterator_t
+xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xvmc_list_surface_types_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xvmc_list_surface_types_reply_t *
+xcb_xvmc_list_surface_types_reply (xcb_connection_t *c,
+ xcb_xvmc_list_surface_types_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+int
+xcb_xvmc_create_context_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xvmc_create_context_cookie_t
+xcb_xvmc_create_context (xcb_connection_t *c,
+ xcb_xvmc_context_t context_id,
+ xcb_xv_port_t port_id,
+ xcb_xvmc_surface_t surface_id,
+ uint16_t width,
+ uint16_t height,
+ uint32_t flags);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xvmc_create_context_cookie_t
+xcb_xvmc_create_context_unchecked (xcb_connection_t *c,
+ xcb_xvmc_context_t context_id,
+ xcb_xv_port_t port_id,
+ xcb_xvmc_surface_t surface_id,
+ uint16_t width,
+ uint16_t height,
+ uint32_t flags);
+
+uint32_t *
+xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R);
+
+int
+xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xvmc_create_context_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xvmc_create_context_reply_t *
+xcb_xvmc_create_context_reply (xcb_connection_t *c,
+ xcb_xvmc_create_context_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xvmc_destroy_context_checked (xcb_connection_t *c,
+ xcb_xvmc_context_t context_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xvmc_destroy_context (xcb_connection_t *c,
+ xcb_xvmc_context_t context_id);
+
+int
+xcb_xvmc_create_surface_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xvmc_create_surface_cookie_t
+xcb_xvmc_create_surface (xcb_connection_t *c,
+ xcb_xvmc_surface_t surface_id,
+ xcb_xvmc_context_t context_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xvmc_create_surface_cookie_t
+xcb_xvmc_create_surface_unchecked (xcb_connection_t *c,
+ xcb_xvmc_surface_t surface_id,
+ xcb_xvmc_context_t context_id);
+
+uint32_t *
+xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R);
+
+int
+xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xvmc_create_surface_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xvmc_create_surface_reply_t *
+xcb_xvmc_create_surface_reply (xcb_connection_t *c,
+ xcb_xvmc_create_surface_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xvmc_destroy_surface_checked (xcb_connection_t *c,
+ xcb_xvmc_surface_t surface_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xvmc_destroy_surface (xcb_connection_t *c,
+ xcb_xvmc_surface_t surface_id);
+
+int
+xcb_xvmc_create_subpicture_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xvmc_create_subpicture_cookie_t
+xcb_xvmc_create_subpicture (xcb_connection_t *c,
+ xcb_xvmc_subpicture_t subpicture_id,
+ xcb_xvmc_context_t context,
+ uint32_t xvimage_id,
+ uint16_t width,
+ uint16_t height);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xvmc_create_subpicture_cookie_t
+xcb_xvmc_create_subpicture_unchecked (xcb_connection_t *c,
+ xcb_xvmc_subpicture_t subpicture_id,
+ xcb_xvmc_context_t context,
+ uint32_t xvimage_id,
+ uint16_t width,
+ uint16_t height);
+
+uint32_t *
+xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R);
+
+int
+xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R);
+
+xcb_generic_iterator_t
+xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xvmc_create_subpicture_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xvmc_create_subpicture_reply_t *
+xcb_xvmc_create_subpicture_reply (xcb_connection_t *c,
+ xcb_xvmc_create_subpicture_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will not cause
+ * a reply to be generated. Any returned error will be
+ * saved for handling by xcb_request_check().
+ */
+xcb_void_cookie_t
+xcb_xvmc_destroy_subpicture_checked (xcb_connection_t *c,
+ xcb_xvmc_subpicture_t subpicture_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_void_cookie_t
+xcb_xvmc_destroy_subpicture (xcb_connection_t *c,
+ xcb_xvmc_subpicture_t subpicture_id);
+
+int
+xcb_xvmc_list_subpicture_types_sizeof (const void *_buffer);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_xvmc_list_subpicture_types_cookie_t
+xcb_xvmc_list_subpicture_types (xcb_connection_t *c,
+ xcb_xv_port_t port_id,
+ xcb_xvmc_surface_t surface_id);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_xvmc_list_subpicture_types_cookie_t
+xcb_xvmc_list_subpicture_types_unchecked (xcb_connection_t *c,
+ xcb_xv_port_t port_id,
+ xcb_xvmc_surface_t surface_id);
+
+xcb_xv_image_format_info_t *
+xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R);
+
+int
+xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R);
+
+xcb_xv_image_format_info_iterator_t
+xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R);
+
+/**
+ * Return the reply
+ * @param c The connection
+ * @param cookie The cookie
+ * @param e The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_xvmc_list_subpicture_types_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_xvmc_list_subpicture_types_reply_t *
+xcb_xvmc_list_subpicture_types_reply (xcb_connection_t *c,
+ xcb_xvmc_list_subpicture_types_cookie_t cookie /**< */,
+ xcb_generic_error_t **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */