xref: /minix3/external/mit/xorg/lib/libxcb/files/dri2.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1971bb1a5SLionel Sambuc /*
2971bb1a5SLionel Sambuc  * This file generated automatically from dri2.xml by c_client.py.
3971bb1a5SLionel Sambuc  * Edit at your peril.
4971bb1a5SLionel Sambuc  */
5971bb1a5SLionel Sambuc 
6971bb1a5SLionel Sambuc /**
7971bb1a5SLionel Sambuc  * @defgroup XCB_DRI2_API XCB DRI2 API
8971bb1a5SLionel Sambuc  * @brief DRI2 XCB Protocol Implementation.
9971bb1a5SLionel Sambuc  * @{
10971bb1a5SLionel Sambuc  **/
11971bb1a5SLionel Sambuc 
12971bb1a5SLionel Sambuc #ifndef __DRI2_H
13971bb1a5SLionel Sambuc #define __DRI2_H
14971bb1a5SLionel Sambuc 
15971bb1a5SLionel Sambuc #include "xcb.h"
16971bb1a5SLionel Sambuc #include "xproto.h"
17971bb1a5SLionel Sambuc 
18971bb1a5SLionel Sambuc #ifdef __cplusplus
19971bb1a5SLionel Sambuc extern "C" {
20971bb1a5SLionel Sambuc #endif
21971bb1a5SLionel Sambuc 
22971bb1a5SLionel Sambuc #define XCB_DRI2_MAJOR_VERSION 1
23971bb1a5SLionel Sambuc #define XCB_DRI2_MINOR_VERSION 4
24971bb1a5SLionel Sambuc 
25971bb1a5SLionel Sambuc extern xcb_extension_t xcb_dri2_id;
26971bb1a5SLionel Sambuc 
27971bb1a5SLionel Sambuc typedef enum xcb_dri2_attachment_t {
28*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_FRONT_LEFT = 0,
29*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_BACK_LEFT = 1,
30*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_FRONT_RIGHT = 2,
31*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_BACK_RIGHT = 3,
32*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_DEPTH = 4,
33*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_STENCIL = 5,
34*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_ACCUM = 6,
35*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_LEFT = 7,
36*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_RIGHT = 8,
37*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_DEPTH_STENCIL = 9,
38*0a6a1f1dSLionel Sambuc     XCB_DRI2_ATTACHMENT_BUFFER_HIZ = 10
39971bb1a5SLionel Sambuc } xcb_dri2_attachment_t;
40971bb1a5SLionel Sambuc 
41971bb1a5SLionel Sambuc typedef enum xcb_dri2_driver_type_t {
42*0a6a1f1dSLionel Sambuc     XCB_DRI2_DRIVER_TYPE_DRI = 0,
43*0a6a1f1dSLionel Sambuc     XCB_DRI2_DRIVER_TYPE_VDPAU = 1
44971bb1a5SLionel Sambuc } xcb_dri2_driver_type_t;
45971bb1a5SLionel Sambuc 
46971bb1a5SLionel Sambuc typedef enum xcb_dri2_event_type_t {
47971bb1a5SLionel Sambuc     XCB_DRI2_EVENT_TYPE_EXCHANGE_COMPLETE = 1,
48971bb1a5SLionel Sambuc     XCB_DRI2_EVENT_TYPE_BLIT_COMPLETE = 2,
49971bb1a5SLionel Sambuc     XCB_DRI2_EVENT_TYPE_FLIP_COMPLETE = 3
50971bb1a5SLionel Sambuc } xcb_dri2_event_type_t;
51971bb1a5SLionel Sambuc 
52971bb1a5SLionel Sambuc /**
53971bb1a5SLionel Sambuc  * @brief xcb_dri2_dri2_buffer_t
54971bb1a5SLionel Sambuc  **/
55971bb1a5SLionel Sambuc typedef struct xcb_dri2_dri2_buffer_t {
56971bb1a5SLionel Sambuc     uint32_t attachment; /**<  */
57971bb1a5SLionel Sambuc     uint32_t name; /**<  */
58971bb1a5SLionel Sambuc     uint32_t pitch; /**<  */
59971bb1a5SLionel Sambuc     uint32_t cpp; /**<  */
60971bb1a5SLionel Sambuc     uint32_t flags; /**<  */
61971bb1a5SLionel Sambuc } xcb_dri2_dri2_buffer_t;
62971bb1a5SLionel Sambuc 
63971bb1a5SLionel Sambuc /**
64971bb1a5SLionel Sambuc  * @brief xcb_dri2_dri2_buffer_iterator_t
65971bb1a5SLionel Sambuc  **/
66971bb1a5SLionel Sambuc typedef struct xcb_dri2_dri2_buffer_iterator_t {
67971bb1a5SLionel Sambuc     xcb_dri2_dri2_buffer_t *data; /**<  */
68971bb1a5SLionel Sambuc     int                     rem; /**<  */
69971bb1a5SLionel Sambuc     int                     index; /**<  */
70971bb1a5SLionel Sambuc } xcb_dri2_dri2_buffer_iterator_t;
71971bb1a5SLionel Sambuc 
72971bb1a5SLionel Sambuc /**
73971bb1a5SLionel Sambuc  * @brief xcb_dri2_attach_format_t
74971bb1a5SLionel Sambuc  **/
75971bb1a5SLionel Sambuc typedef struct xcb_dri2_attach_format_t {
76971bb1a5SLionel Sambuc     uint32_t attachment; /**<  */
77971bb1a5SLionel Sambuc     uint32_t format; /**<  */
78971bb1a5SLionel Sambuc } xcb_dri2_attach_format_t;
79971bb1a5SLionel Sambuc 
80971bb1a5SLionel Sambuc /**
81971bb1a5SLionel Sambuc  * @brief xcb_dri2_attach_format_iterator_t
82971bb1a5SLionel Sambuc  **/
83971bb1a5SLionel Sambuc typedef struct xcb_dri2_attach_format_iterator_t {
84971bb1a5SLionel Sambuc     xcb_dri2_attach_format_t *data; /**<  */
85971bb1a5SLionel Sambuc     int                       rem; /**<  */
86971bb1a5SLionel Sambuc     int                       index; /**<  */
87971bb1a5SLionel Sambuc } xcb_dri2_attach_format_iterator_t;
88971bb1a5SLionel Sambuc 
89971bb1a5SLionel Sambuc /**
90971bb1a5SLionel Sambuc  * @brief xcb_dri2_query_version_cookie_t
91971bb1a5SLionel Sambuc  **/
92971bb1a5SLionel Sambuc typedef struct xcb_dri2_query_version_cookie_t {
93971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
94971bb1a5SLionel Sambuc } xcb_dri2_query_version_cookie_t;
95971bb1a5SLionel Sambuc 
96971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_query_version. */
97971bb1a5SLionel Sambuc #define XCB_DRI2_QUERY_VERSION 0
98971bb1a5SLionel Sambuc 
99971bb1a5SLionel Sambuc /**
100971bb1a5SLionel Sambuc  * @brief xcb_dri2_query_version_request_t
101971bb1a5SLionel Sambuc  **/
102971bb1a5SLionel Sambuc typedef struct xcb_dri2_query_version_request_t {
103971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
104971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
105971bb1a5SLionel Sambuc     uint16_t length; /**<  */
106971bb1a5SLionel Sambuc     uint32_t major_version; /**<  */
107971bb1a5SLionel Sambuc     uint32_t minor_version; /**<  */
108971bb1a5SLionel Sambuc } xcb_dri2_query_version_request_t;
109971bb1a5SLionel Sambuc 
110971bb1a5SLionel Sambuc /**
111971bb1a5SLionel Sambuc  * @brief xcb_dri2_query_version_reply_t
112971bb1a5SLionel Sambuc  **/
113971bb1a5SLionel Sambuc typedef struct xcb_dri2_query_version_reply_t {
114971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
115971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
116971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
117971bb1a5SLionel Sambuc     uint32_t length; /**<  */
118971bb1a5SLionel Sambuc     uint32_t major_version; /**<  */
119971bb1a5SLionel Sambuc     uint32_t minor_version; /**<  */
120971bb1a5SLionel Sambuc } xcb_dri2_query_version_reply_t;
121971bb1a5SLionel Sambuc 
122971bb1a5SLionel Sambuc /**
123971bb1a5SLionel Sambuc  * @brief xcb_dri2_connect_cookie_t
124971bb1a5SLionel Sambuc  **/
125971bb1a5SLionel Sambuc typedef struct xcb_dri2_connect_cookie_t {
126971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
127971bb1a5SLionel Sambuc } xcb_dri2_connect_cookie_t;
128971bb1a5SLionel Sambuc 
129971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_connect. */
130971bb1a5SLionel Sambuc #define XCB_DRI2_CONNECT 1
131971bb1a5SLionel Sambuc 
132971bb1a5SLionel Sambuc /**
133971bb1a5SLionel Sambuc  * @brief xcb_dri2_connect_request_t
134971bb1a5SLionel Sambuc  **/
135971bb1a5SLionel Sambuc typedef struct xcb_dri2_connect_request_t {
136971bb1a5SLionel Sambuc     uint8_t      major_opcode; /**<  */
137971bb1a5SLionel Sambuc     uint8_t      minor_opcode; /**<  */
138971bb1a5SLionel Sambuc     uint16_t     length; /**<  */
139971bb1a5SLionel Sambuc     xcb_window_t window; /**<  */
140971bb1a5SLionel Sambuc     uint32_t     driver_type; /**<  */
141971bb1a5SLionel Sambuc } xcb_dri2_connect_request_t;
142971bb1a5SLionel Sambuc 
143971bb1a5SLionel Sambuc /**
144971bb1a5SLionel Sambuc  * @brief xcb_dri2_connect_reply_t
145971bb1a5SLionel Sambuc  **/
146971bb1a5SLionel Sambuc typedef struct xcb_dri2_connect_reply_t {
147971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
148971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
149971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
150971bb1a5SLionel Sambuc     uint32_t length; /**<  */
151971bb1a5SLionel Sambuc     uint32_t driver_name_length; /**<  */
152971bb1a5SLionel Sambuc     uint32_t device_name_length; /**<  */
153971bb1a5SLionel Sambuc     uint8_t  pad1[16]; /**<  */
154971bb1a5SLionel Sambuc } xcb_dri2_connect_reply_t;
155971bb1a5SLionel Sambuc 
156971bb1a5SLionel Sambuc /**
157971bb1a5SLionel Sambuc  * @brief xcb_dri2_authenticate_cookie_t
158971bb1a5SLionel Sambuc  **/
159971bb1a5SLionel Sambuc typedef struct xcb_dri2_authenticate_cookie_t {
160971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
161971bb1a5SLionel Sambuc } xcb_dri2_authenticate_cookie_t;
162971bb1a5SLionel Sambuc 
163971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_authenticate. */
164971bb1a5SLionel Sambuc #define XCB_DRI2_AUTHENTICATE 2
165971bb1a5SLionel Sambuc 
166971bb1a5SLionel Sambuc /**
167971bb1a5SLionel Sambuc  * @brief xcb_dri2_authenticate_request_t
168971bb1a5SLionel Sambuc  **/
169971bb1a5SLionel Sambuc typedef struct xcb_dri2_authenticate_request_t {
170971bb1a5SLionel Sambuc     uint8_t      major_opcode; /**<  */
171971bb1a5SLionel Sambuc     uint8_t      minor_opcode; /**<  */
172971bb1a5SLionel Sambuc     uint16_t     length; /**<  */
173971bb1a5SLionel Sambuc     xcb_window_t window; /**<  */
174971bb1a5SLionel Sambuc     uint32_t     magic; /**<  */
175971bb1a5SLionel Sambuc } xcb_dri2_authenticate_request_t;
176971bb1a5SLionel Sambuc 
177971bb1a5SLionel Sambuc /**
178971bb1a5SLionel Sambuc  * @brief xcb_dri2_authenticate_reply_t
179971bb1a5SLionel Sambuc  **/
180971bb1a5SLionel Sambuc typedef struct xcb_dri2_authenticate_reply_t {
181971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
182971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
183971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
184971bb1a5SLionel Sambuc     uint32_t length; /**<  */
185971bb1a5SLionel Sambuc     uint32_t authenticated; /**<  */
186971bb1a5SLionel Sambuc } xcb_dri2_authenticate_reply_t;
187971bb1a5SLionel Sambuc 
188971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_create_drawable. */
189971bb1a5SLionel Sambuc #define XCB_DRI2_CREATE_DRAWABLE 3
190971bb1a5SLionel Sambuc 
191971bb1a5SLionel Sambuc /**
192971bb1a5SLionel Sambuc  * @brief xcb_dri2_create_drawable_request_t
193971bb1a5SLionel Sambuc  **/
194971bb1a5SLionel Sambuc typedef struct xcb_dri2_create_drawable_request_t {
195971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
196971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
197971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
198971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
199971bb1a5SLionel Sambuc } xcb_dri2_create_drawable_request_t;
200971bb1a5SLionel Sambuc 
201971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_destroy_drawable. */
202971bb1a5SLionel Sambuc #define XCB_DRI2_DESTROY_DRAWABLE 4
203971bb1a5SLionel Sambuc 
204971bb1a5SLionel Sambuc /**
205971bb1a5SLionel Sambuc  * @brief xcb_dri2_destroy_drawable_request_t
206971bb1a5SLionel Sambuc  **/
207971bb1a5SLionel Sambuc typedef struct xcb_dri2_destroy_drawable_request_t {
208971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
209971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
210971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
211971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
212971bb1a5SLionel Sambuc } xcb_dri2_destroy_drawable_request_t;
213971bb1a5SLionel Sambuc 
214971bb1a5SLionel Sambuc /**
215971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_buffers_cookie_t
216971bb1a5SLionel Sambuc  **/
217971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_buffers_cookie_t {
218971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
219971bb1a5SLionel Sambuc } xcb_dri2_get_buffers_cookie_t;
220971bb1a5SLionel Sambuc 
221971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_get_buffers. */
222971bb1a5SLionel Sambuc #define XCB_DRI2_GET_BUFFERS 5
223971bb1a5SLionel Sambuc 
224971bb1a5SLionel Sambuc /**
225971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_buffers_request_t
226971bb1a5SLionel Sambuc  **/
227971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_buffers_request_t {
228971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
229971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
230971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
231971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
232971bb1a5SLionel Sambuc     uint32_t       count; /**<  */
233971bb1a5SLionel Sambuc } xcb_dri2_get_buffers_request_t;
234971bb1a5SLionel Sambuc 
235971bb1a5SLionel Sambuc /**
236971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_buffers_reply_t
237971bb1a5SLionel Sambuc  **/
238971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_buffers_reply_t {
239971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
240971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
241971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
242971bb1a5SLionel Sambuc     uint32_t length; /**<  */
243971bb1a5SLionel Sambuc     uint32_t width; /**<  */
244971bb1a5SLionel Sambuc     uint32_t height; /**<  */
245971bb1a5SLionel Sambuc     uint32_t count; /**<  */
246971bb1a5SLionel Sambuc     uint8_t  pad1[12]; /**<  */
247971bb1a5SLionel Sambuc } xcb_dri2_get_buffers_reply_t;
248971bb1a5SLionel Sambuc 
249971bb1a5SLionel Sambuc /**
250971bb1a5SLionel Sambuc  * @brief xcb_dri2_copy_region_cookie_t
251971bb1a5SLionel Sambuc  **/
252971bb1a5SLionel Sambuc typedef struct xcb_dri2_copy_region_cookie_t {
253971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
254971bb1a5SLionel Sambuc } xcb_dri2_copy_region_cookie_t;
255971bb1a5SLionel Sambuc 
256971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_copy_region. */
257971bb1a5SLionel Sambuc #define XCB_DRI2_COPY_REGION 6
258971bb1a5SLionel Sambuc 
259971bb1a5SLionel Sambuc /**
260971bb1a5SLionel Sambuc  * @brief xcb_dri2_copy_region_request_t
261971bb1a5SLionel Sambuc  **/
262971bb1a5SLionel Sambuc typedef struct xcb_dri2_copy_region_request_t {
263971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
264971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
265971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
266971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
267971bb1a5SLionel Sambuc     uint32_t       region; /**<  */
268971bb1a5SLionel Sambuc     uint32_t       dest; /**<  */
269971bb1a5SLionel Sambuc     uint32_t       src; /**<  */
270971bb1a5SLionel Sambuc } xcb_dri2_copy_region_request_t;
271971bb1a5SLionel Sambuc 
272971bb1a5SLionel Sambuc /**
273971bb1a5SLionel Sambuc  * @brief xcb_dri2_copy_region_reply_t
274971bb1a5SLionel Sambuc  **/
275971bb1a5SLionel Sambuc typedef struct xcb_dri2_copy_region_reply_t {
276971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
277971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
278971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
279971bb1a5SLionel Sambuc     uint32_t length; /**<  */
280971bb1a5SLionel Sambuc } xcb_dri2_copy_region_reply_t;
281971bb1a5SLionel Sambuc 
282971bb1a5SLionel Sambuc /**
283971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_buffers_with_format_cookie_t
284971bb1a5SLionel Sambuc  **/
285971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_buffers_with_format_cookie_t {
286971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
287971bb1a5SLionel Sambuc } xcb_dri2_get_buffers_with_format_cookie_t;
288971bb1a5SLionel Sambuc 
289971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_get_buffers_with_format. */
290971bb1a5SLionel Sambuc #define XCB_DRI2_GET_BUFFERS_WITH_FORMAT 7
291971bb1a5SLionel Sambuc 
292971bb1a5SLionel Sambuc /**
293971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_buffers_with_format_request_t
294971bb1a5SLionel Sambuc  **/
295971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_buffers_with_format_request_t {
296971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
297971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
298971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
299971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
300971bb1a5SLionel Sambuc     uint32_t       count; /**<  */
301971bb1a5SLionel Sambuc } xcb_dri2_get_buffers_with_format_request_t;
302971bb1a5SLionel Sambuc 
303971bb1a5SLionel Sambuc /**
304971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_buffers_with_format_reply_t
305971bb1a5SLionel Sambuc  **/
306971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_buffers_with_format_reply_t {
307971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
308971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
309971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
310971bb1a5SLionel Sambuc     uint32_t length; /**<  */
311971bb1a5SLionel Sambuc     uint32_t width; /**<  */
312971bb1a5SLionel Sambuc     uint32_t height; /**<  */
313971bb1a5SLionel Sambuc     uint32_t count; /**<  */
314971bb1a5SLionel Sambuc     uint8_t  pad1[12]; /**<  */
315971bb1a5SLionel Sambuc } xcb_dri2_get_buffers_with_format_reply_t;
316971bb1a5SLionel Sambuc 
317971bb1a5SLionel Sambuc /**
318971bb1a5SLionel Sambuc  * @brief xcb_dri2_swap_buffers_cookie_t
319971bb1a5SLionel Sambuc  **/
320971bb1a5SLionel Sambuc typedef struct xcb_dri2_swap_buffers_cookie_t {
321971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
322971bb1a5SLionel Sambuc } xcb_dri2_swap_buffers_cookie_t;
323971bb1a5SLionel Sambuc 
324971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_swap_buffers. */
325971bb1a5SLionel Sambuc #define XCB_DRI2_SWAP_BUFFERS 8
326971bb1a5SLionel Sambuc 
327971bb1a5SLionel Sambuc /**
328971bb1a5SLionel Sambuc  * @brief xcb_dri2_swap_buffers_request_t
329971bb1a5SLionel Sambuc  **/
330971bb1a5SLionel Sambuc typedef struct xcb_dri2_swap_buffers_request_t {
331971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
332971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
333971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
334971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
335971bb1a5SLionel Sambuc     uint32_t       target_msc_hi; /**<  */
336971bb1a5SLionel Sambuc     uint32_t       target_msc_lo; /**<  */
337971bb1a5SLionel Sambuc     uint32_t       divisor_hi; /**<  */
338971bb1a5SLionel Sambuc     uint32_t       divisor_lo; /**<  */
339971bb1a5SLionel Sambuc     uint32_t       remainder_hi; /**<  */
340971bb1a5SLionel Sambuc     uint32_t       remainder_lo; /**<  */
341971bb1a5SLionel Sambuc } xcb_dri2_swap_buffers_request_t;
342971bb1a5SLionel Sambuc 
343971bb1a5SLionel Sambuc /**
344971bb1a5SLionel Sambuc  * @brief xcb_dri2_swap_buffers_reply_t
345971bb1a5SLionel Sambuc  **/
346971bb1a5SLionel Sambuc typedef struct xcb_dri2_swap_buffers_reply_t {
347971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
348971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
349971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
350971bb1a5SLionel Sambuc     uint32_t length; /**<  */
351971bb1a5SLionel Sambuc     uint32_t swap_hi; /**<  */
352971bb1a5SLionel Sambuc     uint32_t swap_lo; /**<  */
353971bb1a5SLionel Sambuc } xcb_dri2_swap_buffers_reply_t;
354971bb1a5SLionel Sambuc 
355971bb1a5SLionel Sambuc /**
356971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_msc_cookie_t
357971bb1a5SLionel Sambuc  **/
358971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_msc_cookie_t {
359971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
360971bb1a5SLionel Sambuc } xcb_dri2_get_msc_cookie_t;
361971bb1a5SLionel Sambuc 
362971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_get_msc. */
363971bb1a5SLionel Sambuc #define XCB_DRI2_GET_MSC 9
364971bb1a5SLionel Sambuc 
365971bb1a5SLionel Sambuc /**
366971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_msc_request_t
367971bb1a5SLionel Sambuc  **/
368971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_msc_request_t {
369971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
370971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
371971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
372971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
373971bb1a5SLionel Sambuc } xcb_dri2_get_msc_request_t;
374971bb1a5SLionel Sambuc 
375971bb1a5SLionel Sambuc /**
376971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_msc_reply_t
377971bb1a5SLionel Sambuc  **/
378971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_msc_reply_t {
379971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
380971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
381971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
382971bb1a5SLionel Sambuc     uint32_t length; /**<  */
383971bb1a5SLionel Sambuc     uint32_t ust_hi; /**<  */
384971bb1a5SLionel Sambuc     uint32_t ust_lo; /**<  */
385971bb1a5SLionel Sambuc     uint32_t msc_hi; /**<  */
386971bb1a5SLionel Sambuc     uint32_t msc_lo; /**<  */
387971bb1a5SLionel Sambuc     uint32_t sbc_hi; /**<  */
388971bb1a5SLionel Sambuc     uint32_t sbc_lo; /**<  */
389971bb1a5SLionel Sambuc } xcb_dri2_get_msc_reply_t;
390971bb1a5SLionel Sambuc 
391971bb1a5SLionel Sambuc /**
392971bb1a5SLionel Sambuc  * @brief xcb_dri2_wait_msc_cookie_t
393971bb1a5SLionel Sambuc  **/
394971bb1a5SLionel Sambuc typedef struct xcb_dri2_wait_msc_cookie_t {
395971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
396971bb1a5SLionel Sambuc } xcb_dri2_wait_msc_cookie_t;
397971bb1a5SLionel Sambuc 
398971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_wait_msc. */
399971bb1a5SLionel Sambuc #define XCB_DRI2_WAIT_MSC 10
400971bb1a5SLionel Sambuc 
401971bb1a5SLionel Sambuc /**
402971bb1a5SLionel Sambuc  * @brief xcb_dri2_wait_msc_request_t
403971bb1a5SLionel Sambuc  **/
404971bb1a5SLionel Sambuc typedef struct xcb_dri2_wait_msc_request_t {
405971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
406971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
407971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
408971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
409971bb1a5SLionel Sambuc     uint32_t       target_msc_hi; /**<  */
410971bb1a5SLionel Sambuc     uint32_t       target_msc_lo; /**<  */
411971bb1a5SLionel Sambuc     uint32_t       divisor_hi; /**<  */
412971bb1a5SLionel Sambuc     uint32_t       divisor_lo; /**<  */
413971bb1a5SLionel Sambuc     uint32_t       remainder_hi; /**<  */
414971bb1a5SLionel Sambuc     uint32_t       remainder_lo; /**<  */
415971bb1a5SLionel Sambuc } xcb_dri2_wait_msc_request_t;
416971bb1a5SLionel Sambuc 
417971bb1a5SLionel Sambuc /**
418971bb1a5SLionel Sambuc  * @brief xcb_dri2_wait_msc_reply_t
419971bb1a5SLionel Sambuc  **/
420971bb1a5SLionel Sambuc typedef struct xcb_dri2_wait_msc_reply_t {
421971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
422971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
423971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
424971bb1a5SLionel Sambuc     uint32_t length; /**<  */
425971bb1a5SLionel Sambuc     uint32_t ust_hi; /**<  */
426971bb1a5SLionel Sambuc     uint32_t ust_lo; /**<  */
427971bb1a5SLionel Sambuc     uint32_t msc_hi; /**<  */
428971bb1a5SLionel Sambuc     uint32_t msc_lo; /**<  */
429971bb1a5SLionel Sambuc     uint32_t sbc_hi; /**<  */
430971bb1a5SLionel Sambuc     uint32_t sbc_lo; /**<  */
431971bb1a5SLionel Sambuc } xcb_dri2_wait_msc_reply_t;
432971bb1a5SLionel Sambuc 
433971bb1a5SLionel Sambuc /**
434971bb1a5SLionel Sambuc  * @brief xcb_dri2_wait_sbc_cookie_t
435971bb1a5SLionel Sambuc  **/
436971bb1a5SLionel Sambuc typedef struct xcb_dri2_wait_sbc_cookie_t {
437971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
438971bb1a5SLionel Sambuc } xcb_dri2_wait_sbc_cookie_t;
439971bb1a5SLionel Sambuc 
440971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_wait_sbc. */
441971bb1a5SLionel Sambuc #define XCB_DRI2_WAIT_SBC 11
442971bb1a5SLionel Sambuc 
443971bb1a5SLionel Sambuc /**
444971bb1a5SLionel Sambuc  * @brief xcb_dri2_wait_sbc_request_t
445971bb1a5SLionel Sambuc  **/
446971bb1a5SLionel Sambuc typedef struct xcb_dri2_wait_sbc_request_t {
447971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
448971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
449971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
450971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
451971bb1a5SLionel Sambuc     uint32_t       target_sbc_hi; /**<  */
452971bb1a5SLionel Sambuc     uint32_t       target_sbc_lo; /**<  */
453971bb1a5SLionel Sambuc } xcb_dri2_wait_sbc_request_t;
454971bb1a5SLionel Sambuc 
455971bb1a5SLionel Sambuc /**
456971bb1a5SLionel Sambuc  * @brief xcb_dri2_wait_sbc_reply_t
457971bb1a5SLionel Sambuc  **/
458971bb1a5SLionel Sambuc typedef struct xcb_dri2_wait_sbc_reply_t {
459971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
460971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
461971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
462971bb1a5SLionel Sambuc     uint32_t length; /**<  */
463971bb1a5SLionel Sambuc     uint32_t ust_hi; /**<  */
464971bb1a5SLionel Sambuc     uint32_t ust_lo; /**<  */
465971bb1a5SLionel Sambuc     uint32_t msc_hi; /**<  */
466971bb1a5SLionel Sambuc     uint32_t msc_lo; /**<  */
467971bb1a5SLionel Sambuc     uint32_t sbc_hi; /**<  */
468971bb1a5SLionel Sambuc     uint32_t sbc_lo; /**<  */
469971bb1a5SLionel Sambuc } xcb_dri2_wait_sbc_reply_t;
470971bb1a5SLionel Sambuc 
471971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_swap_interval. */
472971bb1a5SLionel Sambuc #define XCB_DRI2_SWAP_INTERVAL 12
473971bb1a5SLionel Sambuc 
474971bb1a5SLionel Sambuc /**
475971bb1a5SLionel Sambuc  * @brief xcb_dri2_swap_interval_request_t
476971bb1a5SLionel Sambuc  **/
477971bb1a5SLionel Sambuc typedef struct xcb_dri2_swap_interval_request_t {
478971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
479971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
480971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
481971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
482971bb1a5SLionel Sambuc     uint32_t       interval; /**<  */
483971bb1a5SLionel Sambuc } xcb_dri2_swap_interval_request_t;
484971bb1a5SLionel Sambuc 
485971bb1a5SLionel Sambuc /**
486971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_param_cookie_t
487971bb1a5SLionel Sambuc  **/
488971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_param_cookie_t {
489971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
490971bb1a5SLionel Sambuc } xcb_dri2_get_param_cookie_t;
491971bb1a5SLionel Sambuc 
492971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_get_param. */
493971bb1a5SLionel Sambuc #define XCB_DRI2_GET_PARAM 13
494971bb1a5SLionel Sambuc 
495971bb1a5SLionel Sambuc /**
496971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_param_request_t
497971bb1a5SLionel Sambuc  **/
498971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_param_request_t {
499971bb1a5SLionel Sambuc     uint8_t        major_opcode; /**<  */
500971bb1a5SLionel Sambuc     uint8_t        minor_opcode; /**<  */
501971bb1a5SLionel Sambuc     uint16_t       length; /**<  */
502971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
503971bb1a5SLionel Sambuc     uint32_t       param; /**<  */
504971bb1a5SLionel Sambuc } xcb_dri2_get_param_request_t;
505971bb1a5SLionel Sambuc 
506971bb1a5SLionel Sambuc /**
507971bb1a5SLionel Sambuc  * @brief xcb_dri2_get_param_reply_t
508971bb1a5SLionel Sambuc  **/
509971bb1a5SLionel Sambuc typedef struct xcb_dri2_get_param_reply_t {
510971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
511971bb1a5SLionel Sambuc     uint8_t  is_param_recognized; /**<  */
512971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
513971bb1a5SLionel Sambuc     uint32_t length; /**<  */
514971bb1a5SLionel Sambuc     uint32_t value_hi; /**<  */
515971bb1a5SLionel Sambuc     uint32_t value_lo; /**<  */
516971bb1a5SLionel Sambuc } xcb_dri2_get_param_reply_t;
517971bb1a5SLionel Sambuc 
518971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_buffer_swap_complete. */
519971bb1a5SLionel Sambuc #define XCB_DRI2_BUFFER_SWAP_COMPLETE 0
520971bb1a5SLionel Sambuc 
521971bb1a5SLionel Sambuc /**
522971bb1a5SLionel Sambuc  * @brief xcb_dri2_buffer_swap_complete_event_t
523971bb1a5SLionel Sambuc  **/
524971bb1a5SLionel Sambuc typedef struct xcb_dri2_buffer_swap_complete_event_t {
525971bb1a5SLionel Sambuc     uint8_t        response_type; /**<  */
526971bb1a5SLionel Sambuc     uint8_t        pad0; /**<  */
527971bb1a5SLionel Sambuc     uint16_t       sequence; /**<  */
528971bb1a5SLionel Sambuc     uint16_t       event_type; /**<  */
529971bb1a5SLionel Sambuc     uint8_t        pad1[2]; /**<  */
530971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
531971bb1a5SLionel Sambuc     uint32_t       ust_hi; /**<  */
532971bb1a5SLionel Sambuc     uint32_t       ust_lo; /**<  */
533971bb1a5SLionel Sambuc     uint32_t       msc_hi; /**<  */
534971bb1a5SLionel Sambuc     uint32_t       msc_lo; /**<  */
535971bb1a5SLionel Sambuc     uint32_t       sbc; /**<  */
536971bb1a5SLionel Sambuc } xcb_dri2_buffer_swap_complete_event_t;
537971bb1a5SLionel Sambuc 
538971bb1a5SLionel Sambuc /** Opcode for xcb_dri2_invalidate_buffers. */
539971bb1a5SLionel Sambuc #define XCB_DRI2_INVALIDATE_BUFFERS 1
540971bb1a5SLionel Sambuc 
541971bb1a5SLionel Sambuc /**
542971bb1a5SLionel Sambuc  * @brief xcb_dri2_invalidate_buffers_event_t
543971bb1a5SLionel Sambuc  **/
544971bb1a5SLionel Sambuc typedef struct xcb_dri2_invalidate_buffers_event_t {
545971bb1a5SLionel Sambuc     uint8_t        response_type; /**<  */
546971bb1a5SLionel Sambuc     uint8_t        pad0; /**<  */
547971bb1a5SLionel Sambuc     uint16_t       sequence; /**<  */
548971bb1a5SLionel Sambuc     xcb_drawable_t drawable; /**<  */
549971bb1a5SLionel Sambuc } xcb_dri2_invalidate_buffers_event_t;
550971bb1a5SLionel Sambuc 
551971bb1a5SLionel Sambuc /**
552971bb1a5SLionel Sambuc  * Get the next element of the iterator
553971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_dri2_dri2_buffer_iterator_t
554971bb1a5SLionel Sambuc  *
555971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
556971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
557971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_dri2_dri2_buffer_t)
558971bb1a5SLionel Sambuc  */
559971bb1a5SLionel Sambuc void
560971bb1a5SLionel Sambuc xcb_dri2_dri2_buffer_next (xcb_dri2_dri2_buffer_iterator_t *i  /**< */);
561971bb1a5SLionel Sambuc 
562971bb1a5SLionel Sambuc /**
563971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
564971bb1a5SLionel Sambuc  * @param i An xcb_dri2_dri2_buffer_iterator_t
565971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
566971bb1a5SLionel Sambuc  *
567971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
568971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
569971bb1a5SLionel Sambuc  * last element.
570971bb1a5SLionel Sambuc  */
571971bb1a5SLionel Sambuc xcb_generic_iterator_t
572971bb1a5SLionel Sambuc xcb_dri2_dri2_buffer_end (xcb_dri2_dri2_buffer_iterator_t i  /**< */);
573971bb1a5SLionel Sambuc 
574971bb1a5SLionel Sambuc /**
575971bb1a5SLionel Sambuc  * Get the next element of the iterator
576971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_dri2_attach_format_iterator_t
577971bb1a5SLionel Sambuc  *
578971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
579971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
580971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_dri2_attach_format_t)
581971bb1a5SLionel Sambuc  */
582971bb1a5SLionel Sambuc void
583971bb1a5SLionel Sambuc xcb_dri2_attach_format_next (xcb_dri2_attach_format_iterator_t *i  /**< */);
584971bb1a5SLionel Sambuc 
585971bb1a5SLionel Sambuc /**
586971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
587971bb1a5SLionel Sambuc  * @param i An xcb_dri2_attach_format_iterator_t
588971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
589971bb1a5SLionel Sambuc  *
590971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
591971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
592971bb1a5SLionel Sambuc  * last element.
593971bb1a5SLionel Sambuc  */
594971bb1a5SLionel Sambuc xcb_generic_iterator_t
595971bb1a5SLionel Sambuc xcb_dri2_attach_format_end (xcb_dri2_attach_format_iterator_t i  /**< */);
596971bb1a5SLionel Sambuc 
597971bb1a5SLionel Sambuc /**
598971bb1a5SLionel Sambuc  *
599971bb1a5SLionel Sambuc  * @param c The connection
600971bb1a5SLionel Sambuc  * @return A cookie
601971bb1a5SLionel Sambuc  *
602971bb1a5SLionel Sambuc  * Delivers a request to the X server.
603971bb1a5SLionel Sambuc  *
604971bb1a5SLionel Sambuc  */
605971bb1a5SLionel Sambuc xcb_dri2_query_version_cookie_t
606971bb1a5SLionel Sambuc xcb_dri2_query_version (xcb_connection_t *c  /**< */,
607971bb1a5SLionel Sambuc                         uint32_t          major_version  /**< */,
608971bb1a5SLionel Sambuc                         uint32_t          minor_version  /**< */);
609971bb1a5SLionel Sambuc 
610971bb1a5SLionel Sambuc /**
611971bb1a5SLionel Sambuc  *
612971bb1a5SLionel Sambuc  * @param c The connection
613971bb1a5SLionel Sambuc  * @return A cookie
614971bb1a5SLionel Sambuc  *
615971bb1a5SLionel Sambuc  * Delivers a request to the X server.
616971bb1a5SLionel Sambuc  *
617971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
618971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
619971bb1a5SLionel Sambuc  * placed in the event queue.
620971bb1a5SLionel Sambuc  */
621971bb1a5SLionel Sambuc xcb_dri2_query_version_cookie_t
622971bb1a5SLionel Sambuc xcb_dri2_query_version_unchecked (xcb_connection_t *c  /**< */,
623971bb1a5SLionel Sambuc                                   uint32_t          major_version  /**< */,
624971bb1a5SLionel Sambuc                                   uint32_t          minor_version  /**< */);
625971bb1a5SLionel Sambuc 
626971bb1a5SLionel Sambuc /**
627971bb1a5SLionel Sambuc  * Return the reply
628971bb1a5SLionel Sambuc  * @param c      The connection
629971bb1a5SLionel Sambuc  * @param cookie The cookie
630971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
631971bb1a5SLionel Sambuc  *
632971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
633971bb1a5SLionel Sambuc  *
634971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
635971bb1a5SLionel Sambuc  * xcb_dri2_query_version_unchecked(). is used.
636971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
637971bb1a5SLionel Sambuc  *
638971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
639971bb1a5SLionel Sambuc  */
640971bb1a5SLionel Sambuc xcb_dri2_query_version_reply_t *
641971bb1a5SLionel Sambuc xcb_dri2_query_version_reply (xcb_connection_t                 *c  /**< */,
642971bb1a5SLionel Sambuc                               xcb_dri2_query_version_cookie_t   cookie  /**< */,
643971bb1a5SLionel Sambuc                               xcb_generic_error_t             **e  /**< */);
644971bb1a5SLionel Sambuc 
645971bb1a5SLionel Sambuc int
646971bb1a5SLionel Sambuc xcb_dri2_connect_sizeof (const void  *_buffer  /**< */);
647971bb1a5SLionel Sambuc 
648971bb1a5SLionel Sambuc /**
649971bb1a5SLionel Sambuc  *
650971bb1a5SLionel Sambuc  * @param c The connection
651971bb1a5SLionel Sambuc  * @return A cookie
652971bb1a5SLionel Sambuc  *
653971bb1a5SLionel Sambuc  * Delivers a request to the X server.
654971bb1a5SLionel Sambuc  *
655971bb1a5SLionel Sambuc  */
656971bb1a5SLionel Sambuc xcb_dri2_connect_cookie_t
657971bb1a5SLionel Sambuc xcb_dri2_connect (xcb_connection_t *c  /**< */,
658971bb1a5SLionel Sambuc                   xcb_window_t      window  /**< */,
659971bb1a5SLionel Sambuc                   uint32_t          driver_type  /**< */);
660971bb1a5SLionel Sambuc 
661971bb1a5SLionel Sambuc /**
662971bb1a5SLionel Sambuc  *
663971bb1a5SLionel Sambuc  * @param c The connection
664971bb1a5SLionel Sambuc  * @return A cookie
665971bb1a5SLionel Sambuc  *
666971bb1a5SLionel Sambuc  * Delivers a request to the X server.
667971bb1a5SLionel Sambuc  *
668971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
669971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
670971bb1a5SLionel Sambuc  * placed in the event queue.
671971bb1a5SLionel Sambuc  */
672971bb1a5SLionel Sambuc xcb_dri2_connect_cookie_t
673971bb1a5SLionel Sambuc xcb_dri2_connect_unchecked (xcb_connection_t *c  /**< */,
674971bb1a5SLionel Sambuc                             xcb_window_t      window  /**< */,
675971bb1a5SLionel Sambuc                             uint32_t          driver_type  /**< */);
676971bb1a5SLionel Sambuc 
677971bb1a5SLionel Sambuc char *
678971bb1a5SLionel Sambuc xcb_dri2_connect_driver_name (const xcb_dri2_connect_reply_t *R  /**< */);
679971bb1a5SLionel Sambuc 
680971bb1a5SLionel Sambuc int
681971bb1a5SLionel Sambuc xcb_dri2_connect_driver_name_length (const xcb_dri2_connect_reply_t *R  /**< */);
682971bb1a5SLionel Sambuc 
683971bb1a5SLionel Sambuc xcb_generic_iterator_t
684971bb1a5SLionel Sambuc xcb_dri2_connect_driver_name_end (const xcb_dri2_connect_reply_t *R  /**< */);
685971bb1a5SLionel Sambuc 
686971bb1a5SLionel Sambuc void *
687971bb1a5SLionel Sambuc xcb_dri2_connect_alignment_pad (const xcb_dri2_connect_reply_t *R  /**< */);
688971bb1a5SLionel Sambuc 
689971bb1a5SLionel Sambuc int
690971bb1a5SLionel Sambuc xcb_dri2_connect_alignment_pad_length (const xcb_dri2_connect_reply_t *R  /**< */);
691971bb1a5SLionel Sambuc 
692971bb1a5SLionel Sambuc xcb_generic_iterator_t
693971bb1a5SLionel Sambuc xcb_dri2_connect_alignment_pad_end (const xcb_dri2_connect_reply_t *R  /**< */);
694971bb1a5SLionel Sambuc 
695971bb1a5SLionel Sambuc char *
696971bb1a5SLionel Sambuc xcb_dri2_connect_device_name (const xcb_dri2_connect_reply_t *R  /**< */);
697971bb1a5SLionel Sambuc 
698971bb1a5SLionel Sambuc int
699971bb1a5SLionel Sambuc xcb_dri2_connect_device_name_length (const xcb_dri2_connect_reply_t *R  /**< */);
700971bb1a5SLionel Sambuc 
701971bb1a5SLionel Sambuc xcb_generic_iterator_t
702971bb1a5SLionel Sambuc xcb_dri2_connect_device_name_end (const xcb_dri2_connect_reply_t *R  /**< */);
703971bb1a5SLionel Sambuc 
704971bb1a5SLionel Sambuc /**
705971bb1a5SLionel Sambuc  * Return the reply
706971bb1a5SLionel Sambuc  * @param c      The connection
707971bb1a5SLionel Sambuc  * @param cookie The cookie
708971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
709971bb1a5SLionel Sambuc  *
710971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
711971bb1a5SLionel Sambuc  *
712971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
713971bb1a5SLionel Sambuc  * xcb_dri2_connect_unchecked(). is used.
714971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
715971bb1a5SLionel Sambuc  *
716971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
717971bb1a5SLionel Sambuc  */
718971bb1a5SLionel Sambuc xcb_dri2_connect_reply_t *
719971bb1a5SLionel Sambuc xcb_dri2_connect_reply (xcb_connection_t           *c  /**< */,
720971bb1a5SLionel Sambuc                         xcb_dri2_connect_cookie_t   cookie  /**< */,
721971bb1a5SLionel Sambuc                         xcb_generic_error_t       **e  /**< */);
722971bb1a5SLionel Sambuc 
723971bb1a5SLionel Sambuc /**
724971bb1a5SLionel Sambuc  *
725971bb1a5SLionel Sambuc  * @param c The connection
726971bb1a5SLionel Sambuc  * @return A cookie
727971bb1a5SLionel Sambuc  *
728971bb1a5SLionel Sambuc  * Delivers a request to the X server.
729971bb1a5SLionel Sambuc  *
730971bb1a5SLionel Sambuc  */
731971bb1a5SLionel Sambuc xcb_dri2_authenticate_cookie_t
732971bb1a5SLionel Sambuc xcb_dri2_authenticate (xcb_connection_t *c  /**< */,
733971bb1a5SLionel Sambuc                        xcb_window_t      window  /**< */,
734971bb1a5SLionel Sambuc                        uint32_t          magic  /**< */);
735971bb1a5SLionel Sambuc 
736971bb1a5SLionel Sambuc /**
737971bb1a5SLionel Sambuc  *
738971bb1a5SLionel Sambuc  * @param c The connection
739971bb1a5SLionel Sambuc  * @return A cookie
740971bb1a5SLionel Sambuc  *
741971bb1a5SLionel Sambuc  * Delivers a request to the X server.
742971bb1a5SLionel Sambuc  *
743971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
744971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
745971bb1a5SLionel Sambuc  * placed in the event queue.
746971bb1a5SLionel Sambuc  */
747971bb1a5SLionel Sambuc xcb_dri2_authenticate_cookie_t
748971bb1a5SLionel Sambuc xcb_dri2_authenticate_unchecked (xcb_connection_t *c  /**< */,
749971bb1a5SLionel Sambuc                                  xcb_window_t      window  /**< */,
750971bb1a5SLionel Sambuc                                  uint32_t          magic  /**< */);
751971bb1a5SLionel Sambuc 
752971bb1a5SLionel Sambuc /**
753971bb1a5SLionel Sambuc  * Return the reply
754971bb1a5SLionel Sambuc  * @param c      The connection
755971bb1a5SLionel Sambuc  * @param cookie The cookie
756971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
757971bb1a5SLionel Sambuc  *
758971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
759971bb1a5SLionel Sambuc  *
760971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
761971bb1a5SLionel Sambuc  * xcb_dri2_authenticate_unchecked(). is used.
762971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
763971bb1a5SLionel Sambuc  *
764971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
765971bb1a5SLionel Sambuc  */
766971bb1a5SLionel Sambuc xcb_dri2_authenticate_reply_t *
767971bb1a5SLionel Sambuc xcb_dri2_authenticate_reply (xcb_connection_t                *c  /**< */,
768971bb1a5SLionel Sambuc                              xcb_dri2_authenticate_cookie_t   cookie  /**< */,
769971bb1a5SLionel Sambuc                              xcb_generic_error_t            **e  /**< */);
770971bb1a5SLionel Sambuc 
771971bb1a5SLionel Sambuc /**
772971bb1a5SLionel Sambuc  *
773971bb1a5SLionel Sambuc  * @param c The connection
774971bb1a5SLionel Sambuc  * @return A cookie
775971bb1a5SLionel Sambuc  *
776971bb1a5SLionel Sambuc  * Delivers a request to the X server.
777971bb1a5SLionel Sambuc  *
778971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
779971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
780971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
781971bb1a5SLionel Sambuc  */
782971bb1a5SLionel Sambuc xcb_void_cookie_t
783971bb1a5SLionel Sambuc xcb_dri2_create_drawable_checked (xcb_connection_t *c  /**< */,
784971bb1a5SLionel Sambuc                                   xcb_drawable_t    drawable  /**< */);
785971bb1a5SLionel Sambuc 
786971bb1a5SLionel Sambuc /**
787971bb1a5SLionel Sambuc  *
788971bb1a5SLionel Sambuc  * @param c The connection
789971bb1a5SLionel Sambuc  * @return A cookie
790971bb1a5SLionel Sambuc  *
791971bb1a5SLionel Sambuc  * Delivers a request to the X server.
792971bb1a5SLionel Sambuc  *
793971bb1a5SLionel Sambuc  */
794971bb1a5SLionel Sambuc xcb_void_cookie_t
795971bb1a5SLionel Sambuc xcb_dri2_create_drawable (xcb_connection_t *c  /**< */,
796971bb1a5SLionel Sambuc                           xcb_drawable_t    drawable  /**< */);
797971bb1a5SLionel Sambuc 
798971bb1a5SLionel Sambuc /**
799971bb1a5SLionel Sambuc  *
800971bb1a5SLionel Sambuc  * @param c The connection
801971bb1a5SLionel Sambuc  * @return A cookie
802971bb1a5SLionel Sambuc  *
803971bb1a5SLionel Sambuc  * Delivers a request to the X server.
804971bb1a5SLionel Sambuc  *
805971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
806971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
807971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
808971bb1a5SLionel Sambuc  */
809971bb1a5SLionel Sambuc xcb_void_cookie_t
810971bb1a5SLionel Sambuc xcb_dri2_destroy_drawable_checked (xcb_connection_t *c  /**< */,
811971bb1a5SLionel Sambuc                                    xcb_drawable_t    drawable  /**< */);
812971bb1a5SLionel Sambuc 
813971bb1a5SLionel Sambuc /**
814971bb1a5SLionel Sambuc  *
815971bb1a5SLionel Sambuc  * @param c The connection
816971bb1a5SLionel Sambuc  * @return A cookie
817971bb1a5SLionel Sambuc  *
818971bb1a5SLionel Sambuc  * Delivers a request to the X server.
819971bb1a5SLionel Sambuc  *
820971bb1a5SLionel Sambuc  */
821971bb1a5SLionel Sambuc xcb_void_cookie_t
822971bb1a5SLionel Sambuc xcb_dri2_destroy_drawable (xcb_connection_t *c  /**< */,
823971bb1a5SLionel Sambuc                            xcb_drawable_t    drawable  /**< */);
824971bb1a5SLionel Sambuc 
825971bb1a5SLionel Sambuc int
826971bb1a5SLionel Sambuc xcb_dri2_get_buffers_sizeof (const void  *_buffer  /**< */,
827971bb1a5SLionel Sambuc                              uint32_t     attachments_len  /**< */);
828971bb1a5SLionel Sambuc 
829971bb1a5SLionel Sambuc /**
830971bb1a5SLionel Sambuc  *
831971bb1a5SLionel Sambuc  * @param c The connection
832971bb1a5SLionel Sambuc  * @return A cookie
833971bb1a5SLionel Sambuc  *
834971bb1a5SLionel Sambuc  * Delivers a request to the X server.
835971bb1a5SLionel Sambuc  *
836971bb1a5SLionel Sambuc  */
837971bb1a5SLionel Sambuc xcb_dri2_get_buffers_cookie_t
838971bb1a5SLionel Sambuc xcb_dri2_get_buffers (xcb_connection_t *c  /**< */,
839971bb1a5SLionel Sambuc                       xcb_drawable_t    drawable  /**< */,
840971bb1a5SLionel Sambuc                       uint32_t          count  /**< */,
841971bb1a5SLionel Sambuc                       uint32_t          attachments_len  /**< */,
842971bb1a5SLionel Sambuc                       const uint32_t   *attachments  /**< */);
843971bb1a5SLionel Sambuc 
844971bb1a5SLionel Sambuc /**
845971bb1a5SLionel Sambuc  *
846971bb1a5SLionel Sambuc  * @param c The connection
847971bb1a5SLionel Sambuc  * @return A cookie
848971bb1a5SLionel Sambuc  *
849971bb1a5SLionel Sambuc  * Delivers a request to the X server.
850971bb1a5SLionel Sambuc  *
851971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
852971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
853971bb1a5SLionel Sambuc  * placed in the event queue.
854971bb1a5SLionel Sambuc  */
855971bb1a5SLionel Sambuc xcb_dri2_get_buffers_cookie_t
856971bb1a5SLionel Sambuc xcb_dri2_get_buffers_unchecked (xcb_connection_t *c  /**< */,
857971bb1a5SLionel Sambuc                                 xcb_drawable_t    drawable  /**< */,
858971bb1a5SLionel Sambuc                                 uint32_t          count  /**< */,
859971bb1a5SLionel Sambuc                                 uint32_t          attachments_len  /**< */,
860971bb1a5SLionel Sambuc                                 const uint32_t   *attachments  /**< */);
861971bb1a5SLionel Sambuc 
862971bb1a5SLionel Sambuc xcb_dri2_dri2_buffer_t *
863971bb1a5SLionel Sambuc xcb_dri2_get_buffers_buffers (const xcb_dri2_get_buffers_reply_t *R  /**< */);
864971bb1a5SLionel Sambuc 
865971bb1a5SLionel Sambuc int
866971bb1a5SLionel Sambuc xcb_dri2_get_buffers_buffers_length (const xcb_dri2_get_buffers_reply_t *R  /**< */);
867971bb1a5SLionel Sambuc 
868971bb1a5SLionel Sambuc xcb_dri2_dri2_buffer_iterator_t
869971bb1a5SLionel Sambuc xcb_dri2_get_buffers_buffers_iterator (const xcb_dri2_get_buffers_reply_t *R  /**< */);
870971bb1a5SLionel Sambuc 
871971bb1a5SLionel Sambuc /**
872971bb1a5SLionel Sambuc  * Return the reply
873971bb1a5SLionel Sambuc  * @param c      The connection
874971bb1a5SLionel Sambuc  * @param cookie The cookie
875971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
876971bb1a5SLionel Sambuc  *
877971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
878971bb1a5SLionel Sambuc  *
879971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
880971bb1a5SLionel Sambuc  * xcb_dri2_get_buffers_unchecked(). is used.
881971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
882971bb1a5SLionel Sambuc  *
883971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
884971bb1a5SLionel Sambuc  */
885971bb1a5SLionel Sambuc xcb_dri2_get_buffers_reply_t *
886971bb1a5SLionel Sambuc xcb_dri2_get_buffers_reply (xcb_connection_t               *c  /**< */,
887971bb1a5SLionel Sambuc                             xcb_dri2_get_buffers_cookie_t   cookie  /**< */,
888971bb1a5SLionel Sambuc                             xcb_generic_error_t           **e  /**< */);
889971bb1a5SLionel Sambuc 
890971bb1a5SLionel Sambuc /**
891971bb1a5SLionel Sambuc  *
892971bb1a5SLionel Sambuc  * @param c The connection
893971bb1a5SLionel Sambuc  * @return A cookie
894971bb1a5SLionel Sambuc  *
895971bb1a5SLionel Sambuc  * Delivers a request to the X server.
896971bb1a5SLionel Sambuc  *
897971bb1a5SLionel Sambuc  */
898971bb1a5SLionel Sambuc xcb_dri2_copy_region_cookie_t
899971bb1a5SLionel Sambuc xcb_dri2_copy_region (xcb_connection_t *c  /**< */,
900971bb1a5SLionel Sambuc                       xcb_drawable_t    drawable  /**< */,
901971bb1a5SLionel Sambuc                       uint32_t          region  /**< */,
902971bb1a5SLionel Sambuc                       uint32_t          dest  /**< */,
903971bb1a5SLionel Sambuc                       uint32_t          src  /**< */);
904971bb1a5SLionel Sambuc 
905971bb1a5SLionel Sambuc /**
906971bb1a5SLionel Sambuc  *
907971bb1a5SLionel Sambuc  * @param c The connection
908971bb1a5SLionel Sambuc  * @return A cookie
909971bb1a5SLionel Sambuc  *
910971bb1a5SLionel Sambuc  * Delivers a request to the X server.
911971bb1a5SLionel Sambuc  *
912971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
913971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
914971bb1a5SLionel Sambuc  * placed in the event queue.
915971bb1a5SLionel Sambuc  */
916971bb1a5SLionel Sambuc xcb_dri2_copy_region_cookie_t
917971bb1a5SLionel Sambuc xcb_dri2_copy_region_unchecked (xcb_connection_t *c  /**< */,
918971bb1a5SLionel Sambuc                                 xcb_drawable_t    drawable  /**< */,
919971bb1a5SLionel Sambuc                                 uint32_t          region  /**< */,
920971bb1a5SLionel Sambuc                                 uint32_t          dest  /**< */,
921971bb1a5SLionel Sambuc                                 uint32_t          src  /**< */);
922971bb1a5SLionel Sambuc 
923971bb1a5SLionel Sambuc /**
924971bb1a5SLionel Sambuc  * Return the reply
925971bb1a5SLionel Sambuc  * @param c      The connection
926971bb1a5SLionel Sambuc  * @param cookie The cookie
927971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
928971bb1a5SLionel Sambuc  *
929971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
930971bb1a5SLionel Sambuc  *
931971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
932971bb1a5SLionel Sambuc  * xcb_dri2_copy_region_unchecked(). is used.
933971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
934971bb1a5SLionel Sambuc  *
935971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
936971bb1a5SLionel Sambuc  */
937971bb1a5SLionel Sambuc xcb_dri2_copy_region_reply_t *
938971bb1a5SLionel Sambuc xcb_dri2_copy_region_reply (xcb_connection_t               *c  /**< */,
939971bb1a5SLionel Sambuc                             xcb_dri2_copy_region_cookie_t   cookie  /**< */,
940971bb1a5SLionel Sambuc                             xcb_generic_error_t           **e  /**< */);
941971bb1a5SLionel Sambuc 
942971bb1a5SLionel Sambuc int
943971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_sizeof (const void  *_buffer  /**< */,
944971bb1a5SLionel Sambuc                                          uint32_t     attachments_len  /**< */);
945971bb1a5SLionel Sambuc 
946971bb1a5SLionel Sambuc /**
947971bb1a5SLionel Sambuc  *
948971bb1a5SLionel Sambuc  * @param c The connection
949971bb1a5SLionel Sambuc  * @return A cookie
950971bb1a5SLionel Sambuc  *
951971bb1a5SLionel Sambuc  * Delivers a request to the X server.
952971bb1a5SLionel Sambuc  *
953971bb1a5SLionel Sambuc  */
954971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_cookie_t
955971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format (xcb_connection_t               *c  /**< */,
956971bb1a5SLionel Sambuc                                   xcb_drawable_t                  drawable  /**< */,
957971bb1a5SLionel Sambuc                                   uint32_t                        count  /**< */,
958971bb1a5SLionel Sambuc                                   uint32_t                        attachments_len  /**< */,
959971bb1a5SLionel Sambuc                                   const xcb_dri2_attach_format_t *attachments  /**< */);
960971bb1a5SLionel Sambuc 
961971bb1a5SLionel Sambuc /**
962971bb1a5SLionel Sambuc  *
963971bb1a5SLionel Sambuc  * @param c The connection
964971bb1a5SLionel Sambuc  * @return A cookie
965971bb1a5SLionel Sambuc  *
966971bb1a5SLionel Sambuc  * Delivers a request to the X server.
967971bb1a5SLionel Sambuc  *
968971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
969971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
970971bb1a5SLionel Sambuc  * placed in the event queue.
971971bb1a5SLionel Sambuc  */
972971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_cookie_t
973971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_unchecked (xcb_connection_t               *c  /**< */,
974971bb1a5SLionel Sambuc                                             xcb_drawable_t                  drawable  /**< */,
975971bb1a5SLionel Sambuc                                             uint32_t                        count  /**< */,
976971bb1a5SLionel Sambuc                                             uint32_t                        attachments_len  /**< */,
977971bb1a5SLionel Sambuc                                             const xcb_dri2_attach_format_t *attachments  /**< */);
978971bb1a5SLionel Sambuc 
979971bb1a5SLionel Sambuc xcb_dri2_dri2_buffer_t *
980971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_buffers (const xcb_dri2_get_buffers_with_format_reply_t *R  /**< */);
981971bb1a5SLionel Sambuc 
982971bb1a5SLionel Sambuc int
983971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_buffers_length (const xcb_dri2_get_buffers_with_format_reply_t *R  /**< */);
984971bb1a5SLionel Sambuc 
985971bb1a5SLionel Sambuc xcb_dri2_dri2_buffer_iterator_t
986971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_buffers_iterator (const xcb_dri2_get_buffers_with_format_reply_t *R  /**< */);
987971bb1a5SLionel Sambuc 
988971bb1a5SLionel Sambuc /**
989971bb1a5SLionel Sambuc  * Return the reply
990971bb1a5SLionel Sambuc  * @param c      The connection
991971bb1a5SLionel Sambuc  * @param cookie The cookie
992971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
993971bb1a5SLionel Sambuc  *
994971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
995971bb1a5SLionel Sambuc  *
996971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
997971bb1a5SLionel Sambuc  * xcb_dri2_get_buffers_with_format_unchecked(). is used.
998971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
999971bb1a5SLionel Sambuc  *
1000971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1001971bb1a5SLionel Sambuc  */
1002971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_reply_t *
1003971bb1a5SLionel Sambuc xcb_dri2_get_buffers_with_format_reply (xcb_connection_t                           *c  /**< */,
1004971bb1a5SLionel Sambuc                                         xcb_dri2_get_buffers_with_format_cookie_t   cookie  /**< */,
1005971bb1a5SLionel Sambuc                                         xcb_generic_error_t                       **e  /**< */);
1006971bb1a5SLionel Sambuc 
1007971bb1a5SLionel Sambuc /**
1008971bb1a5SLionel Sambuc  *
1009971bb1a5SLionel Sambuc  * @param c The connection
1010971bb1a5SLionel Sambuc  * @return A cookie
1011971bb1a5SLionel Sambuc  *
1012971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1013971bb1a5SLionel Sambuc  *
1014971bb1a5SLionel Sambuc  */
1015971bb1a5SLionel Sambuc xcb_dri2_swap_buffers_cookie_t
1016971bb1a5SLionel Sambuc xcb_dri2_swap_buffers (xcb_connection_t *c  /**< */,
1017971bb1a5SLionel Sambuc                        xcb_drawable_t    drawable  /**< */,
1018971bb1a5SLionel Sambuc                        uint32_t          target_msc_hi  /**< */,
1019971bb1a5SLionel Sambuc                        uint32_t          target_msc_lo  /**< */,
1020971bb1a5SLionel Sambuc                        uint32_t          divisor_hi  /**< */,
1021971bb1a5SLionel Sambuc                        uint32_t          divisor_lo  /**< */,
1022971bb1a5SLionel Sambuc                        uint32_t          remainder_hi  /**< */,
1023971bb1a5SLionel Sambuc                        uint32_t          remainder_lo  /**< */);
1024971bb1a5SLionel Sambuc 
1025971bb1a5SLionel Sambuc /**
1026971bb1a5SLionel Sambuc  *
1027971bb1a5SLionel Sambuc  * @param c The connection
1028971bb1a5SLionel Sambuc  * @return A cookie
1029971bb1a5SLionel Sambuc  *
1030971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1031971bb1a5SLionel Sambuc  *
1032971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1033971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1034971bb1a5SLionel Sambuc  * placed in the event queue.
1035971bb1a5SLionel Sambuc  */
1036971bb1a5SLionel Sambuc xcb_dri2_swap_buffers_cookie_t
1037971bb1a5SLionel Sambuc xcb_dri2_swap_buffers_unchecked (xcb_connection_t *c  /**< */,
1038971bb1a5SLionel Sambuc                                  xcb_drawable_t    drawable  /**< */,
1039971bb1a5SLionel Sambuc                                  uint32_t          target_msc_hi  /**< */,
1040971bb1a5SLionel Sambuc                                  uint32_t          target_msc_lo  /**< */,
1041971bb1a5SLionel Sambuc                                  uint32_t          divisor_hi  /**< */,
1042971bb1a5SLionel Sambuc                                  uint32_t          divisor_lo  /**< */,
1043971bb1a5SLionel Sambuc                                  uint32_t          remainder_hi  /**< */,
1044971bb1a5SLionel Sambuc                                  uint32_t          remainder_lo  /**< */);
1045971bb1a5SLionel Sambuc 
1046971bb1a5SLionel Sambuc /**
1047971bb1a5SLionel Sambuc  * Return the reply
1048971bb1a5SLionel Sambuc  * @param c      The connection
1049971bb1a5SLionel Sambuc  * @param cookie The cookie
1050971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1051971bb1a5SLionel Sambuc  *
1052971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1053971bb1a5SLionel Sambuc  *
1054971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1055971bb1a5SLionel Sambuc  * xcb_dri2_swap_buffers_unchecked(). is used.
1056971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1057971bb1a5SLionel Sambuc  *
1058971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1059971bb1a5SLionel Sambuc  */
1060971bb1a5SLionel Sambuc xcb_dri2_swap_buffers_reply_t *
1061971bb1a5SLionel Sambuc xcb_dri2_swap_buffers_reply (xcb_connection_t                *c  /**< */,
1062971bb1a5SLionel Sambuc                              xcb_dri2_swap_buffers_cookie_t   cookie  /**< */,
1063971bb1a5SLionel Sambuc                              xcb_generic_error_t            **e  /**< */);
1064971bb1a5SLionel Sambuc 
1065971bb1a5SLionel Sambuc /**
1066971bb1a5SLionel Sambuc  *
1067971bb1a5SLionel Sambuc  * @param c The connection
1068971bb1a5SLionel Sambuc  * @return A cookie
1069971bb1a5SLionel Sambuc  *
1070971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1071971bb1a5SLionel Sambuc  *
1072971bb1a5SLionel Sambuc  */
1073971bb1a5SLionel Sambuc xcb_dri2_get_msc_cookie_t
1074971bb1a5SLionel Sambuc xcb_dri2_get_msc (xcb_connection_t *c  /**< */,
1075971bb1a5SLionel Sambuc                   xcb_drawable_t    drawable  /**< */);
1076971bb1a5SLionel Sambuc 
1077971bb1a5SLionel Sambuc /**
1078971bb1a5SLionel Sambuc  *
1079971bb1a5SLionel Sambuc  * @param c The connection
1080971bb1a5SLionel Sambuc  * @return A cookie
1081971bb1a5SLionel Sambuc  *
1082971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1083971bb1a5SLionel Sambuc  *
1084971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1085971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1086971bb1a5SLionel Sambuc  * placed in the event queue.
1087971bb1a5SLionel Sambuc  */
1088971bb1a5SLionel Sambuc xcb_dri2_get_msc_cookie_t
1089971bb1a5SLionel Sambuc xcb_dri2_get_msc_unchecked (xcb_connection_t *c  /**< */,
1090971bb1a5SLionel Sambuc                             xcb_drawable_t    drawable  /**< */);
1091971bb1a5SLionel Sambuc 
1092971bb1a5SLionel Sambuc /**
1093971bb1a5SLionel Sambuc  * Return the reply
1094971bb1a5SLionel Sambuc  * @param c      The connection
1095971bb1a5SLionel Sambuc  * @param cookie The cookie
1096971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1097971bb1a5SLionel Sambuc  *
1098971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1099971bb1a5SLionel Sambuc  *
1100971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1101971bb1a5SLionel Sambuc  * xcb_dri2_get_msc_unchecked(). is used.
1102971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1103971bb1a5SLionel Sambuc  *
1104971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1105971bb1a5SLionel Sambuc  */
1106971bb1a5SLionel Sambuc xcb_dri2_get_msc_reply_t *
1107971bb1a5SLionel Sambuc xcb_dri2_get_msc_reply (xcb_connection_t           *c  /**< */,
1108971bb1a5SLionel Sambuc                         xcb_dri2_get_msc_cookie_t   cookie  /**< */,
1109971bb1a5SLionel Sambuc                         xcb_generic_error_t       **e  /**< */);
1110971bb1a5SLionel Sambuc 
1111971bb1a5SLionel Sambuc /**
1112971bb1a5SLionel Sambuc  *
1113971bb1a5SLionel Sambuc  * @param c The connection
1114971bb1a5SLionel Sambuc  * @return A cookie
1115971bb1a5SLionel Sambuc  *
1116971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1117971bb1a5SLionel Sambuc  *
1118971bb1a5SLionel Sambuc  */
1119971bb1a5SLionel Sambuc xcb_dri2_wait_msc_cookie_t
1120971bb1a5SLionel Sambuc xcb_dri2_wait_msc (xcb_connection_t *c  /**< */,
1121971bb1a5SLionel Sambuc                    xcb_drawable_t    drawable  /**< */,
1122971bb1a5SLionel Sambuc                    uint32_t          target_msc_hi  /**< */,
1123971bb1a5SLionel Sambuc                    uint32_t          target_msc_lo  /**< */,
1124971bb1a5SLionel Sambuc                    uint32_t          divisor_hi  /**< */,
1125971bb1a5SLionel Sambuc                    uint32_t          divisor_lo  /**< */,
1126971bb1a5SLionel Sambuc                    uint32_t          remainder_hi  /**< */,
1127971bb1a5SLionel Sambuc                    uint32_t          remainder_lo  /**< */);
1128971bb1a5SLionel Sambuc 
1129971bb1a5SLionel Sambuc /**
1130971bb1a5SLionel Sambuc  *
1131971bb1a5SLionel Sambuc  * @param c The connection
1132971bb1a5SLionel Sambuc  * @return A cookie
1133971bb1a5SLionel Sambuc  *
1134971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1135971bb1a5SLionel Sambuc  *
1136971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1137971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1138971bb1a5SLionel Sambuc  * placed in the event queue.
1139971bb1a5SLionel Sambuc  */
1140971bb1a5SLionel Sambuc xcb_dri2_wait_msc_cookie_t
1141971bb1a5SLionel Sambuc xcb_dri2_wait_msc_unchecked (xcb_connection_t *c  /**< */,
1142971bb1a5SLionel Sambuc                              xcb_drawable_t    drawable  /**< */,
1143971bb1a5SLionel Sambuc                              uint32_t          target_msc_hi  /**< */,
1144971bb1a5SLionel Sambuc                              uint32_t          target_msc_lo  /**< */,
1145971bb1a5SLionel Sambuc                              uint32_t          divisor_hi  /**< */,
1146971bb1a5SLionel Sambuc                              uint32_t          divisor_lo  /**< */,
1147971bb1a5SLionel Sambuc                              uint32_t          remainder_hi  /**< */,
1148971bb1a5SLionel Sambuc                              uint32_t          remainder_lo  /**< */);
1149971bb1a5SLionel Sambuc 
1150971bb1a5SLionel Sambuc /**
1151971bb1a5SLionel Sambuc  * Return the reply
1152971bb1a5SLionel Sambuc  * @param c      The connection
1153971bb1a5SLionel Sambuc  * @param cookie The cookie
1154971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1155971bb1a5SLionel Sambuc  *
1156971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1157971bb1a5SLionel Sambuc  *
1158971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1159971bb1a5SLionel Sambuc  * xcb_dri2_wait_msc_unchecked(). is used.
1160971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1161971bb1a5SLionel Sambuc  *
1162971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1163971bb1a5SLionel Sambuc  */
1164971bb1a5SLionel Sambuc xcb_dri2_wait_msc_reply_t *
1165971bb1a5SLionel Sambuc xcb_dri2_wait_msc_reply (xcb_connection_t            *c  /**< */,
1166971bb1a5SLionel Sambuc                          xcb_dri2_wait_msc_cookie_t   cookie  /**< */,
1167971bb1a5SLionel Sambuc                          xcb_generic_error_t        **e  /**< */);
1168971bb1a5SLionel Sambuc 
1169971bb1a5SLionel Sambuc /**
1170971bb1a5SLionel Sambuc  *
1171971bb1a5SLionel Sambuc  * @param c The connection
1172971bb1a5SLionel Sambuc  * @return A cookie
1173971bb1a5SLionel Sambuc  *
1174971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1175971bb1a5SLionel Sambuc  *
1176971bb1a5SLionel Sambuc  */
1177971bb1a5SLionel Sambuc xcb_dri2_wait_sbc_cookie_t
1178971bb1a5SLionel Sambuc xcb_dri2_wait_sbc (xcb_connection_t *c  /**< */,
1179971bb1a5SLionel Sambuc                    xcb_drawable_t    drawable  /**< */,
1180971bb1a5SLionel Sambuc                    uint32_t          target_sbc_hi  /**< */,
1181971bb1a5SLionel Sambuc                    uint32_t          target_sbc_lo  /**< */);
1182971bb1a5SLionel Sambuc 
1183971bb1a5SLionel Sambuc /**
1184971bb1a5SLionel Sambuc  *
1185971bb1a5SLionel Sambuc  * @param c The connection
1186971bb1a5SLionel Sambuc  * @return A cookie
1187971bb1a5SLionel Sambuc  *
1188971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1189971bb1a5SLionel Sambuc  *
1190971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1191971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1192971bb1a5SLionel Sambuc  * placed in the event queue.
1193971bb1a5SLionel Sambuc  */
1194971bb1a5SLionel Sambuc xcb_dri2_wait_sbc_cookie_t
1195971bb1a5SLionel Sambuc xcb_dri2_wait_sbc_unchecked (xcb_connection_t *c  /**< */,
1196971bb1a5SLionel Sambuc                              xcb_drawable_t    drawable  /**< */,
1197971bb1a5SLionel Sambuc                              uint32_t          target_sbc_hi  /**< */,
1198971bb1a5SLionel Sambuc                              uint32_t          target_sbc_lo  /**< */);
1199971bb1a5SLionel Sambuc 
1200971bb1a5SLionel Sambuc /**
1201971bb1a5SLionel Sambuc  * Return the reply
1202971bb1a5SLionel Sambuc  * @param c      The connection
1203971bb1a5SLionel Sambuc  * @param cookie The cookie
1204971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1205971bb1a5SLionel Sambuc  *
1206971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1207971bb1a5SLionel Sambuc  *
1208971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1209971bb1a5SLionel Sambuc  * xcb_dri2_wait_sbc_unchecked(). is used.
1210971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1211971bb1a5SLionel Sambuc  *
1212971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1213971bb1a5SLionel Sambuc  */
1214971bb1a5SLionel Sambuc xcb_dri2_wait_sbc_reply_t *
1215971bb1a5SLionel Sambuc xcb_dri2_wait_sbc_reply (xcb_connection_t            *c  /**< */,
1216971bb1a5SLionel Sambuc                          xcb_dri2_wait_sbc_cookie_t   cookie  /**< */,
1217971bb1a5SLionel Sambuc                          xcb_generic_error_t        **e  /**< */);
1218971bb1a5SLionel Sambuc 
1219971bb1a5SLionel Sambuc /**
1220971bb1a5SLionel Sambuc  *
1221971bb1a5SLionel Sambuc  * @param c The connection
1222971bb1a5SLionel Sambuc  * @return A cookie
1223971bb1a5SLionel Sambuc  *
1224971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1225971bb1a5SLionel Sambuc  *
1226971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1227971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1228971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1229971bb1a5SLionel Sambuc  */
1230971bb1a5SLionel Sambuc xcb_void_cookie_t
1231971bb1a5SLionel Sambuc xcb_dri2_swap_interval_checked (xcb_connection_t *c  /**< */,
1232971bb1a5SLionel Sambuc                                 xcb_drawable_t    drawable  /**< */,
1233971bb1a5SLionel Sambuc                                 uint32_t          interval  /**< */);
1234971bb1a5SLionel Sambuc 
1235971bb1a5SLionel Sambuc /**
1236971bb1a5SLionel Sambuc  *
1237971bb1a5SLionel Sambuc  * @param c The connection
1238971bb1a5SLionel Sambuc  * @return A cookie
1239971bb1a5SLionel Sambuc  *
1240971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1241971bb1a5SLionel Sambuc  *
1242971bb1a5SLionel Sambuc  */
1243971bb1a5SLionel Sambuc xcb_void_cookie_t
1244971bb1a5SLionel Sambuc xcb_dri2_swap_interval (xcb_connection_t *c  /**< */,
1245971bb1a5SLionel Sambuc                         xcb_drawable_t    drawable  /**< */,
1246971bb1a5SLionel Sambuc                         uint32_t          interval  /**< */);
1247971bb1a5SLionel Sambuc 
1248971bb1a5SLionel Sambuc /**
1249971bb1a5SLionel Sambuc  *
1250971bb1a5SLionel Sambuc  * @param c The connection
1251971bb1a5SLionel Sambuc  * @return A cookie
1252971bb1a5SLionel Sambuc  *
1253971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1254971bb1a5SLionel Sambuc  *
1255971bb1a5SLionel Sambuc  */
1256971bb1a5SLionel Sambuc xcb_dri2_get_param_cookie_t
1257971bb1a5SLionel Sambuc xcb_dri2_get_param (xcb_connection_t *c  /**< */,
1258971bb1a5SLionel Sambuc                     xcb_drawable_t    drawable  /**< */,
1259971bb1a5SLionel Sambuc                     uint32_t          param  /**< */);
1260971bb1a5SLionel Sambuc 
1261971bb1a5SLionel Sambuc /**
1262971bb1a5SLionel Sambuc  *
1263971bb1a5SLionel Sambuc  * @param c The connection
1264971bb1a5SLionel Sambuc  * @return A cookie
1265971bb1a5SLionel Sambuc  *
1266971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1267971bb1a5SLionel Sambuc  *
1268971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1269971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1270971bb1a5SLionel Sambuc  * placed in the event queue.
1271971bb1a5SLionel Sambuc  */
1272971bb1a5SLionel Sambuc xcb_dri2_get_param_cookie_t
1273971bb1a5SLionel Sambuc xcb_dri2_get_param_unchecked (xcb_connection_t *c  /**< */,
1274971bb1a5SLionel Sambuc                               xcb_drawable_t    drawable  /**< */,
1275971bb1a5SLionel Sambuc                               uint32_t          param  /**< */);
1276971bb1a5SLionel Sambuc 
1277971bb1a5SLionel Sambuc /**
1278971bb1a5SLionel Sambuc  * Return the reply
1279971bb1a5SLionel Sambuc  * @param c      The connection
1280971bb1a5SLionel Sambuc  * @param cookie The cookie
1281971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1282971bb1a5SLionel Sambuc  *
1283971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1284971bb1a5SLionel Sambuc  *
1285971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1286971bb1a5SLionel Sambuc  * xcb_dri2_get_param_unchecked(). is used.
1287971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1288971bb1a5SLionel Sambuc  *
1289971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1290971bb1a5SLionel Sambuc  */
1291971bb1a5SLionel Sambuc xcb_dri2_get_param_reply_t *
1292971bb1a5SLionel Sambuc xcb_dri2_get_param_reply (xcb_connection_t             *c  /**< */,
1293971bb1a5SLionel Sambuc                           xcb_dri2_get_param_cookie_t   cookie  /**< */,
1294971bb1a5SLionel Sambuc                           xcb_generic_error_t         **e  /**< */);
1295971bb1a5SLionel Sambuc 
1296971bb1a5SLionel Sambuc 
1297971bb1a5SLionel Sambuc #ifdef __cplusplus
1298971bb1a5SLionel Sambuc }
1299971bb1a5SLionel Sambuc #endif
1300971bb1a5SLionel Sambuc 
1301971bb1a5SLionel Sambuc #endif
1302971bb1a5SLionel Sambuc 
1303971bb1a5SLionel Sambuc /**
1304971bb1a5SLionel Sambuc  * @}
1305971bb1a5SLionel Sambuc  */
1306