1 /*
2  * This file generated automatically from res.xml by c-client.xsl using XSLT.
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 
13 module std.c.linux.X11.xcb.res;
14 
15 import std.c.linux.X11.xcb.xcb;
16 
17 const int XCB_RES_MAJOR_VERSION =1;
18 const int XCB_RES_MINOR_VERSION =0;
19   
20 extern(C) extern xcb_extension_t xcb_res_id;
21 
22 /**
23  * @brief xcb_res_client_t
24  **/
25 struct xcb_res_client_t {
26     uint resource_base; /**<  */
27     uint resource_mask; /**<  */
28 } ;
29 
30 /**
31  * @brief xcb_res_client_iterator_t
32  **/
33 struct xcb_res_client_iterator_t {
34     xcb_res_client_t *data; /**<  */
35     int               rem; /**<  */
36     int               index; /**<  */
37 } ;
38 
39 /**
40  * @brief xcb_res_type_t
41  **/
42 struct xcb_res_type_t {
43     uint resource_type; /**<  */
44     uint count; /**<  */
45 } ;
46 
47 /**
48  * @brief xcb_res_type_iterator_t
49  **/
50 struct xcb_res_type_iterator_t {
51     xcb_res_type_t *data; /**<  */
52     int             rem; /**<  */
53     int             index; /**<  */
54 } ;
55 
56 /**
57  * @brief xcb_res_query_version_cookie_t
58  **/
59 struct xcb_res_query_version_cookie_t {
60     uint sequence; /**<  */
61 } ;
62 
63 /** Opcode for xcb_res_query_version. */
64 const uint XCB_RES_QUERY_VERSION = 0;
65 
66 /**
67  * @brief xcb_res_query_version_request_t
68  **/
69 struct xcb_res_query_version_request_t {
70     ubyte  major_opcode; /**<  */
71     ubyte  minor_opcode; /**<  */
72     ushort length; /**<  */
73     ubyte  client_major; /**<  */
74     ubyte  client_minor; /**<  */
75 } ;
76 
77 /**
78  * @brief xcb_res_query_version_reply_t
79  **/
80 struct xcb_res_query_version_reply_t {
81     ubyte  response_type; /**<  */
82     ubyte  pad0; /**<  */
83     ushort sequence; /**<  */
84     uint   length; /**<  */
85     ushort server_major; /**<  */
86     ushort server_minor; /**<  */
87 } ;
88 
89 /**
90  * @brief xcb_res_query_clients_cookie_t
91  **/
92 struct xcb_res_query_clients_cookie_t {
93     uint sequence; /**<  */
94 } ;
95 
96 /** Opcode for xcb_res_query_clients. */
97 const uint XCB_RES_QUERY_CLIENTS = 1;
98 
99 /**
100  * @brief xcb_res_query_clients_request_t
101  **/
102 struct xcb_res_query_clients_request_t {
103     ubyte  major_opcode; /**<  */
104     ubyte  minor_opcode; /**<  */
105     ushort length; /**<  */
106 } ;
107 
108 /**
109  * @brief xcb_res_query_clients_reply_t
110  **/
111 struct xcb_res_query_clients_reply_t {
112     ubyte  response_type; /**<  */
113     ubyte  pad0; /**<  */
114     ushort sequence; /**<  */
115     uint   length; /**<  */
116     uint   num_clients; /**<  */
117     ubyte  pad1[20]; /**<  */
118 } ;
119 
120 /**
121  * @brief xcb_res_query_client_resources_cookie_t
122  **/
123 struct xcb_res_query_client_resources_cookie_t {
124     uint sequence; /**<  */
125 } ;
126 
127 /** Opcode for xcb_res_query_client_resources. */
128 const uint XCB_RES_QUERY_CLIENT_RESOURCES = 2;
129 
130 /**
131  * @brief xcb_res_query_client_resources_request_t
132  **/
133 struct xcb_res_query_client_resources_request_t {
134     ubyte  major_opcode; /**<  */
135     ubyte  minor_opcode; /**<  */
136     ushort length; /**<  */
137     uint   xid; /**<  */
138 } ;
139 
140 /**
141  * @brief xcb_res_query_client_resources_reply_t
142  **/
143 struct xcb_res_query_client_resources_reply_t {
144     ubyte  response_type; /**<  */
145     ubyte  pad0; /**<  */
146     ushort sequence; /**<  */
147     uint   length; /**<  */
148     uint   num_types; /**<  */
149     ubyte  pad1[20]; /**<  */
150 } ;
151 
152 /**
153  * @brief xcb_res_query_client_pixmap_bytes_cookie_t
154  **/
155 struct xcb_res_query_client_pixmap_bytes_cookie_t {
156     uint sequence; /**<  */
157 } ;
158 
159 /** Opcode for xcb_res_query_client_pixmap_bytes. */
160 const uint XCB_RES_QUERY_CLIENT_PIXMAP_BYTES = 3;
161 
162 /**
163  * @brief xcb_res_query_client_pixmap_bytes_request_t
164  **/
165 struct xcb_res_query_client_pixmap_bytes_request_t {
166     ubyte  major_opcode; /**<  */
167     ubyte  minor_opcode; /**<  */
168     ushort length; /**<  */
169     uint   xid; /**<  */
170 } ;
171 
172 /**
173  * @brief xcb_res_query_client_pixmap_bytes_reply_t
174  **/
175 struct xcb_res_query_client_pixmap_bytes_reply_t {
176     ubyte  response_type; /**<  */
177     ubyte  pad0; /**<  */
178     ushort sequence; /**<  */
179     uint   length; /**<  */
180     uint   bytes; /**<  */
181     uint   bytes_overflow; /**<  */
182 } ;
183 
184 
185 /*****************************************************************************
186  **
187  ** void xcb_res_client_next
188  ** 
189  ** @param xcb_res_client_iterator_t *i
190  ** @returns void
191  **
192  *****************************************************************************/
193  
194 extern(C) void
195 xcb_res_client_next (xcb_res_client_iterator_t *i  /**< */);
196 
197 
198 /*****************************************************************************
199  **
200  ** xcb_generic_iterator_t xcb_res_client_end
201  ** 
202  ** @param xcb_res_client_iterator_t i
203  ** @returns xcb_generic_iterator_t
204  **
205  *****************************************************************************/
206  
207 extern(C) xcb_generic_iterator_t
208 xcb_res_client_end (xcb_res_client_iterator_t i  /**< */);
209 
210 
211 /*****************************************************************************
212  **
213  ** void xcb_res_type_next
214  ** 
215  ** @param xcb_res_type_iterator_t *i
216  ** @returns void
217  **
218  *****************************************************************************/
219  
220 extern(C) void
221 xcb_res_type_next (xcb_res_type_iterator_t *i  /**< */);
222 
223 
224 /*****************************************************************************
225  **
226  ** xcb_generic_iterator_t xcb_res_type_end
227  ** 
228  ** @param xcb_res_type_iterator_t i
229  ** @returns xcb_generic_iterator_t
230  **
231  *****************************************************************************/
232  
233 extern(C) xcb_generic_iterator_t
234 xcb_res_type_end (xcb_res_type_iterator_t i  /**< */);
235 
236 
237 /*****************************************************************************
238  **
239  ** xcb_res_query_version_cookie_t xcb_res_query_version
240  ** 
241  ** @param xcb_connection_t *c
242  ** @param ubyte             client_major
243  ** @param ubyte             client_minor
244  ** @returns xcb_res_query_version_cookie_t
245  **
246  *****************************************************************************/
247  
248 extern(C) xcb_res_query_version_cookie_t
249 xcb_res_query_version (xcb_connection_t *c  /**< */,
250                        ubyte             client_major  /**< */,
251                        ubyte             client_minor  /**< */);
252 
253 
254 /*****************************************************************************
255  **
256  ** xcb_res_query_version_cookie_t xcb_res_query_version_unchecked
257  ** 
258  ** @param xcb_connection_t *c
259  ** @param ubyte             client_major
260  ** @param ubyte             client_minor
261  ** @returns xcb_res_query_version_cookie_t
262  **
263  *****************************************************************************/
264  
265 extern(C) xcb_res_query_version_cookie_t
266 xcb_res_query_version_unchecked (xcb_connection_t *c  /**< */,
267                                  ubyte             client_major  /**< */,
268                                  ubyte             client_minor  /**< */);
269 
270 
271 /*****************************************************************************
272  **
273  ** xcb_res_query_version_reply_t * xcb_res_query_version_reply
274  ** 
275  ** @param xcb_connection_t                *c
276  ** @param xcb_res_query_version_cookie_t   cookie
277  ** @param xcb_generic_error_t            **e
278  ** @returns xcb_res_query_version_reply_t *
279  **
280  *****************************************************************************/
281  
282 extern(C) xcb_res_query_version_reply_t *
283 xcb_res_query_version_reply (xcb_connection_t                *c  /**< */,
284                              xcb_res_query_version_cookie_t   cookie  /**< */,
285                              xcb_generic_error_t            **e  /**< */);
286 
287 
288 /*****************************************************************************
289  **
290  ** xcb_res_query_clients_cookie_t xcb_res_query_clients
291  ** 
292  ** @param xcb_connection_t *c
293  ** @returns xcb_res_query_clients_cookie_t
294  **
295  *****************************************************************************/
296  
297 extern(C) xcb_res_query_clients_cookie_t
298 xcb_res_query_clients (xcb_connection_t *c  /**< */);
299 
300 
301 /*****************************************************************************
302  **
303  ** xcb_res_query_clients_cookie_t xcb_res_query_clients_unchecked
304  ** 
305  ** @param xcb_connection_t *c
306  ** @returns xcb_res_query_clients_cookie_t
307  **
308  *****************************************************************************/
309  
310 extern(C) xcb_res_query_clients_cookie_t
311 xcb_res_query_clients_unchecked (xcb_connection_t *c  /**< */);
312 
313 
314 /*****************************************************************************
315  **
316  ** xcb_res_client_t * xcb_res_query_clients_clients
317  ** 
318  ** @param /+const+/ xcb_res_query_clients_reply_t *R
319  ** @returns xcb_res_client_t *
320  **
321  *****************************************************************************/
322  
323 extern(C) xcb_res_client_t *
324 xcb_res_query_clients_clients (/+const+/ xcb_res_query_clients_reply_t *R  /**< */);
325 
326 
327 /*****************************************************************************
328  **
329  ** int xcb_res_query_clients_clients_length
330  ** 
331  ** @param /+const+/ xcb_res_query_clients_reply_t *R
332  ** @returns int
333  **
334  *****************************************************************************/
335  
336 extern(C) int
337 xcb_res_query_clients_clients_length (/+const+/ xcb_res_query_clients_reply_t *R  /**< */);
338 
339 
340 /*****************************************************************************
341  **
342  ** xcb_res_client_iterator_t xcb_res_query_clients_clients_iterator
343  ** 
344  ** @param /+const+/ xcb_res_query_clients_reply_t *R
345  ** @returns xcb_res_client_iterator_t
346  **
347  *****************************************************************************/
348  
349 extern(C) xcb_res_client_iterator_t
350 xcb_res_query_clients_clients_iterator (/+const+/ xcb_res_query_clients_reply_t *R  /**< */);
351 
352 
353 /*****************************************************************************
354  **
355  ** xcb_res_query_clients_reply_t * xcb_res_query_clients_reply
356  ** 
357  ** @param xcb_connection_t                *c
358  ** @param xcb_res_query_clients_cookie_t   cookie
359  ** @param xcb_generic_error_t            **e
360  ** @returns xcb_res_query_clients_reply_t *
361  **
362  *****************************************************************************/
363  
364 extern(C) xcb_res_query_clients_reply_t *
365 xcb_res_query_clients_reply (xcb_connection_t                *c  /**< */,
366                              xcb_res_query_clients_cookie_t   cookie  /**< */,
367                              xcb_generic_error_t            **e  /**< */);
368 
369 
370 /*****************************************************************************
371  **
372  ** xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources
373  ** 
374  ** @param xcb_connection_t *c
375  ** @param uint              xid
376  ** @returns xcb_res_query_client_resources_cookie_t
377  **
378  *****************************************************************************/
379  
380 extern(C) xcb_res_query_client_resources_cookie_t
381 xcb_res_query_client_resources (xcb_connection_t *c  /**< */,
382                                 uint              xid  /**< */);
383 
384 
385 /*****************************************************************************
386  **
387  ** xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources_unchecked
388  ** 
389  ** @param xcb_connection_t *c
390  ** @param uint              xid
391  ** @returns xcb_res_query_client_resources_cookie_t
392  **
393  *****************************************************************************/
394  
395 extern(C) xcb_res_query_client_resources_cookie_t
396 xcb_res_query_client_resources_unchecked (xcb_connection_t *c  /**< */,
397                                           uint              xid  /**< */);
398 
399 
400 /*****************************************************************************
401  **
402  ** xcb_res_type_t * xcb_res_query_client_resources_types
403  ** 
404  ** @param /+const+/ xcb_res_query_client_resources_reply_t *R
405  ** @returns xcb_res_type_t *
406  **
407  *****************************************************************************/
408  
409 extern(C) xcb_res_type_t *
410 xcb_res_query_client_resources_types (/+const+/ xcb_res_query_client_resources_reply_t *R  /**< */);
411 
412 
413 /*****************************************************************************
414  **
415  ** int xcb_res_query_client_resources_types_length
416  ** 
417  ** @param /+const+/ xcb_res_query_client_resources_reply_t *R
418  ** @returns int
419  **
420  *****************************************************************************/
421  
422 extern(C) int
423 xcb_res_query_client_resources_types_length (/+const+/ xcb_res_query_client_resources_reply_t *R  /**< */);
424 
425 
426 /*****************************************************************************
427  **
428  ** xcb_res_type_iterator_t xcb_res_query_client_resources_types_iterator
429  ** 
430  ** @param /+const+/ xcb_res_query_client_resources_reply_t *R
431  ** @returns xcb_res_type_iterator_t
432  **
433  *****************************************************************************/
434  
435 extern(C) xcb_res_type_iterator_t
436 xcb_res_query_client_resources_types_iterator (/+const+/ xcb_res_query_client_resources_reply_t *R  /**< */);
437 
438 
439 /*****************************************************************************
440  **
441  ** xcb_res_query_client_resources_reply_t * xcb_res_query_client_resources_reply
442  ** 
443  ** @param xcb_connection_t                         *c
444  ** @param xcb_res_query_client_resources_cookie_t   cookie
445  ** @param xcb_generic_error_t                     **e
446  ** @returns xcb_res_query_client_resources_reply_t *
447  **
448  *****************************************************************************/
449  
450 extern(C) xcb_res_query_client_resources_reply_t *
451 xcb_res_query_client_resources_reply (xcb_connection_t                         *c  /**< */,
452                                       xcb_res_query_client_resources_cookie_t   cookie  /**< */,
453                                       xcb_generic_error_t                     **e  /**< */);
454 
455 
456 /*****************************************************************************
457  **
458  ** xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes
459  ** 
460  ** @param xcb_connection_t *c
461  ** @param uint              xid
462  ** @returns xcb_res_query_client_pixmap_bytes_cookie_t
463  **
464  *****************************************************************************/
465  
466 extern(C) xcb_res_query_client_pixmap_bytes_cookie_t
467 xcb_res_query_client_pixmap_bytes (xcb_connection_t *c  /**< */,
468                                    uint              xid  /**< */);
469 
470 
471 /*****************************************************************************
472  **
473  ** xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes_unchecked
474  ** 
475  ** @param xcb_connection_t *c
476  ** @param uint              xid
477  ** @returns xcb_res_query_client_pixmap_bytes_cookie_t
478  **
479  *****************************************************************************/
480  
481 extern(C) xcb_res_query_client_pixmap_bytes_cookie_t
482 xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c  /**< */,
483                                              uint              xid  /**< */);
484 
485 
486 /*****************************************************************************
487  **
488  ** xcb_res_query_client_pixmap_bytes_reply_t * xcb_res_query_client_pixmap_bytes_reply
489  ** 
490  ** @param xcb_connection_t                            *c
491  ** @param xcb_res_query_client_pixmap_bytes_cookie_t   cookie
492  ** @param xcb_generic_error_t                        **e
493  ** @returns xcb_res_query_client_pixmap_bytes_reply_t *
494  **
495  *****************************************************************************/
496  
497 extern(C) xcb_res_query_client_pixmap_bytes_reply_t *
498 xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t                            *c  /**< */,
499                                          xcb_res_query_client_pixmap_bytes_cookie_t   cookie  /**< */,
500                                          xcb_generic_error_t                        **e  /**< */);
501 
502 
503 
504 /**
505  * @}
506  */