XCB  1.12
res.h
1 /*
2  * This file generated automatically from res.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
12 #ifndef __RES_H
13 #define __RES_H
14 
15 #include "xcb.h"
16 #include "xproto.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define XCB_RES_MAJOR_VERSION 1
23 #define XCB_RES_MINOR_VERSION 2
24 
25 extern xcb_extension_t xcb_res_id;
26 
30 typedef struct xcb_res_client_t {
31  uint32_t resource_base;
32  uint32_t resource_mask;
34 
38 typedef struct xcb_res_client_iterator_t {
39  xcb_res_client_t *data;
40  int rem;
41  int index;
43 
47 typedef struct xcb_res_type_t {
48  xcb_atom_t resource_type;
49  uint32_t count;
51 
55 typedef struct xcb_res_type_iterator_t {
56  xcb_res_type_t *data;
57  int rem;
58  int index;
60 
61 typedef enum xcb_res_client_id_mask_t {
62  XCB_RES_CLIENT_ID_MASK_CLIENT_XID = 1,
63  XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = 2
64 } xcb_res_client_id_mask_t;
65 
69 typedef struct xcb_res_client_id_spec_t {
70  uint32_t client;
71  uint32_t mask;
73 
79  int rem;
80  int index;
82 
86 typedef struct xcb_res_client_id_value_t {
88  uint32_t length;
90 
96  int rem;
97  int index;
99 
104  uint32_t resource;
105  uint32_t type;
107 
113  int rem;
114  int index;
116 
122  uint32_t bytes;
123  uint32_t ref_count;
124  uint32_t use_count;
126 
132  int rem;
133  int index;
135 
141  uint32_t num_cross_references;
143 
149  int rem;
150  int index;
152 
157  unsigned int sequence;
159 
161 #define XCB_RES_QUERY_VERSION 0
162 
167  uint8_t major_opcode;
168  uint8_t minor_opcode;
169  uint16_t length;
170  uint8_t client_major;
171  uint8_t client_minor;
173 
178  uint8_t response_type;
179  uint8_t pad0;
180  uint16_t sequence;
181  uint32_t length;
182  uint16_t server_major;
183  uint16_t server_minor;
185 
190  unsigned int sequence;
192 
194 #define XCB_RES_QUERY_CLIENTS 1
195 
200  uint8_t major_opcode;
201  uint8_t minor_opcode;
202  uint16_t length;
204 
209  uint8_t response_type;
210  uint8_t pad0;
211  uint16_t sequence;
212  uint32_t length;
213  uint32_t num_clients;
214  uint8_t pad1[20];
216 
221  unsigned int sequence;
223 
225 #define XCB_RES_QUERY_CLIENT_RESOURCES 2
226 
231  uint8_t major_opcode;
232  uint8_t minor_opcode;
233  uint16_t length;
234  uint32_t xid;
236 
241  uint8_t response_type;
242  uint8_t pad0;
243  uint16_t sequence;
244  uint32_t length;
245  uint32_t num_types;
246  uint8_t pad1[20];
248 
253  unsigned int sequence;
255 
257 #define XCB_RES_QUERY_CLIENT_PIXMAP_BYTES 3
258 
263  uint8_t major_opcode;
264  uint8_t minor_opcode;
265  uint16_t length;
266  uint32_t xid;
268 
273  uint8_t response_type;
274  uint8_t pad0;
275  uint16_t sequence;
276  uint32_t length;
277  uint32_t bytes;
278  uint32_t bytes_overflow;
280 
285  unsigned int sequence;
287 
289 #define XCB_RES_QUERY_CLIENT_IDS 4
290 
295  uint8_t major_opcode;
296  uint8_t minor_opcode;
297  uint16_t length;
298  uint32_t num_specs;
300 
305  uint8_t response_type;
306  uint8_t pad0;
307  uint16_t sequence;
308  uint32_t length;
309  uint32_t num_ids;
310  uint8_t pad1[20];
312 
317  unsigned int sequence;
319 
321 #define XCB_RES_QUERY_RESOURCE_BYTES 5
322 
327  uint8_t major_opcode;
328  uint8_t minor_opcode;
329  uint16_t length;
330  uint32_t client;
331  uint32_t num_specs;
333 
338  uint8_t response_type;
339  uint8_t pad0;
340  uint16_t sequence;
341  uint32_t length;
342  uint32_t num_sizes;
343  uint8_t pad1[20];
345 
354 void
356 
368 
377 void
379 
391 
400 void
402 
414 
415 int
416 xcb_res_client_id_value_sizeof (const void *_buffer);
417 
418 uint32_t *
419 xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R);
420 
421 int
422 xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R);
423 
425 xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R);
426 
435 void
437 
449 
458 void
460 
472 
481 void
483 
495 
496 int
497 xcb_res_resource_size_value_sizeof (const void *_buffer);
498 
500 xcb_res_resource_size_value_cross_references (const xcb_res_resource_size_value_t *R);
501 
502 int
503 xcb_res_resource_size_value_cross_references_length (const xcb_res_resource_size_value_t *R);
504 
506 xcb_res_resource_size_value_cross_references_iterator (const xcb_res_resource_size_value_t *R);
507 
516 void
518 
530 
541  uint8_t client_major,
542  uint8_t client_minor);
543 
557  uint8_t client_major,
558  uint8_t client_minor);
559 
577  xcb_generic_error_t **e);
578 
579 int
580 xcb_res_query_clients_sizeof (const void *_buffer);
581 
592 
606 
608 xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R);
609 
610 int
611 xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R);
612 
614 xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R);
615 
633  xcb_generic_error_t **e);
634 
635 int
636 xcb_res_query_client_resources_sizeof (const void *_buffer);
637 
648  uint32_t xid);
649 
663  uint32_t xid);
664 
666 xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R);
667 
668 int
669 xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R);
670 
672 xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R);
673 
691  xcb_generic_error_t **e);
692 
703  uint32_t xid);
704 
718  uint32_t xid);
719 
737  xcb_generic_error_t **e);
738 
739 int
740 xcb_res_query_client_ids_sizeof (const void *_buffer);
741 
752  uint32_t num_specs,
753  const xcb_res_client_id_spec_t *specs);
754 
768  uint32_t num_specs,
769  const xcb_res_client_id_spec_t *specs);
770 
771 int
772 xcb_res_query_client_ids_ids_length (const xcb_res_query_client_ids_reply_t *R);
773 
775 xcb_res_query_client_ids_ids_iterator (const xcb_res_query_client_ids_reply_t *R);
776 
794  xcb_generic_error_t **e);
795 
796 int
797 xcb_res_query_resource_bytes_sizeof (const void *_buffer);
798 
809  uint32_t client,
810  uint32_t num_specs,
811  const xcb_res_resource_id_spec_t *specs);
812 
826  uint32_t client,
827  uint32_t num_specs,
828  const xcb_res_resource_id_spec_t *specs);
829 
830 int
831 xcb_res_query_resource_bytes_sizes_length (const xcb_res_query_resource_bytes_reply_t *R);
832 
834 xcb_res_query_resource_bytes_sizes_iterator (const xcb_res_query_resource_bytes_reply_t *R);
835 
853  xcb_generic_error_t **e);
854 
855 
856 #ifdef __cplusplus
857 }
858 #endif
859 
860 #endif
861 
struct xcb_res_query_client_resources_reply_t xcb_res_query_client_resources_reply_t
xcb_res_query_client_resources_reply_t
xcb_res_type_iterator_t
Definition: res.h:55
Generic error.
Definition: xcb.h:170
struct xcb_res_query_resource_bytes_reply_t xcb_res_query_resource_bytes_reply_t
xcb_res_query_resource_bytes_reply_t
struct xcb_res_resource_size_value_iterator_t xcb_res_resource_size_value_iterator_t
xcb_res_resource_size_value_iterator_t
struct xcb_res_query_client_pixmap_bytes_request_t xcb_res_query_client_pixmap_bytes_request_t
xcb_res_query_client_pixmap_bytes_request_t
xcb_res_query_client_ids_request_t
Definition: res.h:294
xcb_res_query_client_ids_reply_t
Definition: res.h:304
xcb_generic_iterator_t xcb_res_client_id_value_end(xcb_res_client_id_value_iterator_t i)
Definition: res.c:140
struct xcb_res_client_id_spec_t xcb_res_client_id_spec_t
xcb_res_client_id_spec_t
struct xcb_res_query_client_ids_cookie_t xcb_res_query_client_ids_cookie_t
xcb_res_query_client_ids_cookie_t
xcb_res_query_resource_bytes_cookie_t xcb_res_query_resource_bytes(xcb_connection_t *c, uint32_t client, uint32_t num_specs, const xcb_res_resource_id_spec_t *specs)
Definition: res.c:760
xcb_generic_iterator_t xcb_res_resource_size_spec_end(xcb_res_resource_size_spec_iterator_t i)
Definition: res.c:178
xcb_res_query_resource_bytes_reply_t * xcb_res_query_resource_bytes_reply(xcb_connection_t *c, xcb_res_query_resource_bytes_cookie_t cookie, xcb_generic_error_t **e)
Definition: res.c:844
struct xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources_cookie_t
xcb_res_query_client_resources_cookie_t
struct xcb_res_client_id_value_t xcb_res_client_id_value_t
xcb_res_client_id_value_t
xcb_res_client_id_value_t
Definition: res.h:86
xcb_res_query_version_request_t
Definition: res.h:166
xcb_res_resource_size_spec_iterator_t
Definition: res.h:130
Definition: xcbext.h:39
xcb_res_client_t
Definition: res.h:30
xcb_res_resource_size_value_iterator_t
Definition: res.h:147
xcb_generic_iterator_t xcb_res_client_end(xcb_res_client_iterator_t i)
Definition: res.c:30
xcb_res_query_client_pixmap_bytes_reply_t
Definition: res.h:272
struct xcb_res_query_version_request_t xcb_res_query_version_request_t
xcb_res_query_version_request_t
xcb_res_query_client_pixmap_bytes_reply_t * xcb_res_query_client_pixmap_bytes_reply(xcb_connection_t *c, xcb_res_query_client_pixmap_bytes_cookie_t cookie, xcb_generic_error_t **e)
Definition: res.c:602
Generic iterator.
Definition: xcb.h:114
xcb_res_query_client_ids_cookie_t xcb_res_query_client_ids_unchecked(xcb_connection_t *c, uint32_t num_specs, const xcb_res_client_id_spec_t *specs)
Definition: res.c:673
xcb_res_resource_id_spec_t
Definition: res.h:103
xcb_res_query_version_reply_t
Definition: res.h:177
struct xcb_res_query_clients_cookie_t xcb_res_query_clients_cookie_t
xcb_res_query_clients_cookie_t
xcb_res_query_clients_request_t
Definition: res.h:199
struct xcb_res_resource_id_spec_t xcb_res_resource_id_spec_t
xcb_res_resource_id_spec_t
struct xcb_res_query_resource_bytes_cookie_t xcb_res_query_resource_bytes_cookie_t
xcb_res_query_resource_bytes_cookie_t
xcb_res_query_resource_bytes_reply_t
Definition: res.h:337
struct xcb_res_client_t xcb_res_client_t
xcb_res_client_t
struct xcb_res_query_resource_bytes_request_t xcb_res_query_resource_bytes_request_t
xcb_res_query_resource_bytes_request_t
xcb_generic_iterator_t xcb_res_resource_id_spec_end(xcb_res_resource_id_spec_iterator_t i)
Definition: res.c:160
xcb_res_query_client_resources_reply_t * xcb_res_query_client_resources_reply(xcb_connection_t *c, xcb_res_query_client_resources_cookie_t cookie, xcb_generic_error_t **e)
Definition: res.c:542
xcb_res_query_client_pixmap_bytes_request_t
Definition: res.h:262
void xcb_res_client_next(xcb_res_client_iterator_t *i)
Definition: res.c:22
struct xcb_res_type_t xcb_res_type_t
xcb_res_type_t
struct xcb_res_query_client_ids_reply_t xcb_res_query_client_ids_reply_t
xcb_res_query_client_ids_reply_t
xcb_res_resource_size_spec_t
Definition: res.h:120
struct xcb_res_query_client_resources_request_t xcb_res_query_client_resources_request_t
xcb_res_query_client_resources_request_t
xcb_res_query_clients_reply_t
Definition: res.h:208
struct xcb_res_resource_id_spec_iterator_t xcb_res_resource_id_spec_iterator_t
xcb_res_resource_id_spec_iterator_t
xcb_res_query_version_cookie_t xcb_res_query_version(xcb_connection_t *c, uint8_t client_major, uint8_t client_minor)
Definition: res.c:264
xcb_res_query_client_resources_request_t
Definition: res.h:230
struct xcb_res_client_id_value_iterator_t xcb_res_client_id_value_iterator_t
xcb_res_client_id_value_iterator_t
xcb_res_client_iterator_t
Definition: res.h:38
struct xcb_res_resource_size_value_t xcb_res_resource_size_value_t
xcb_res_resource_size_value_t
xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes(xcb_connection_t *c, uint32_t xid)
Definition: res.c:550
xcb_res_query_client_ids_cookie_t xcb_res_query_client_ids(xcb_connection_t *c, uint32_t num_specs, const xcb_res_client_id_spec_t *specs)
Definition: res.c:641
xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources_unchecked(xcb_connection_t *c, uint32_t xid)
Definition: res.c:494
struct xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes_cookie_t
xcb_res_query_client_pixmap_bytes_cookie_t
struct xcb_res_client_iterator_t xcb_res_client_iterator_t
xcb_res_client_iterator_t
xcb_generic_iterator_t xcb_res_client_id_spec_end(xcb_res_client_id_spec_iterator_t i)
Definition: res.c:66
xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources(xcb_connection_t *c, uint32_t xid)
Definition: res.c:468
void xcb_res_resource_size_value_next(xcb_res_resource_size_value_iterator_t *i)
Definition: res.c:241
xcb_res_query_resource_bytes_cookie_t xcb_res_query_resource_bytes_unchecked(xcb_connection_t *c, uint32_t client, uint32_t num_specs, const xcb_res_resource_id_spec_t *specs)
Definition: res.c:794
xcb_res_client_id_spec_iterator_t
Definition: res.h:77
struct xcb_res_query_client_ids_request_t xcb_res_query_client_ids_request_t
xcb_res_query_client_ids_request_t
struct xcb_res_resource_size_spec_iterator_t xcb_res_resource_size_spec_iterator_t
xcb_res_resource_size_spec_iterator_t
xcb_res_query_resource_bytes_request_t
Definition: res.h:326
struct xcb_res_query_client_pixmap_bytes_reply_t xcb_res_query_client_pixmap_bytes_reply_t
xcb_res_query_client_pixmap_bytes_reply_t
void xcb_res_resource_size_spec_next(xcb_res_resource_size_spec_iterator_t *i)
Definition: res.c:170
struct xcb_res_client_id_spec_iterator_t xcb_res_client_id_spec_iterator_t
xcb_res_client_id_spec_iterator_t
xcb_res_query_version_reply_t * xcb_res_query_version_reply(xcb_connection_t *c, xcb_res_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: res.c:320
xcb_res_resource_size_value_t
Definition: res.h:139
xcb_res_query_version_cookie_t xcb_res_query_version_unchecked(xcb_connection_t *c, uint8_t client_major, uint8_t client_minor)
Definition: res.c:292
xcb_res_query_clients_cookie_t xcb_res_query_clients_unchecked(xcb_connection_t *c)
Definition: res.c:383
xcb_generic_iterator_t xcb_res_type_end(xcb_res_type_iterator_t i)
Definition: res.c:48
void xcb_res_client_id_value_next(xcb_res_client_id_value_iterator_t *i)
Definition: res.c:129
struct xcb_res_query_version_reply_t xcb_res_query_version_reply_t
xcb_res_query_version_reply_t
void xcb_res_client_id_spec_next(xcb_res_client_id_spec_iterator_t *i)
Definition: res.c:58
xcb_res_client_id_spec_t
Definition: res.h:69
xcb_res_type_t
Definition: res.h:47
void xcb_res_type_next(xcb_res_type_iterator_t *i)
Definition: res.c:40
struct xcb_res_type_iterator_t xcb_res_type_iterator_t
xcb_res_type_iterator_t
xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes_unchecked(xcb_connection_t *c, uint32_t xid)
Definition: res.c:576
struct xcb_res_query_version_cookie_t xcb_res_query_version_cookie_t
xcb_res_query_version_cookie_t
xcb_res_client_id_value_iterator_t
Definition: res.h:94
Definition: xcbint.h:198
xcb_res_query_client_resources_reply_t
Definition: res.h:240
xcb_res_query_client_ids_reply_t * xcb_res_query_client_ids_reply(xcb_connection_t *c, xcb_res_query_client_ids_cookie_t cookie, xcb_generic_error_t **e)
Definition: res.c:721
xcb_res_query_clients_cookie_t xcb_res_query_clients(xcb_connection_t *c)
Definition: res.c:359
xcb_res_query_clients_reply_t * xcb_res_query_clients_reply(xcb_connection_t *c, xcb_res_query_clients_cookie_t cookie, xcb_generic_error_t **e)
Definition: res.c:429
struct xcb_res_query_clients_reply_t xcb_res_query_clients_reply_t
xcb_res_query_clients_reply_t
xcb_generic_iterator_t xcb_res_resource_size_value_end(xcb_res_resource_size_value_iterator_t i)
Definition: res.c:252
xcb_res_resource_id_spec_iterator_t
Definition: res.h:111
struct xcb_res_query_clients_request_t xcb_res_query_clients_request_t
xcb_res_query_clients_request_t
struct xcb_res_resource_size_spec_t xcb_res_resource_size_spec_t
xcb_res_resource_size_spec_t
void xcb_res_resource_id_spec_next(xcb_res_resource_id_spec_iterator_t *i)
Definition: res.c:152