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