Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:40

0001 /*
0002  * This file generated automatically from res.xml by c_client.py.
0003  * Edit at your peril.
0004  */
0005 
0006 /**
0007  * @defgroup XCB_Res_API XCB Res API
0008  * @brief Res XCB Protocol Implementation.
0009  * @{
0010  **/
0011 
0012 #ifndef __RES_H
0013 #define __RES_H
0014 
0015 #include "xcb.h"
0016 #include "xproto.h"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 #define XCB_RES_MAJOR_VERSION 1
0023 #define XCB_RES_MINOR_VERSION 2
0024 
0025 extern xcb_extension_t xcb_res_id;
0026 
0027 /**
0028  * @brief xcb_res_client_t
0029  **/
0030 typedef struct xcb_res_client_t {
0031     uint32_t resource_base;
0032     uint32_t resource_mask;
0033 } xcb_res_client_t;
0034 
0035 /**
0036  * @brief xcb_res_client_iterator_t
0037  **/
0038 typedef struct xcb_res_client_iterator_t {
0039     xcb_res_client_t *data;
0040     int               rem;
0041     int               index;
0042 } xcb_res_client_iterator_t;
0043 
0044 /**
0045  * @brief xcb_res_type_t
0046  **/
0047 typedef struct xcb_res_type_t {
0048     xcb_atom_t resource_type;
0049     uint32_t   count;
0050 } xcb_res_type_t;
0051 
0052 /**
0053  * @brief xcb_res_type_iterator_t
0054  **/
0055 typedef struct xcb_res_type_iterator_t {
0056     xcb_res_type_t *data;
0057     int             rem;
0058     int             index;
0059 } xcb_res_type_iterator_t;
0060 
0061 typedef enum xcb_res_client_id_mask_t {
0062     XCB_RES_CLIENT_ID_MASK_CLIENT_XID = 1,
0063     XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = 2
0064 } xcb_res_client_id_mask_t;
0065 
0066 /**
0067  * @brief xcb_res_client_id_spec_t
0068  **/
0069 typedef struct xcb_res_client_id_spec_t {
0070     uint32_t client;
0071     uint32_t mask;
0072 } xcb_res_client_id_spec_t;
0073 
0074 /**
0075  * @brief xcb_res_client_id_spec_iterator_t
0076  **/
0077 typedef struct xcb_res_client_id_spec_iterator_t {
0078     xcb_res_client_id_spec_t *data;
0079     int                       rem;
0080     int                       index;
0081 } xcb_res_client_id_spec_iterator_t;
0082 
0083 /**
0084  * @brief xcb_res_client_id_value_t
0085  **/
0086 typedef struct xcb_res_client_id_value_t {
0087     xcb_res_client_id_spec_t spec;
0088     uint32_t                 length;
0089 } xcb_res_client_id_value_t;
0090 
0091 /**
0092  * @brief xcb_res_client_id_value_iterator_t
0093  **/
0094 typedef struct xcb_res_client_id_value_iterator_t {
0095     xcb_res_client_id_value_t *data;
0096     int                        rem;
0097     int                        index;
0098 } xcb_res_client_id_value_iterator_t;
0099 
0100 /**
0101  * @brief xcb_res_resource_id_spec_t
0102  **/
0103 typedef struct xcb_res_resource_id_spec_t {
0104     uint32_t resource;
0105     uint32_t type;
0106 } xcb_res_resource_id_spec_t;
0107 
0108 /**
0109  * @brief xcb_res_resource_id_spec_iterator_t
0110  **/
0111 typedef struct xcb_res_resource_id_spec_iterator_t {
0112     xcb_res_resource_id_spec_t *data;
0113     int                         rem;
0114     int                         index;
0115 } xcb_res_resource_id_spec_iterator_t;
0116 
0117 /**
0118  * @brief xcb_res_resource_size_spec_t
0119  **/
0120 typedef struct xcb_res_resource_size_spec_t {
0121     xcb_res_resource_id_spec_t spec;
0122     uint32_t                   bytes;
0123     uint32_t                   ref_count;
0124     uint32_t                   use_count;
0125 } xcb_res_resource_size_spec_t;
0126 
0127 /**
0128  * @brief xcb_res_resource_size_spec_iterator_t
0129  **/
0130 typedef struct xcb_res_resource_size_spec_iterator_t {
0131     xcb_res_resource_size_spec_t *data;
0132     int                           rem;
0133     int                           index;
0134 } xcb_res_resource_size_spec_iterator_t;
0135 
0136 /**
0137  * @brief xcb_res_resource_size_value_t
0138  **/
0139 typedef struct xcb_res_resource_size_value_t {
0140     xcb_res_resource_size_spec_t size;
0141     uint32_t                     num_cross_references;
0142 } xcb_res_resource_size_value_t;
0143 
0144 /**
0145  * @brief xcb_res_resource_size_value_iterator_t
0146  **/
0147 typedef struct xcb_res_resource_size_value_iterator_t {
0148     xcb_res_resource_size_value_t *data;
0149     int                            rem;
0150     int                            index;
0151 } xcb_res_resource_size_value_iterator_t;
0152 
0153 /**
0154  * @brief xcb_res_query_version_cookie_t
0155  **/
0156 typedef struct xcb_res_query_version_cookie_t {
0157     unsigned int sequence;
0158 } xcb_res_query_version_cookie_t;
0159 
0160 /** Opcode for xcb_res_query_version. */
0161 #define XCB_RES_QUERY_VERSION 0
0162 
0163 /**
0164  * @brief xcb_res_query_version_request_t
0165  **/
0166 typedef struct xcb_res_query_version_request_t {
0167     uint8_t  major_opcode;
0168     uint8_t  minor_opcode;
0169     uint16_t length;
0170     uint8_t  client_major;
0171     uint8_t  client_minor;
0172 } xcb_res_query_version_request_t;
0173 
0174 /**
0175  * @brief xcb_res_query_version_reply_t
0176  **/
0177 typedef struct xcb_res_query_version_reply_t {
0178     uint8_t  response_type;
0179     uint8_t  pad0;
0180     uint16_t sequence;
0181     uint32_t length;
0182     uint16_t server_major;
0183     uint16_t server_minor;
0184 } xcb_res_query_version_reply_t;
0185 
0186 /**
0187  * @brief xcb_res_query_clients_cookie_t
0188  **/
0189 typedef struct xcb_res_query_clients_cookie_t {
0190     unsigned int sequence;
0191 } xcb_res_query_clients_cookie_t;
0192 
0193 /** Opcode for xcb_res_query_clients. */
0194 #define XCB_RES_QUERY_CLIENTS 1
0195 
0196 /**
0197  * @brief xcb_res_query_clients_request_t
0198  **/
0199 typedef struct xcb_res_query_clients_request_t {
0200     uint8_t  major_opcode;
0201     uint8_t  minor_opcode;
0202     uint16_t length;
0203 } xcb_res_query_clients_request_t;
0204 
0205 /**
0206  * @brief xcb_res_query_clients_reply_t
0207  **/
0208 typedef struct xcb_res_query_clients_reply_t {
0209     uint8_t  response_type;
0210     uint8_t  pad0;
0211     uint16_t sequence;
0212     uint32_t length;
0213     uint32_t num_clients;
0214     uint8_t  pad1[20];
0215 } xcb_res_query_clients_reply_t;
0216 
0217 /**
0218  * @brief xcb_res_query_client_resources_cookie_t
0219  **/
0220 typedef struct xcb_res_query_client_resources_cookie_t {
0221     unsigned int sequence;
0222 } xcb_res_query_client_resources_cookie_t;
0223 
0224 /** Opcode for xcb_res_query_client_resources. */
0225 #define XCB_RES_QUERY_CLIENT_RESOURCES 2
0226 
0227 /**
0228  * @brief xcb_res_query_client_resources_request_t
0229  **/
0230 typedef struct xcb_res_query_client_resources_request_t {
0231     uint8_t  major_opcode;
0232     uint8_t  minor_opcode;
0233     uint16_t length;
0234     uint32_t xid;
0235 } xcb_res_query_client_resources_request_t;
0236 
0237 /**
0238  * @brief xcb_res_query_client_resources_reply_t
0239  **/
0240 typedef struct xcb_res_query_client_resources_reply_t {
0241     uint8_t  response_type;
0242     uint8_t  pad0;
0243     uint16_t sequence;
0244     uint32_t length;
0245     uint32_t num_types;
0246     uint8_t  pad1[20];
0247 } xcb_res_query_client_resources_reply_t;
0248 
0249 /**
0250  * @brief xcb_res_query_client_pixmap_bytes_cookie_t
0251  **/
0252 typedef struct xcb_res_query_client_pixmap_bytes_cookie_t {
0253     unsigned int sequence;
0254 } xcb_res_query_client_pixmap_bytes_cookie_t;
0255 
0256 /** Opcode for xcb_res_query_client_pixmap_bytes. */
0257 #define XCB_RES_QUERY_CLIENT_PIXMAP_BYTES 3
0258 
0259 /**
0260  * @brief xcb_res_query_client_pixmap_bytes_request_t
0261  **/
0262 typedef struct xcb_res_query_client_pixmap_bytes_request_t {
0263     uint8_t  major_opcode;
0264     uint8_t  minor_opcode;
0265     uint16_t length;
0266     uint32_t xid;
0267 } xcb_res_query_client_pixmap_bytes_request_t;
0268 
0269 /**
0270  * @brief xcb_res_query_client_pixmap_bytes_reply_t
0271  **/
0272 typedef struct xcb_res_query_client_pixmap_bytes_reply_t {
0273     uint8_t  response_type;
0274     uint8_t  pad0;
0275     uint16_t sequence;
0276     uint32_t length;
0277     uint32_t bytes;
0278     uint32_t bytes_overflow;
0279 } xcb_res_query_client_pixmap_bytes_reply_t;
0280 
0281 /**
0282  * @brief xcb_res_query_client_ids_cookie_t
0283  **/
0284 typedef struct xcb_res_query_client_ids_cookie_t {
0285     unsigned int sequence;
0286 } xcb_res_query_client_ids_cookie_t;
0287 
0288 /** Opcode for xcb_res_query_client_ids. */
0289 #define XCB_RES_QUERY_CLIENT_IDS 4
0290 
0291 /**
0292  * @brief xcb_res_query_client_ids_request_t
0293  **/
0294 typedef struct xcb_res_query_client_ids_request_t {
0295     uint8_t  major_opcode;
0296     uint8_t  minor_opcode;
0297     uint16_t length;
0298     uint32_t num_specs;
0299 } xcb_res_query_client_ids_request_t;
0300 
0301 /**
0302  * @brief xcb_res_query_client_ids_reply_t
0303  **/
0304 typedef struct xcb_res_query_client_ids_reply_t {
0305     uint8_t  response_type;
0306     uint8_t  pad0;
0307     uint16_t sequence;
0308     uint32_t length;
0309     uint32_t num_ids;
0310     uint8_t  pad1[20];
0311 } xcb_res_query_client_ids_reply_t;
0312 
0313 /**
0314  * @brief xcb_res_query_resource_bytes_cookie_t
0315  **/
0316 typedef struct xcb_res_query_resource_bytes_cookie_t {
0317     unsigned int sequence;
0318 } xcb_res_query_resource_bytes_cookie_t;
0319 
0320 /** Opcode for xcb_res_query_resource_bytes. */
0321 #define XCB_RES_QUERY_RESOURCE_BYTES 5
0322 
0323 /**
0324  * @brief xcb_res_query_resource_bytes_request_t
0325  **/
0326 typedef struct xcb_res_query_resource_bytes_request_t {
0327     uint8_t  major_opcode;
0328     uint8_t  minor_opcode;
0329     uint16_t length;
0330     uint32_t client;
0331     uint32_t num_specs;
0332 } xcb_res_query_resource_bytes_request_t;
0333 
0334 /**
0335  * @brief xcb_res_query_resource_bytes_reply_t
0336  **/
0337 typedef struct xcb_res_query_resource_bytes_reply_t {
0338     uint8_t  response_type;
0339     uint8_t  pad0;
0340     uint16_t sequence;
0341     uint32_t length;
0342     uint32_t num_sizes;
0343     uint8_t  pad1[20];
0344 } xcb_res_query_resource_bytes_reply_t;
0345 
0346 /**
0347  * Get the next element of the iterator
0348  * @param i Pointer to a xcb_res_client_iterator_t
0349  *
0350  * Get the next element in the iterator. The member rem is
0351  * decreased by one. The member data points to the next
0352  * element. The member index is increased by sizeof(xcb_res_client_t)
0353  */
0354 void
0355 xcb_res_client_next (xcb_res_client_iterator_t *i);
0356 
0357 /**
0358  * Return the iterator pointing to the last element
0359  * @param i An xcb_res_client_iterator_t
0360  * @return  The iterator pointing to the last element
0361  *
0362  * Set the current element in the iterator to the last element.
0363  * The member rem is set to 0. The member data points to the
0364  * last element.
0365  */
0366 xcb_generic_iterator_t
0367 xcb_res_client_end (xcb_res_client_iterator_t i);
0368 
0369 /**
0370  * Get the next element of the iterator
0371  * @param i Pointer to a xcb_res_type_iterator_t
0372  *
0373  * Get the next element in the iterator. The member rem is
0374  * decreased by one. The member data points to the next
0375  * element. The member index is increased by sizeof(xcb_res_type_t)
0376  */
0377 void
0378 xcb_res_type_next (xcb_res_type_iterator_t *i);
0379 
0380 /**
0381  * Return the iterator pointing to the last element
0382  * @param i An xcb_res_type_iterator_t
0383  * @return  The iterator pointing to the last element
0384  *
0385  * Set the current element in the iterator to the last element.
0386  * The member rem is set to 0. The member data points to the
0387  * last element.
0388  */
0389 xcb_generic_iterator_t
0390 xcb_res_type_end (xcb_res_type_iterator_t i);
0391 
0392 /**
0393  * Get the next element of the iterator
0394  * @param i Pointer to a xcb_res_client_id_spec_iterator_t
0395  *
0396  * Get the next element in the iterator. The member rem is
0397  * decreased by one. The member data points to the next
0398  * element. The member index is increased by sizeof(xcb_res_client_id_spec_t)
0399  */
0400 void
0401 xcb_res_client_id_spec_next (xcb_res_client_id_spec_iterator_t *i);
0402 
0403 /**
0404  * Return the iterator pointing to the last element
0405  * @param i An xcb_res_client_id_spec_iterator_t
0406  * @return  The iterator pointing to the last element
0407  *
0408  * Set the current element in the iterator to the last element.
0409  * The member rem is set to 0. The member data points to the
0410  * last element.
0411  */
0412 xcb_generic_iterator_t
0413 xcb_res_client_id_spec_end (xcb_res_client_id_spec_iterator_t i);
0414 
0415 int
0416 xcb_res_client_id_value_sizeof (const void  *_buffer);
0417 
0418 uint32_t *
0419 xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R);
0420 
0421 int
0422 xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R);
0423 
0424 xcb_generic_iterator_t
0425 xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R);
0426 
0427 /**
0428  * Get the next element of the iterator
0429  * @param i Pointer to a xcb_res_client_id_value_iterator_t
0430  *
0431  * Get the next element in the iterator. The member rem is
0432  * decreased by one. The member data points to the next
0433  * element. The member index is increased by sizeof(xcb_res_client_id_value_t)
0434  */
0435 void
0436 xcb_res_client_id_value_next (xcb_res_client_id_value_iterator_t *i);
0437 
0438 /**
0439  * Return the iterator pointing to the last element
0440  * @param i An xcb_res_client_id_value_iterator_t
0441  * @return  The iterator pointing to the last element
0442  *
0443  * Set the current element in the iterator to the last element.
0444  * The member rem is set to 0. The member data points to the
0445  * last element.
0446  */
0447 xcb_generic_iterator_t
0448 xcb_res_client_id_value_end (xcb_res_client_id_value_iterator_t i);
0449 
0450 /**
0451  * Get the next element of the iterator
0452  * @param i Pointer to a xcb_res_resource_id_spec_iterator_t
0453  *
0454  * Get the next element in the iterator. The member rem is
0455  * decreased by one. The member data points to the next
0456  * element. The member index is increased by sizeof(xcb_res_resource_id_spec_t)
0457  */
0458 void
0459 xcb_res_resource_id_spec_next (xcb_res_resource_id_spec_iterator_t *i);
0460 
0461 /**
0462  * Return the iterator pointing to the last element
0463  * @param i An xcb_res_resource_id_spec_iterator_t
0464  * @return  The iterator pointing to the last element
0465  *
0466  * Set the current element in the iterator to the last element.
0467  * The member rem is set to 0. The member data points to the
0468  * last element.
0469  */
0470 xcb_generic_iterator_t
0471 xcb_res_resource_id_spec_end (xcb_res_resource_id_spec_iterator_t i);
0472 
0473 /**
0474  * Get the next element of the iterator
0475  * @param i Pointer to a xcb_res_resource_size_spec_iterator_t
0476  *
0477  * Get the next element in the iterator. The member rem is
0478  * decreased by one. The member data points to the next
0479  * element. The member index is increased by sizeof(xcb_res_resource_size_spec_t)
0480  */
0481 void
0482 xcb_res_resource_size_spec_next (xcb_res_resource_size_spec_iterator_t *i);
0483 
0484 /**
0485  * Return the iterator pointing to the last element
0486  * @param i An xcb_res_resource_size_spec_iterator_t
0487  * @return  The iterator pointing to the last element
0488  *
0489  * Set the current element in the iterator to the last element.
0490  * The member rem is set to 0. The member data points to the
0491  * last element.
0492  */
0493 xcb_generic_iterator_t
0494 xcb_res_resource_size_spec_end (xcb_res_resource_size_spec_iterator_t i);
0495 
0496 int
0497 xcb_res_resource_size_value_sizeof (const void  *_buffer);
0498 
0499 xcb_res_resource_size_spec_t *
0500 xcb_res_resource_size_value_cross_references (const xcb_res_resource_size_value_t *R);
0501 
0502 int
0503 xcb_res_resource_size_value_cross_references_length (const xcb_res_resource_size_value_t *R);
0504 
0505 xcb_res_resource_size_spec_iterator_t
0506 xcb_res_resource_size_value_cross_references_iterator (const xcb_res_resource_size_value_t *R);
0507 
0508 /**
0509  * Get the next element of the iterator
0510  * @param i Pointer to a xcb_res_resource_size_value_iterator_t
0511  *
0512  * Get the next element in the iterator. The member rem is
0513  * decreased by one. The member data points to the next
0514  * element. The member index is increased by sizeof(xcb_res_resource_size_value_t)
0515  */
0516 void
0517 xcb_res_resource_size_value_next (xcb_res_resource_size_value_iterator_t *i);
0518 
0519 /**
0520  * Return the iterator pointing to the last element
0521  * @param i An xcb_res_resource_size_value_iterator_t
0522  * @return  The iterator pointing to the last element
0523  *
0524  * Set the current element in the iterator to the last element.
0525  * The member rem is set to 0. The member data points to the
0526  * last element.
0527  */
0528 xcb_generic_iterator_t
0529 xcb_res_resource_size_value_end (xcb_res_resource_size_value_iterator_t i);
0530 
0531 /**
0532  *
0533  * @param c The connection
0534  * @return A cookie
0535  *
0536  * Delivers a request to the X server.
0537  *
0538  */
0539 xcb_res_query_version_cookie_t
0540 xcb_res_query_version (xcb_connection_t *c,
0541                        uint8_t           client_major,
0542                        uint8_t           client_minor);
0543 
0544 /**
0545  *
0546  * @param c The connection
0547  * @return A cookie
0548  *
0549  * Delivers a request to the X server.
0550  *
0551  * This form can be used only if the request will cause
0552  * a reply to be generated. Any returned error will be
0553  * placed in the event queue.
0554  */
0555 xcb_res_query_version_cookie_t
0556 xcb_res_query_version_unchecked (xcb_connection_t *c,
0557                                  uint8_t           client_major,
0558                                  uint8_t           client_minor);
0559 
0560 /**
0561  * Return the reply
0562  * @param c      The connection
0563  * @param cookie The cookie
0564  * @param e      The xcb_generic_error_t supplied
0565  *
0566  * Returns the reply of the request asked by
0567  *
0568  * The parameter @p e supplied to this function must be NULL if
0569  * xcb_res_query_version_unchecked(). is used.
0570  * Otherwise, it stores the error if any.
0571  *
0572  * The returned value must be freed by the caller using free().
0573  */
0574 xcb_res_query_version_reply_t *
0575 xcb_res_query_version_reply (xcb_connection_t                *c,
0576                              xcb_res_query_version_cookie_t   cookie  /**< */,
0577                              xcb_generic_error_t            **e);
0578 
0579 int
0580 xcb_res_query_clients_sizeof (const void  *_buffer);
0581 
0582 /**
0583  *
0584  * @param c The connection
0585  * @return A cookie
0586  *
0587  * Delivers a request to the X server.
0588  *
0589  */
0590 xcb_res_query_clients_cookie_t
0591 xcb_res_query_clients (xcb_connection_t *c);
0592 
0593 /**
0594  *
0595  * @param c The connection
0596  * @return A cookie
0597  *
0598  * Delivers a request to the X server.
0599  *
0600  * This form can be used only if the request will cause
0601  * a reply to be generated. Any returned error will be
0602  * placed in the event queue.
0603  */
0604 xcb_res_query_clients_cookie_t
0605 xcb_res_query_clients_unchecked (xcb_connection_t *c);
0606 
0607 xcb_res_client_t *
0608 xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R);
0609 
0610 int
0611 xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R);
0612 
0613 xcb_res_client_iterator_t
0614 xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R);
0615 
0616 /**
0617  * Return the reply
0618  * @param c      The connection
0619  * @param cookie The cookie
0620  * @param e      The xcb_generic_error_t supplied
0621  *
0622  * Returns the reply of the request asked by
0623  *
0624  * The parameter @p e supplied to this function must be NULL if
0625  * xcb_res_query_clients_unchecked(). is used.
0626  * Otherwise, it stores the error if any.
0627  *
0628  * The returned value must be freed by the caller using free().
0629  */
0630 xcb_res_query_clients_reply_t *
0631 xcb_res_query_clients_reply (xcb_connection_t                *c,
0632                              xcb_res_query_clients_cookie_t   cookie  /**< */,
0633                              xcb_generic_error_t            **e);
0634 
0635 int
0636 xcb_res_query_client_resources_sizeof (const void  *_buffer);
0637 
0638 /**
0639  *
0640  * @param c The connection
0641  * @return A cookie
0642  *
0643  * Delivers a request to the X server.
0644  *
0645  */
0646 xcb_res_query_client_resources_cookie_t
0647 xcb_res_query_client_resources (xcb_connection_t *c,
0648                                 uint32_t          xid);
0649 
0650 /**
0651  *
0652  * @param c The connection
0653  * @return A cookie
0654  *
0655  * Delivers a request to the X server.
0656  *
0657  * This form can be used only if the request will cause
0658  * a reply to be generated. Any returned error will be
0659  * placed in the event queue.
0660  */
0661 xcb_res_query_client_resources_cookie_t
0662 xcb_res_query_client_resources_unchecked (xcb_connection_t *c,
0663                                           uint32_t          xid);
0664 
0665 xcb_res_type_t *
0666 xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R);
0667 
0668 int
0669 xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R);
0670 
0671 xcb_res_type_iterator_t
0672 xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R);
0673 
0674 /**
0675  * Return the reply
0676  * @param c      The connection
0677  * @param cookie The cookie
0678  * @param e      The xcb_generic_error_t supplied
0679  *
0680  * Returns the reply of the request asked by
0681  *
0682  * The parameter @p e supplied to this function must be NULL if
0683  * xcb_res_query_client_resources_unchecked(). is used.
0684  * Otherwise, it stores the error if any.
0685  *
0686  * The returned value must be freed by the caller using free().
0687  */
0688 xcb_res_query_client_resources_reply_t *
0689 xcb_res_query_client_resources_reply (xcb_connection_t                         *c,
0690                                       xcb_res_query_client_resources_cookie_t   cookie  /**< */,
0691                                       xcb_generic_error_t                     **e);
0692 
0693 /**
0694  *
0695  * @param c The connection
0696  * @return A cookie
0697  *
0698  * Delivers a request to the X server.
0699  *
0700  */
0701 xcb_res_query_client_pixmap_bytes_cookie_t
0702 xcb_res_query_client_pixmap_bytes (xcb_connection_t *c,
0703                                    uint32_t          xid);
0704 
0705 /**
0706  *
0707  * @param c The connection
0708  * @return A cookie
0709  *
0710  * Delivers a request to the X server.
0711  *
0712  * This form can be used only if the request will cause
0713  * a reply to be generated. Any returned error will be
0714  * placed in the event queue.
0715  */
0716 xcb_res_query_client_pixmap_bytes_cookie_t
0717 xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c,
0718                                              uint32_t          xid);
0719 
0720 /**
0721  * Return the reply
0722  * @param c      The connection
0723  * @param cookie The cookie
0724  * @param e      The xcb_generic_error_t supplied
0725  *
0726  * Returns the reply of the request asked by
0727  *
0728  * The parameter @p e supplied to this function must be NULL if
0729  * xcb_res_query_client_pixmap_bytes_unchecked(). is used.
0730  * Otherwise, it stores the error if any.
0731  *
0732  * The returned value must be freed by the caller using free().
0733  */
0734 xcb_res_query_client_pixmap_bytes_reply_t *
0735 xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t                            *c,
0736                                          xcb_res_query_client_pixmap_bytes_cookie_t   cookie  /**< */,
0737                                          xcb_generic_error_t                        **e);
0738 
0739 int
0740 xcb_res_query_client_ids_sizeof (const void  *_buffer);
0741 
0742 /**
0743  *
0744  * @param c The connection
0745  * @return A cookie
0746  *
0747  * Delivers a request to the X server.
0748  *
0749  */
0750 xcb_res_query_client_ids_cookie_t
0751 xcb_res_query_client_ids (xcb_connection_t               *c,
0752                           uint32_t                        num_specs,
0753                           const xcb_res_client_id_spec_t *specs);
0754 
0755 /**
0756  *
0757  * @param c The connection
0758  * @return A cookie
0759  *
0760  * Delivers a request to the X server.
0761  *
0762  * This form can be used only if the request will cause
0763  * a reply to be generated. Any returned error will be
0764  * placed in the event queue.
0765  */
0766 xcb_res_query_client_ids_cookie_t
0767 xcb_res_query_client_ids_unchecked (xcb_connection_t               *c,
0768                                     uint32_t                        num_specs,
0769                                     const xcb_res_client_id_spec_t *specs);
0770 
0771 int
0772 xcb_res_query_client_ids_ids_length (const xcb_res_query_client_ids_reply_t *R);
0773 
0774 xcb_res_client_id_value_iterator_t
0775 xcb_res_query_client_ids_ids_iterator (const xcb_res_query_client_ids_reply_t *R);
0776 
0777 /**
0778  * Return the reply
0779  * @param c      The connection
0780  * @param cookie The cookie
0781  * @param e      The xcb_generic_error_t supplied
0782  *
0783  * Returns the reply of the request asked by
0784  *
0785  * The parameter @p e supplied to this function must be NULL if
0786  * xcb_res_query_client_ids_unchecked(). is used.
0787  * Otherwise, it stores the error if any.
0788  *
0789  * The returned value must be freed by the caller using free().
0790  */
0791 xcb_res_query_client_ids_reply_t *
0792 xcb_res_query_client_ids_reply (xcb_connection_t                   *c,
0793                                 xcb_res_query_client_ids_cookie_t   cookie  /**< */,
0794                                 xcb_generic_error_t               **e);
0795 
0796 int
0797 xcb_res_query_resource_bytes_sizeof (const void  *_buffer);
0798 
0799 /**
0800  *
0801  * @param c The connection
0802  * @return A cookie
0803  *
0804  * Delivers a request to the X server.
0805  *
0806  */
0807 xcb_res_query_resource_bytes_cookie_t
0808 xcb_res_query_resource_bytes (xcb_connection_t                 *c,
0809                               uint32_t                          client,
0810                               uint32_t                          num_specs,
0811                               const xcb_res_resource_id_spec_t *specs);
0812 
0813 /**
0814  *
0815  * @param c The connection
0816  * @return A cookie
0817  *
0818  * Delivers a request to the X server.
0819  *
0820  * This form can be used only if the request will cause
0821  * a reply to be generated. Any returned error will be
0822  * placed in the event queue.
0823  */
0824 xcb_res_query_resource_bytes_cookie_t
0825 xcb_res_query_resource_bytes_unchecked (xcb_connection_t                 *c,
0826                                         uint32_t                          client,
0827                                         uint32_t                          num_specs,
0828                                         const xcb_res_resource_id_spec_t *specs);
0829 
0830 int
0831 xcb_res_query_resource_bytes_sizes_length (const xcb_res_query_resource_bytes_reply_t *R);
0832 
0833 xcb_res_resource_size_value_iterator_t
0834 xcb_res_query_resource_bytes_sizes_iterator (const xcb_res_query_resource_bytes_reply_t *R);
0835 
0836 /**
0837  * Return the reply
0838  * @param c      The connection
0839  * @param cookie The cookie
0840  * @param e      The xcb_generic_error_t supplied
0841  *
0842  * Returns the reply of the request asked by
0843  *
0844  * The parameter @p e supplied to this function must be NULL if
0845  * xcb_res_query_resource_bytes_unchecked(). is used.
0846  * Otherwise, it stores the error if any.
0847  *
0848  * The returned value must be freed by the caller using free().
0849  */
0850 xcb_res_query_resource_bytes_reply_t *
0851 xcb_res_query_resource_bytes_reply (xcb_connection_t                       *c,
0852                                     xcb_res_query_resource_bytes_cookie_t   cookie  /**< */,
0853                                     xcb_generic_error_t                   **e);
0854 
0855 
0856 #ifdef __cplusplus
0857 }
0858 #endif
0859 
0860 #endif
0861 
0862 /**
0863  * @}
0864  */