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 /** 985 * 986 * @param c The connection 987 * @return A cookie 988 * 989 * Delivers a request to the X server. 990 * 991 * This form can be used only if the request will not cause 992 * a reply to be generated. Any returned error will be 993 * saved for handling by xcb_request_check(). 994 */ 995 xcb_void_cookie_t 996 xcb_x_print_print_set_context_checked (xcb_connection_t *c /**< */, 997 uint32_t context /**< */); 998 999 /** 1000 * 1001 * @param c The connection 1002 * @return A cookie 1003 * 1004 * Delivers a request to the X server. 1005 * 1006 */ 1007 xcb_void_cookie_t 1008 xcb_x_print_print_set_context (xcb_connection_t *c /**< */, 1009 uint32_t context /**< */); 1010 1011 /** 1012 * 1013 * @param c The connection 1014 * @return A cookie 1015 * 1016 * Delivers a request to the X server. 1017 * 1018 */ 1019 xcb_x_print_print_get_context_cookie_t 1020 xcb_x_print_print_get_context (xcb_connection_t *c /**< */); 1021 1022 /** 1023 * 1024 * @param c The connection 1025 * @return A cookie 1026 * 1027 * Delivers a request to the X server. 1028 * 1029 * This form can be used only if the request will cause 1030 * a reply to be generated. Any returned error will be 1031 * placed in the event queue. 1032 */ 1033 xcb_x_print_print_get_context_cookie_t 1034 xcb_x_print_print_get_context_unchecked (xcb_connection_t *c /**< */); 1035 1036 /** 1037 * Return the reply 1038 * @param c The connection 1039 * @param cookie The cookie 1040 * @param e The xcb_generic_error_t supplied 1041 * 1042 * Returns the reply of the request asked by 1043 * 1044 * The parameter @p e supplied to this function must be NULL if 1045 * xcb_x_print_print_get_context_unchecked(). is used. 1046 * Otherwise, it stores the error if any. 1047 * 1048 * The returned value must be freed by the caller using free(). 1049 */ 1050 xcb_x_print_print_get_context_reply_t * 1051 xcb_x_print_print_get_context_reply (xcb_connection_t *c /**< */, 1052 xcb_x_print_print_get_context_cookie_t cookie /**< */, 1053 xcb_generic_error_t **e /**< */); 1054 1055 /** 1056 * 1057 * @param c The connection 1058 * @return A cookie 1059 * 1060 * Delivers a request to the X server. 1061 * 1062 * This form can be used only if the request will not cause 1063 * a reply to be generated. Any returned error will be 1064 * saved for handling by xcb_request_check(). 1065 */ 1066 xcb_void_cookie_t 1067 xcb_x_print_print_destroy_context_checked (xcb_connection_t *c /**< */, 1068 uint32_t context /**< */); 1069 1070 /** 1071 * 1072 * @param c The connection 1073 * @return A cookie 1074 * 1075 * Delivers a request to the X server. 1076 * 1077 */ 1078 xcb_void_cookie_t 1079 xcb_x_print_print_destroy_context (xcb_connection_t *c /**< */, 1080 uint32_t context /**< */); 1081 1082 /** 1083 * 1084 * @param c The connection 1085 * @return A cookie 1086 * 1087 * Delivers a request to the X server. 1088 * 1089 */ 1090 xcb_x_print_print_get_screen_of_context_cookie_t 1091 xcb_x_print_print_get_screen_of_context (xcb_connection_t *c /**< */); 1092 1093 /** 1094 * 1095 * @param c The connection 1096 * @return A cookie 1097 * 1098 * Delivers a request to the X server. 1099 * 1100 * This form can be used only if the request will cause 1101 * a reply to be generated. Any returned error will be 1102 * placed in the event queue. 1103 */ 1104 xcb_x_print_print_get_screen_of_context_cookie_t 1105 xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c /**< */); 1106 1107 /** 1108 * Return the reply 1109 * @param c The connection 1110 * @param cookie The cookie 1111 * @param e The xcb_generic_error_t supplied 1112 * 1113 * Returns the reply of the request asked by 1114 * 1115 * The parameter @p e supplied to this function must be NULL if 1116 * xcb_x_print_print_get_screen_of_context_unchecked(). is used. 1117 * Otherwise, it stores the error if any. 1118 * 1119 * The returned value must be freed by the caller using free(). 1120 */ 1121 xcb_x_print_print_get_screen_of_context_reply_t * 1122 xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c /**< */, 1123 xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */, 1124 xcb_generic_error_t **e /**< */); 1125 1126 /** 1127 * 1128 * @param c The connection 1129 * @return A cookie 1130 * 1131 * Delivers a request to the X server. 1132 * 1133 * This form can be used only if the request will not cause 1134 * a reply to be generated. Any returned error will be 1135 * saved for handling by xcb_request_check(). 1136 */ 1137 xcb_void_cookie_t 1138 xcb_x_print_print_start_job_checked (xcb_connection_t *c /**< */, 1139 uint8_t output_mode /**< */); 1140 1141 /** 1142 * 1143 * @param c The connection 1144 * @return A cookie 1145 * 1146 * Delivers a request to the X server. 1147 * 1148 */ 1149 xcb_void_cookie_t 1150 xcb_x_print_print_start_job (xcb_connection_t *c /**< */, 1151 uint8_t output_mode /**< */); 1152 1153 /** 1154 * 1155 * @param c The connection 1156 * @return A cookie 1157 * 1158 * Delivers a request to the X server. 1159 * 1160 * This form can be used only if the request will not cause 1161 * a reply to be generated. Any returned error will be 1162 * saved for handling by xcb_request_check(). 1163 */ 1164 xcb_void_cookie_t 1165 xcb_x_print_print_end_job_checked (xcb_connection_t *c /**< */, 1166 uint8_t cancel /**< */); 1167 1168 /** 1169 * 1170 * @param c The connection 1171 * @return A cookie 1172 * 1173 * Delivers a request to the X server. 1174 * 1175 */ 1176 xcb_void_cookie_t 1177 xcb_x_print_print_end_job (xcb_connection_t *c /**< */, 1178 uint8_t cancel /**< */); 1179 1180 /** 1181 * 1182 * @param c The connection 1183 * @return A cookie 1184 * 1185 * Delivers a request to the X server. 1186 * 1187 * This form can be used only if the request will not cause 1188 * a reply to be generated. Any returned error will be 1189 * saved for handling by xcb_request_check(). 1190 */ 1191 xcb_void_cookie_t 1192 xcb_x_print_print_start_doc_checked (xcb_connection_t *c /**< */, 1193 uint8_t driver_mode /**< */); 1194 1195 /** 1196 * 1197 * @param c The connection 1198 * @return A cookie 1199 * 1200 * Delivers a request to the X server. 1201 * 1202 */ 1203 xcb_void_cookie_t 1204 xcb_x_print_print_start_doc (xcb_connection_t *c /**< */, 1205 uint8_t driver_mode /**< */); 1206 1207 /** 1208 * 1209 * @param c The connection 1210 * @return A cookie 1211 * 1212 * Delivers a request to the X server. 1213 * 1214 * This form can be used only if the request will not cause 1215 * a reply to be generated. Any returned error will be 1216 * saved for handling by xcb_request_check(). 1217 */ 1218 xcb_void_cookie_t 1219 xcb_x_print_print_end_doc_checked (xcb_connection_t *c /**< */, 1220 uint8_t cancel /**< */); 1221 1222 /** 1223 * 1224 * @param c The connection 1225 * @return A cookie 1226 * 1227 * Delivers a request to the X server. 1228 * 1229 */ 1230 xcb_void_cookie_t 1231 xcb_x_print_print_end_doc (xcb_connection_t *c /**< */, 1232 uint8_t cancel /**< */); 1233 1234 int 1235 xcb_x_print_print_put_document_data_sizeof (const void *_buffer /**< */, 1236 uint32_t doc_format_len /**< */, 1237 uint32_t options_len /**< */); 1238 1239 /** 1240 * 1241 * @param c The connection 1242 * @return A cookie 1243 * 1244 * Delivers a request to the X server. 1245 * 1246 * This form can be used only if the request will not cause 1247 * a reply to be generated. Any returned error will be 1248 * saved for handling by xcb_request_check(). 1249 */ 1250 xcb_void_cookie_t 1251 xcb_x_print_print_put_document_data_checked (xcb_connection_t *c /**< */, 1252 xcb_drawable_t drawable /**< */, 1253 uint32_t len_data /**< */, 1254 uint16_t len_fmt /**< */, 1255 uint16_t len_options /**< */, 1256 const uint8_t *data /**< */, 1257 uint32_t doc_format_len /**< */, 1258 const xcb_x_print_string8_t *doc_format /**< */, 1259 uint32_t options_len /**< */, 1260 const xcb_x_print_string8_t *options /**< */); 1261 1262 /** 1263 * 1264 * @param c The connection 1265 * @return A cookie 1266 * 1267 * Delivers a request to the X server. 1268 * 1269 */ 1270 xcb_void_cookie_t 1271 xcb_x_print_print_put_document_data (xcb_connection_t *c /**< */, 1272 xcb_drawable_t drawable /**< */, 1273 uint32_t len_data /**< */, 1274 uint16_t len_fmt /**< */, 1275 uint16_t len_options /**< */, 1276 const uint8_t *data /**< */, 1277 uint32_t doc_format_len /**< */, 1278 const xcb_x_print_string8_t *doc_format /**< */, 1279 uint32_t options_len /**< */, 1280 const xcb_x_print_string8_t *options /**< */); 1281 1282 int 1283 xcb_x_print_print_get_document_data_sizeof (const void *_buffer /**< */); 1284 1285 /** 1286 * 1287 * @param c The connection 1288 * @return A cookie 1289 * 1290 * Delivers a request to the X server. 1291 * 1292 */ 1293 xcb_x_print_print_get_document_data_cookie_t 1294 xcb_x_print_print_get_document_data (xcb_connection_t *c /**< */, 1295 xcb_x_print_pcontext_t context /**< */, 1296 uint32_t max_bytes /**< */); 1297 1298 /** 1299 * 1300 * @param c The connection 1301 * @return A cookie 1302 * 1303 * Delivers a request to the X server. 1304 * 1305 * This form can be used only if the request will cause 1306 * a reply to be generated. Any returned error will be 1307 * placed in the event queue. 1308 */ 1309 xcb_x_print_print_get_document_data_cookie_t 1310 xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c /**< */, 1311 xcb_x_print_pcontext_t context /**< */, 1312 uint32_t max_bytes /**< */); 1313 1314 uint8_t * 1315 xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R /**< */); 1316 1317 int 1318 xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R /**< */); 1319 1320 xcb_generic_iterator_t 1321 xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R /**< */); 1322 1323 /** 1324 * Return the reply 1325 * @param c The connection 1326 * @param cookie The cookie 1327 * @param e The xcb_generic_error_t supplied 1328 * 1329 * Returns the reply of the request asked by 1330 * 1331 * The parameter @p e supplied to this function must be NULL if 1332 * xcb_x_print_print_get_document_data_unchecked(). is used. 1333 * Otherwise, it stores the error if any. 1334 * 1335 * The returned value must be freed by the caller using free(). 1336 */ 1337 xcb_x_print_print_get_document_data_reply_t * 1338 xcb_x_print_print_get_document_data_reply (xcb_connection_t *c /**< */, 1339 xcb_x_print_print_get_document_data_cookie_t cookie /**< */, 1340 xcb_generic_error_t **e /**< */); 1341 1342 /** 1343 * 1344 * @param c The connection 1345 * @return A cookie 1346 * 1347 * Delivers a request to the X server. 1348 * 1349 * This form can be used only if the request will not cause 1350 * a reply to be generated. Any returned error will be 1351 * saved for handling by xcb_request_check(). 1352 */ 1353 xcb_void_cookie_t 1354 xcb_x_print_print_start_page_checked (xcb_connection_t *c /**< */, 1355 xcb_window_t window /**< */); 1356 1357 /** 1358 * 1359 * @param c The connection 1360 * @return A cookie 1361 * 1362 * Delivers a request to the X server. 1363 * 1364 */ 1365 xcb_void_cookie_t 1366 xcb_x_print_print_start_page (xcb_connection_t *c /**< */, 1367 xcb_window_t window /**< */); 1368 1369 /** 1370 * 1371 * @param c The connection 1372 * @return A cookie 1373 * 1374 * Delivers a request to the X server. 1375 * 1376 * This form can be used only if the request will not cause 1377 * a reply to be generated. Any returned error will be 1378 * saved for handling by xcb_request_check(). 1379 */ 1380 xcb_void_cookie_t 1381 xcb_x_print_print_end_page_checked (xcb_connection_t *c /**< */, 1382 uint8_t cancel /**< */); 1383 1384 /** 1385 * 1386 * @param c The connection 1387 * @return A cookie 1388 * 1389 * Delivers a request to the X server. 1390 * 1391 */ 1392 xcb_void_cookie_t 1393 xcb_x_print_print_end_page (xcb_connection_t *c /**< */, 1394 uint8_t cancel /**< */); 1395 1396 int 1397 xcb_x_print_print_select_input_sizeof (const void *_buffer /**< */); 1398 1399 /** 1400 * 1401 * @param c The connection 1402 * @return A cookie 1403 * 1404 * Delivers a request to the X server. 1405 * 1406 * This form can be used only if the request will not cause 1407 * a reply to be generated. Any returned error will be 1408 * saved for handling by xcb_request_check(). 1409 */ 1410 xcb_void_cookie_t 1411 xcb_x_print_print_select_input_checked (xcb_connection_t *c /**< */, 1412 xcb_x_print_pcontext_t context /**< */, 1413 uint32_t event_mask /**< */, 1414 const uint32_t *event_list /**< */); 1415 1416 /** 1417 * 1418 * @param c The connection 1419 * @return A cookie 1420 * 1421 * Delivers a request to the X server. 1422 * 1423 */ 1424 xcb_void_cookie_t 1425 xcb_x_print_print_select_input (xcb_connection_t *c /**< */, 1426 xcb_x_print_pcontext_t context /**< */, 1427 uint32_t event_mask /**< */, 1428 const uint32_t *event_list /**< */); 1429 1430 int 1431 xcb_x_print_print_input_selected_serialize (void **_buffer /**< */, 1432 const xcb_x_print_print_input_selected_reply_t *_aux /**< */, 1433 const uint32_t *event_list /**< */, 1434 const uint32_t *all_events_list /**< */); 1435 1436 int 1437 xcb_x_print_print_input_selected_unserialize (const void *_buffer /**< */, 1438 xcb_x_print_print_input_selected_reply_t **_aux /**< */); 1439 1440 int 1441 xcb_x_print_print_input_selected_sizeof (const void *_buffer /**< */); 1442 1443 /** 1444 * 1445 * @param c The connection 1446 * @return A cookie 1447 * 1448 * Delivers a request to the X server. 1449 * 1450 */ 1451 xcb_x_print_print_input_selected_cookie_t 1452 xcb_x_print_print_input_selected (xcb_connection_t *c /**< */, 1453 xcb_x_print_pcontext_t context /**< */); 1454 1455 /** 1456 * 1457 * @param c The connection 1458 * @return A cookie 1459 * 1460 * Delivers a request to the X server. 1461 * 1462 * This form can be used only if the request will cause 1463 * a reply to be generated. Any returned error will be 1464 * placed in the event queue. 1465 */ 1466 xcb_x_print_print_input_selected_cookie_t 1467 xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c /**< */, 1468 xcb_x_print_pcontext_t context /**< */); 1469 1470 uint32_t * 1471 xcb_x_print_print_input_selected_event_list (const xcb_x_print_print_input_selected_reply_t *R /**< */); 1472 1473 int 1474 xcb_x_print_print_input_selected_event_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */); 1475 1476 xcb_generic_iterator_t 1477 xcb_x_print_print_input_selected_event_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */); 1478 1479 uint32_t * 1480 xcb_x_print_print_input_selected_all_events_list (const xcb_x_print_print_input_selected_reply_t *R /**< */); 1481 1482 int 1483 xcb_x_print_print_input_selected_all_events_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */); 1484 1485 xcb_generic_iterator_t 1486 xcb_x_print_print_input_selected_all_events_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */); 1487 1488 /** 1489 * Return the reply 1490 * @param c The connection 1491 * @param cookie The cookie 1492 * @param e The xcb_generic_error_t supplied 1493 * 1494 * Returns the reply of the request asked by 1495 * 1496 * The parameter @p e supplied to this function must be NULL if 1497 * xcb_x_print_print_input_selected_unchecked(). is used. 1498 * Otherwise, it stores the error if any. 1499 * 1500 * The returned value must be freed by the caller using free(). 1501 */ 1502 xcb_x_print_print_input_selected_reply_t * 1503 xcb_x_print_print_input_selected_reply (xcb_connection_t *c /**< */, 1504 xcb_x_print_print_input_selected_cookie_t cookie /**< */, 1505 xcb_generic_error_t **e /**< */); 1506 1507 int 1508 xcb_x_print_print_get_attributes_sizeof (const void *_buffer /**< */); 1509 1510 /** 1511 * 1512 * @param c The connection 1513 * @return A cookie 1514 * 1515 * Delivers a request to the X server. 1516 * 1517 */ 1518 xcb_x_print_print_get_attributes_cookie_t 1519 xcb_x_print_print_get_attributes (xcb_connection_t *c /**< */, 1520 xcb_x_print_pcontext_t context /**< */, 1521 uint8_t pool /**< */); 1522 1523 /** 1524 * 1525 * @param c The connection 1526 * @return A cookie 1527 * 1528 * Delivers a request to the X server. 1529 * 1530 * This form can be used only if the request will cause 1531 * a reply to be generated. Any returned error will be 1532 * placed in the event queue. 1533 */ 1534 xcb_x_print_print_get_attributes_cookie_t 1535 xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c /**< */, 1536 xcb_x_print_pcontext_t context /**< */, 1537 uint8_t pool /**< */); 1538 1539 xcb_x_print_string8_t * 1540 xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R /**< */); 1541 1542 int 1543 xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R /**< */); 1544 1545 xcb_generic_iterator_t 1546 xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R /**< */); 1547 1548 /** 1549 * Return the reply 1550 * @param c The connection 1551 * @param cookie The cookie 1552 * @param e The xcb_generic_error_t supplied 1553 * 1554 * Returns the reply of the request asked by 1555 * 1556 * The parameter @p e supplied to this function must be NULL if 1557 * xcb_x_print_print_get_attributes_unchecked(). is used. 1558 * Otherwise, it stores the error if any. 1559 * 1560 * The returned value must be freed by the caller using free(). 1561 */ 1562 xcb_x_print_print_get_attributes_reply_t * 1563 xcb_x_print_print_get_attributes_reply (xcb_connection_t *c /**< */, 1564 xcb_x_print_print_get_attributes_cookie_t cookie /**< */, 1565 xcb_generic_error_t **e /**< */); 1566 1567 int 1568 xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer /**< */); 1569 1570 /** 1571 * 1572 * @param c The connection 1573 * @return A cookie 1574 * 1575 * Delivers a request to the X server. 1576 * 1577 */ 1578 xcb_x_print_print_get_one_attributes_cookie_t 1579 xcb_x_print_print_get_one_attributes (xcb_connection_t *c /**< */, 1580 xcb_x_print_pcontext_t context /**< */, 1581 uint32_t nameLen /**< */, 1582 uint8_t pool /**< */, 1583 const xcb_x_print_string8_t *name /**< */); 1584 1585 /** 1586 * 1587 * @param c The connection 1588 * @return A cookie 1589 * 1590 * Delivers a request to the X server. 1591 * 1592 * This form can be used only if the request will cause 1593 * a reply to be generated. Any returned error will be 1594 * placed in the event queue. 1595 */ 1596 xcb_x_print_print_get_one_attributes_cookie_t 1597 xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c /**< */, 1598 xcb_x_print_pcontext_t context /**< */, 1599 uint32_t nameLen /**< */, 1600 uint8_t pool /**< */, 1601 const xcb_x_print_string8_t *name /**< */); 1602 1603 xcb_x_print_string8_t * 1604 xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */); 1605 1606 int 1607 xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */); 1608 1609 xcb_generic_iterator_t 1610 xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */); 1611 1612 /** 1613 * Return the reply 1614 * @param c The connection 1615 * @param cookie The cookie 1616 * @param e The xcb_generic_error_t supplied 1617 * 1618 * Returns the reply of the request asked by 1619 * 1620 * The parameter @p e supplied to this function must be NULL if 1621 * xcb_x_print_print_get_one_attributes_unchecked(). is used. 1622 * Otherwise, it stores the error if any. 1623 * 1624 * The returned value must be freed by the caller using free(). 1625 */ 1626 xcb_x_print_print_get_one_attributes_reply_t * 1627 xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c /**< */, 1628 xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */, 1629 xcb_generic_error_t **e /**< */); 1630 1631 int 1632 xcb_x_print_print_set_attributes_sizeof (const void *_buffer /**< */, 1633 uint32_t attributes_len /**< */); 1634 1635 /** 1636 * 1637 * @param c The connection 1638 * @return A cookie 1639 * 1640 * Delivers a request to the X server. 1641 * 1642 * This form can be used only if the request will not cause 1643 * a reply to be generated. Any returned error will be 1644 * saved for handling by xcb_request_check(). 1645 */ 1646 xcb_void_cookie_t 1647 xcb_x_print_print_set_attributes_checked (xcb_connection_t *c /**< */, 1648 xcb_x_print_pcontext_t context /**< */, 1649 uint32_t stringLen /**< */, 1650 uint8_t pool /**< */, 1651 uint8_t rule /**< */, 1652 uint32_t attributes_len /**< */, 1653 const xcb_x_print_string8_t *attributes /**< */); 1654 1655 /** 1656 * 1657 * @param c The connection 1658 * @return A cookie 1659 * 1660 * Delivers a request to the X server. 1661 * 1662 */ 1663 xcb_void_cookie_t 1664 xcb_x_print_print_set_attributes (xcb_connection_t *c /**< */, 1665 xcb_x_print_pcontext_t context /**< */, 1666 uint32_t stringLen /**< */, 1667 uint8_t pool /**< */, 1668 uint8_t rule /**< */, 1669 uint32_t attributes_len /**< */, 1670 const xcb_x_print_string8_t *attributes /**< */); 1671 1672 /** 1673 * 1674 * @param c The connection 1675 * @return A cookie 1676 * 1677 * Delivers a request to the X server. 1678 * 1679 */ 1680 xcb_x_print_print_get_page_dimensions_cookie_t 1681 xcb_x_print_print_get_page_dimensions (xcb_connection_t *c /**< */, 1682 xcb_x_print_pcontext_t context /**< */); 1683 1684 /** 1685 * 1686 * @param c The connection 1687 * @return A cookie 1688 * 1689 * Delivers a request to the X server. 1690 * 1691 * This form can be used only if the request will cause 1692 * a reply to be generated. Any returned error will be 1693 * placed in the event queue. 1694 */ 1695 xcb_x_print_print_get_page_dimensions_cookie_t 1696 xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c /**< */, 1697 xcb_x_print_pcontext_t context /**< */); 1698 1699 /** 1700 * Return the reply 1701 * @param c The connection 1702 * @param cookie The cookie 1703 * @param e The xcb_generic_error_t supplied 1704 * 1705 * Returns the reply of the request asked by 1706 * 1707 * The parameter @p e supplied to this function must be NULL if 1708 * xcb_x_print_print_get_page_dimensions_unchecked(). is used. 1709 * Otherwise, it stores the error if any. 1710 * 1711 * The returned value must be freed by the caller using free(). 1712 */ 1713 xcb_x_print_print_get_page_dimensions_reply_t * 1714 xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c /**< */, 1715 xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */, 1716 xcb_generic_error_t **e /**< */); 1717 1718 int 1719 xcb_x_print_print_query_screens_sizeof (const void *_buffer /**< */); 1720 1721 /** 1722 * 1723 * @param c The connection 1724 * @return A cookie 1725 * 1726 * Delivers a request to the X server. 1727 * 1728 */ 1729 xcb_x_print_print_query_screens_cookie_t 1730 xcb_x_print_print_query_screens (xcb_connection_t *c /**< */); 1731 1732 /** 1733 * 1734 * @param c The connection 1735 * @return A cookie 1736 * 1737 * Delivers a request to the X server. 1738 * 1739 * This form can be used only if the request will cause 1740 * a reply to be generated. Any returned error will be 1741 * placed in the event queue. 1742 */ 1743 xcb_x_print_print_query_screens_cookie_t 1744 xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c /**< */); 1745 1746 xcb_window_t * 1747 xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R /**< */); 1748 1749 int 1750 xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R /**< */); 1751 1752 xcb_generic_iterator_t 1753 xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R /**< */); 1754 1755 /** 1756 * Return the reply 1757 * @param c The connection 1758 * @param cookie The cookie 1759 * @param e The xcb_generic_error_t supplied 1760 * 1761 * Returns the reply of the request asked by 1762 * 1763 * The parameter @p e supplied to this function must be NULL if 1764 * xcb_x_print_print_query_screens_unchecked(). is used. 1765 * Otherwise, it stores the error if any. 1766 * 1767 * The returned value must be freed by the caller using free(). 1768 */ 1769 xcb_x_print_print_query_screens_reply_t * 1770 xcb_x_print_print_query_screens_reply (xcb_connection_t *c /**< */, 1771 xcb_x_print_print_query_screens_cookie_t cookie /**< */, 1772 xcb_generic_error_t **e /**< */); 1773 1774 /** 1775 * 1776 * @param c The connection 1777 * @return A cookie 1778 * 1779 * Delivers a request to the X server. 1780 * 1781 */ 1782 xcb_x_print_print_set_image_resolution_cookie_t 1783 xcb_x_print_print_set_image_resolution (xcb_connection_t *c /**< */, 1784 xcb_x_print_pcontext_t context /**< */, 1785 uint16_t image_resolution /**< */); 1786 1787 /** 1788 * 1789 * @param c The connection 1790 * @return A cookie 1791 * 1792 * Delivers a request to the X server. 1793 * 1794 * This form can be used only if the request will cause 1795 * a reply to be generated. Any returned error will be 1796 * placed in the event queue. 1797 */ 1798 xcb_x_print_print_set_image_resolution_cookie_t 1799 xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c /**< */, 1800 xcb_x_print_pcontext_t context /**< */, 1801 uint16_t image_resolution /**< */); 1802 1803 /** 1804 * Return the reply 1805 * @param c The connection 1806 * @param cookie The cookie 1807 * @param e The xcb_generic_error_t supplied 1808 * 1809 * Returns the reply of the request asked by 1810 * 1811 * The parameter @p e supplied to this function must be NULL if 1812 * xcb_x_print_print_set_image_resolution_unchecked(). is used. 1813 * Otherwise, it stores the error if any. 1814 * 1815 * The returned value must be freed by the caller using free(). 1816 */ 1817 xcb_x_print_print_set_image_resolution_reply_t * 1818 xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c /**< */, 1819 xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */, 1820 xcb_generic_error_t **e /**< */); 1821 1822 /** 1823 * 1824 * @param c The connection 1825 * @return A cookie 1826 * 1827 * Delivers a request to the X server. 1828 * 1829 */ 1830 xcb_x_print_print_get_image_resolution_cookie_t 1831 xcb_x_print_print_get_image_resolution (xcb_connection_t *c /**< */, 1832 xcb_x_print_pcontext_t context /**< */); 1833 1834 /** 1835 * 1836 * @param c The connection 1837 * @return A cookie 1838 * 1839 * Delivers a request to the X server. 1840 * 1841 * This form can be used only if the request will cause 1842 * a reply to be generated. Any returned error will be 1843 * placed in the event queue. 1844 */ 1845 xcb_x_print_print_get_image_resolution_cookie_t 1846 xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c /**< */, 1847 xcb_x_print_pcontext_t context /**< */); 1848 1849 /** 1850 * Return the reply 1851 * @param c The connection 1852 * @param cookie The cookie 1853 * @param e The xcb_generic_error_t supplied 1854 * 1855 * Returns the reply of the request asked by 1856 * 1857 * The parameter @p e supplied to this function must be NULL if 1858 * xcb_x_print_print_get_image_resolution_unchecked(). is used. 1859 * Otherwise, it stores the error if any. 1860 * 1861 * The returned value must be freed by the caller using free(). 1862 */ 1863 xcb_x_print_print_get_image_resolution_reply_t * 1864 xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c /**< */, 1865 xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */, 1866 xcb_generic_error_t **e /**< */); 1867 1868 1869 #ifdef __cplusplus 1870 } 1871 #endif 1872 1873 #endif 1874 1875 /** 1876 * @} 1877 */ 1878