1 /*
2  * This file generated automatically from res.xml by d_client.py.
3  * Edit at your peril.
4  */
5 
6 /**
7  * @defgroup XCB_Res_API XCB Res API
8  * @brief Res XCB Protocol Implementation.
9  * @{
10  **/
11 
12 module xcb.res;
13 
14 import xcb.xcb;
15 import xcb.xproto;
16 
17 extern (C):
18 
19 enum int XCB_RES_MAJOR_VERSION = 1;
20 enum int XCB_RES_MINOR_VERSION = 2;
21 
22 extern (C) __gshared extern xcb_extension_t xcb_res_id;
23 
24 /**
25  * @brief xcb_res_client_t
26  **/
27 struct xcb_res_client_t {
28 	uint resource_base; /**<  */
29 	uint resource_mask; /**<  */
30 }
31 
32 /**
33  * @brief xcb_res_client_iterator_t
34  **/
35 struct xcb_res_client_iterator_t {
36 	xcb_res_client_t* data; /**<  */
37 	int rem; /**<  */
38 	int index; /**<  */
39 }
40 
41 /**
42  * @brief xcb_res_type_t
43  **/
44 struct xcb_res_type_t {
45 	xcb_atom_t resource_type; /**<  */
46 	uint count; /**<  */
47 }
48 
49 /**
50  * @brief xcb_res_type_iterator_t
51  **/
52 struct xcb_res_type_iterator_t {
53 	xcb_res_type_t* data; /**<  */
54 	int rem; /**<  */
55 	int index; /**<  */
56 }
57 
58 enum xcb_res_client_id_mask_t {
59 	XCB_RES_CLIENT_ID_MASK_CLIENT_XID = 1,
60 	XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = 2
61 }
62 
63 alias XCB_RES_CLIENT_ID_MASK_CLIENT_XID = xcb_res_client_id_mask_t.XCB_RES_CLIENT_ID_MASK_CLIENT_XID;
64 alias XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = xcb_res_client_id_mask_t.XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID;
65 
66 /**
67  * @brief xcb_res_client_id_spec_t
68  **/
69 struct xcb_res_client_id_spec_t {
70 	uint client; /**<  */
71 	uint mask; /**<  */
72 }
73 
74 /**
75  * @brief xcb_res_client_id_spec_iterator_t
76  **/
77 struct xcb_res_client_id_spec_iterator_t {
78 	xcb_res_client_id_spec_t* data; /**<  */
79 	int rem; /**<  */
80 	int index; /**<  */
81 }
82 
83 /**
84  * @brief xcb_res_client_id_value_t
85  **/
86 struct xcb_res_client_id_value_t {
87 	xcb_res_client_id_spec_t spec; /**<  */
88 	uint length; /**<  */
89 }
90 
91 /**
92  * @brief xcb_res_client_id_value_iterator_t
93  **/
94 struct xcb_res_client_id_value_iterator_t {
95 	xcb_res_client_id_value_t* data; /**<  */
96 	int rem; /**<  */
97 	int index; /**<  */
98 }
99 
100 /**
101  * @brief xcb_res_resource_id_spec_t
102  **/
103 struct xcb_res_resource_id_spec_t {
104 	uint resource; /**<  */
105 	uint type; /**<  */
106 }
107 
108 /**
109  * @brief xcb_res_resource_id_spec_iterator_t
110  **/
111 struct xcb_res_resource_id_spec_iterator_t {
112 	xcb_res_resource_id_spec_t* data; /**<  */
113 	int rem; /**<  */
114 	int index; /**<  */
115 }
116 
117 /**
118  * @brief xcb_res_resource_size_spec_t
119  **/
120 struct xcb_res_resource_size_spec_t {
121 	xcb_res_resource_id_spec_t spec; /**<  */
122 	uint bytes; /**<  */
123 	uint ref_count; /**<  */
124 	uint use_count; /**<  */
125 }
126 
127 /**
128  * @brief xcb_res_resource_size_spec_iterator_t
129  **/
130 struct xcb_res_resource_size_spec_iterator_t {
131 	xcb_res_resource_size_spec_t* data; /**<  */
132 	int rem; /**<  */
133 	int index; /**<  */
134 }
135 
136 /**
137  * @brief xcb_res_resource_size_value_t
138  **/
139 struct xcb_res_resource_size_value_t {
140 	xcb_res_resource_size_spec_t size; /**<  */
141 	uint num_cross_references; /**<  */
142 }
143 
144 /**
145  * @brief xcb_res_resource_size_value_iterator_t
146  **/
147 struct xcb_res_resource_size_value_iterator_t {
148 	xcb_res_resource_size_value_t* data; /**<  */
149 	int rem; /**<  */
150 	int index; /**<  */
151 }
152 
153 /**
154  * @brief xcb_res_query_version_cookie_t
155  **/
156 struct xcb_res_query_version_cookie_t {
157 	uint sequence; /**<  */
158 }
159 
160 /** Opcode for xcb_res_query_version. */
161 enum XCB_RES_QUERY_VERSION = 0;
162 
163 /**
164  * @brief xcb_res_query_version_request_t
165  **/
166 struct xcb_res_query_version_request_t {
167 	ubyte major_opcode; /**<  */
168 	ubyte minor_opcode; /**<  */
169 	ushort length; /**<  */
170 	ubyte client_major; /**<  */
171 	ubyte client_minor; /**<  */
172 }
173 
174 /**
175  * @brief xcb_res_query_version_reply_t
176  **/
177 struct xcb_res_query_version_reply_t {
178 	ubyte response_type; /**<  */
179 	ubyte pad0; /**<  */
180 	ushort sequence; /**<  */
181 	uint length; /**<  */
182 	ushort server_major; /**<  */
183 	ushort server_minor; /**<  */
184 }
185 
186 /**
187  * @brief xcb_res_query_clients_cookie_t
188  **/
189 struct xcb_res_query_clients_cookie_t {
190 	uint sequence; /**<  */
191 }
192 
193 /** Opcode for xcb_res_query_clients. */
194 enum XCB_RES_QUERY_CLIENTS = 1;
195 
196 /**
197  * @brief xcb_res_query_clients_request_t
198  **/
199 struct xcb_res_query_clients_request_t {
200 	ubyte major_opcode; /**<  */
201 	ubyte minor_opcode; /**<  */
202 	ushort length; /**<  */
203 }
204 
205 /**
206  * @brief xcb_res_query_clients_reply_t
207  **/
208 struct xcb_res_query_clients_reply_t {
209 	ubyte response_type; /**<  */
210 	ubyte pad0; /**<  */
211 	ushort sequence; /**<  */
212 	uint length; /**<  */
213 	uint num_clients; /**<  */
214 	ubyte[20] pad1; /**<  */
215 }
216 
217 /**
218  * @brief xcb_res_query_client_resources_cookie_t
219  **/
220 struct xcb_res_query_client_resources_cookie_t {
221 	uint sequence; /**<  */
222 }
223 
224 /** Opcode for xcb_res_query_client_resources. */
225 enum XCB_RES_QUERY_CLIENT_RESOURCES = 2;
226 
227 /**
228  * @brief xcb_res_query_client_resources_request_t
229  **/
230 struct xcb_res_query_client_resources_request_t {
231 	ubyte major_opcode; /**<  */
232 	ubyte minor_opcode; /**<  */
233 	ushort length; /**<  */
234 	uint xid; /**<  */
235 }
236 
237 /**
238  * @brief xcb_res_query_client_resources_reply_t
239  **/
240 struct xcb_res_query_client_resources_reply_t {
241 	ubyte response_type; /**<  */
242 	ubyte pad0; /**<  */
243 	ushort sequence; /**<  */
244 	uint length; /**<  */
245 	uint num_types; /**<  */
246 	ubyte[20] pad1; /**<  */
247 }
248 
249 /**
250  * @brief xcb_res_query_client_pixmap_bytes_cookie_t
251  **/
252 struct xcb_res_query_client_pixmap_bytes_cookie_t {
253 	uint sequence; /**<  */
254 }
255 
256 /** Opcode for xcb_res_query_client_pixmap_bytes. */
257 enum XCB_RES_QUERY_CLIENT_PIXMAP_BYTES = 3;
258 
259 /**
260  * @brief xcb_res_query_client_pixmap_bytes_request_t
261  **/
262 struct xcb_res_query_client_pixmap_bytes_request_t {
263 	ubyte major_opcode; /**<  */
264 	ubyte minor_opcode; /**<  */
265 	ushort length; /**<  */
266 	uint xid; /**<  */
267 }
268 
269 /**
270  * @brief xcb_res_query_client_pixmap_bytes_reply_t
271  **/
272 struct xcb_res_query_client_pixmap_bytes_reply_t {
273 	ubyte response_type; /**<  */
274 	ubyte pad0; /**<  */
275 	ushort sequence; /**<  */
276 	uint length; /**<  */
277 	uint bytes; /**<  */
278 	uint bytes_overflow; /**<  */
279 }
280 
281 /**
282  * @brief xcb_res_query_client_ids_cookie_t
283  **/
284 struct xcb_res_query_client_ids_cookie_t {
285 	uint sequence; /**<  */
286 }
287 
288 /** Opcode for xcb_res_query_client_ids. */
289 enum XCB_RES_QUERY_CLIENT_IDS = 4;
290 
291 /**
292  * @brief xcb_res_query_client_ids_request_t
293  **/
294 struct xcb_res_query_client_ids_request_t {
295 	ubyte major_opcode; /**<  */
296 	ubyte minor_opcode; /**<  */
297 	ushort length; /**<  */
298 	uint num_specs; /**<  */
299 }
300 
301 /**
302  * @brief xcb_res_query_client_ids_reply_t
303  **/
304 struct xcb_res_query_client_ids_reply_t {
305 	ubyte response_type; /**<  */
306 	ubyte pad0; /**<  */
307 	ushort sequence; /**<  */
308 	uint length; /**<  */
309 	uint num_ids; /**<  */
310 	ubyte[20] pad1; /**<  */
311 }
312 
313 /**
314  * @brief xcb_res_query_resource_bytes_cookie_t
315  **/
316 struct xcb_res_query_resource_bytes_cookie_t {
317 	uint sequence; /**<  */
318 }
319 
320 /** Opcode for xcb_res_query_resource_bytes. */
321 enum XCB_RES_QUERY_RESOURCE_BYTES = 5;
322 
323 /**
324  * @brief xcb_res_query_resource_bytes_request_t
325  **/
326 struct xcb_res_query_resource_bytes_request_t {
327 	ubyte major_opcode; /**<  */
328 	ubyte minor_opcode; /**<  */
329 	ushort length; /**<  */
330 	uint client; /**<  */
331 	uint num_specs; /**<  */
332 }
333 
334 /**
335  * @brief xcb_res_query_resource_bytes_reply_t
336  **/
337 struct xcb_res_query_resource_bytes_reply_t {
338 	ubyte response_type; /**<  */
339 	ubyte pad0; /**<  */
340 	ushort sequence; /**<  */
341 	uint length; /**<  */
342 	uint num_sizes; /**<  */
343 	ubyte[20] pad1; /**<  */
344 }
345 
346 /**
347  * Get the next element of the iterator
348  * @param i Pointer to a xcb_res_client_iterator_t
349  *
350  * Get the next element in the iterator. The member rem is
351  * decreased by one. The member data points to the next
352  * element. The member index is increased by sizeof(xcb_res_client_t)
353  */
354 void xcb_res_client_next(xcb_res_client_iterator_t* i /**< */ );
355 
356 /**
357  * Return the iterator pointing to the last element
358  * @param i An xcb_res_client_iterator_t
359  * @return  The iterator pointing to the last element
360  *
361  * Set the current element in the iterator to the last element.
362  * The member rem is set to 0. The member data points to the
363  * last element.
364  */
365 xcb_generic_iterator_t xcb_res_client_end(xcb_res_client_iterator_t i /**< */ );
366 
367 /**
368  * Get the next element of the iterator
369  * @param i Pointer to a xcb_res_type_iterator_t
370  *
371  * Get the next element in the iterator. The member rem is
372  * decreased by one. The member data points to the next
373  * element. The member index is increased by sizeof(xcb_res_type_t)
374  */
375 void xcb_res_type_next(xcb_res_type_iterator_t* i /**< */ );
376 
377 /**
378  * Return the iterator pointing to the last element
379  * @param i An xcb_res_type_iterator_t
380  * @return  The iterator pointing to the last element
381  *
382  * Set the current element in the iterator to the last element.
383  * The member rem is set to 0. The member data points to the
384  * last element.
385  */
386 xcb_generic_iterator_t xcb_res_type_end(xcb_res_type_iterator_t i /**< */ );
387 
388 /**
389  * Get the next element of the iterator
390  * @param i Pointer to a xcb_res_client_id_spec_iterator_t
391  *
392  * Get the next element in the iterator. The member rem is
393  * decreased by one. The member data points to the next
394  * element. The member index is increased by sizeof(xcb_res_client_id_spec_t)
395  */
396 void xcb_res_client_id_spec_next(xcb_res_client_id_spec_iterator_t* i /**< */ );
397 
398 /**
399  * Return the iterator pointing to the last element
400  * @param i An xcb_res_client_id_spec_iterator_t
401  * @return  The iterator pointing to the last element
402  *
403  * Set the current element in the iterator to the last element.
404  * The member rem is set to 0. The member data points to the
405  * last element.
406  */
407 xcb_generic_iterator_t xcb_res_client_id_spec_end(xcb_res_client_id_spec_iterator_t i /**< */ );
408 
409 int xcb_res_client_id_value_sizeof(const void* _buffer /**< */ );
410 
411 uint* xcb_res_client_id_value_value(const xcb_res_client_id_value_t* R /**< */ );
412 
413 int xcb_res_client_id_value_value_length(const xcb_res_client_id_value_t* R /**< */ );
414 
415 xcb_generic_iterator_t xcb_res_client_id_value_value_end(const xcb_res_client_id_value_t* R /**< */ );
416 
417 /**
418  * Get the next element of the iterator
419  * @param i Pointer to a xcb_res_client_id_value_iterator_t
420  *
421  * Get the next element in the iterator. The member rem is
422  * decreased by one. The member data points to the next
423  * element. The member index is increased by sizeof(xcb_res_client_id_value_t)
424  */
425 void xcb_res_client_id_value_next(xcb_res_client_id_value_iterator_t* i /**< */ );
426 
427 /**
428  * Return the iterator pointing to the last element
429  * @param i An xcb_res_client_id_value_iterator_t
430  * @return  The iterator pointing to the last element
431  *
432  * Set the current element in the iterator to the last element.
433  * The member rem is set to 0. The member data points to the
434  * last element.
435  */
436 xcb_generic_iterator_t xcb_res_client_id_value_end(xcb_res_client_id_value_iterator_t i /**< */ );
437 
438 /**
439  * Get the next element of the iterator
440  * @param i Pointer to a xcb_res_resource_id_spec_iterator_t
441  *
442  * Get the next element in the iterator. The member rem is
443  * decreased by one. The member data points to the next
444  * element. The member index is increased by sizeof(xcb_res_resource_id_spec_t)
445  */
446 void xcb_res_resource_id_spec_next(xcb_res_resource_id_spec_iterator_t* i /**< */ );
447 
448 /**
449  * Return the iterator pointing to the last element
450  * @param i An xcb_res_resource_id_spec_iterator_t
451  * @return  The iterator pointing to the last element
452  *
453  * Set the current element in the iterator to the last element.
454  * The member rem is set to 0. The member data points to the
455  * last element.
456  */
457 xcb_generic_iterator_t xcb_res_resource_id_spec_end(xcb_res_resource_id_spec_iterator_t i /**< */ );
458 
459 /**
460  * Get the next element of the iterator
461  * @param i Pointer to a xcb_res_resource_size_spec_iterator_t
462  *
463  * Get the next element in the iterator. The member rem is
464  * decreased by one. The member data points to the next
465  * element. The member index is increased by sizeof(xcb_res_resource_size_spec_t)
466  */
467 void xcb_res_resource_size_spec_next(xcb_res_resource_size_spec_iterator_t* i /**< */ );
468 
469 /**
470  * Return the iterator pointing to the last element
471  * @param i An xcb_res_resource_size_spec_iterator_t
472  * @return  The iterator pointing to the last element
473  *
474  * Set the current element in the iterator to the last element.
475  * The member rem is set to 0. The member data points to the
476  * last element.
477  */
478 xcb_generic_iterator_t xcb_res_resource_size_spec_end(xcb_res_resource_size_spec_iterator_t i /**< */ );
479 
480 int xcb_res_resource_size_value_sizeof(const void* _buffer /**< */ );
481 
482 xcb_res_resource_size_spec_t* xcb_res_resource_size_value_cross_references(const xcb_res_resource_size_value_t* R /**< */ );
483 
484 int xcb_res_resource_size_value_cross_references_length(const xcb_res_resource_size_value_t* R /**< */ );
485 
486 xcb_res_resource_size_spec_iterator_t xcb_res_resource_size_value_cross_references_iterator(const xcb_res_resource_size_value_t* R /**< */ );
487 
488 /**
489  * Get the next element of the iterator
490  * @param i Pointer to a xcb_res_resource_size_value_iterator_t
491  *
492  * Get the next element in the iterator. The member rem is
493  * decreased by one. The member data points to the next
494  * element. The member index is increased by sizeof(xcb_res_resource_size_value_t)
495  */
496 void xcb_res_resource_size_value_next(xcb_res_resource_size_value_iterator_t* i /**< */ );
497 
498 /**
499  * Return the iterator pointing to the last element
500  * @param i An xcb_res_resource_size_value_iterator_t
501  * @return  The iterator pointing to the last element
502  *
503  * Set the current element in the iterator to the last element.
504  * The member rem is set to 0. The member data points to the
505  * last element.
506  */
507 xcb_generic_iterator_t xcb_res_resource_size_value_end(xcb_res_resource_size_value_iterator_t i /**< */ );
508 
509 /**
510  *
511  * @param c The connection
512  * @return A cookie
513  *
514  * Delivers a request to the X server.
515  *
516  */
517 xcb_res_query_version_cookie_t xcb_res_query_version(xcb_connection_t* c /**< */ , ubyte client_major /**< */ , ubyte client_minor /**< */ );
518 
519 /**
520  *
521  * @param c The connection
522  * @return A cookie
523  *
524  * Delivers a request to the X server.
525  *
526  * This form can be used only if the request will cause
527  * a reply to be generated. Any returned error will be
528  * placed in the event queue.
529  */
530 xcb_res_query_version_cookie_t xcb_res_query_version_unchecked(xcb_connection_t* c /**< */ , ubyte client_major /**< */ , ubyte client_minor /**< */ );
531 
532 /**
533  * Return the reply
534  * @param c      The connection
535  * @param cookie The cookie
536  * @param e      The xcb_generic_error_t supplied
537  *
538  * Returns the reply of the request asked by
539  *
540  * The parameter @p e supplied to this function must be NULL if
541  * xcb_res_query_version_unchecked(). is used.
542  * Otherwise, it stores the error if any.
543  *
544  * The returned value must be freed by the caller using free().
545  */
546 xcb_res_query_version_reply_t* xcb_res_query_version_reply(xcb_connection_t* c /**< */ ,
547 	xcb_res_query_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
548 
549 int xcb_res_query_clients_sizeof(const void* _buffer /**< */ );
550 
551 /**
552  *
553  * @param c The connection
554  * @return A cookie
555  *
556  * Delivers a request to the X server.
557  *
558  */
559 xcb_res_query_clients_cookie_t xcb_res_query_clients(xcb_connection_t* c /**< */ );
560 
561 /**
562  *
563  * @param c The connection
564  * @return A cookie
565  *
566  * Delivers a request to the X server.
567  *
568  * This form can be used only if the request will cause
569  * a reply to be generated. Any returned error will be
570  * placed in the event queue.
571  */
572 xcb_res_query_clients_cookie_t xcb_res_query_clients_unchecked(xcb_connection_t* c /**< */ );
573 
574 xcb_res_client_t* xcb_res_query_clients_clients(const xcb_res_query_clients_reply_t* R /**< */ );
575 
576 int xcb_res_query_clients_clients_length(const xcb_res_query_clients_reply_t* R /**< */ );
577 
578 xcb_res_client_iterator_t xcb_res_query_clients_clients_iterator(const xcb_res_query_clients_reply_t* R /**< */ );
579 
580 /**
581  * Return the reply
582  * @param c      The connection
583  * @param cookie The cookie
584  * @param e      The xcb_generic_error_t supplied
585  *
586  * Returns the reply of the request asked by
587  *
588  * The parameter @p e supplied to this function must be NULL if
589  * xcb_res_query_clients_unchecked(). is used.
590  * Otherwise, it stores the error if any.
591  *
592  * The returned value must be freed by the caller using free().
593  */
594 xcb_res_query_clients_reply_t* xcb_res_query_clients_reply(xcb_connection_t* c /**< */ ,
595 	xcb_res_query_clients_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
596 
597 int xcb_res_query_client_resources_sizeof(const void* _buffer /**< */ );
598 
599 /**
600  *
601  * @param c The connection
602  * @return A cookie
603  *
604  * Delivers a request to the X server.
605  *
606  */
607 xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources(xcb_connection_t* c /**< */ , uint xid /**< */ );
608 
609 /**
610  *
611  * @param c The connection
612  * @return A cookie
613  *
614  * Delivers a request to the X server.
615  *
616  * This form can be used only if the request will cause
617  * a reply to be generated. Any returned error will be
618  * placed in the event queue.
619  */
620 xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources_unchecked(xcb_connection_t* c /**< */ , uint xid /**< */ );
621 
622 xcb_res_type_t* xcb_res_query_client_resources_types(const xcb_res_query_client_resources_reply_t* R /**< */ );
623 
624 int xcb_res_query_client_resources_types_length(const xcb_res_query_client_resources_reply_t* R /**< */ );
625 
626 xcb_res_type_iterator_t xcb_res_query_client_resources_types_iterator(const xcb_res_query_client_resources_reply_t* R /**< */ );
627 
628 /**
629  * Return the reply
630  * @param c      The connection
631  * @param cookie The cookie
632  * @param e      The xcb_generic_error_t supplied
633  *
634  * Returns the reply of the request asked by
635  *
636  * The parameter @p e supplied to this function must be NULL if
637  * xcb_res_query_client_resources_unchecked(). is used.
638  * Otherwise, it stores the error if any.
639  *
640  * The returned value must be freed by the caller using free().
641  */
642 xcb_res_query_client_resources_reply_t* xcb_res_query_client_resources_reply(xcb_connection_t* c /**< */ ,
643 	xcb_res_query_client_resources_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
644 
645 /**
646  *
647  * @param c The connection
648  * @return A cookie
649  *
650  * Delivers a request to the X server.
651  *
652  */
653 xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes(xcb_connection_t* c /**< */ , uint xid /**< */ );
654 
655 /**
656  *
657  * @param c The connection
658  * @return A cookie
659  *
660  * Delivers a request to the X server.
661  *
662  * This form can be used only if the request will cause
663  * a reply to be generated. Any returned error will be
664  * placed in the event queue.
665  */
666 xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes_unchecked(xcb_connection_t* c /**< */ , uint xid /**< */ );
667 
668 /**
669  * Return the reply
670  * @param c      The connection
671  * @param cookie The cookie
672  * @param e      The xcb_generic_error_t supplied
673  *
674  * Returns the reply of the request asked by
675  *
676  * The parameter @p e supplied to this function must be NULL if
677  * xcb_res_query_client_pixmap_bytes_unchecked(). is used.
678  * Otherwise, it stores the error if any.
679  *
680  * The returned value must be freed by the caller using free().
681  */
682 xcb_res_query_client_pixmap_bytes_reply_t* xcb_res_query_client_pixmap_bytes_reply(xcb_connection_t* c /**< */ ,
683 	xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
684 
685 int xcb_res_query_client_ids_sizeof(const void* _buffer /**< */ );
686 
687 /**
688  *
689  * @param c The connection
690  * @return A cookie
691  *
692  * Delivers a request to the X server.
693  *
694  */
695 xcb_res_query_client_ids_cookie_t xcb_res_query_client_ids(xcb_connection_t* c /**< */ , uint num_specs /**< */ ,
696 	const xcb_res_client_id_spec_t* specs /**< */ );
697 
698 /**
699  *
700  * @param c The connection
701  * @return A cookie
702  *
703  * Delivers a request to the X server.
704  *
705  * This form can be used only if the request will cause
706  * a reply to be generated. Any returned error will be
707  * placed in the event queue.
708  */
709 xcb_res_query_client_ids_cookie_t xcb_res_query_client_ids_unchecked(xcb_connection_t* c /**< */ , uint num_specs /**< */ ,
710 	const xcb_res_client_id_spec_t* specs /**< */ );
711 
712 int xcb_res_query_client_ids_ids_length(const xcb_res_query_client_ids_reply_t* R /**< */ );
713 
714 xcb_res_client_id_value_iterator_t xcb_res_query_client_ids_ids_iterator(const xcb_res_query_client_ids_reply_t* R /**< */ );
715 
716 /**
717  * Return the reply
718  * @param c      The connection
719  * @param cookie The cookie
720  * @param e      The xcb_generic_error_t supplied
721  *
722  * Returns the reply of the request asked by
723  *
724  * The parameter @p e supplied to this function must be NULL if
725  * xcb_res_query_client_ids_unchecked(). is used.
726  * Otherwise, it stores the error if any.
727  *
728  * The returned value must be freed by the caller using free().
729  */
730 xcb_res_query_client_ids_reply_t* xcb_res_query_client_ids_reply(xcb_connection_t* c /**< */ ,
731 	xcb_res_query_client_ids_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
732 
733 int xcb_res_query_resource_bytes_sizeof(const void* _buffer /**< */ );
734 
735 /**
736  *
737  * @param c The connection
738  * @return A cookie
739  *
740  * Delivers a request to the X server.
741  *
742  */
743 xcb_res_query_resource_bytes_cookie_t xcb_res_query_resource_bytes(xcb_connection_t* c /**< */ , uint client /**< */ , uint num_specs /**< */ ,
744 	const xcb_res_resource_id_spec_t* specs /**< */ );
745 
746 /**
747  *
748  * @param c The connection
749  * @return A cookie
750  *
751  * Delivers a request to the X server.
752  *
753  * This form can be used only if the request will cause
754  * a reply to be generated. Any returned error will be
755  * placed in the event queue.
756  */
757 xcb_res_query_resource_bytes_cookie_t xcb_res_query_resource_bytes_unchecked(xcb_connection_t* c /**< */ , uint client /**< */ ,
758 	uint num_specs /**< */ , const xcb_res_resource_id_spec_t* specs /**< */ );
759 
760 int xcb_res_query_resource_bytes_sizes_length(const xcb_res_query_resource_bytes_reply_t* R /**< */ );
761 
762 xcb_res_resource_size_value_iterator_t xcb_res_query_resource_bytes_sizes_iterator(const xcb_res_query_resource_bytes_reply_t* R /**< */ );
763 
764 /**
765  * Return the reply
766  * @param c      The connection
767  * @param cookie The cookie
768  * @param e      The xcb_generic_error_t supplied
769  *
770  * Returns the reply of the request asked by
771  *
772  * The parameter @p e supplied to this function must be NULL if
773  * xcb_res_query_resource_bytes_unchecked(). is used.
774  * Otherwise, it stores the error if any.
775  *
776  * The returned value must be freed by the caller using free().
777  */
778 xcb_res_query_resource_bytes_reply_t* xcb_res_query_resource_bytes_reply(xcb_connection_t* c /**< */ ,
779 	xcb_res_query_resource_bytes_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ );
780 
781 /**
782  * @}
783  */