etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libxcb / files / bigreq.h
blob88401e0d5b9ff4dd80b7a9214b62f26eec094fc6
1 /*
2 * This file generated automatically from bigreq.xml by c_client.py.
3 * Edit at your peril.
4 */
6 /**
7 * @defgroup XCB_BigRequests_API XCB BigRequests API
8 * @brief BigRequests XCB Protocol Implementation.
9 * @{
10 **/
12 #ifndef __BIGREQ_H
13 #define __BIGREQ_H
15 #include "xcb.h"
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
21 #define XCB_BIGREQUESTS_MAJOR_VERSION 0
22 #define XCB_BIGREQUESTS_MINOR_VERSION 0
24 extern xcb_extension_t xcb_big_requests_id;
26 /**
27 * @brief xcb_big_requests_enable_cookie_t
28 **/
29 typedef struct xcb_big_requests_enable_cookie_t {
30 unsigned int sequence; /**< */
31 } xcb_big_requests_enable_cookie_t;
33 /** Opcode for xcb_big_requests_enable. */
34 #define XCB_BIG_REQUESTS_ENABLE 0
36 /**
37 * @brief xcb_big_requests_enable_request_t
38 **/
39 typedef struct xcb_big_requests_enable_request_t {
40 uint8_t major_opcode; /**< */
41 uint8_t minor_opcode; /**< */
42 uint16_t length; /**< */
43 } xcb_big_requests_enable_request_t;
45 /**
46 * @brief xcb_big_requests_enable_reply_t
47 **/
48 typedef struct xcb_big_requests_enable_reply_t {
49 uint8_t response_type; /**< */
50 uint8_t pad0; /**< */
51 uint16_t sequence; /**< */
52 uint32_t length; /**< */
53 uint32_t maximum_request_length; /**< */
54 } xcb_big_requests_enable_reply_t;
56 /**
58 * @param c The connection
59 * @return A cookie
61 * Delivers a request to the X server.
64 xcb_big_requests_enable_cookie_t
65 xcb_big_requests_enable (xcb_connection_t *c /**< */);
67 /**
69 * @param c The connection
70 * @return A cookie
72 * Delivers a request to the X server.
74 * This form can be used only if the request will cause
75 * a reply to be generated. Any returned error will be
76 * placed in the event queue.
78 xcb_big_requests_enable_cookie_t
79 xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */);
81 /**
82 * Return the reply
83 * @param c The connection
84 * @param cookie The cookie
85 * @param e The xcb_generic_error_t supplied
87 * Returns the reply of the request asked by
89 * The parameter @p e supplied to this function must be NULL if
90 * xcb_big_requests_enable_unchecked(). is used.
91 * Otherwise, it stores the error if any.
93 * The returned value must be freed by the caller using free().
95 xcb_big_requests_enable_reply_t *
96 xcb_big_requests_enable_reply (xcb_connection_t *c /**< */,
97 xcb_big_requests_enable_cookie_t cookie /**< */,
98 xcb_generic_error_t **e /**< */);
101 #ifdef __cplusplus
103 #endif
105 #endif
108 * @}