XCB 1.17.0
present.h
1/*
2 * This file generated automatically from present.xml by c_client.py.
3 * Edit at your peril.
4 */
5
11
12#ifndef __PRESENT_H
13#define __PRESENT_H
14
15#include "xcb.h"
16#include "xproto.h"
17#include "randr.h"
18#include "xfixes.h"
19#include "sync.h"
20#include "dri3.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#define XCB_PRESENT_MAJOR_VERSION 1
27#define XCB_PRESENT_MINOR_VERSION 4
28
29extern xcb_extension_t xcb_present_id;
30
31typedef enum xcb_present_event_enum_t {
32 XCB_PRESENT_EVENT_CONFIGURE_NOTIFY = 0,
33 XCB_PRESENT_EVENT_COMPLETE_NOTIFY = 1,
34 XCB_PRESENT_EVENT_IDLE_NOTIFY = 2,
35 XCB_PRESENT_EVENT_REDIRECT_NOTIFY = 3
36} xcb_present_event_enum_t;
37
38typedef enum xcb_present_event_mask_t {
39 XCB_PRESENT_EVENT_MASK_NO_EVENT = 0,
40 XCB_PRESENT_EVENT_MASK_CONFIGURE_NOTIFY = 1,
41 XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY = 2,
42 XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY = 4,
43 XCB_PRESENT_EVENT_MASK_REDIRECT_NOTIFY = 8
44} xcb_present_event_mask_t;
45
46typedef enum xcb_present_option_t {
47 XCB_PRESENT_OPTION_NONE = 0,
48 XCB_PRESENT_OPTION_ASYNC = 1,
49 XCB_PRESENT_OPTION_COPY = 2,
50 XCB_PRESENT_OPTION_UST = 4,
51 XCB_PRESENT_OPTION_SUBOPTIMAL = 8,
52 XCB_PRESENT_OPTION_ASYNC_MAY_TEAR = 16
53} xcb_present_option_t;
54
55typedef enum xcb_present_capability_t {
56 XCB_PRESENT_CAPABILITY_NONE = 0,
57 XCB_PRESENT_CAPABILITY_ASYNC = 1,
58 XCB_PRESENT_CAPABILITY_FENCE = 2,
59 XCB_PRESENT_CAPABILITY_UST = 4,
60 XCB_PRESENT_CAPABILITY_ASYNC_MAY_TEAR = 8,
61 XCB_PRESENT_CAPABILITY_SYNCOBJ = 16
62} xcb_present_capability_t;
63
64typedef enum xcb_present_complete_kind_t {
65 XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0,
66 XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1
67} xcb_present_complete_kind_t;
68
69typedef enum xcb_present_complete_mode_t {
70 XCB_PRESENT_COMPLETE_MODE_COPY = 0,
71 XCB_PRESENT_COMPLETE_MODE_FLIP = 1,
72 XCB_PRESENT_COMPLETE_MODE_SKIP = 2,
73 XCB_PRESENT_COMPLETE_MODE_SUBOPTIMAL_COPY = 3
74} xcb_present_complete_mode_t;
75
79typedef struct xcb_present_notify_t {
80 xcb_window_t window;
81 uint32_t serial;
83
89 int rem;
90 int index;
92
99
101#define XCB_PRESENT_QUERY_VERSION 0
102
107 uint8_t major_opcode;
108 uint8_t minor_opcode;
109 uint16_t length;
110 uint32_t major_version;
111 uint32_t minor_version;
113
118 uint8_t response_type;
119 uint8_t pad0;
120 uint16_t sequence;
121 uint32_t length;
122 uint32_t major_version;
123 uint32_t minor_version;
125
127#define XCB_PRESENT_PIXMAP 1
128
133 uint8_t major_opcode;
134 uint8_t minor_opcode;
135 uint16_t length;
136 xcb_window_t window;
137 xcb_pixmap_t pixmap;
138 uint32_t serial;
139 xcb_xfixes_region_t valid;
140 xcb_xfixes_region_t update;
141 int16_t x_off;
142 int16_t y_off;
143 xcb_randr_crtc_t target_crtc;
144 xcb_sync_fence_t wait_fence;
145 xcb_sync_fence_t idle_fence;
146 uint32_t options;
147 uint8_t pad0[4];
148 uint64_t target_msc;
149 uint64_t divisor;
150 uint64_t remainder;
152
154#define XCB_PRESENT_NOTIFY_MSC 2
155
160 uint8_t major_opcode;
161 uint8_t minor_opcode;
162 uint16_t length;
163 xcb_window_t window;
164 uint32_t serial;
165 uint8_t pad0[4];
166 uint64_t target_msc;
167 uint64_t divisor;
168 uint64_t remainder;
170
171typedef uint32_t xcb_present_event_t;
172
177 xcb_present_event_t *data;
178 int rem;
179 int index;
181
183#define XCB_PRESENT_SELECT_INPUT 3
184
189 uint8_t major_opcode;
190 uint8_t minor_opcode;
191 uint16_t length;
192 xcb_present_event_t eid;
193 xcb_window_t window;
194 uint32_t event_mask;
196
203
205#define XCB_PRESENT_QUERY_CAPABILITIES 4
206
211 uint8_t major_opcode;
212 uint8_t minor_opcode;
213 uint16_t length;
214 uint32_t target;
216
221 uint8_t response_type;
222 uint8_t pad0;
223 uint16_t sequence;
224 uint32_t length;
225 uint32_t capabilities;
227
229#define XCB_PRESENT_PIXMAP_SYNCED 5
230
235 uint8_t major_opcode;
236 uint8_t minor_opcode;
237 uint16_t length;
238 xcb_window_t window;
239 xcb_pixmap_t pixmap;
240 uint32_t serial;
241 xcb_xfixes_region_t valid;
242 xcb_xfixes_region_t update;
243 int16_t x_off;
244 int16_t y_off;
245 xcb_randr_crtc_t target_crtc;
246 xcb_dri3_syncobj_t acquire_syncobj;
247 xcb_dri3_syncobj_t release_syncobj;
248 uint64_t acquire_point;
249 uint64_t release_point;
250 uint32_t options;
251 uint8_t pad0[4];
252 uint64_t target_msc;
253 uint64_t divisor;
254 uint64_t remainder;
256
258#define XCB_PRESENT_GENERIC 0
259
264 uint8_t response_type;
265 uint8_t extension;
266 uint16_t sequence;
267 uint32_t length;
268 uint16_t evtype;
269 uint8_t pad0[2];
270 xcb_present_event_t event;
272
274#define XCB_PRESENT_CONFIGURE_NOTIFY 0
275
280 uint8_t response_type;
281 uint8_t extension;
282 uint16_t sequence;
283 uint32_t length;
284 uint16_t event_type;
285 uint8_t pad0[2];
286 xcb_present_event_t event;
287 xcb_window_t window;
288 int16_t x;
289 int16_t y;
290 uint16_t width;
291 uint16_t height;
292 int16_t off_x;
293 int16_t off_y;
294 uint32_t full_sequence;
295 uint16_t pixmap_width;
296 uint16_t pixmap_height;
297 uint32_t pixmap_flags;
299
301#define XCB_PRESENT_COMPLETE_NOTIFY 1
302
307 uint8_t response_type;
308 uint8_t extension;
309 uint16_t sequence;
310 uint32_t length;
311 uint16_t event_type;
312 uint8_t kind;
313 uint8_t mode;
314 xcb_present_event_t event;
315 xcb_window_t window;
316 uint32_t serial;
317 uint64_t ust;
318 uint32_t full_sequence;
319 uint64_t msc;
321
323#define XCB_PRESENT_IDLE_NOTIFY 2
324
329 uint8_t response_type;
330 uint8_t extension;
331 uint16_t sequence;
332 uint32_t length;
333 uint16_t event_type;
334 uint8_t pad0[2];
335 xcb_present_event_t event;
336 xcb_window_t window;
337 uint32_t serial;
338 xcb_pixmap_t pixmap;
339 xcb_sync_fence_t idle_fence;
340 uint32_t full_sequence;
342
344#define XCB_PRESENT_REDIRECT_NOTIFY 3
345
350 uint8_t response_type;
351 uint8_t extension;
352 uint16_t sequence;
353 uint32_t length;
354 uint16_t event_type;
355 uint8_t update_window;
356 uint8_t pad0;
357 xcb_present_event_t event;
358 xcb_window_t event_window;
359 xcb_window_t window;
360 xcb_pixmap_t pixmap;
361 uint32_t serial;
362 uint32_t full_sequence;
363 xcb_xfixes_region_t valid_region;
364 xcb_xfixes_region_t update_region;
365 xcb_rectangle_t valid_rect;
366 xcb_rectangle_t update_rect;
367 int16_t x_off;
368 int16_t y_off;
369 xcb_randr_crtc_t target_crtc;
370 xcb_sync_fence_t wait_fence;
371 xcb_sync_fence_t idle_fence;
372 uint32_t options;
373 uint8_t pad1[4];
374 uint64_t target_msc;
375 uint64_t divisor;
376 uint64_t remainder;
378
387void
389
401
412 uint32_t major_version,
413 uint32_t minor_version);
414
428 uint32_t major_version,
429 uint32_t minor_version);
430
449
450int
451xcb_present_pixmap_sizeof (const void *_buffer,
452 uint32_t notifies_len);
453
467 xcb_window_t window,
468 xcb_pixmap_t pixmap,
469 uint32_t serial,
470 xcb_xfixes_region_t valid,
471 xcb_xfixes_region_t update,
472 int16_t x_off,
473 int16_t y_off,
474 xcb_randr_crtc_t target_crtc,
475 xcb_sync_fence_t wait_fence,
476 xcb_sync_fence_t idle_fence,
477 uint32_t options,
478 uint64_t target_msc,
479 uint64_t divisor,
480 uint64_t remainder,
481 uint32_t notifies_len,
482 const xcb_present_notify_t *notifies);
483
494 xcb_window_t window,
495 xcb_pixmap_t pixmap,
496 uint32_t serial,
497 xcb_xfixes_region_t valid,
498 xcb_xfixes_region_t update,
499 int16_t x_off,
500 int16_t y_off,
501 xcb_randr_crtc_t target_crtc,
502 xcb_sync_fence_t wait_fence,
503 xcb_sync_fence_t idle_fence,
504 uint32_t options,
505 uint64_t target_msc,
506 uint64_t divisor,
507 uint64_t remainder,
508 uint32_t notifies_len,
509 const xcb_present_notify_t *notifies);
510
512xcb_present_pixmap_notifies (const xcb_present_pixmap_request_t *R);
513
514int
515xcb_present_pixmap_notifies_length (const xcb_present_pixmap_request_t *R);
516
518xcb_present_pixmap_notifies_iterator (const xcb_present_pixmap_request_t *R);
519
533 xcb_window_t window,
534 uint32_t serial,
535 uint64_t target_msc,
536 uint64_t divisor,
537 uint64_t remainder);
538
549 xcb_window_t window,
550 uint32_t serial,
551 uint64_t target_msc,
552 uint64_t divisor,
553 uint64_t remainder);
554
563void
565
577
591 xcb_present_event_t eid,
592 xcb_window_t window,
593 uint32_t event_mask);
594
605 xcb_present_event_t eid,
606 xcb_window_t window,
607 uint32_t event_mask);
608
619 uint32_t target);
620
634 uint32_t target);
635
654
655int
656xcb_present_pixmap_synced_sizeof (const void *_buffer,
657 uint32_t notifies_len);
658
672 xcb_window_t window,
673 xcb_pixmap_t pixmap,
674 uint32_t serial,
675 xcb_xfixes_region_t valid,
676 xcb_xfixes_region_t update,
677 int16_t x_off,
678 int16_t y_off,
679 xcb_randr_crtc_t target_crtc,
680 xcb_dri3_syncobj_t acquire_syncobj,
681 xcb_dri3_syncobj_t release_syncobj,
682 uint64_t acquire_point,
683 uint64_t release_point,
684 uint32_t options,
685 uint64_t target_msc,
686 uint64_t divisor,
687 uint64_t remainder,
688 uint32_t notifies_len,
689 const xcb_present_notify_t *notifies);
690
701 xcb_window_t window,
702 xcb_pixmap_t pixmap,
703 uint32_t serial,
704 xcb_xfixes_region_t valid,
705 xcb_xfixes_region_t update,
706 int16_t x_off,
707 int16_t y_off,
708 xcb_randr_crtc_t target_crtc,
709 xcb_dri3_syncobj_t acquire_syncobj,
710 xcb_dri3_syncobj_t release_syncobj,
711 uint64_t acquire_point,
712 uint64_t release_point,
713 uint32_t options,
714 uint64_t target_msc,
715 uint64_t divisor,
716 uint64_t remainder,
717 uint32_t notifies_len,
718 const xcb_present_notify_t *notifies);
719
721xcb_present_pixmap_synced_notifies (const xcb_present_pixmap_synced_request_t *R);
722
723int
724xcb_present_pixmap_synced_notifies_length (const xcb_present_pixmap_synced_request_t *R);
725
727xcb_present_pixmap_synced_notifies_iterator (const xcb_present_pixmap_synced_request_t *R);
728
729int
730xcb_present_redirect_notify_sizeof (const void *_buffer,
731 uint32_t notifies_len);
732
734xcb_present_redirect_notify_notifies (const xcb_present_redirect_notify_event_t *R);
735
736int
737xcb_present_redirect_notify_notifies_length (const xcb_present_redirect_notify_event_t *R);
738
740xcb_present_redirect_notify_notifies_iterator (const xcb_present_redirect_notify_event_t *R);
741
742
743#ifdef __cplusplus
744}
745#endif
746
747#endif
748
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities(xcb_connection_t *c, uint32_t target)
Definition present.c:429
xcb_void_cookie_t xcb_present_pixmap_synced_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_dri3_syncobj_t acquire_syncobj, xcb_dri3_syncobj_t release_syncobj, uint64_t acquire_point, uint64_t release_point, uint32_t options, uint64_t target_msc, uint64_t divisor, uint64_t remainder, uint32_t notifies_len, const xcb_present_notify_t *notifies)
Definition present.c:520
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition present.c:26
xcb_void_cookie_t xcb_present_pixmap_synced(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_dri3_syncobj_t acquire_syncobj, xcb_dri3_syncobj_t release_syncobj, uint64_t acquire_point, uint64_t release_point, uint32_t options, uint64_t target_msc, uint64_t divisor, uint64_t remainder, uint32_t notifies_len, const xcb_present_notify_t *notifies)
Definition present.c:584
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)
Definition present.c:316
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)
Definition present.c:369
xcb_present_query_version_cookie_t xcb_present_query_version_unchecked(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition present.c:72
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)
Definition present.c:199
void xcb_present_event_next(xcb_present_event_iterator_t *i)
Definition present.c:351
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)
Definition present.c:281
xcb_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition present.c:359
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)
Definition present.c:139
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)
Definition present.c:399
xcb_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition present.c:34
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)
Definition present.c:481
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_unchecked(xcb_connection_t *c, uint32_t target)
Definition present.c:455
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)
Definition present.c:100
xcb_present_query_version_cookie_t xcb_present_query_version(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition present.c:44
Definition xcbint.h:208
Definition xcbext.h:39
Generic error.
Definition xcb.h:186
Generic iterator.
Definition xcb.h:118
xcb_present_complete_notify_event_t
Definition present.h:306
xcb_present_configure_notify_event_t
Definition present.h:279
xcb_present_event_iterator_t
Definition present.h:176
xcb_present_generic_event_t
Definition present.h:263
xcb_present_idle_notify_event_t
Definition present.h:328
xcb_present_notify_iterator_t
Definition present.h:87
xcb_present_notify_msc_request_t
Definition present.h:159
xcb_present_notify_t
Definition present.h:79
xcb_present_pixmap_request_t
Definition present.h:132
xcb_present_pixmap_synced_request_t
Definition present.h:234
xcb_present_query_capabilities_reply_t
Definition present.h:220
xcb_present_query_capabilities_request_t
Definition present.h:210
xcb_present_query_version_reply_t
Definition present.h:117
xcb_present_query_version_request_t
Definition present.h:106
xcb_present_redirect_notify_event_t
Definition present.h:349
xcb_present_select_input_request_t
Definition present.h:188
xcb_rectangle_t
Definition xproto.h:234