00001
00002
00003
00004
00005
00012 #ifndef __XPRINT_H
00013 #define __XPRINT_H
00014
00015 #include "xcb.h"
00016 #include "xproto.h"
00017
00018 #define XCB_XPRINT_MAJOR_VERSION 1
00019 #define XCB_XPRINT_MINOR_VERSION 0
00020
00021 extern xcb_extension_t xcb_x_print_id;
00022
00026 typedef struct xcb_x_print_printer_t {
00027 uint32_t nameLen;
00028 uint32_t descLen;
00029 } xcb_x_print_printer_t;
00030
00034 typedef struct xcb_x_print_printer_iterator_t {
00035 xcb_x_print_printer_t *data;
00036 int rem;
00037 int index;
00038 } xcb_x_print_printer_iterator_t;
00039
00040 typedef uint32_t xcb_x_print_pcontext_t;
00041
00045 typedef struct xcb_x_print_pcontext_iterator_t {
00046 xcb_x_print_pcontext_t *data;
00047 int rem;
00048 int index;
00049 } xcb_x_print_pcontext_iterator_t;
00050
00051 typedef char xcb_x_print_string8_t;
00052
00056 typedef struct xcb_x_print_string8_iterator_t {
00057 xcb_x_print_string8_t *data;
00058 int rem;
00059 int index;
00060 } xcb_x_print_string8_iterator_t;
00061
00062 typedef enum xcb_x_print_get_doc_t {
00063 XCB_X_PRINT_GET_DOC_FINISHED = 0,
00064 XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1
00065 } xcb_x_print_get_doc_t;
00066
00067 typedef enum xcb_x_print_ev_mask_t {
00068 XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0x00000000,
00069 XCB_X_PRINT_EV_MASK_PRINT_MASK = 0x00000001,
00070 XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 0x00000002
00071 } xcb_x_print_ev_mask_t;
00072
00073 typedef enum xcb_x_print_detail_t {
00074 XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1,
00075 XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2,
00076 XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3,
00077 XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4,
00078 XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5,
00079 XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6
00080 } xcb_x_print_detail_t;
00081
00082 typedef enum xcb_x_print_attr_t {
00083 XCB_X_PRINT_ATTR_JOB_ATTR = 1,
00084 XCB_X_PRINT_ATTR_DOC_ATTR = 2,
00085 XCB_X_PRINT_ATTR_PAGE_ATTR = 3,
00086 XCB_X_PRINT_ATTR_PRINTER_ATTR = 4,
00087 XCB_X_PRINT_ATTR_SERVER_ATTR = 5,
00088 XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6,
00089 XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7
00090 } xcb_x_print_attr_t;
00091
00095 typedef struct xcb_x_print_print_query_version_cookie_t {
00096 unsigned int sequence;
00097 } xcb_x_print_print_query_version_cookie_t;
00098
00100 #define XCB_X_PRINT_PRINT_QUERY_VERSION 0
00101
00105 typedef struct xcb_x_print_print_query_version_request_t {
00106 uint8_t major_opcode;
00107 uint8_t minor_opcode;
00108 uint16_t length;
00109 } xcb_x_print_print_query_version_request_t;
00110
00114 typedef struct xcb_x_print_print_query_version_reply_t {
00115 uint8_t response_type;
00116 uint8_t pad0;
00117 uint16_t sequence;
00118 uint32_t length;
00119 uint16_t major_version;
00120 uint16_t minor_version;
00121 } xcb_x_print_print_query_version_reply_t;
00122
00126 typedef struct xcb_x_print_print_get_printer_list_cookie_t {
00127 unsigned int sequence;
00128 } xcb_x_print_print_get_printer_list_cookie_t;
00129
00131 #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
00132
00136 typedef struct xcb_x_print_print_get_printer_list_request_t {
00137 uint8_t major_opcode;
00138 uint8_t minor_opcode;
00139 uint16_t length;
00140 uint32_t printerNameLen;
00141 uint32_t localeLen;
00142 } xcb_x_print_print_get_printer_list_request_t;
00143
00147 typedef struct xcb_x_print_print_get_printer_list_reply_t {
00148 uint8_t response_type;
00149 uint8_t pad0;
00150 uint16_t sequence;
00151 uint32_t length;
00152 uint32_t listCount;
00153 uint8_t pad1[20];
00154 } xcb_x_print_print_get_printer_list_reply_t;
00155
00157 #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
00158
00162 typedef struct xcb_x_print_print_rehash_printer_list_request_t {
00163 uint8_t major_opcode;
00164 uint8_t minor_opcode;
00165 uint16_t length;
00166 } xcb_x_print_print_rehash_printer_list_request_t;
00167
00169 #define XCB_X_PRINT_CREATE_CONTEXT 2
00170
00174 typedef struct xcb_x_print_create_context_request_t {
00175 uint8_t major_opcode;
00176 uint8_t minor_opcode;
00177 uint16_t length;
00178 uint32_t context_id;
00179 uint32_t printerNameLen;
00180 uint32_t localeLen;
00181 } xcb_x_print_create_context_request_t;
00182
00184 #define XCB_X_PRINT_PRINT_SET_CONTEXT 3
00185
00189 typedef struct xcb_x_print_print_set_context_request_t {
00190 uint8_t major_opcode;
00191 uint8_t minor_opcode;
00192 uint16_t length;
00193 uint32_t context;
00194 } xcb_x_print_print_set_context_request_t;
00195
00199 typedef struct xcb_x_print_print_get_context_cookie_t {
00200 unsigned int sequence;
00201 } xcb_x_print_print_get_context_cookie_t;
00202
00204 #define XCB_X_PRINT_PRINT_GET_CONTEXT 4
00205
00209 typedef struct xcb_x_print_print_get_context_request_t {
00210 uint8_t major_opcode;
00211 uint8_t minor_opcode;
00212 uint16_t length;
00213 } xcb_x_print_print_get_context_request_t;
00214
00218 typedef struct xcb_x_print_print_get_context_reply_t {
00219 uint8_t response_type;
00220 uint8_t pad0;
00221 uint16_t sequence;
00222 uint32_t length;
00223 uint32_t context;
00224 } xcb_x_print_print_get_context_reply_t;
00225
00227 #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
00228
00232 typedef struct xcb_x_print_print_destroy_context_request_t {
00233 uint8_t major_opcode;
00234 uint8_t minor_opcode;
00235 uint16_t length;
00236 uint32_t context;
00237 } xcb_x_print_print_destroy_context_request_t;
00238
00242 typedef struct xcb_x_print_print_get_screen_of_context_cookie_t {
00243 unsigned int sequence;
00244 } xcb_x_print_print_get_screen_of_context_cookie_t;
00245
00247 #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
00248
00252 typedef struct xcb_x_print_print_get_screen_of_context_request_t {
00253 uint8_t major_opcode;
00254 uint8_t minor_opcode;
00255 uint16_t length;
00256 } xcb_x_print_print_get_screen_of_context_request_t;
00257
00261 typedef struct xcb_x_print_print_get_screen_of_context_reply_t {
00262 uint8_t response_type;
00263 uint8_t pad0;
00264 uint16_t sequence;
00265 uint32_t length;
00266 xcb_window_t root;
00267 } xcb_x_print_print_get_screen_of_context_reply_t;
00268
00270 #define XCB_X_PRINT_PRINT_START_JOB 7
00271
00275 typedef struct xcb_x_print_print_start_job_request_t {
00276 uint8_t major_opcode;
00277 uint8_t minor_opcode;
00278 uint16_t length;
00279 uint8_t output_mode;
00280 } xcb_x_print_print_start_job_request_t;
00281
00283 #define XCB_X_PRINT_PRINT_END_JOB 8
00284
00288 typedef struct xcb_x_print_print_end_job_request_t {
00289 uint8_t major_opcode;
00290 uint8_t minor_opcode;
00291 uint16_t length;
00292 uint8_t cancel;
00293 } xcb_x_print_print_end_job_request_t;
00294
00296 #define XCB_X_PRINT_PRINT_START_DOC 9
00297
00301 typedef struct xcb_x_print_print_start_doc_request_t {
00302 uint8_t major_opcode;
00303 uint8_t minor_opcode;
00304 uint16_t length;
00305 uint8_t driver_mode;
00306 } xcb_x_print_print_start_doc_request_t;
00307
00309 #define XCB_X_PRINT_PRINT_END_DOC 10
00310
00314 typedef struct xcb_x_print_print_end_doc_request_t {
00315 uint8_t major_opcode;
00316 uint8_t minor_opcode;
00317 uint16_t length;
00318 uint8_t cancel;
00319 } xcb_x_print_print_end_doc_request_t;
00320
00322 #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
00323
00327 typedef struct xcb_x_print_print_put_document_data_request_t {
00328 uint8_t major_opcode;
00329 uint8_t minor_opcode;
00330 uint16_t length;
00331 xcb_drawable_t drawable;
00332 uint32_t len_data;
00333 uint16_t len_fmt;
00334 uint16_t len_options;
00335 } xcb_x_print_print_put_document_data_request_t;
00336
00340 typedef struct xcb_x_print_print_get_document_data_cookie_t {
00341 unsigned int sequence;
00342 } xcb_x_print_print_get_document_data_cookie_t;
00343
00345 #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
00346
00350 typedef struct xcb_x_print_print_get_document_data_request_t {
00351 uint8_t major_opcode;
00352 uint8_t minor_opcode;
00353 uint16_t length;
00354 xcb_x_print_pcontext_t context;
00355 uint32_t max_bytes;
00356 } xcb_x_print_print_get_document_data_request_t;
00357
00361 typedef struct xcb_x_print_print_get_document_data_reply_t {
00362 uint8_t response_type;
00363 uint8_t pad0;
00364 uint16_t sequence;
00365 uint32_t length;
00366 uint32_t status_code;
00367 uint32_t finished_flag;
00368 uint32_t dataLen;
00369 uint8_t pad1[12];
00370 } xcb_x_print_print_get_document_data_reply_t;
00371
00373 #define XCB_X_PRINT_PRINT_START_PAGE 13
00374
00378 typedef struct xcb_x_print_print_start_page_request_t {
00379 uint8_t major_opcode;
00380 uint8_t minor_opcode;
00381 uint16_t length;
00382 xcb_window_t window;
00383 } xcb_x_print_print_start_page_request_t;
00384
00386 #define XCB_X_PRINT_PRINT_END_PAGE 14
00387
00391 typedef struct xcb_x_print_print_end_page_request_t {
00392 uint8_t major_opcode;
00393 uint8_t minor_opcode;
00394 uint16_t length;
00395 uint8_t cancel;
00396 uint8_t pad0[3];
00397 } xcb_x_print_print_end_page_request_t;
00398
00400 #define XCB_X_PRINT_PRINT_SELECT_INPUT 15
00401
00405 typedef struct xcb_x_print_print_select_input_request_t {
00406 uint8_t major_opcode;
00407 uint8_t minor_opcode;
00408 uint16_t length;
00409 xcb_x_print_pcontext_t context;
00410 uint32_t event_mask;
00411 } xcb_x_print_print_select_input_request_t;
00412
00416 typedef struct xcb_x_print_print_input_selected_cookie_t {
00417 unsigned int sequence;
00418 } xcb_x_print_print_input_selected_cookie_t;
00419
00421 #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
00422
00426 typedef struct xcb_x_print_print_input_selected_request_t {
00427 uint8_t major_opcode;
00428 uint8_t minor_opcode;
00429 uint16_t length;
00430 xcb_x_print_pcontext_t context;
00431 } xcb_x_print_print_input_selected_request_t;
00432
00436 typedef struct xcb_x_print_print_input_selected_reply_t {
00437 uint8_t response_type;
00438 uint8_t pad0;
00439 uint16_t sequence;
00440 uint32_t length;
00441 uint32_t event_mask;
00442 uint32_t all_events_mask;
00443 } xcb_x_print_print_input_selected_reply_t;
00444
00448 typedef struct xcb_x_print_print_get_attributes_cookie_t {
00449 unsigned int sequence;
00450 } xcb_x_print_print_get_attributes_cookie_t;
00451
00453 #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
00454
00458 typedef struct xcb_x_print_print_get_attributes_request_t {
00459 uint8_t major_opcode;
00460 uint8_t minor_opcode;
00461 uint16_t length;
00462 xcb_x_print_pcontext_t context;
00463 uint8_t pool;
00464 uint8_t pad0[3];
00465 } xcb_x_print_print_get_attributes_request_t;
00466
00470 typedef struct xcb_x_print_print_get_attributes_reply_t {
00471 uint8_t response_type;
00472 uint8_t pad0;
00473 uint16_t sequence;
00474 uint32_t length;
00475 uint32_t stringLen;
00476 uint8_t pad1[20];
00477 xcb_x_print_string8_t attributes;
00478 } xcb_x_print_print_get_attributes_reply_t;
00479
00483 typedef struct xcb_x_print_print_get_one_attributes_cookie_t {
00484 unsigned int sequence;
00485 } xcb_x_print_print_get_one_attributes_cookie_t;
00486
00488 #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
00489
00493 typedef struct xcb_x_print_print_get_one_attributes_request_t {
00494 uint8_t major_opcode;
00495 uint8_t minor_opcode;
00496 uint16_t length;
00497 xcb_x_print_pcontext_t context;
00498 uint32_t nameLen;
00499 uint8_t pool;
00500 uint8_t pad0[3];
00501 } xcb_x_print_print_get_one_attributes_request_t;
00502
00506 typedef struct xcb_x_print_print_get_one_attributes_reply_t {
00507 uint8_t response_type;
00508 uint8_t pad0;
00509 uint16_t sequence;
00510 uint32_t length;
00511 uint32_t valueLen;
00512 uint8_t pad1[20];
00513 } xcb_x_print_print_get_one_attributes_reply_t;
00514
00516 #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
00517
00521 typedef struct xcb_x_print_print_set_attributes_request_t {
00522 uint8_t major_opcode;
00523 uint8_t minor_opcode;
00524 uint16_t length;
00525 xcb_x_print_pcontext_t context;
00526 uint32_t stringLen;
00527 uint8_t pool;
00528 uint8_t rule;
00529 uint8_t pad0[2];
00530 } xcb_x_print_print_set_attributes_request_t;
00531
00535 typedef struct xcb_x_print_print_get_page_dimensions_cookie_t {
00536 unsigned int sequence;
00537 } xcb_x_print_print_get_page_dimensions_cookie_t;
00538
00540 #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
00541
00545 typedef struct xcb_x_print_print_get_page_dimensions_request_t {
00546 uint8_t major_opcode;
00547 uint8_t minor_opcode;
00548 uint16_t length;
00549 xcb_x_print_pcontext_t context;
00550 } xcb_x_print_print_get_page_dimensions_request_t;
00551
00555 typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
00556 uint8_t response_type;
00557 uint8_t pad0;
00558 uint16_t sequence;
00559 uint32_t length;
00560 uint16_t width;
00561 uint16_t height;
00562 uint16_t offset_x;
00563 uint16_t offset_y;
00564 uint16_t reproducible_width;
00565 uint16_t reproducible_height;
00566 } xcb_x_print_print_get_page_dimensions_reply_t;
00567
00571 typedef struct xcb_x_print_print_query_screens_cookie_t {
00572 unsigned int sequence;
00573 } xcb_x_print_print_query_screens_cookie_t;
00574
00576 #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
00577
00581 typedef struct xcb_x_print_print_query_screens_request_t {
00582 uint8_t major_opcode;
00583 uint8_t minor_opcode;
00584 uint16_t length;
00585 } xcb_x_print_print_query_screens_request_t;
00586
00590 typedef struct xcb_x_print_print_query_screens_reply_t {
00591 uint8_t response_type;
00592 uint8_t pad0;
00593 uint16_t sequence;
00594 uint32_t length;
00595 uint32_t listCount;
00596 uint8_t pad1[20];
00597 } xcb_x_print_print_query_screens_reply_t;
00598
00602 typedef struct xcb_x_print_print_set_image_resolution_cookie_t {
00603 unsigned int sequence;
00604 } xcb_x_print_print_set_image_resolution_cookie_t;
00605
00607 #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
00608
00612 typedef struct xcb_x_print_print_set_image_resolution_request_t {
00613 uint8_t major_opcode;
00614 uint8_t minor_opcode;
00615 uint16_t length;
00616 xcb_x_print_pcontext_t context;
00617 uint16_t image_resolution;
00618 } xcb_x_print_print_set_image_resolution_request_t;
00619
00623 typedef struct xcb_x_print_print_set_image_resolution_reply_t {
00624 uint8_t response_type;
00625 uint8_t status;
00626 uint16_t sequence;
00627 uint32_t length;
00628 uint16_t previous_resolutions;
00629 } xcb_x_print_print_set_image_resolution_reply_t;
00630
00634 typedef struct xcb_x_print_print_get_image_resolution_cookie_t {
00635 unsigned int sequence;
00636 } xcb_x_print_print_get_image_resolution_cookie_t;
00637
00639 #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
00640
00644 typedef struct xcb_x_print_print_get_image_resolution_request_t {
00645 uint8_t major_opcode;
00646 uint8_t minor_opcode;
00647 uint16_t length;
00648 xcb_x_print_pcontext_t context;
00649 } xcb_x_print_print_get_image_resolution_request_t;
00650
00654 typedef struct xcb_x_print_print_get_image_resolution_reply_t {
00655 uint8_t response_type;
00656 uint8_t pad0;
00657 uint16_t sequence;
00658 uint32_t length;
00659 uint16_t image_resolution;
00660 } xcb_x_print_print_get_image_resolution_reply_t;
00661
00663 #define XCB_X_PRINT_NOTIFY 0
00664
00668 typedef struct xcb_x_print_notify_event_t {
00669 uint8_t response_type;
00670 uint8_t detail;
00671 uint16_t sequence;
00672 xcb_x_print_pcontext_t context;
00673 uint8_t cancel;
00674 } xcb_x_print_notify_event_t;
00675
00677 #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
00678
00682 typedef struct xcb_x_print_attribut_notify_event_t {
00683 uint8_t response_type;
00684 uint8_t detail;
00685 uint16_t sequence;
00686 xcb_x_print_pcontext_t context;
00687 } xcb_x_print_attribut_notify_event_t;
00688
00690 #define XCB_X_PRINT_BAD_CONTEXT 0
00691
00695 typedef struct xcb_x_print_bad_context_error_t {
00696 uint8_t response_type;
00697 uint8_t error_code;
00698 uint16_t sequence;
00699 } xcb_x_print_bad_context_error_t;
00700
00702 #define XCB_X_PRINT_BAD_SEQUENCE 1
00703
00707 typedef struct xcb_x_print_bad_sequence_error_t {
00708 uint8_t response_type;
00709 uint8_t error_code;
00710 uint16_t sequence;
00711 } xcb_x_print_bad_sequence_error_t;
00712
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722
00723 xcb_x_print_string8_t *
00724 xcb_x_print_printer_name (const xcb_x_print_printer_t *R );
00725
00726
00727
00728
00729
00730
00731
00732
00733
00734
00735
00736 int
00737 xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R );
00738
00739
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749 xcb_x_print_string8_iterator_t
00750 xcb_x_print_printer_name_iterator (const xcb_x_print_printer_t *R );
00751
00752
00753
00754
00755
00756
00757
00758
00759
00760
00761
00762 xcb_x_print_string8_t *
00763 xcb_x_print_printer_description (const xcb_x_print_printer_t *R );
00764
00765
00766
00767
00768
00769
00770
00771
00772
00773
00774
00775 int
00776 xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R );
00777
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788 xcb_x_print_string8_iterator_t
00789 xcb_x_print_printer_description_iterator (const xcb_x_print_printer_t *R );
00790
00800
00801
00802
00803
00804
00805
00806
00807
00808
00809 void
00810 xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i );
00811
00822
00823
00824
00825
00826
00827
00828
00829
00830
00831 xcb_generic_iterator_t
00832 xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i );
00833
00843
00844
00845
00846
00847
00848
00849
00850
00851
00852 void
00853 xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i );
00854
00865
00866
00867
00868
00869
00870
00871
00872
00873
00874 xcb_generic_iterator_t
00875 xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i );
00876
00886
00887
00888
00889
00890
00891
00892
00893
00894
00895 void
00896 xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i );
00897
00908
00909
00910
00911
00912
00913
00914
00915
00916
00917 xcb_generic_iterator_t
00918 xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i );
00919
00929
00930
00931
00932
00933
00934
00935
00936
00937
00938 xcb_x_print_print_query_version_cookie_t
00939 xcb_x_print_print_query_version (xcb_connection_t *c );
00940
00953
00954
00955
00956
00957
00958
00959
00960
00961
00962 xcb_x_print_print_query_version_cookie_t
00963 xcb_x_print_print_query_version_unchecked (xcb_connection_t *c );
00964
00978
00979
00980
00981
00982
00983
00984
00985
00986
00987
00988
00989 xcb_x_print_print_query_version_reply_t *
00990 xcb_x_print_print_query_version_reply (xcb_connection_t *c ,
00991 xcb_x_print_print_query_version_cookie_t cookie ,
00992 xcb_generic_error_t **e );
00993
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012
01013
01014
01015
01016 xcb_x_print_print_get_printer_list_cookie_t
01017 xcb_x_print_print_get_printer_list (xcb_connection_t *c ,
01018 uint32_t printerNameLen ,
01019 uint32_t localeLen ,
01020 const xcb_x_print_string8_t *printer_name ,
01021 const xcb_x_print_string8_t *locale );
01022
01035
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045
01046
01047
01048 xcb_x_print_print_get_printer_list_cookie_t
01049 xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c ,
01050 uint32_t printerNameLen ,
01051 uint32_t localeLen ,
01052 const xcb_x_print_string8_t *printer_name ,
01053 const xcb_x_print_string8_t *locale );
01054
01055
01056
01057
01058
01059
01060
01061
01062
01063
01064
01065 int
01066 xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R );
01067
01068
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078 xcb_x_print_printer_iterator_t
01079 xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R );
01080
01094
01095
01096
01097
01098
01099
01100
01101
01102
01103
01104
01105 xcb_x_print_print_get_printer_list_reply_t *
01106 xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c ,
01107 xcb_x_print_print_get_printer_list_cookie_t cookie ,
01108 xcb_generic_error_t **e );
01109
01122
01123
01124
01125
01126
01127
01128
01129
01130
01131 xcb_void_cookie_t
01132 xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c );
01133
01143
01144
01145
01146
01147
01148
01149
01150
01151
01152 xcb_void_cookie_t
01153 xcb_x_print_print_rehash_printer_list (xcb_connection_t *c );
01154
01167
01168
01169
01170
01171
01172
01173
01174
01175
01176
01177
01178
01179
01180
01181 xcb_void_cookie_t
01182 xcb_x_print_create_context_checked (xcb_connection_t *c ,
01183 uint32_t context_id ,
01184 uint32_t printerNameLen ,
01185 uint32_t localeLen ,
01186 const xcb_x_print_string8_t *printerName ,
01187 const xcb_x_print_string8_t *locale );
01188
01198
01199
01200
01201
01202
01203
01204
01205
01206
01207
01208
01209
01210
01211
01212 xcb_void_cookie_t
01213 xcb_x_print_create_context (xcb_connection_t *c ,
01214 uint32_t context_id ,
01215 uint32_t printerNameLen ,
01216 uint32_t localeLen ,
01217 const xcb_x_print_string8_t *printerName ,
01218 const xcb_x_print_string8_t *locale );
01219
01232
01233
01234
01235
01236
01237
01238
01239
01240
01241
01242 xcb_void_cookie_t
01243 xcb_x_print_print_set_context_checked (xcb_connection_t *c ,
01244 uint32_t context );
01245
01255
01256
01257
01258
01259
01260
01261
01262
01263
01264
01265 xcb_void_cookie_t
01266 xcb_x_print_print_set_context (xcb_connection_t *c ,
01267 uint32_t context );
01268
01278
01279
01280
01281
01282
01283
01284
01285
01286
01287 xcb_x_print_print_get_context_cookie_t
01288 xcb_x_print_print_get_context (xcb_connection_t *c );
01289
01302
01303
01304
01305
01306
01307
01308
01309
01310
01311 xcb_x_print_print_get_context_cookie_t
01312 xcb_x_print_print_get_context_unchecked (xcb_connection_t *c );
01313
01327
01328
01329
01330
01331
01332
01333
01334
01335
01336
01337
01338 xcb_x_print_print_get_context_reply_t *
01339 xcb_x_print_print_get_context_reply (xcb_connection_t *c ,
01340 xcb_x_print_print_get_context_cookie_t cookie ,
01341 xcb_generic_error_t **e );
01342
01355
01356
01357
01358
01359
01360
01361
01362
01363
01364
01365 xcb_void_cookie_t
01366 xcb_x_print_print_destroy_context_checked (xcb_connection_t *c ,
01367 uint32_t context );
01368
01378
01379
01380
01381
01382
01383
01384
01385
01386
01387
01388 xcb_void_cookie_t
01389 xcb_x_print_print_destroy_context (xcb_connection_t *c ,
01390 uint32_t context );
01391
01401
01402
01403
01404
01405
01406
01407
01408
01409
01410 xcb_x_print_print_get_screen_of_context_cookie_t
01411 xcb_x_print_print_get_screen_of_context (xcb_connection_t *c );
01412
01425
01426
01427
01428
01429
01430
01431
01432
01433
01434 xcb_x_print_print_get_screen_of_context_cookie_t
01435 xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c );
01436
01450
01451
01452
01453
01454
01455
01456
01457
01458
01459
01460
01461 xcb_x_print_print_get_screen_of_context_reply_t *
01462 xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c ,
01463 xcb_x_print_print_get_screen_of_context_cookie_t cookie ,
01464 xcb_generic_error_t **e );
01465
01478
01479
01480
01481
01482
01483
01484
01485
01486
01487
01488 xcb_void_cookie_t
01489 xcb_x_print_print_start_job_checked (xcb_connection_t *c ,
01490 uint8_t output_mode );
01491
01501
01502
01503
01504
01505
01506
01507
01508
01509
01510
01511 xcb_void_cookie_t
01512 xcb_x_print_print_start_job (xcb_connection_t *c ,
01513 uint8_t output_mode );
01514
01527
01528
01529
01530
01531
01532
01533
01534
01535
01536
01537 xcb_void_cookie_t
01538 xcb_x_print_print_end_job_checked (xcb_connection_t *c ,
01539 uint8_t cancel );
01540
01550
01551
01552
01553
01554
01555
01556
01557
01558
01559
01560 xcb_void_cookie_t
01561 xcb_x_print_print_end_job (xcb_connection_t *c ,
01562 uint8_t cancel );
01563
01576
01577
01578
01579
01580
01581
01582
01583
01584
01585
01586 xcb_void_cookie_t
01587 xcb_x_print_print_start_doc_checked (xcb_connection_t *c ,
01588 uint8_t driver_mode );
01589
01599
01600
01601
01602
01603
01604
01605
01606
01607
01608
01609 xcb_void_cookie_t
01610 xcb_x_print_print_start_doc (xcb_connection_t *c ,
01611 uint8_t driver_mode );
01612
01625
01626
01627
01628
01629
01630
01631
01632
01633
01634
01635 xcb_void_cookie_t
01636 xcb_x_print_print_end_doc_checked (xcb_connection_t *c ,
01637 uint8_t cancel );
01638
01648
01649
01650
01651
01652
01653
01654
01655
01656
01657
01658 xcb_void_cookie_t
01659 xcb_x_print_print_end_doc (xcb_connection_t *c ,
01660 uint8_t cancel );
01661
01674
01675
01676
01677
01678
01679
01680
01681
01682
01683
01684
01685
01686
01687
01688
01689
01690
01691
01692 xcb_void_cookie_t
01693 xcb_x_print_print_put_document_data_checked (xcb_connection_t *c ,
01694 xcb_drawable_t drawable ,
01695 uint32_t len_data ,
01696 uint16_t len_fmt ,
01697 uint16_t len_options ,
01698 const uint8_t *data ,
01699 uint32_t doc_format_len ,
01700 const xcb_x_print_string8_t *doc_format ,
01701 uint32_t options_len ,
01702 const xcb_x_print_string8_t *options );
01703
01713
01714
01715
01716
01717
01718
01719
01720
01721
01722
01723
01724
01725
01726
01727
01728
01729
01730
01731 xcb_void_cookie_t
01732 xcb_x_print_print_put_document_data (xcb_connection_t *c ,
01733 xcb_drawable_t drawable ,
01734 uint32_t len_data ,
01735 uint16_t len_fmt ,
01736 uint16_t len_options ,
01737 const uint8_t *data ,
01738 uint32_t doc_format_len ,
01739 const xcb_x_print_string8_t *doc_format ,
01740 uint32_t options_len ,
01741 const xcb_x_print_string8_t *options );
01742
01752
01753
01754
01755
01756
01757
01758
01759
01760
01761
01762
01763 xcb_x_print_print_get_document_data_cookie_t
01764 xcb_x_print_print_get_document_data (xcb_connection_t *c ,
01765 xcb_x_print_pcontext_t context ,
01766 uint32_t max_bytes );
01767
01780
01781
01782
01783
01784
01785
01786
01787
01788
01789
01790
01791 xcb_x_print_print_get_document_data_cookie_t
01792 xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c ,
01793 xcb_x_print_pcontext_t context ,
01794 uint32_t max_bytes );
01795
01796
01797
01798
01799
01800
01801
01802
01803
01804
01805
01806 uint8_t *
01807 xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R );
01808
01809
01810
01811
01812
01813
01814
01815
01816
01817
01818
01819 int
01820 xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R );
01821
01822
01823
01824
01825
01826
01827
01828
01829
01830
01831
01832 xcb_generic_iterator_t
01833 xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R );
01834
01848
01849
01850
01851
01852
01853
01854
01855
01856
01857
01858
01859 xcb_x_print_print_get_document_data_reply_t *
01860 xcb_x_print_print_get_document_data_reply (xcb_connection_t *c ,
01861 xcb_x_print_print_get_document_data_cookie_t cookie ,
01862 xcb_generic_error_t **e );
01863
01876
01877
01878
01879
01880
01881
01882
01883
01884
01885
01886 xcb_void_cookie_t
01887 xcb_x_print_print_start_page_checked (xcb_connection_t *c ,
01888 xcb_window_t window );
01889
01899
01900
01901
01902
01903
01904
01905
01906
01907
01908
01909 xcb_void_cookie_t
01910 xcb_x_print_print_start_page (xcb_connection_t *c ,
01911 xcb_window_t window );
01912
01925
01926
01927
01928
01929
01930
01931
01932
01933
01934
01935 xcb_void_cookie_t
01936 xcb_x_print_print_end_page_checked (xcb_connection_t *c ,
01937 uint8_t cancel );
01938
01948
01949
01950
01951
01952
01953
01954
01955
01956
01957
01958 xcb_void_cookie_t
01959 xcb_x_print_print_end_page (xcb_connection_t *c ,
01960 uint8_t cancel );
01961
01974
01975
01976
01977
01978
01979
01980
01981
01982
01983
01984
01985
01986 xcb_void_cookie_t
01987 xcb_x_print_print_select_input_checked (xcb_connection_t *c ,
01988 xcb_x_print_pcontext_t context ,
01989 uint32_t event_mask ,
01990 const uint32_t *event_list );
01991
02001
02002
02003
02004
02005
02006
02007
02008
02009
02010
02011
02012
02013 xcb_void_cookie_t
02014 xcb_x_print_print_select_input (xcb_connection_t *c ,
02015 xcb_x_print_pcontext_t context ,
02016 uint32_t event_mask ,
02017 const uint32_t *event_list );
02018
02028
02029
02030
02031
02032
02033
02034
02035
02036
02037
02038 xcb_x_print_print_input_selected_cookie_t
02039 xcb_x_print_print_input_selected (xcb_connection_t *c ,
02040 xcb_x_print_pcontext_t context );
02041
02054
02055
02056
02057
02058
02059
02060
02061
02062
02063
02064 xcb_x_print_print_input_selected_cookie_t
02065 xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c ,
02066 xcb_x_print_pcontext_t context );
02067
02068
02069
02070
02071
02072
02073
02074
02075
02076
02077
02078 uint32_t *
02079 xcb_x_print_print_input_selected_event_list (const xcb_x_print_print_input_selected_reply_t *R );
02080
02081
02082
02083
02084
02085
02086
02087
02088
02089
02090
02091 int
02092 xcb_x_print_print_input_selected_event_list_length (const xcb_x_print_print_input_selected_reply_t *R );
02093
02094
02095
02096
02097
02098
02099
02100
02101
02102
02103
02104 xcb_generic_iterator_t
02105 xcb_x_print_print_input_selected_event_list_end (const xcb_x_print_print_input_selected_reply_t *R );
02106
02107
02108
02109
02110
02111
02112
02113
02114
02115
02116
02117 uint32_t *
02118 xcb_x_print_print_input_selected_all_events_list (const xcb_x_print_print_input_selected_reply_t *R );
02119
02120
02121
02122
02123
02124
02125
02126
02127
02128
02129
02130 int
02131 xcb_x_print_print_input_selected_all_events_list_length (const xcb_x_print_print_input_selected_reply_t *R );
02132
02133
02134
02135
02136
02137
02138
02139
02140
02141
02142
02143 xcb_generic_iterator_t
02144 xcb_x_print_print_input_selected_all_events_list_end (const xcb_x_print_print_input_selected_reply_t *R );
02145
02159
02160
02161
02162
02163
02164
02165
02166
02167
02168
02169
02170 xcb_x_print_print_input_selected_reply_t *
02171 xcb_x_print_print_input_selected_reply (xcb_connection_t *c ,
02172 xcb_x_print_print_input_selected_cookie_t cookie ,
02173 xcb_generic_error_t **e );
02174
02184
02185
02186
02187
02188
02189
02190
02191
02192
02193
02194
02195 xcb_x_print_print_get_attributes_cookie_t
02196 xcb_x_print_print_get_attributes (xcb_connection_t *c ,
02197 xcb_x_print_pcontext_t context ,
02198 uint8_t pool );
02199
02212
02213
02214
02215
02216
02217
02218
02219
02220
02221
02222
02223 xcb_x_print_print_get_attributes_cookie_t
02224 xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c ,
02225 xcb_x_print_pcontext_t context ,
02226 uint8_t pool );
02227
02241
02242
02243
02244
02245
02246
02247
02248
02249
02250
02251
02252 xcb_x_print_print_get_attributes_reply_t *
02253 xcb_x_print_print_get_attributes_reply (xcb_connection_t *c ,
02254 xcb_x_print_print_get_attributes_cookie_t cookie ,
02255 xcb_generic_error_t **e );
02256
02266
02267
02268
02269
02270
02271
02272
02273
02274
02275
02276
02277
02278
02279 xcb_x_print_print_get_one_attributes_cookie_t
02280 xcb_x_print_print_get_one_attributes (xcb_connection_t *c ,
02281 xcb_x_print_pcontext_t context ,
02282 uint32_t nameLen ,
02283 uint8_t pool ,
02284 const xcb_x_print_string8_t *name );
02285
02298
02299
02300
02301
02302
02303
02304
02305
02306
02307
02308
02309
02310
02311 xcb_x_print_print_get_one_attributes_cookie_t
02312 xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c ,
02313 xcb_x_print_pcontext_t context ,
02314 uint32_t nameLen ,
02315 uint8_t pool ,
02316 const xcb_x_print_string8_t *name );
02317
02318
02319
02320
02321
02322
02323
02324
02325
02326
02327
02328 xcb_x_print_string8_t *
02329 xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R );
02330
02331
02332
02333
02334
02335
02336
02337
02338
02339
02340
02341 int
02342 xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R );
02343
02344
02345
02346
02347
02348
02349
02350
02351
02352
02353
02354 xcb_x_print_string8_iterator_t
02355 xcb_x_print_print_get_one_attributes_value_iterator (const xcb_x_print_print_get_one_attributes_reply_t *R );
02356
02370
02371
02372
02373
02374
02375
02376
02377
02378
02379
02380
02381 xcb_x_print_print_get_one_attributes_reply_t *
02382 xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c ,
02383 xcb_x_print_print_get_one_attributes_cookie_t cookie ,
02384 xcb_generic_error_t **e );
02385
02398
02399
02400
02401
02402
02403
02404
02405
02406
02407
02408
02409
02410
02411
02412
02413 xcb_void_cookie_t
02414 xcb_x_print_print_set_attributes_checked (xcb_connection_t *c ,
02415 xcb_x_print_pcontext_t context ,
02416 uint32_t stringLen ,
02417 uint8_t pool ,
02418 uint8_t rule ,
02419 uint32_t attributes_len ,
02420 const xcb_x_print_string8_t *attributes );
02421
02431
02432
02433
02434
02435
02436
02437
02438
02439
02440
02441
02442
02443
02444
02445
02446 xcb_void_cookie_t
02447 xcb_x_print_print_set_attributes (xcb_connection_t *c ,
02448 xcb_x_print_pcontext_t context ,
02449 uint32_t stringLen ,
02450 uint8_t pool ,
02451 uint8_t rule ,
02452 uint32_t attributes_len ,
02453 const xcb_x_print_string8_t *attributes );
02454
02464
02465
02466
02467
02468
02469
02470
02471
02472
02473
02474 xcb_x_print_print_get_page_dimensions_cookie_t
02475 xcb_x_print_print_get_page_dimensions (xcb_connection_t *c ,
02476 xcb_x_print_pcontext_t context );
02477
02490
02491
02492
02493
02494
02495
02496
02497
02498
02499
02500 xcb_x_print_print_get_page_dimensions_cookie_t
02501 xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c ,
02502 xcb_x_print_pcontext_t context );
02503
02517
02518
02519
02520
02521
02522
02523
02524
02525
02526
02527
02528 xcb_x_print_print_get_page_dimensions_reply_t *
02529 xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c ,
02530 xcb_x_print_print_get_page_dimensions_cookie_t cookie ,
02531 xcb_generic_error_t **e );
02532
02542
02543
02544
02545
02546
02547
02548
02549
02550
02551 xcb_x_print_print_query_screens_cookie_t
02552 xcb_x_print_print_query_screens (xcb_connection_t *c );
02553
02566
02567
02568
02569
02570
02571
02572
02573
02574
02575 xcb_x_print_print_query_screens_cookie_t
02576 xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c );
02577
02578
02579
02580
02581
02582
02583
02584
02585
02586
02587
02588 xcb_window_t *
02589 xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R );
02590
02591
02592
02593
02594
02595
02596
02597
02598
02599
02600
02601 int
02602 xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R );
02603
02604
02605
02606
02607
02608
02609
02610
02611
02612
02613
02614 xcb_window_iterator_t
02615 xcb_x_print_print_query_screens_roots_iterator (const xcb_x_print_print_query_screens_reply_t *R );
02616
02630
02631
02632
02633
02634
02635
02636
02637
02638
02639
02640
02641 xcb_x_print_print_query_screens_reply_t *
02642 xcb_x_print_print_query_screens_reply (xcb_connection_t *c ,
02643 xcb_x_print_print_query_screens_cookie_t cookie ,
02644 xcb_generic_error_t **e );
02645
02655
02656
02657
02658
02659
02660
02661
02662
02663
02664
02665
02666 xcb_x_print_print_set_image_resolution_cookie_t
02667 xcb_x_print_print_set_image_resolution (xcb_connection_t *c ,
02668 xcb_x_print_pcontext_t context ,
02669 uint16_t image_resolution );
02670
02683
02684
02685
02686
02687
02688
02689
02690
02691
02692
02693
02694 xcb_x_print_print_set_image_resolution_cookie_t
02695 xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c ,
02696 xcb_x_print_pcontext_t context ,
02697 uint16_t image_resolution );
02698
02712
02713
02714
02715
02716
02717
02718
02719
02720
02721
02722
02723 xcb_x_print_print_set_image_resolution_reply_t *
02724 xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c ,
02725 xcb_x_print_print_set_image_resolution_cookie_t cookie ,
02726 xcb_generic_error_t **e );
02727
02737
02738
02739
02740
02741
02742
02743
02744
02745
02746
02747 xcb_x_print_print_get_image_resolution_cookie_t
02748 xcb_x_print_print_get_image_resolution (xcb_connection_t *c ,
02749 xcb_x_print_pcontext_t context );
02750
02763
02764
02765
02766
02767
02768
02769
02770
02771
02772
02773 xcb_x_print_print_get_image_resolution_cookie_t
02774 xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c ,
02775 xcb_x_print_pcontext_t context );
02776
02790
02791
02792
02793
02794
02795
02796
02797
02798
02799
02800
02801 xcb_x_print_print_get_image_resolution_reply_t *
02802 xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c ,
02803 xcb_x_print_print_get_image_resolution_cookie_t cookie ,
02804 xcb_generic_error_t **e );
02805
02806
02807 #endif
02808