XCB  1.12
record.h
1 /*
2  * This file generated automatically from record.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
12 #ifndef __RECORD_H
13 #define __RECORD_H
14 
15 #include "xcb.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #define XCB_RECORD_MAJOR_VERSION 1
22 #define XCB_RECORD_MINOR_VERSION 13
23 
24 extern xcb_extension_t xcb_record_id;
25 
26 typedef uint32_t xcb_record_context_t;
27 
32  xcb_record_context_t *data;
33  int rem;
34  int index;
36 
40 typedef struct xcb_record_range_8_t {
41  uint8_t first;
42  uint8_t last;
44 
50  int rem;
51  int index;
53 
57 typedef struct xcb_record_range_16_t {
58  uint16_t first;
59  uint16_t last;
61 
67  int rem;
68  int index;
70 
74 typedef struct xcb_record_ext_range_t {
78 
84  int rem;
85  int index;
87 
91 typedef struct xcb_record_range_t {
92  xcb_record_range_8_t core_requests;
93  xcb_record_range_8_t core_replies;
94  xcb_record_ext_range_t ext_requests;
95  xcb_record_ext_range_t ext_replies;
96  xcb_record_range_8_t delivered_events;
97  xcb_record_range_8_t device_events;
98  xcb_record_range_8_t errors;
99  uint8_t client_started;
100  uint8_t client_died;
102 
107  xcb_record_range_t *data;
108  int rem;
109  int index;
111 
112 typedef uint8_t xcb_record_element_header_t;
113 
118  xcb_record_element_header_t *data;
119  int rem;
120  int index;
122 
123 typedef enum xcb_record_h_type_t {
124  XCB_RECORD_H_TYPE_FROM_SERVER_TIME = 1,
125  XCB_RECORD_H_TYPE_FROM_CLIENT_TIME = 2,
126  XCB_RECORD_H_TYPE_FROM_CLIENT_SEQUENCE = 4
127 } xcb_record_h_type_t;
128 
129 typedef uint32_t xcb_record_client_spec_t;
130 
135  xcb_record_client_spec_t *data;
136  int rem;
137  int index;
139 
140 typedef enum xcb_record_cs_t {
141  XCB_RECORD_CS_CURRENT_CLIENTS = 1,
142  XCB_RECORD_CS_FUTURE_CLIENTS = 2,
143  XCB_RECORD_CS_ALL_CLIENTS = 3
144 } xcb_record_cs_t;
145 
149 typedef struct xcb_record_client_info_t {
150  xcb_record_client_spec_t client_resource;
151  uint32_t num_ranges;
153 
159  int rem;
160  int index;
162 
164 #define XCB_RECORD_BAD_CONTEXT 0
165 
170  uint8_t response_type;
171  uint8_t error_code;
172  uint16_t sequence;
173  uint32_t invalid_record;
175 
180  unsigned int sequence;
182 
184 #define XCB_RECORD_QUERY_VERSION 0
185 
190  uint8_t major_opcode;
191  uint8_t minor_opcode;
192  uint16_t length;
193  uint16_t major_version;
194  uint16_t minor_version;
196 
201  uint8_t response_type;
202  uint8_t pad0;
203  uint16_t sequence;
204  uint32_t length;
205  uint16_t major_version;
206  uint16_t minor_version;
208 
210 #define XCB_RECORD_CREATE_CONTEXT 1
211 
216  uint8_t major_opcode;
217  uint8_t minor_opcode;
218  uint16_t length;
219  xcb_record_context_t context;
220  xcb_record_element_header_t element_header;
221  uint8_t pad0[3];
222  uint32_t num_client_specs;
223  uint32_t num_ranges;
225 
227 #define XCB_RECORD_REGISTER_CLIENTS 2
228 
233  uint8_t major_opcode;
234  uint8_t minor_opcode;
235  uint16_t length;
236  xcb_record_context_t context;
237  xcb_record_element_header_t element_header;
238  uint8_t pad0[3];
239  uint32_t num_client_specs;
240  uint32_t num_ranges;
242 
244 #define XCB_RECORD_UNREGISTER_CLIENTS 3
245 
250  uint8_t major_opcode;
251  uint8_t minor_opcode;
252  uint16_t length;
253  xcb_record_context_t context;
254  uint32_t num_client_specs;
256 
261  unsigned int sequence;
263 
265 #define XCB_RECORD_GET_CONTEXT 4
266 
271  uint8_t major_opcode;
272  uint8_t minor_opcode;
273  uint16_t length;
274  xcb_record_context_t context;
276 
281  uint8_t response_type;
282  uint8_t enabled;
283  uint16_t sequence;
284  uint32_t length;
285  xcb_record_element_header_t element_header;
286  uint8_t pad0[3];
287  uint32_t num_intercepted_clients;
288  uint8_t pad1[16];
290 
295  unsigned int sequence;
297 
299 #define XCB_RECORD_ENABLE_CONTEXT 5
300 
305  uint8_t major_opcode;
306  uint8_t minor_opcode;
307  uint16_t length;
308  xcb_record_context_t context;
310 
315  uint8_t response_type;
316  uint8_t category;
317  uint16_t sequence;
318  uint32_t length;
319  xcb_record_element_header_t element_header;
320  uint8_t client_swapped;
321  uint8_t pad0[2];
322  uint32_t xid_base;
323  uint32_t server_time;
324  uint32_t rec_sequence_num;
325  uint8_t pad1[8];
327 
329 #define XCB_RECORD_DISABLE_CONTEXT 6
330 
335  uint8_t major_opcode;
336  uint8_t minor_opcode;
337  uint16_t length;
338  xcb_record_context_t context;
340 
342 #define XCB_RECORD_FREE_CONTEXT 7
343 
348  uint8_t major_opcode;
349  uint8_t minor_opcode;
350  uint16_t length;
351  xcb_record_context_t context;
353 
362 void
364 
376 
385 void
387 
399 
408 void
410 
422 
431 void
433 
445 
454 void
456 
468 
477 void
479 
491 
500 void
502 
514 
515 int
516 xcb_record_client_info_sizeof (const void *_buffer);
517 
519 xcb_record_client_info_ranges (const xcb_record_client_info_t *R);
520 
521 int
522 xcb_record_client_info_ranges_length (const xcb_record_client_info_t *R);
523 
525 xcb_record_client_info_ranges_iterator (const xcb_record_client_info_t *R);
526 
535 void
537 
549 
560  uint16_t major_version,
561  uint16_t minor_version);
562 
576  uint16_t major_version,
577  uint16_t minor_version);
578 
596  xcb_generic_error_t **e);
597 
598 int
599 xcb_record_create_context_sizeof (const void *_buffer);
600 
614  xcb_record_context_t context,
615  xcb_record_element_header_t element_header,
616  uint32_t num_client_specs,
617  uint32_t num_ranges,
618  const xcb_record_client_spec_t *client_specs,
619  const xcb_record_range_t *ranges);
620 
631  xcb_record_context_t context,
632  xcb_record_element_header_t element_header,
633  uint32_t num_client_specs,
634  uint32_t num_ranges,
635  const xcb_record_client_spec_t *client_specs,
636  const xcb_record_range_t *ranges);
637 
638 xcb_record_client_spec_t *
639 xcb_record_create_context_client_specs (const xcb_record_create_context_request_t *R);
640 
641 int
642 xcb_record_create_context_client_specs_length (const xcb_record_create_context_request_t *R);
643 
645 xcb_record_create_context_client_specs_end (const xcb_record_create_context_request_t *R);
646 
648 xcb_record_create_context_ranges (const xcb_record_create_context_request_t *R);
649 
650 int
651 xcb_record_create_context_ranges_length (const xcb_record_create_context_request_t *R);
652 
654 xcb_record_create_context_ranges_iterator (const xcb_record_create_context_request_t *R);
655 
656 int
657 xcb_record_register_clients_sizeof (const void *_buffer);
658 
672  xcb_record_context_t context,
673  xcb_record_element_header_t element_header,
674  uint32_t num_client_specs,
675  uint32_t num_ranges,
676  const xcb_record_client_spec_t *client_specs,
677  const xcb_record_range_t *ranges);
678 
689  xcb_record_context_t context,
690  xcb_record_element_header_t element_header,
691  uint32_t num_client_specs,
692  uint32_t num_ranges,
693  const xcb_record_client_spec_t *client_specs,
694  const xcb_record_range_t *ranges);
695 
696 xcb_record_client_spec_t *
697 xcb_record_register_clients_client_specs (const xcb_record_register_clients_request_t *R);
698 
699 int
700 xcb_record_register_clients_client_specs_length (const xcb_record_register_clients_request_t *R);
701 
703 xcb_record_register_clients_client_specs_end (const xcb_record_register_clients_request_t *R);
704 
706 xcb_record_register_clients_ranges (const xcb_record_register_clients_request_t *R);
707 
708 int
709 xcb_record_register_clients_ranges_length (const xcb_record_register_clients_request_t *R);
710 
712 xcb_record_register_clients_ranges_iterator (const xcb_record_register_clients_request_t *R);
713 
714 int
715 xcb_record_unregister_clients_sizeof (const void *_buffer);
716 
730  xcb_record_context_t context,
731  uint32_t num_client_specs,
732  const xcb_record_client_spec_t *client_specs);
733 
744  xcb_record_context_t context,
745  uint32_t num_client_specs,
746  const xcb_record_client_spec_t *client_specs);
747 
748 xcb_record_client_spec_t *
749 xcb_record_unregister_clients_client_specs (const xcb_record_unregister_clients_request_t *R);
750 
751 int
752 xcb_record_unregister_clients_client_specs_length (const xcb_record_unregister_clients_request_t *R);
753 
755 xcb_record_unregister_clients_client_specs_end (const xcb_record_unregister_clients_request_t *R);
756 
757 int
758 xcb_record_get_context_sizeof (const void *_buffer);
759 
770  xcb_record_context_t context);
771 
785  xcb_record_context_t context);
786 
787 int
788 xcb_record_get_context_intercepted_clients_length (const xcb_record_get_context_reply_t *R);
789 
791 xcb_record_get_context_intercepted_clients_iterator (const xcb_record_get_context_reply_t *R);
792 
810  xcb_generic_error_t **e);
811 
812 int
813 xcb_record_enable_context_sizeof (const void *_buffer);
814 
825  xcb_record_context_t context);
826 
840  xcb_record_context_t context);
841 
842 uint8_t *
843 xcb_record_enable_context_data (const xcb_record_enable_context_reply_t *R);
844 
845 int
846 xcb_record_enable_context_data_length (const xcb_record_enable_context_reply_t *R);
847 
849 xcb_record_enable_context_data_end (const xcb_record_enable_context_reply_t *R);
850 
868  xcb_generic_error_t **e);
869 
883  xcb_record_context_t context);
884 
895  xcb_record_context_t context);
896 
910  xcb_record_context_t context);
911 
922  xcb_record_context_t context);
923 
924 
925 #ifdef __cplusplus
926 }
927 #endif
928 
929 #endif
930 
Generic error.
Definition: xcb.h:170
xcb_record_free_context_request_t
Definition: record.h:347
xcb_generic_iterator_t xcb_record_range_end(xcb_record_range_iterator_t i)
Definition: record.c:101
struct xcb_record_register_clients_request_t xcb_record_register_clients_request_t
xcb_record_register_clients_request_t
xcb_void_cookie_t xcb_record_unregister_clients_checked(xcb_connection_t *c, xcb_record_context_t context, uint32_t num_client_specs, const xcb_record_client_spec_t *client_specs)
Definition: record.c:676
xcb_void_cookie_t xcb_record_free_context_checked(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:1043
struct xcb_record_disable_context_request_t xcb_record_disable_context_request_t
xcb_record_disable_context_request_t
xcb_record_client_spec_iterator_t
Definition: record.h:134
xcb_void_cookie_t xcb_record_register_clients(xcb_connection_t *c, xcb_record_context_t context, xcb_record_element_header_t element_header, uint32_t num_client_specs, uint32_t num_ranges, const xcb_record_client_spec_t *client_specs, const xcb_record_range_t *ranges)
Definition: record.c:554
struct xcb_record_enable_context_request_t xcb_record_enable_context_request_t
xcb_record_enable_context_request_t
struct xcb_record_query_version_cookie_t xcb_record_query_version_cookie_t
xcb_record_query_version_cookie_t
xcb_generic_iterator_t xcb_record_range_16_end(xcb_record_range_16_iterator_t i)
Definition: record.c:65
xcb_void_cookie_t xcb_record_create_context_checked(xcb_connection_t *c, xcb_record_context_t context, xcb_record_element_header_t element_header, uint32_t num_client_specs, uint32_t num_ranges, const xcb_record_client_spec_t *client_specs, const xcb_record_range_t *ranges)
Definition: record.c:330
xcb_record_enable_context_reply_t * xcb_record_enable_context_reply(xcb_connection_t *c, xcb_record_enable_context_cookie_t cookie, xcb_generic_error_t **e)
Definition: record.c:983
struct xcb_record_unregister_clients_request_t xcb_record_unregister_clients_request_t
xcb_record_unregister_clients_request_t
Definition: xcbext.h:39
xcb_record_enable_context_request_t
Definition: record.h:304
xcb_record_get_context_request_t
Definition: record.h:270
Generic iterator.
Definition: xcb.h:114
xcb_record_enable_context_reply_t
Definition: record.h:314
xcb_void_cookie_t xcb_record_disable_context(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:1017
struct xcb_record_get_context_reply_t xcb_record_get_context_reply_t
xcb_record_get_context_reply_t
xcb_void_cookie_t xcb_record_create_context(xcb_connection_t *c, xcb_record_context_t context, xcb_record_element_header_t element_header, uint32_t num_client_specs, uint32_t num_ranges, const xcb_record_client_spec_t *client_specs, const xcb_record_range_t *ranges)
Definition: record.c:375
struct xcb_record_ext_range_iterator_t xcb_record_ext_range_iterator_t
xcb_record_ext_range_iterator_t
struct xcb_record_range_iterator_t xcb_record_range_iterator_t
xcb_record_range_iterator_t
struct xcb_record_create_context_request_t xcb_record_create_context_request_t
xcb_record_create_context_request_t
struct xcb_record_context_iterator_t xcb_record_context_iterator_t
xcb_record_context_iterator_t
struct xcb_record_client_info_t xcb_record_client_info_t
xcb_record_client_info_t
xcb_record_create_context_request_t
Definition: record.h:215
struct xcb_record_query_version_request_t xcb_record_query_version_request_t
xcb_record_query_version_request_t
struct xcb_record_range_8_t xcb_record_range_8_t
xcb_record_range_8_t
xcb_record_range_iterator_t
Definition: record.h:106
void xcb_record_context_next(xcb_record_context_iterator_t *i)
Definition: record.c:21
xcb_generic_iterator_t xcb_record_ext_range_end(xcb_record_ext_range_iterator_t i)
Definition: record.c:83
xcb_record_context_iterator_t
Definition: record.h:31
xcb_generic_iterator_t xcb_record_element_header_end(xcb_record_element_header_iterator_t i)
Definition: record.c:119
xcb_record_bad_context_error_t
Definition: record.h:169
xcb_record_enable_context_cookie_t xcb_record_enable_context_unchecked(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:935
void xcb_record_range_next(xcb_record_range_iterator_t *i)
Definition: record.c:93
struct xcb_record_client_info_iterator_t xcb_record_client_info_iterator_t
xcb_record_client_info_iterator_t
void xcb_record_element_header_next(xcb_record_element_header_iterator_t *i)
Definition: record.c:111
xcb_record_range_8_t
Definition: record.h:40
xcb_record_query_version_reply_t * xcb_record_query_version_reply(xcb_connection_t *c, xcb_record_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: record.c:279
void xcb_record_range_8_next(xcb_record_range_8_iterator_t *i)
Definition: record.c:39
xcb_generic_iterator_t xcb_record_range_8_end(xcb_record_range_8_iterator_t i)
Definition: record.c:47
struct xcb_record_element_header_iterator_t xcb_record_element_header_iterator_t
xcb_record_element_header_iterator_t
xcb_record_get_context_cookie_t xcb_record_get_context_unchecked(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:828
xcb_record_client_info_t
Definition: record.h:149
xcb_record_query_version_cookie_t xcb_record_query_version_unchecked(xcb_connection_t *c, uint16_t major_version, uint16_t minor_version)
Definition: record.c:251
xcb_generic_iterator_t xcb_record_client_info_end(xcb_record_client_info_iterator_t i)
Definition: record.c:211
xcb_record_get_context_reply_t
Definition: record.h:280
xcb_record_ext_range_t
Definition: record.h:74
void xcb_record_ext_range_next(xcb_record_ext_range_iterator_t *i)
Definition: record.c:75
xcb_record_range_16_iterator_t
Definition: record.h:65
struct xcb_record_get_context_cookie_t xcb_record_get_context_cookie_t
xcb_record_get_context_cookie_t
void xcb_record_range_16_next(xcb_record_range_16_iterator_t *i)
Definition: record.c:57
xcb_record_query_version_reply_t
Definition: record.h:200
struct xcb_record_range_16_t xcb_record_range_16_t
xcb_record_range_16_t
struct xcb_record_query_version_reply_t xcb_record_query_version_reply_t
xcb_record_query_version_reply_t
struct xcb_record_range_16_iterator_t xcb_record_range_16_iterator_t
xcb_record_range_16_iterator_t
xcb_record_range_16_t
Definition: record.h:57
xcb_record_unregister_clients_request_t
Definition: record.h:249
xcb_generic_iterator_t xcb_record_context_end(xcb_record_context_iterator_t i)
Definition: record.c:29
void xcb_record_client_info_next(xcb_record_client_info_iterator_t *i)
Definition: record.c:200
xcb_record_get_context_reply_t * xcb_record_get_context_reply(xcb_connection_t *c, xcb_record_get_context_cookie_t cookie, xcb_generic_error_t **e)
Definition: record.c:870
xcb_record_ext_range_iterator_t
Definition: record.h:82
struct xcb_record_enable_context_reply_t xcb_record_enable_context_reply_t
xcb_record_enable_context_reply_t
xcb_record_enable_context_cookie_t xcb_record_enable_context(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:909
struct xcb_record_range_8_iterator_t xcb_record_range_8_iterator_t
xcb_record_range_8_iterator_t
xcb_generic_iterator_t xcb_record_client_spec_end(xcb_record_client_spec_iterator_t i)
Definition: record.c:137
xcb_record_element_header_iterator_t
Definition: record.h:117
xcb_record_range_8_iterator_t
Definition: record.h:48
xcb_record_disable_context_request_t
Definition: record.h:334
xcb_record_client_info_iterator_t
Definition: record.h:157
xcb_void_cookie_t xcb_record_register_clients_checked(xcb_connection_t *c, xcb_record_context_t context, xcb_record_element_header_t element_header, uint32_t num_client_specs, uint32_t num_ranges, const xcb_record_client_spec_t *client_specs, const xcb_record_range_t *ranges)
Definition: record.c:509
xcb_record_query_version_request_t
Definition: record.h:189
xcb_record_register_clients_request_t
Definition: record.h:232
struct xcb_record_client_spec_iterator_t xcb_record_client_spec_iterator_t
xcb_record_client_spec_iterator_t
struct xcb_record_bad_context_error_t xcb_record_bad_context_error_t
xcb_record_bad_context_error_t
xcb_void_cookie_t xcb_record_free_context(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:1069
struct xcb_record_range_t xcb_record_range_t
xcb_record_range_t
Definition: xcbint.h:198
struct xcb_record_enable_context_cookie_t xcb_record_enable_context_cookie_t
xcb_record_enable_context_cookie_t
void xcb_record_client_spec_next(xcb_record_client_spec_iterator_t *i)
Definition: record.c:129
xcb_record_range_t
Definition: record.h:91
struct xcb_record_ext_range_t xcb_record_ext_range_t
xcb_record_ext_range_t
struct xcb_record_get_context_request_t xcb_record_get_context_request_t
xcb_record_get_context_request_t
xcb_record_get_context_cookie_t xcb_record_get_context(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:802
struct xcb_record_free_context_request_t xcb_record_free_context_request_t
xcb_record_free_context_request_t
xcb_void_cookie_t xcb_record_unregister_clients(xcb_connection_t *c, xcb_record_context_t context, uint32_t num_client_specs, const xcb_record_client_spec_t *client_specs)
Definition: record.c:710
xcb_record_query_version_cookie_t xcb_record_query_version(xcb_connection_t *c, uint16_t major_version, uint16_t minor_version)
Definition: record.c:223
xcb_void_cookie_t xcb_record_disable_context_checked(xcb_connection_t *c, xcb_record_context_t context)
Definition: record.c:991