github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xkbcommon/include/xcb/xprint.h (about) 1 /* 2 * This file generated automatically from xprint.xml by c_client.py. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_XPrint_API XCB XPrint API 8 * @brief XPrint XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 #ifndef __XPRINT_H 13 #define __XPRINT_H 14 15 #include "xcb.h" 16 #include "xproto.h" 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 #define XCB_XPRINT_MAJOR_VERSION 1 23 #define XCB_XPRINT_MINOR_VERSION 0 24 25 extern xcb_extension_t xcb_x_print_id; 26 27 typedef char xcb_x_print_string8_t; 28 29 /** 30 * @brief xcb_x_print_string8_iterator_t 31 **/ 32 typedef struct xcb_x_print_string8_iterator_t { 33 xcb_x_print_string8_t *data; 34 int rem; 35 int index; 36 } xcb_x_print_string8_iterator_t; 37 38 /** 39 * @brief xcb_x_print_printer_t 40 **/ 41 typedef struct xcb_x_print_printer_t { 42 uint32_t nameLen; 43 uint32_t descLen; 44 } xcb_x_print_printer_t; 45 46 /** 47 * @brief xcb_x_print_printer_iterator_t 48 **/ 49 typedef struct xcb_x_print_printer_iterator_t { 50 xcb_x_print_printer_t *data; 51 int rem; 52 int index; 53 } xcb_x_print_printer_iterator_t; 54 55 typedef uint32_t xcb_x_print_pcontext_t; 56 57 /** 58 * @brief xcb_x_print_pcontext_iterator_t 59 **/ 60 typedef struct xcb_x_print_pcontext_iterator_t { 61 xcb_x_print_pcontext_t *data; 62 int rem; 63 int index; 64 } xcb_x_print_pcontext_iterator_t; 65 66 typedef enum xcb_x_print_get_doc_t { 67 XCB_X_PRINT_GET_DOC_FINISHED = 0, 68 XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1 69 } xcb_x_print_get_doc_t; 70 71 typedef enum xcb_x_print_ev_mask_t { 72 XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0, 73 XCB_X_PRINT_EV_MASK_PRINT_MASK = 1, 74 XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2 75 } xcb_x_print_ev_mask_t; 76 77 typedef enum xcb_x_print_detail_t { 78 XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1, 79 XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2, 80 XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3, 81 XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4, 82 XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5, 83 XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6 84 } xcb_x_print_detail_t; 85 86 typedef enum xcb_x_print_attr_t { 87 XCB_X_PRINT_ATTR_JOB_ATTR = 1, 88 XCB_X_PRINT_ATTR_DOC_ATTR = 2, 89 XCB_X_PRINT_ATTR_PAGE_ATTR = 3, 90 XCB_X_PRINT_ATTR_PRINTER_ATTR = 4, 91 XCB_X_PRINT_ATTR_SERVER_ATTR = 5, 92 XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6, 93 XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7 94 } xcb_x_print_attr_t; 95 96 /** 97 * @brief xcb_x_print_print_query_version_cookie_t 98 **/ 99 typedef struct xcb_x_print_print_query_version_cookie_t { 100 unsigned int sequence; 101 } xcb_x_print_print_query_version_cookie_t; 102 103 /** Opcode for xcb_x_print_print_query_version. */ 104 #define XCB_X_PRINT_PRINT_QUERY_VERSION 0 105 106 /** 107 * @brief xcb_x_print_print_query_version_request_t 108 **/ 109 typedef struct xcb_x_print_print_query_version_request_t { 110 uint8_t major_opcode; 111 uint8_t minor_opcode; 112 uint16_t length; 113 } xcb_x_print_print_query_version_request_t; 114 115 /** 116 * @brief xcb_x_print_print_query_version_reply_t 117 **/ 118 typedef struct xcb_x_print_print_query_version_reply_t { 119 uint8_t response_type; 120 uint8_t pad0; 121 uint16_t sequence; 122 uint32_t length; 123 uint16_t major_version; 124 uint16_t minor_version; 125 } xcb_x_print_print_query_version_reply_t; 126 127 /** 128 * @brief xcb_x_print_print_get_printer_list_cookie_t 129 **/ 130 typedef struct xcb_x_print_print_get_printer_list_cookie_t { 131 unsigned int sequence; 132 } xcb_x_print_print_get_printer_list_cookie_t; 133 134 /** Opcode for xcb_x_print_print_get_printer_list. */ 135 #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1 136 137 /** 138 * @brief xcb_x_print_print_get_printer_list_request_t 139 **/ 140 typedef struct xcb_x_print_print_get_printer_list_request_t { 141 uint8_t major_opcode; 142 uint8_t minor_opcode; 143 uint16_t length; 144 uint32_t printerNameLen; 145 uint32_t localeLen; 146 } xcb_x_print_print_get_printer_list_request_t; 147 148 /** 149 * @brief xcb_x_print_print_get_printer_list_reply_t 150 **/ 151 typedef struct xcb_x_print_print_get_printer_list_reply_t { 152 uint8_t response_type; 153 uint8_t pad0; 154 uint16_t sequence; 155 uint32_t length; 156 uint32_t listCount; 157 uint8_t pad1[20]; 158 } xcb_x_print_print_get_printer_list_reply_t; 159 160 /** Opcode for xcb_x_print_print_rehash_printer_list. */ 161 #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20 162 163 /** 164 * @brief xcb_x_print_print_rehash_printer_list_request_t 165 **/ 166 typedef struct xcb_x_print_print_rehash_printer_list_request_t { 167 uint8_t major_opcode; 168 uint8_t minor_opcode; 169 uint16_t length; 170 } xcb_x_print_print_rehash_printer_list_request_t; 171 172 /** Opcode for xcb_x_print_create_context. */ 173 #define XCB_X_PRINT_CREATE_CONTEXT 2 174 175 /** 176 * @brief xcb_x_print_create_context_request_t 177 **/ 178 typedef struct xcb_x_print_create_context_request_t { 179 uint8_t major_opcode; 180 uint8_t minor_opcode; 181 uint16_t length; 182 uint32_t context_id; 183 uint32_t printerNameLen; 184 uint32_t localeLen; 185 } xcb_x_print_create_context_request_t; 186 187 /** Opcode for xcb_x_print_print_set_context. */ 188 #define XCB_X_PRINT_PRINT_SET_CONTEXT 3 189 190 /** 191 * @brief xcb_x_print_print_set_context_request_t 192 **/ 193 typedef struct xcb_x_print_print_set_context_request_t { 194 uint8_t major_opcode; 195 uint8_t minor_opcode; 196 uint16_t length; 197 uint32_t context; 198 } xcb_x_print_print_set_context_request_t; 199 200 /** 201 * @brief xcb_x_print_print_get_context_cookie_t 202 **/ 203 typedef struct xcb_x_print_print_get_context_cookie_t { 204 unsigned int sequence; 205 } xcb_x_print_print_get_context_cookie_t; 206 207 /** Opcode for xcb_x_print_print_get_context. */ 208 #define XCB_X_PRINT_PRINT_GET_CONTEXT 4 209 210 /** 211 * @brief xcb_x_print_print_get_context_request_t 212 **/ 213 typedef struct xcb_x_print_print_get_context_request_t { 214 uint8_t major_opcode; 215 uint8_t minor_opcode; 216 uint16_t length; 217 } xcb_x_print_print_get_context_request_t; 218 219 /** 220 * @brief xcb_x_print_print_get_context_reply_t 221 **/ 222 typedef struct xcb_x_print_print_get_context_reply_t { 223 uint8_t response_type; 224 uint8_t pad0; 225 uint16_t sequence; 226 uint32_t length; 227 uint32_t context; 228 } xcb_x_print_print_get_context_reply_t; 229 230 /** Opcode for xcb_x_print_print_destroy_context. */ 231 #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5 232 233 /** 234 * @brief xcb_x_print_print_destroy_context_request_t 235 **/ 236 typedef struct xcb_x_print_print_destroy_context_request_t { 237 uint8_t major_opcode; 238 uint8_t minor_opcode; 239 uint16_t length; 240 uint32_t context; 241 } xcb_x_print_print_destroy_context_request_t; 242 243 /** 244 * @brief xcb_x_print_print_get_screen_of_context_cookie_t 245 **/ 246 typedef struct xcb_x_print_print_get_screen_of_context_cookie_t { 247 unsigned int sequence; 248 } xcb_x_print_print_get_screen_of_context_cookie_t; 249 250 /** Opcode for xcb_x_print_print_get_screen_of_context. */ 251 #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6 252 253 /** 254 * @brief xcb_x_print_print_get_screen_of_context_request_t 255 **/ 256 typedef struct xcb_x_print_print_get_screen_of_context_request_t { 257 uint8_t major_opcode; 258 uint8_t minor_opcode; 259 uint16_t length; 260 } xcb_x_print_print_get_screen_of_context_request_t; 261 262 /** 263 * @brief xcb_x_print_print_get_screen_of_context_reply_t 264 **/ 265 typedef struct xcb_x_print_print_get_screen_of_context_reply_t { 266 uint8_t response_type; 267 uint8_t pad0; 268 uint16_t sequence; 269 uint32_t length; 270 xcb_window_t root; 271 } xcb_x_print_print_get_screen_of_context_reply_t; 272 273 /** Opcode for xcb_x_print_print_start_job. */ 274 #define XCB_X_PRINT_PRINT_START_JOB 7 275 276 /** 277 * @brief xcb_x_print_print_start_job_request_t 278 **/ 279 typedef struct xcb_x_print_print_start_job_request_t { 280 uint8_t major_opcode; 281 uint8_t minor_opcode; 282 uint16_t length; 283 uint8_t output_mode; 284 } xcb_x_print_print_start_job_request_t; 285 286 /** Opcode for xcb_x_print_print_end_job. */ 287 #define XCB_X_PRINT_PRINT_END_JOB 8 288 289 /** 290 * @brief xcb_x_print_print_end_job_request_t 291 **/ 292 typedef struct xcb_x_print_print_end_job_request_t { 293 uint8_t major_opcode; 294 uint8_t minor_opcode; 295 uint16_t length; 296 uint8_t cancel; 297 } xcb_x_print_print_end_job_request_t; 298 299 /** Opcode for xcb_x_print_print_start_doc. */ 300 #define XCB_X_PRINT_PRINT_START_DOC 9 301 302 /** 303 * @brief xcb_x_print_print_start_doc_request_t 304 **/ 305 typedef struct xcb_x_print_print_start_doc_request_t { 306 uint8_t major_opcode; 307 uint8_t minor_opcode; 308 uint16_t length; 309 uint8_t driver_mode; 310 } xcb_x_print_print_start_doc_request_t; 311 312 /** Opcode for xcb_x_print_print_end_doc. */ 313 #define XCB_X_PRINT_PRINT_END_DOC 10 314 315 /** 316 * @brief xcb_x_print_print_end_doc_request_t 317 **/ 318 typedef struct xcb_x_print_print_end_doc_request_t { 319 uint8_t major_opcode; 320 uint8_t minor_opcode; 321 uint16_t length; 322 uint8_t cancel; 323 } xcb_x_print_print_end_doc_request_t; 324 325 /** Opcode for xcb_x_print_print_put_document_data. */ 326 #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11 327 328 /** 329 * @brief xcb_x_print_print_put_document_data_request_t 330 **/ 331 typedef struct xcb_x_print_print_put_document_data_request_t { 332 uint8_t major_opcode; 333 uint8_t minor_opcode; 334 uint16_t length; 335 xcb_drawable_t drawable; 336 uint32_t len_data; 337 uint16_t len_fmt; 338 uint16_t len_options; 339 } xcb_x_print_print_put_document_data_request_t; 340 341 /** 342 * @brief xcb_x_print_print_get_document_data_cookie_t 343 **/ 344 typedef struct xcb_x_print_print_get_document_data_cookie_t { 345 unsigned int sequence; 346 } xcb_x_print_print_get_document_data_cookie_t; 347 348 /** Opcode for xcb_x_print_print_get_document_data. */ 349 #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12 350 351 /** 352 * @brief xcb_x_print_print_get_document_data_request_t 353 **/ 354 typedef struct xcb_x_print_print_get_document_data_request_t { 355 uint8_t major_opcode; 356 uint8_t minor_opcode; 357 uint16_t length; 358 xcb_x_print_pcontext_t context; 359 uint32_t max_bytes; 360 } xcb_x_print_print_get_document_data_request_t; 361 362 /** 363 * @brief xcb_x_print_print_get_document_data_reply_t 364 **/ 365 typedef struct xcb_x_print_print_get_document_data_reply_t { 366 uint8_t response_type; 367 uint8_t pad0; 368 uint16_t sequence; 369 uint32_t length; 370 uint32_t status_code; 371 uint32_t finished_flag; 372 uint32_t dataLen; 373 uint8_t pad1[12]; 374 } xcb_x_print_print_get_document_data_reply_t; 375 376 /** Opcode for xcb_x_print_print_start_page. */ 377 #define XCB_X_PRINT_PRINT_START_PAGE 13 378 379 /** 380 * @brief xcb_x_print_print_start_page_request_t 381 **/ 382 typedef struct xcb_x_print_print_start_page_request_t { 383 uint8_t major_opcode; 384 uint8_t minor_opcode; 385 uint16_t length; 386 xcb_window_t window; 387 } xcb_x_print_print_start_page_request_t; 388 389 /** Opcode for xcb_x_print_print_end_page. */ 390 #define XCB_X_PRINT_PRINT_END_PAGE 14 391 392 /** 393 * @brief xcb_x_print_print_end_page_request_t 394 **/ 395 typedef struct xcb_x_print_print_end_page_request_t { 396 uint8_t major_opcode; 397 uint8_t minor_opcode; 398 uint16_t length; 399 uint8_t cancel; 400 uint8_t pad0[3]; 401 } xcb_x_print_print_end_page_request_t; 402 403 /** Opcode for xcb_x_print_print_select_input. */ 404 #define XCB_X_PRINT_PRINT_SELECT_INPUT 15 405 406 /** 407 * @brief xcb_x_print_print_select_input_request_t 408 **/ 409 typedef struct xcb_x_print_print_select_input_request_t { 410 uint8_t major_opcode; 411 uint8_t minor_opcode; 412 uint16_t length; 413 xcb_x_print_pcontext_t context; 414 uint32_t event_mask; 415 } xcb_x_print_print_select_input_request_t; 416 417 /** 418 * @brief xcb_x_print_print_input_selected_cookie_t 419 **/ 420 typedef struct xcb_x_print_print_input_selected_cookie_t { 421 unsigned int sequence; 422 } xcb_x_print_print_input_selected_cookie_t; 423 424 /** Opcode for xcb_x_print_print_input_selected. */ 425 #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16 426 427 /** 428 * @brief xcb_x_print_print_input_selected_request_t 429 **/ 430 typedef struct xcb_x_print_print_input_selected_request_t { 431 uint8_t major_opcode; 432 uint8_t minor_opcode; 433 uint16_t length; 434 xcb_x_print_pcontext_t context; 435 } xcb_x_print_print_input_selected_request_t; 436 437 /** 438 * @brief xcb_x_print_print_input_selected_reply_t 439 **/ 440 typedef struct xcb_x_print_print_input_selected_reply_t { 441 uint8_t response_type; 442 uint8_t pad0; 443 uint16_t sequence; 444 uint32_t length; 445 uint32_t event_mask; 446 uint32_t all_events_mask; 447 } xcb_x_print_print_input_selected_reply_t; 448 449 /** 450 * @brief xcb_x_print_print_get_attributes_cookie_t 451 **/ 452 typedef struct xcb_x_print_print_get_attributes_cookie_t { 453 unsigned int sequence; 454 } xcb_x_print_print_get_attributes_cookie_t; 455 456 /** Opcode for xcb_x_print_print_get_attributes. */ 457 #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17 458 459 /** 460 * @brief xcb_x_print_print_get_attributes_request_t 461 **/ 462 typedef struct xcb_x_print_print_get_attributes_request_t { 463 uint8_t major_opcode; 464 uint8_t minor_opcode; 465 uint16_t length; 466 xcb_x_print_pcontext_t context; 467 uint8_t pool; 468 uint8_t pad0[3]; 469 } xcb_x_print_print_get_attributes_request_t; 470 471 /** 472 * @brief xcb_x_print_print_get_attributes_reply_t 473 **/ 474 typedef struct xcb_x_print_print_get_attributes_reply_t { 475 uint8_t response_type; 476 uint8_t pad0; 477 uint16_t sequence; 478 uint32_t length; 479 uint32_t stringLen; 480 uint8_t pad1[20]; 481 } xcb_x_print_print_get_attributes_reply_t; 482 483 /** 484 * @brief xcb_x_print_print_get_one_attributes_cookie_t 485 **/ 486 typedef struct xcb_x_print_print_get_one_attributes_cookie_t { 487 unsigned int sequence; 488 } xcb_x_print_print_get_one_attributes_cookie_t; 489 490 /** Opcode for xcb_x_print_print_get_one_attributes. */ 491 #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19 492 493 /** 494 * @brief xcb_x_print_print_get_one_attributes_request_t 495 **/ 496 typedef struct xcb_x_print_print_get_one_attributes_request_t { 497 uint8_t major_opcode; 498 uint8_t minor_opcode; 499 uint16_t length; 500 xcb_x_print_pcontext_t context; 501 uint32_t nameLen; 502 uint8_t pool; 503 uint8_t pad0[3]; 504 } xcb_x_print_print_get_one_attributes_request_t; 505 506 /** 507 * @brief xcb_x_print_print_get_one_attributes_reply_t 508 **/ 509 typedef struct xcb_x_print_print_get_one_attributes_reply_t { 510 uint8_t response_type; 511 uint8_t pad0; 512 uint16_t sequence; 513 uint32_t length; 514 uint32_t valueLen; 515 uint8_t pad1[20]; 516 } xcb_x_print_print_get_one_attributes_reply_t; 517 518 /** Opcode for xcb_x_print_print_set_attributes. */ 519 #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18 520 521 /** 522 * @brief xcb_x_print_print_set_attributes_request_t 523 **/ 524 typedef struct xcb_x_print_print_set_attributes_request_t { 525 uint8_t major_opcode; 526 uint8_t minor_opcode; 527 uint16_t length; 528 xcb_x_print_pcontext_t context; 529 uint32_t stringLen; 530 uint8_t pool; 531 uint8_t rule; 532 uint8_t pad0[2]; 533 } xcb_x_print_print_set_attributes_request_t; 534 535 /** 536 * @brief xcb_x_print_print_get_page_dimensions_cookie_t 537 **/ 538 typedef struct xcb_x_print_print_get_page_dimensions_cookie_t { 539 unsigned int sequence; 540 } xcb_x_print_print_get_page_dimensions_cookie_t; 541 542 /** Opcode for xcb_x_print_print_get_page_dimensions. */ 543 #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21 544 545 /** 546 * @brief xcb_x_print_print_get_page_dimensions_request_t 547 **/ 548 typedef struct xcb_x_print_print_get_page_dimensions_request_t { 549 uint8_t major_opcode; 550 uint8_t minor_opcode; 551 uint16_t length; 552 xcb_x_print_pcontext_t context; 553 } xcb_x_print_print_get_page_dimensions_request_t; 554 555 /** 556 * @brief xcb_x_print_print_get_page_dimensions_reply_t 557 **/ 558 typedef struct xcb_x_print_print_get_page_dimensions_reply_t { 559 uint8_t response_type; 560 uint8_t pad0; 561 uint16_t sequence; 562 uint32_t length; 563 uint16_t width; 564 uint16_t height; 565 uint16_t offset_x; 566 uint16_t offset_y; 567 uint16_t reproducible_width; 568 uint16_t reproducible_height; 569 } xcb_x_print_print_get_page_dimensions_reply_t; 570 571 /** 572 * @brief xcb_x_print_print_query_screens_cookie_t 573 **/ 574 typedef struct xcb_x_print_print_query_screens_cookie_t { 575 unsigned int sequence; 576 } xcb_x_print_print_query_screens_cookie_t; 577 578 /** Opcode for xcb_x_print_print_query_screens. */ 579 #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22 580 581 /** 582 * @brief xcb_x_print_print_query_screens_request_t 583 **/ 584 typedef struct xcb_x_print_print_query_screens_request_t { 585 uint8_t major_opcode; 586 uint8_t minor_opcode; 587 uint16_t length; 588 } xcb_x_print_print_query_screens_request_t; 589 590 /** 591 * @brief xcb_x_print_print_query_screens_reply_t 592 **/ 593 typedef struct xcb_x_print_print_query_screens_reply_t { 594 uint8_t response_type; 595 uint8_t pad0; 596 uint16_t sequence; 597 uint32_t length; 598 uint32_t listCount; 599 uint8_t pad1[20]; 600 } xcb_x_print_print_query_screens_reply_t; 601 602 /** 603 * @brief xcb_x_print_print_set_image_resolution_cookie_t 604 **/ 605 typedef struct xcb_x_print_print_set_image_resolution_cookie_t { 606 unsigned int sequence; 607 } xcb_x_print_print_set_image_resolution_cookie_t; 608 609 /** Opcode for xcb_x_print_print_set_image_resolution. */ 610 #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23 611 612 /** 613 * @brief xcb_x_print_print_set_image_resolution_request_t 614 **/ 615 typedef struct xcb_x_print_print_set_image_resolution_request_t { 616 uint8_t major_opcode; 617 uint8_t minor_opcode; 618 uint16_t length; 619 xcb_x_print_pcontext_t context; 620 uint16_t image_resolution; 621 } xcb_x_print_print_set_image_resolution_request_t; 622 623 /** 624 * @brief xcb_x_print_print_set_image_resolution_reply_t 625 **/ 626 typedef struct xcb_x_print_print_set_image_resolution_reply_t { 627 uint8_t response_type; 628 uint8_t status; 629 uint16_t sequence; 630 uint32_t length; 631 uint16_t previous_resolutions; 632 } xcb_x_print_print_set_image_resolution_reply_t; 633 634 /** 635 * @brief xcb_x_print_print_get_image_resolution_cookie_t 636 **/ 637 typedef struct xcb_x_print_print_get_image_resolution_cookie_t { 638 unsigned int sequence; 639 } xcb_x_print_print_get_image_resolution_cookie_t; 640 641 /** Opcode for xcb_x_print_print_get_image_resolution. */ 642 #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24 643 644 /** 645 * @brief xcb_x_print_print_get_image_resolution_request_t 646 **/ 647 typedef struct xcb_x_print_print_get_image_resolution_request_t { 648 uint8_t major_opcode; 649 uint8_t minor_opcode; 650 uint16_t length; 651 xcb_x_print_pcontext_t context; 652 } xcb_x_print_print_get_image_resolution_request_t; 653 654 /** 655 * @brief xcb_x_print_print_get_image_resolution_reply_t 656 **/ 657 typedef struct xcb_x_print_print_get_image_resolution_reply_t { 658 uint8_t response_type; 659 uint8_t pad0; 660 uint16_t sequence; 661 uint32_t length; 662 uint16_t image_resolution; 663 } xcb_x_print_print_get_image_resolution_reply_t; 664 665 /** Opcode for xcb_x_print_notify. */ 666 #define XCB_X_PRINT_NOTIFY 0 667 668 /** 669 * @brief xcb_x_print_notify_event_t 670 **/ 671 typedef struct xcb_x_print_notify_event_t { 672 uint8_t response_type; 673 uint8_t detail; 674 uint16_t sequence; 675 xcb_x_print_pcontext_t context; 676 uint8_t cancel; 677 } xcb_x_print_notify_event_t; 678 679 /** Opcode for xcb_x_print_attribut_notify. */ 680 #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1 681 682 /** 683 * @brief xcb_x_print_attribut_notify_event_t 684 **/ 685 typedef struct xcb_x_print_attribut_notify_event_t { 686 uint8_t response_type; 687 uint8_t detail; 688 uint16_t sequence; 689 xcb_x_print_pcontext_t context; 690 } xcb_x_print_attribut_notify_event_t; 691 692 /** Opcode for xcb_x_print_bad_context. */ 693 #define XCB_X_PRINT_BAD_CONTEXT 0 694 695 /** 696 * @brief xcb_x_print_bad_context_error_t 697 **/ 698 typedef struct xcb_x_print_bad_context_error_t { 699 uint8_t response_type; 700 uint8_t error_code; 701 uint16_t sequence; 702 } xcb_x_print_bad_context_error_t; 703 704 /** Opcode for xcb_x_print_bad_sequence. */ 705 #define XCB_X_PRINT_BAD_SEQUENCE 1 706 707 /** 708 * @brief xcb_x_print_bad_sequence_error_t 709 **/ 710 typedef struct xcb_x_print_bad_sequence_error_t { 711 uint8_t response_type; 712 uint8_t error_code; 713 uint16_t sequence; 714 } xcb_x_print_bad_sequence_error_t; 715 716 /** 717 * Get the next element of the iterator 718 * @param i Pointer to a xcb_x_print_string8_iterator_t 719 * 720 * Get the next element in the iterator. The member rem is 721 * decreased by one. The member data points to the next 722 * element. The member index is increased by sizeof(xcb_x_print_string8_t) 723 */ 724 void 725 xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i); 726 727 /** 728 * Return the iterator pointing to the last element 729 * @param i An xcb_x_print_string8_iterator_t 730 * @return The iterator pointing to the last element 731 * 732 * Set the current element in the iterator to the last element. 733 * The member rem is set to 0. The member data points to the 734 * last element. 735 */ 736 xcb_generic_iterator_t 737 xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i); 738 739 int 740 xcb_x_print_printer_serialize (void **_buffer, 741 const xcb_x_print_printer_t *_aux, 742 const xcb_x_print_string8_t *name, 743 const xcb_x_print_string8_t *description); 744 745 int 746 xcb_x_print_printer_unserialize (const void *_buffer, 747 xcb_x_print_printer_t **_aux); 748 749 int 750 xcb_x_print_printer_sizeof (const void *_buffer); 751 752 xcb_x_print_string8_t * 753 xcb_x_print_printer_name (const xcb_x_print_printer_t *R); 754 755 int 756 xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R); 757 758 xcb_generic_iterator_t 759 xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R); 760 761 xcb_x_print_string8_t * 762 xcb_x_print_printer_description (const xcb_x_print_printer_t *R); 763 764 int 765 xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R); 766 767 xcb_generic_iterator_t 768 xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R); 769 770 /** 771 * Get the next element of the iterator 772 * @param i Pointer to a xcb_x_print_printer_iterator_t 773 * 774 * Get the next element in the iterator. The member rem is 775 * decreased by one. The member data points to the next 776 * element. The member index is increased by sizeof(xcb_x_print_printer_t) 777 */ 778 void 779 xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i); 780 781 /** 782 * Return the iterator pointing to the last element 783 * @param i An xcb_x_print_printer_iterator_t 784 * @return The iterator pointing to the last element 785 * 786 * Set the current element in the iterator to the last element. 787 * The member rem is set to 0. The member data points to the 788 * last element. 789 */ 790 xcb_generic_iterator_t 791 xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i); 792 793 /** 794 * Get the next element of the iterator 795 * @param i Pointer to a xcb_x_print_pcontext_iterator_t 796 * 797 * Get the next element in the iterator. The member rem is 798 * decreased by one. The member data points to the next 799 * element. The member index is increased by sizeof(xcb_x_print_pcontext_t) 800 */ 801 void 802 xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i); 803 804 /** 805 * Return the iterator pointing to the last element 806 * @param i An xcb_x_print_pcontext_iterator_t 807 * @return The iterator pointing to the last element 808 * 809 * Set the current element in the iterator to the last element. 810 * The member rem is set to 0. The member data points to the 811 * last element. 812 */ 813 xcb_generic_iterator_t 814 xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i); 815 816 /** 817 * 818 * @param c The connection 819 * @return A cookie 820 * 821 * Delivers a request to the X server. 822 * 823 */ 824 xcb_x_print_print_query_version_cookie_t 825 xcb_x_print_print_query_version (xcb_connection_t *c); 826 827 /** 828 * 829 * @param c The connection 830 * @return A cookie 831 * 832 * Delivers a request to the X server. 833 * 834 * This form can be used only if the request will cause 835 * a reply to be generated. Any returned error will be 836 * placed in the event queue. 837 */ 838 xcb_x_print_print_query_version_cookie_t 839 xcb_x_print_print_query_version_unchecked (xcb_connection_t *c); 840 841 /** 842 * Return the reply 843 * @param c The connection 844 * @param cookie The cookie 845 * @param e The xcb_generic_error_t supplied 846 * 847 * Returns the reply of the request asked by 848 * 849 * The parameter @p e supplied to this function must be NULL if 850 * xcb_x_print_print_query_version_unchecked(). is used. 851 * Otherwise, it stores the error if any. 852 * 853 * The returned value must be freed by the caller using free(). 854 */ 855 xcb_x_print_print_query_version_reply_t * 856 xcb_x_print_print_query_version_reply (xcb_connection_t *c, 857 xcb_x_print_print_query_version_cookie_t cookie /**< */, 858 xcb_generic_error_t **e); 859 860 int 861 xcb_x_print_print_get_printer_list_sizeof (const void *_buffer); 862 863 /** 864 * 865 * @param c The connection 866 * @return A cookie 867 * 868 * Delivers a request to the X server. 869 * 870 */ 871 xcb_x_print_print_get_printer_list_cookie_t 872 xcb_x_print_print_get_printer_list (xcb_connection_t *c, 873 uint32_t printerNameLen, 874 uint32_t localeLen, 875 const xcb_x_print_string8_t *printer_name, 876 const xcb_x_print_string8_t *locale); 877 878 /** 879 * 880 * @param c The connection 881 * @return A cookie 882 * 883 * Delivers a request to the X server. 884 * 885 * This form can be used only if the request will cause 886 * a reply to be generated. Any returned error will be 887 * placed in the event queue. 888 */ 889 xcb_x_print_print_get_printer_list_cookie_t 890 xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c, 891 uint32_t printerNameLen, 892 uint32_t localeLen, 893 const xcb_x_print_string8_t *printer_name, 894 const xcb_x_print_string8_t *locale); 895 896 int 897 xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R); 898 899 xcb_x_print_printer_iterator_t 900 xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R); 901 902 /** 903 * Return the reply 904 * @param c The connection 905 * @param cookie The cookie 906 * @param e The xcb_generic_error_t supplied 907 * 908 * Returns the reply of the request asked by 909 * 910 * The parameter @p e supplied to this function must be NULL if 911 * xcb_x_print_print_get_printer_list_unchecked(). is used. 912 * Otherwise, it stores the error if any. 913 * 914 * The returned value must be freed by the caller using free(). 915 */ 916 xcb_x_print_print_get_printer_list_reply_t * 917 xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c, 918 xcb_x_print_print_get_printer_list_cookie_t cookie /**< */, 919 xcb_generic_error_t **e); 920 921 /** 922 * 923 * @param c The connection 924 * @return A cookie 925 * 926 * Delivers a request to the X server. 927 * 928 * This form can be used only if the request will not cause 929 * a reply to be generated. Any returned error will be 930 * saved for handling by xcb_request_check(). 931 */ 932 xcb_void_cookie_t 933 xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c); 934 935 /** 936 * 937 * @param c The connection 938 * @return A cookie 939 * 940 * Delivers a request to the X server. 941 * 942 */ 943 xcb_void_cookie_t 944 xcb_x_print_print_rehash_printer_list (xcb_connection_t *c); 945 946 int 947 xcb_x_print_create_context_sizeof (const void *_buffer); 948 949 /** 950 * 951 * @param c The connection 952 * @return A cookie 953 * 954 * Delivers a request to the X server. 955 * 956 * This form can be used only if the request will not cause 957 * a reply to be generated. Any returned error will be 958 * saved for handling by xcb_request_check(). 959 */ 960 xcb_void_cookie_t 961 xcb_x_print_create_context_checked (xcb_connection_t *c, 962 uint32_t context_id, 963 uint32_t printerNameLen, 964 uint32_t localeLen, 965 const xcb_x_print_string8_t *printerName, 966 const xcb_x_print_string8_t *locale); 967 968 /** 969 * 970 * @param c The connection 971 * @return A cookie 972 * 973 * Delivers a request to the X server. 974 * 975 */ 976 xcb_void_cookie_t 977 xcb_x_print_create_context (xcb_connection_t *c, 978 uint32_t context_id, 979 uint32_t printerNameLen, 980 uint32_t localeLen, 981 const xcb_x_print_string8_t *printerName, 982 const xcb_x_print_string8_t *locale); 983 984 xcb_x_print_string8_t * 985 xcb_x_print_create_context_printer_name (const xcb_x_print_create_context_request_t *R); 986 987 int 988 xcb_x_print_create_context_printer_name_length (const xcb_x_print_create_context_request_t *R); 989 990 xcb_generic_iterator_t 991 xcb_x_print_create_context_printer_name_end (const xcb_x_print_create_context_request_t *R); 992 993 xcb_x_print_string8_t * 994 xcb_x_print_create_context_locale (const xcb_x_print_create_context_request_t *R); 995 996 int 997 xcb_x_print_create_context_locale_length (const xcb_x_print_create_context_request_t *R); 998 999 xcb_generic_iterator_t 1000 xcb_x_print_create_context_locale_end (const xcb_x_print_create_context_request_t *R); 1001 1002 /** 1003 * 1004 * @param c The connection 1005 * @return A cookie 1006 * 1007 * Delivers a request to the X server. 1008 * 1009 * This form can be used only if the request will not cause 1010 * a reply to be generated. Any returned error will be 1011 * saved for handling by xcb_request_check(). 1012 */ 1013 xcb_void_cookie_t 1014 xcb_x_print_print_set_context_checked (xcb_connection_t *c, 1015 uint32_t context); 1016 1017 /** 1018 * 1019 * @param c The connection 1020 * @return A cookie 1021 * 1022 * Delivers a request to the X server. 1023 * 1024 */ 1025 xcb_void_cookie_t 1026 xcb_x_print_print_set_context (xcb_connection_t *c, 1027 uint32_t context); 1028 1029 /** 1030 * 1031 * @param c The connection 1032 * @return A cookie 1033 * 1034 * Delivers a request to the X server. 1035 * 1036 */ 1037 xcb_x_print_print_get_context_cookie_t 1038 xcb_x_print_print_get_context (xcb_connection_t *c); 1039 1040 /** 1041 * 1042 * @param c The connection 1043 * @return A cookie 1044 * 1045 * Delivers a request to the X server. 1046 * 1047 * This form can be used only if the request will cause 1048 * a reply to be generated. Any returned error will be 1049 * placed in the event queue. 1050 */ 1051 xcb_x_print_print_get_context_cookie_t 1052 xcb_x_print_print_get_context_unchecked (xcb_connection_t *c); 1053 1054 /** 1055 * Return the reply 1056 * @param c The connection 1057 * @param cookie The cookie 1058 * @param e The xcb_generic_error_t supplied 1059 * 1060 * Returns the reply of the request asked by 1061 * 1062 * The parameter @p e supplied to this function must be NULL if 1063 * xcb_x_print_print_get_context_unchecked(). is used. 1064 * Otherwise, it stores the error if any. 1065 * 1066 * The returned value must be freed by the caller using free(). 1067 */ 1068 xcb_x_print_print_get_context_reply_t * 1069 xcb_x_print_print_get_context_reply (xcb_connection_t *c, 1070 xcb_x_print_print_get_context_cookie_t cookie /**< */, 1071 xcb_generic_error_t **e); 1072 1073 /** 1074 * 1075 * @param c The connection 1076 * @return A cookie 1077 * 1078 * Delivers a request to the X server. 1079 * 1080 * This form can be used only if the request will not cause 1081 * a reply to be generated. Any returned error will be 1082 * saved for handling by xcb_request_check(). 1083 */ 1084 xcb_void_cookie_t 1085 xcb_x_print_print_destroy_context_checked (xcb_connection_t *c, 1086 uint32_t context); 1087 1088 /** 1089 * 1090 * @param c The connection 1091 * @return A cookie 1092 * 1093 * Delivers a request to the X server. 1094 * 1095 */ 1096 xcb_void_cookie_t 1097 xcb_x_print_print_destroy_context (xcb_connection_t *c, 1098 uint32_t context); 1099 1100 /** 1101 * 1102 * @param c The connection 1103 * @return A cookie 1104 * 1105 * Delivers a request to the X server. 1106 * 1107 */ 1108 xcb_x_print_print_get_screen_of_context_cookie_t 1109 xcb_x_print_print_get_screen_of_context (xcb_connection_t *c); 1110 1111 /** 1112 * 1113 * @param c The connection 1114 * @return A cookie 1115 * 1116 * Delivers a request to the X server. 1117 * 1118 * This form can be used only if the request will cause 1119 * a reply to be generated. Any returned error will be 1120 * placed in the event queue. 1121 */ 1122 xcb_x_print_print_get_screen_of_context_cookie_t 1123 xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c); 1124 1125 /** 1126 * Return the reply 1127 * @param c The connection 1128 * @param cookie The cookie 1129 * @param e The xcb_generic_error_t supplied 1130 * 1131 * Returns the reply of the request asked by 1132 * 1133 * The parameter @p e supplied to this function must be NULL if 1134 * xcb_x_print_print_get_screen_of_context_unchecked(). is used. 1135 * Otherwise, it stores the error if any. 1136 * 1137 * The returned value must be freed by the caller using free(). 1138 */ 1139 xcb_x_print_print_get_screen_of_context_reply_t * 1140 xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c, 1141 xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */, 1142 xcb_generic_error_t **e); 1143 1144 /** 1145 * 1146 * @param c The connection 1147 * @return A cookie 1148 * 1149 * Delivers a request to the X server. 1150 * 1151 * This form can be used only if the request will not cause 1152 * a reply to be generated. Any returned error will be 1153 * saved for handling by xcb_request_check(). 1154 */ 1155 xcb_void_cookie_t 1156 xcb_x_print_print_start_job_checked (xcb_connection_t *c, 1157 uint8_t output_mode); 1158 1159 /** 1160 * 1161 * @param c The connection 1162 * @return A cookie 1163 * 1164 * Delivers a request to the X server. 1165 * 1166 */ 1167 xcb_void_cookie_t 1168 xcb_x_print_print_start_job (xcb_connection_t *c, 1169 uint8_t output_mode); 1170 1171 /** 1172 * 1173 * @param c The connection 1174 * @return A cookie 1175 * 1176 * Delivers a request to the X server. 1177 * 1178 * This form can be used only if the request will not cause 1179 * a reply to be generated. Any returned error will be 1180 * saved for handling by xcb_request_check(). 1181 */ 1182 xcb_void_cookie_t 1183 xcb_x_print_print_end_job_checked (xcb_connection_t *c, 1184 uint8_t cancel); 1185 1186 /** 1187 * 1188 * @param c The connection 1189 * @return A cookie 1190 * 1191 * Delivers a request to the X server. 1192 * 1193 */ 1194 xcb_void_cookie_t 1195 xcb_x_print_print_end_job (xcb_connection_t *c, 1196 uint8_t cancel); 1197 1198 /** 1199 * 1200 * @param c The connection 1201 * @return A cookie 1202 * 1203 * Delivers a request to the X server. 1204 * 1205 * This form can be used only if the request will not cause 1206 * a reply to be generated. Any returned error will be 1207 * saved for handling by xcb_request_check(). 1208 */ 1209 xcb_void_cookie_t 1210 xcb_x_print_print_start_doc_checked (xcb_connection_t *c, 1211 uint8_t driver_mode); 1212 1213 /** 1214 * 1215 * @param c The connection 1216 * @return A cookie 1217 * 1218 * Delivers a request to the X server. 1219 * 1220 */ 1221 xcb_void_cookie_t 1222 xcb_x_print_print_start_doc (xcb_connection_t *c, 1223 uint8_t driver_mode); 1224 1225 /** 1226 * 1227 * @param c The connection 1228 * @return A cookie 1229 * 1230 * Delivers a request to the X server. 1231 * 1232 * This form can be used only if the request will not cause 1233 * a reply to be generated. Any returned error will be 1234 * saved for handling by xcb_request_check(). 1235 */ 1236 xcb_void_cookie_t 1237 xcb_x_print_print_end_doc_checked (xcb_connection_t *c, 1238 uint8_t cancel); 1239 1240 /** 1241 * 1242 * @param c The connection 1243 * @return A cookie 1244 * 1245 * Delivers a request to the X server. 1246 * 1247 */ 1248 xcb_void_cookie_t 1249 xcb_x_print_print_end_doc (xcb_connection_t *c, 1250 uint8_t cancel); 1251 1252 int 1253 xcb_x_print_print_put_document_data_sizeof (const void *_buffer); 1254 1255 /** 1256 * 1257 * @param c The connection 1258 * @return A cookie 1259 * 1260 * Delivers a request to the X server. 1261 * 1262 * This form can be used only if the request will not cause 1263 * a reply to be generated. Any returned error will be 1264 * saved for handling by xcb_request_check(). 1265 */ 1266 xcb_void_cookie_t 1267 xcb_x_print_print_put_document_data_checked (xcb_connection_t *c, 1268 xcb_drawable_t drawable, 1269 uint32_t len_data, 1270 uint16_t len_fmt, 1271 uint16_t len_options, 1272 const uint8_t *data, 1273 const xcb_x_print_string8_t *doc_format, 1274 const xcb_x_print_string8_t *options); 1275 1276 /** 1277 * 1278 * @param c The connection 1279 * @return A cookie 1280 * 1281 * Delivers a request to the X server. 1282 * 1283 */ 1284 xcb_void_cookie_t 1285 xcb_x_print_print_put_document_data (xcb_connection_t *c, 1286 xcb_drawable_t drawable, 1287 uint32_t len_data, 1288 uint16_t len_fmt, 1289 uint16_t len_options, 1290 const uint8_t *data, 1291 const xcb_x_print_string8_t *doc_format, 1292 const xcb_x_print_string8_t *options); 1293 1294 uint8_t * 1295 xcb_x_print_print_put_document_data_data (const xcb_x_print_print_put_document_data_request_t *R); 1296 1297 int 1298 xcb_x_print_print_put_document_data_data_length (const xcb_x_print_print_put_document_data_request_t *R); 1299 1300 xcb_generic_iterator_t 1301 xcb_x_print_print_put_document_data_data_end (const xcb_x_print_print_put_document_data_request_t *R); 1302 1303 xcb_x_print_string8_t * 1304 xcb_x_print_print_put_document_data_doc_format (const xcb_x_print_print_put_document_data_request_t *R); 1305 1306 int 1307 xcb_x_print_print_put_document_data_doc_format_length (const xcb_x_print_print_put_document_data_request_t *R); 1308 1309 xcb_generic_iterator_t 1310 xcb_x_print_print_put_document_data_doc_format_end (const xcb_x_print_print_put_document_data_request_t *R); 1311 1312 xcb_x_print_string8_t * 1313 xcb_x_print_print_put_document_data_options (const xcb_x_print_print_put_document_data_request_t *R); 1314 1315 int 1316 xcb_x_print_print_put_document_data_options_length (const xcb_x_print_print_put_document_data_request_t *R); 1317 1318 xcb_generic_iterator_t 1319 xcb_x_print_print_put_document_data_options_end (const xcb_x_print_print_put_document_data_request_t *R); 1320 1321 int 1322 xcb_x_print_print_get_document_data_sizeof (const void *_buffer); 1323 1324 /** 1325 * 1326 * @param c The connection 1327 * @return A cookie 1328 * 1329 * Delivers a request to the X server. 1330 * 1331 */ 1332 xcb_x_print_print_get_document_data_cookie_t 1333 xcb_x_print_print_get_document_data (xcb_connection_t *c, 1334 xcb_x_print_pcontext_t context, 1335 uint32_t max_bytes); 1336 1337 /** 1338 * 1339 * @param c The connection 1340 * @return A cookie 1341 * 1342 * Delivers a request to the X server. 1343 * 1344 * This form can be used only if the request will cause 1345 * a reply to be generated. Any returned error will be 1346 * placed in the event queue. 1347 */ 1348 xcb_x_print_print_get_document_data_cookie_t 1349 xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c, 1350 xcb_x_print_pcontext_t context, 1351 uint32_t max_bytes); 1352 1353 uint8_t * 1354 xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R); 1355 1356 int 1357 xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R); 1358 1359 xcb_generic_iterator_t 1360 xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R); 1361 1362 /** 1363 * Return the reply 1364 * @param c The connection 1365 * @param cookie The cookie 1366 * @param e The xcb_generic_error_t supplied 1367 * 1368 * Returns the reply of the request asked by 1369 * 1370 * The parameter @p e supplied to this function must be NULL if 1371 * xcb_x_print_print_get_document_data_unchecked(). is used. 1372 * Otherwise, it stores the error if any. 1373 * 1374 * The returned value must be freed by the caller using free(). 1375 */ 1376 xcb_x_print_print_get_document_data_reply_t * 1377 xcb_x_print_print_get_document_data_reply (xcb_connection_t *c, 1378 xcb_x_print_print_get_document_data_cookie_t cookie /**< */, 1379 xcb_generic_error_t **e); 1380 1381 /** 1382 * 1383 * @param c The connection 1384 * @return A cookie 1385 * 1386 * Delivers a request to the X server. 1387 * 1388 * This form can be used only if the request will not cause 1389 * a reply to be generated. Any returned error will be 1390 * saved for handling by xcb_request_check(). 1391 */ 1392 xcb_void_cookie_t 1393 xcb_x_print_print_start_page_checked (xcb_connection_t *c, 1394 xcb_window_t window); 1395 1396 /** 1397 * 1398 * @param c The connection 1399 * @return A cookie 1400 * 1401 * Delivers a request to the X server. 1402 * 1403 */ 1404 xcb_void_cookie_t 1405 xcb_x_print_print_start_page (xcb_connection_t *c, 1406 xcb_window_t window); 1407 1408 /** 1409 * 1410 * @param c The connection 1411 * @return A cookie 1412 * 1413 * Delivers a request to the X server. 1414 * 1415 * This form can be used only if the request will not cause 1416 * a reply to be generated. Any returned error will be 1417 * saved for handling by xcb_request_check(). 1418 */ 1419 xcb_void_cookie_t 1420 xcb_x_print_print_end_page_checked (xcb_connection_t *c, 1421 uint8_t cancel); 1422 1423 /** 1424 * 1425 * @param c The connection 1426 * @return A cookie 1427 * 1428 * Delivers a request to the X server. 1429 * 1430 */ 1431 xcb_void_cookie_t 1432 xcb_x_print_print_end_page (xcb_connection_t *c, 1433 uint8_t cancel); 1434 1435 /** 1436 * 1437 * @param c The connection 1438 * @return A cookie 1439 * 1440 * Delivers a request to the X server. 1441 * 1442 * This form can be used only if the request will not cause 1443 * a reply to be generated. Any returned error will be 1444 * saved for handling by xcb_request_check(). 1445 */ 1446 xcb_void_cookie_t 1447 xcb_x_print_print_select_input_checked (xcb_connection_t *c, 1448 xcb_x_print_pcontext_t context, 1449 uint32_t event_mask); 1450 1451 /** 1452 * 1453 * @param c The connection 1454 * @return A cookie 1455 * 1456 * Delivers a request to the X server. 1457 * 1458 */ 1459 xcb_void_cookie_t 1460 xcb_x_print_print_select_input (xcb_connection_t *c, 1461 xcb_x_print_pcontext_t context, 1462 uint32_t event_mask); 1463 1464 /** 1465 * 1466 * @param c The connection 1467 * @return A cookie 1468 * 1469 * Delivers a request to the X server. 1470 * 1471 */ 1472 xcb_x_print_print_input_selected_cookie_t 1473 xcb_x_print_print_input_selected (xcb_connection_t *c, 1474 xcb_x_print_pcontext_t context); 1475 1476 /** 1477 * 1478 * @param c The connection 1479 * @return A cookie 1480 * 1481 * Delivers a request to the X server. 1482 * 1483 * This form can be used only if the request will cause 1484 * a reply to be generated. Any returned error will be 1485 * placed in the event queue. 1486 */ 1487 xcb_x_print_print_input_selected_cookie_t 1488 xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c, 1489 xcb_x_print_pcontext_t context); 1490 1491 /** 1492 * Return the reply 1493 * @param c The connection 1494 * @param cookie The cookie 1495 * @param e The xcb_generic_error_t supplied 1496 * 1497 * Returns the reply of the request asked by 1498 * 1499 * The parameter @p e supplied to this function must be NULL if 1500 * xcb_x_print_print_input_selected_unchecked(). is used. 1501 * Otherwise, it stores the error if any. 1502 * 1503 * The returned value must be freed by the caller using free(). 1504 */ 1505 xcb_x_print_print_input_selected_reply_t * 1506 xcb_x_print_print_input_selected_reply (xcb_connection_t *c, 1507 xcb_x_print_print_input_selected_cookie_t cookie /**< */, 1508 xcb_generic_error_t **e); 1509 1510 int 1511 xcb_x_print_print_get_attributes_sizeof (const void *_buffer); 1512 1513 /** 1514 * 1515 * @param c The connection 1516 * @return A cookie 1517 * 1518 * Delivers a request to the X server. 1519 * 1520 */ 1521 xcb_x_print_print_get_attributes_cookie_t 1522 xcb_x_print_print_get_attributes (xcb_connection_t *c, 1523 xcb_x_print_pcontext_t context, 1524 uint8_t pool); 1525 1526 /** 1527 * 1528 * @param c The connection 1529 * @return A cookie 1530 * 1531 * Delivers a request to the X server. 1532 * 1533 * This form can be used only if the request will cause 1534 * a reply to be generated. Any returned error will be 1535 * placed in the event queue. 1536 */ 1537 xcb_x_print_print_get_attributes_cookie_t 1538 xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c, 1539 xcb_x_print_pcontext_t context, 1540 uint8_t pool); 1541 1542 xcb_x_print_string8_t * 1543 xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R); 1544 1545 int 1546 xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R); 1547 1548 xcb_generic_iterator_t 1549 xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R); 1550 1551 /** 1552 * Return the reply 1553 * @param c The connection 1554 * @param cookie The cookie 1555 * @param e The xcb_generic_error_t supplied 1556 * 1557 * Returns the reply of the request asked by 1558 * 1559 * The parameter @p e supplied to this function must be NULL if 1560 * xcb_x_print_print_get_attributes_unchecked(). is used. 1561 * Otherwise, it stores the error if any. 1562 * 1563 * The returned value must be freed by the caller using free(). 1564 */ 1565 xcb_x_print_print_get_attributes_reply_t * 1566 xcb_x_print_print_get_attributes_reply (xcb_connection_t *c, 1567 xcb_x_print_print_get_attributes_cookie_t cookie /**< */, 1568 xcb_generic_error_t **e); 1569 1570 int 1571 xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer); 1572 1573 /** 1574 * 1575 * @param c The connection 1576 * @return A cookie 1577 * 1578 * Delivers a request to the X server. 1579 * 1580 */ 1581 xcb_x_print_print_get_one_attributes_cookie_t 1582 xcb_x_print_print_get_one_attributes (xcb_connection_t *c, 1583 xcb_x_print_pcontext_t context, 1584 uint32_t nameLen, 1585 uint8_t pool, 1586 const xcb_x_print_string8_t *name); 1587 1588 /** 1589 * 1590 * @param c The connection 1591 * @return A cookie 1592 * 1593 * Delivers a request to the X server. 1594 * 1595 * This form can be used only if the request will cause 1596 * a reply to be generated. Any returned error will be 1597 * placed in the event queue. 1598 */ 1599 xcb_x_print_print_get_one_attributes_cookie_t 1600 xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c, 1601 xcb_x_print_pcontext_t context, 1602 uint32_t nameLen, 1603 uint8_t pool, 1604 const xcb_x_print_string8_t *name); 1605 1606 xcb_x_print_string8_t * 1607 xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R); 1608 1609 int 1610 xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R); 1611 1612 xcb_generic_iterator_t 1613 xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R); 1614 1615 /** 1616 * Return the reply 1617 * @param c The connection 1618 * @param cookie The cookie 1619 * @param e The xcb_generic_error_t supplied 1620 * 1621 * Returns the reply of the request asked by 1622 * 1623 * The parameter @p e supplied to this function must be NULL if 1624 * xcb_x_print_print_get_one_attributes_unchecked(). is used. 1625 * Otherwise, it stores the error if any. 1626 * 1627 * The returned value must be freed by the caller using free(). 1628 */ 1629 xcb_x_print_print_get_one_attributes_reply_t * 1630 xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c, 1631 xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */, 1632 xcb_generic_error_t **e); 1633 1634 int 1635 xcb_x_print_print_set_attributes_sizeof (const void *_buffer, 1636 uint32_t attributes_len); 1637 1638 /** 1639 * 1640 * @param c The connection 1641 * @return A cookie 1642 * 1643 * Delivers a request to the X server. 1644 * 1645 * This form can be used only if the request will not cause 1646 * a reply to be generated. Any returned error will be 1647 * saved for handling by xcb_request_check(). 1648 */ 1649 xcb_void_cookie_t 1650 xcb_x_print_print_set_attributes_checked (xcb_connection_t *c, 1651 xcb_x_print_pcontext_t context, 1652 uint32_t stringLen, 1653 uint8_t pool, 1654 uint8_t rule, 1655 uint32_t attributes_len, 1656 const xcb_x_print_string8_t *attributes); 1657 1658 /** 1659 * 1660 * @param c The connection 1661 * @return A cookie 1662 * 1663 * Delivers a request to the X server. 1664 * 1665 */ 1666 xcb_void_cookie_t 1667 xcb_x_print_print_set_attributes (xcb_connection_t *c, 1668 xcb_x_print_pcontext_t context, 1669 uint32_t stringLen, 1670 uint8_t pool, 1671 uint8_t rule, 1672 uint32_t attributes_len, 1673 const xcb_x_print_string8_t *attributes); 1674 1675 xcb_x_print_string8_t * 1676 xcb_x_print_print_set_attributes_attributes (const xcb_x_print_print_set_attributes_request_t *R); 1677 1678 int 1679 xcb_x_print_print_set_attributes_attributes_length (const xcb_x_print_print_set_attributes_request_t *R); 1680 1681 xcb_generic_iterator_t 1682 xcb_x_print_print_set_attributes_attributes_end (const xcb_x_print_print_set_attributes_request_t *R); 1683 1684 /** 1685 * 1686 * @param c The connection 1687 * @return A cookie 1688 * 1689 * Delivers a request to the X server. 1690 * 1691 */ 1692 xcb_x_print_print_get_page_dimensions_cookie_t 1693 xcb_x_print_print_get_page_dimensions (xcb_connection_t *c, 1694 xcb_x_print_pcontext_t context); 1695 1696 /** 1697 * 1698 * @param c The connection 1699 * @return A cookie 1700 * 1701 * Delivers a request to the X server. 1702 * 1703 * This form can be used only if the request will cause 1704 * a reply to be generated. Any returned error will be 1705 * placed in the event queue. 1706 */ 1707 xcb_x_print_print_get_page_dimensions_cookie_t 1708 xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c, 1709 xcb_x_print_pcontext_t context); 1710 1711 /** 1712 * Return the reply 1713 * @param c The connection 1714 * @param cookie The cookie 1715 * @param e The xcb_generic_error_t supplied 1716 * 1717 * Returns the reply of the request asked by 1718 * 1719 * The parameter @p e supplied to this function must be NULL if 1720 * xcb_x_print_print_get_page_dimensions_unchecked(). is used. 1721 * Otherwise, it stores the error if any. 1722 * 1723 * The returned value must be freed by the caller using free(). 1724 */ 1725 xcb_x_print_print_get_page_dimensions_reply_t * 1726 xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c, 1727 xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */, 1728 xcb_generic_error_t **e); 1729 1730 int 1731 xcb_x_print_print_query_screens_sizeof (const void *_buffer); 1732 1733 /** 1734 * 1735 * @param c The connection 1736 * @return A cookie 1737 * 1738 * Delivers a request to the X server. 1739 * 1740 */ 1741 xcb_x_print_print_query_screens_cookie_t 1742 xcb_x_print_print_query_screens (xcb_connection_t *c); 1743 1744 /** 1745 * 1746 * @param c The connection 1747 * @return A cookie 1748 * 1749 * Delivers a request to the X server. 1750 * 1751 * This form can be used only if the request will cause 1752 * a reply to be generated. Any returned error will be 1753 * placed in the event queue. 1754 */ 1755 xcb_x_print_print_query_screens_cookie_t 1756 xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c); 1757 1758 xcb_window_t * 1759 xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R); 1760 1761 int 1762 xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R); 1763 1764 xcb_generic_iterator_t 1765 xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R); 1766 1767 /** 1768 * Return the reply 1769 * @param c The connection 1770 * @param cookie The cookie 1771 * @param e The xcb_generic_error_t supplied 1772 * 1773 * Returns the reply of the request asked by 1774 * 1775 * The parameter @p e supplied to this function must be NULL if 1776 * xcb_x_print_print_query_screens_unchecked(). is used. 1777 * Otherwise, it stores the error if any. 1778 * 1779 * The returned value must be freed by the caller using free(). 1780 */ 1781 xcb_x_print_print_query_screens_reply_t * 1782 xcb_x_print_print_query_screens_reply (xcb_connection_t *c, 1783 xcb_x_print_print_query_screens_cookie_t cookie /**< */, 1784 xcb_generic_error_t **e); 1785 1786 /** 1787 * 1788 * @param c The connection 1789 * @return A cookie 1790 * 1791 * Delivers a request to the X server. 1792 * 1793 */ 1794 xcb_x_print_print_set_image_resolution_cookie_t 1795 xcb_x_print_print_set_image_resolution (xcb_connection_t *c, 1796 xcb_x_print_pcontext_t context, 1797 uint16_t image_resolution); 1798 1799 /** 1800 * 1801 * @param c The connection 1802 * @return A cookie 1803 * 1804 * Delivers a request to the X server. 1805 * 1806 * This form can be used only if the request will cause 1807 * a reply to be generated. Any returned error will be 1808 * placed in the event queue. 1809 */ 1810 xcb_x_print_print_set_image_resolution_cookie_t 1811 xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c, 1812 xcb_x_print_pcontext_t context, 1813 uint16_t image_resolution); 1814 1815 /** 1816 * Return the reply 1817 * @param c The connection 1818 * @param cookie The cookie 1819 * @param e The xcb_generic_error_t supplied 1820 * 1821 * Returns the reply of the request asked by 1822 * 1823 * The parameter @p e supplied to this function must be NULL if 1824 * xcb_x_print_print_set_image_resolution_unchecked(). is used. 1825 * Otherwise, it stores the error if any. 1826 * 1827 * The returned value must be freed by the caller using free(). 1828 */ 1829 xcb_x_print_print_set_image_resolution_reply_t * 1830 xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c, 1831 xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */, 1832 xcb_generic_error_t **e); 1833 1834 /** 1835 * 1836 * @param c The connection 1837 * @return A cookie 1838 * 1839 * Delivers a request to the X server. 1840 * 1841 */ 1842 xcb_x_print_print_get_image_resolution_cookie_t 1843 xcb_x_print_print_get_image_resolution (xcb_connection_t *c, 1844 xcb_x_print_pcontext_t context); 1845 1846 /** 1847 * 1848 * @param c The connection 1849 * @return A cookie 1850 * 1851 * Delivers a request to the X server. 1852 * 1853 * This form can be used only if the request will cause 1854 * a reply to be generated. Any returned error will be 1855 * placed in the event queue. 1856 */ 1857 xcb_x_print_print_get_image_resolution_cookie_t 1858 xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c, 1859 xcb_x_print_pcontext_t context); 1860 1861 /** 1862 * Return the reply 1863 * @param c The connection 1864 * @param cookie The cookie 1865 * @param e The xcb_generic_error_t supplied 1866 * 1867 * Returns the reply of the request asked by 1868 * 1869 * The parameter @p e supplied to this function must be NULL if 1870 * xcb_x_print_print_get_image_resolution_unchecked(). is used. 1871 * Otherwise, it stores the error if any. 1872 * 1873 * The returned value must be freed by the caller using free(). 1874 */ 1875 xcb_x_print_print_get_image_resolution_reply_t * 1876 xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c, 1877 xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */, 1878 xcb_generic_error_t **e); 1879 1880 1881 #ifdef __cplusplus 1882 } 1883 #endif 1884 1885 #endif 1886 1887 /** 1888 * @} 1889 */