annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/xcb/res.h @ 69:33d812a61356

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