xref: /minix/external/mit/xorg/lib/libxcb/files/bigreq.h (revision 0a6a1f1d)
1 /*
2  * This file generated automatically from bigreq.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
6 /**
7  * @defgroup XCB_BigRequests_API XCB BigRequests API
8  * @brief BigRequests XCB Protocol Implementation.
9  * @{
10  **/
11 
12 #ifndef __BIGREQ_H
13 #define __BIGREQ_H
14 
15 #include "xcb.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #define XCB_BIGREQUESTS_MAJOR_VERSION 0
22 #define XCB_BIGREQUESTS_MINOR_VERSION 0
23 
24 extern xcb_extension_t xcb_big_requests_id;
25 
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;
32 
33 /** Opcode for xcb_big_requests_enable. */
34 #define XCB_BIG_REQUESTS_ENABLE 0
35 
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;
44 
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;
55 
56 /**
57  *
58  * @param c The connection
59  * @return A cookie
60  *
61  * Delivers a request to the X server.
62  *
63  */
64 xcb_big_requests_enable_cookie_t
65 xcb_big_requests_enable (xcb_connection_t *c  /**< */);
66 
67 /**
68  *
69  * @param c The connection
70  * @return A cookie
71  *
72  * Delivers a request to the X server.
73  *
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.
77  */
78 xcb_big_requests_enable_cookie_t
79 xcb_big_requests_enable_unchecked (xcb_connection_t *c  /**< */);
80 
81 /**
82  * Return the reply
83  * @param c      The connection
84  * @param cookie The cookie
85  * @param e      The xcb_generic_error_t supplied
86  *
87  * Returns the reply of the request asked by
88  *
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.
92  *
93  * The returned value must be freed by the caller using free().
94  */
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  /**< */);
99 
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 #endif
106 
107 /**
108  * @}
109  */
110