00001
00002
00003
00004
00005
00012 #ifndef __XPRINT_H
00013 #define __XPRINT_H
00014
00015 #include "xcb.h"
00016 #include "xproto.h"
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 #define XCB_XPRINT_MAJOR_VERSION 1
00023 #define XCB_XPRINT_MINOR_VERSION 0
00024
00025 extern xcb_extension_t xcb_x_print_id;
00026
00027 typedef char xcb_x_print_string8_t;
00028
00032 typedef struct xcb_x_print_string8_iterator_t {
00033 xcb_x_print_string8_t *data;
00034 int rem;
00035 int index;
00036 } xcb_x_print_string8_iterator_t;
00037
00041 typedef struct xcb_x_print_printer_t {
00042 uint32_t nameLen;
00043 uint32_t descLen;
00044 } xcb_x_print_printer_t;
00045
00049 typedef struct xcb_x_print_printer_iterator_t {
00050 xcb_x_print_printer_t *data;
00051 int rem;
00052 int index;
00053 } xcb_x_print_printer_iterator_t;
00054
00055 typedef uint32_t xcb_x_print_pcontext_t;
00056
00060 typedef struct xcb_x_print_pcontext_iterator_t {
00061 xcb_x_print_pcontext_t *data;
00062 int rem;
00063 int index;
00064 } xcb_x_print_pcontext_iterator_t;
00065
00066 typedef enum xcb_x_print_get_doc_t {
00067 XCB_X_PRINT_GET_DOC_FINISHED = 0,
00068 XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1
00069 } xcb_x_print_get_doc_t;
00070
00071 typedef enum xcb_x_print_ev_mask_t {
00072 XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0,
00073 XCB_X_PRINT_EV_MASK_PRINT_MASK = 1,
00074 XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2
00075 } xcb_x_print_ev_mask_t;
00076
00077 typedef enum xcb_x_print_detail_t {
00078 XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1,
00079 XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2,
00080 XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3,
00081 XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4,
00082 XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5,
00083 XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6
00084 } xcb_x_print_detail_t;
00085
00086 typedef enum xcb_x_print_attr_t {
00087 XCB_X_PRINT_ATTR_JOB_ATTR = 1,
00088 XCB_X_PRINT_ATTR_DOC_ATTR = 2,
00089 XCB_X_PRINT_ATTR_PAGE_ATTR = 3,
00090 XCB_X_PRINT_ATTR_PRINTER_ATTR = 4,
00091 XCB_X_PRINT_ATTR_SERVER_ATTR = 5,
00092 XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6,
00093 XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7
00094 } xcb_x_print_attr_t;
00095
00099 typedef struct xcb_x_print_print_query_version_cookie_t {
00100 unsigned int sequence;
00101 } xcb_x_print_print_query_version_cookie_t;
00102
00104 #define XCB_X_PRINT_PRINT_QUERY_VERSION 0
00105
00109 typedef struct xcb_x_print_print_query_version_request_t {
00110 uint8_t major_opcode;
00111 uint8_t minor_opcode;
00112 uint16_t length;
00113 } xcb_x_print_print_query_version_request_t;
00114
00118 typedef struct xcb_x_print_print_query_version_reply_t {
00119 uint8_t response_type;
00120 uint8_t pad0;
00121 uint16_t sequence;
00122 uint32_t length;
00123 uint16_t major_version;
00124 uint16_t minor_version;
00125 } xcb_x_print_print_query_version_reply_t;
00126
00130 typedef struct xcb_x_print_print_get_printer_list_cookie_t {
00131 unsigned int sequence;
00132 } xcb_x_print_print_get_printer_list_cookie_t;
00133
00135 #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
00136
00140 typedef struct xcb_x_print_print_get_printer_list_request_t {
00141 uint8_t major_opcode;
00142 uint8_t minor_opcode;
00143 uint16_t length;
00144 uint32_t printerNameLen;
00145 uint32_t localeLen;
00146 } xcb_x_print_print_get_printer_list_request_t;
00147
00151 typedef struct xcb_x_print_print_get_printer_list_reply_t {
00152 uint8_t response_type;
00153 uint8_t pad0;
00154 uint16_t sequence;
00155 uint32_t length;
00156 uint32_t listCount;
00157 uint8_t pad1[20];
00158 } xcb_x_print_print_get_printer_list_reply_t;
00159
00161 #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
00162
00166 typedef struct xcb_x_print_print_rehash_printer_list_request_t {
00167 uint8_t major_opcode;
00168 uint8_t minor_opcode;
00169 uint16_t length;
00170 } xcb_x_print_print_rehash_printer_list_request_t;
00171
00173 #define XCB_X_PRINT_CREATE_CONTEXT 2
00174
00178 typedef struct xcb_x_print_create_context_request_t {
00179 uint8_t major_opcode;
00180 uint8_t minor_opcode;
00181 uint16_t length;
00182 uint32_t context_id;
00183 uint32_t printerNameLen;
00184 uint32_t localeLen;
00185 } xcb_x_print_create_context_request_t;
00186
00188 #define XCB_X_PRINT_PRINT_SET_CONTEXT 3
00189
00193 typedef struct xcb_x_print_print_set_context_request_t {
00194 uint8_t major_opcode;
00195 uint8_t minor_opcode;
00196 uint16_t length;
00197 uint32_t context;
00198 } xcb_x_print_print_set_context_request_t;
00199
00203 typedef struct xcb_x_print_print_get_context_cookie_t {
00204 unsigned int sequence;
00205 } xcb_x_print_print_get_context_cookie_t;
00206
00208 #define XCB_X_PRINT_PRINT_GET_CONTEXT 4
00209
00213 typedef struct xcb_x_print_print_get_context_request_t {
00214 uint8_t major_opcode;
00215 uint8_t minor_opcode;
00216 uint16_t length;
00217 } xcb_x_print_print_get_context_request_t;
00218
00222 typedef struct xcb_x_print_print_get_context_reply_t {
00223 uint8_t response_type;
00224 uint8_t pad0;
00225 uint16_t sequence;
00226 uint32_t length;
00227 uint32_t context;
00228 } xcb_x_print_print_get_context_reply_t;
00229
00231 #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
00232
00236 typedef struct xcb_x_print_print_destroy_context_request_t {
00237 uint8_t major_opcode;
00238 uint8_t minor_opcode;
00239 uint16_t length;
00240 uint32_t context;
00241 } xcb_x_print_print_destroy_context_request_t;
00242
00246 typedef struct xcb_x_print_print_get_screen_of_context_cookie_t {
00247 unsigned int sequence;
00248 } xcb_x_print_print_get_screen_of_context_cookie_t;
00249
00251 #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
00252
00256 typedef struct xcb_x_print_print_get_screen_of_context_request_t {
00257 uint8_t major_opcode;
00258 uint8_t minor_opcode;
00259 uint16_t length;
00260 } xcb_x_print_print_get_screen_of_context_request_t;
00261
00265 typedef struct xcb_x_print_print_get_screen_of_context_reply_t {
00266 uint8_t response_type;
00267 uint8_t pad0;
00268 uint16_t sequence;
00269 uint32_t length;
00270 xcb_window_t root;
00271 } xcb_x_print_print_get_screen_of_context_reply_t;
00272
00274 #define XCB_X_PRINT_PRINT_START_JOB 7
00275
00279 typedef struct xcb_x_print_print_start_job_request_t {
00280 uint8_t major_opcode;
00281 uint8_t minor_opcode;
00282 uint16_t length;
00283 uint8_t output_mode;
00284 } xcb_x_print_print_start_job_request_t;
00285
00287 #define XCB_X_PRINT_PRINT_END_JOB 8
00288
00292 typedef struct xcb_x_print_print_end_job_request_t {
00293 uint8_t major_opcode;
00294 uint8_t minor_opcode;
00295 uint16_t length;
00296 uint8_t cancel;
00297 } xcb_x_print_print_end_job_request_t;
00298
00300 #define XCB_X_PRINT_PRINT_START_DOC 9
00301
00305 typedef struct xcb_x_print_print_start_doc_request_t {
00306 uint8_t major_opcode;
00307 uint8_t minor_opcode;
00308 uint16_t length;
00309 uint8_t driver_mode;
00310 } xcb_x_print_print_start_doc_request_t;
00311
00313 #define XCB_X_PRINT_PRINT_END_DOC 10
00314
00318 typedef struct xcb_x_print_print_end_doc_request_t {
00319 uint8_t major_opcode;
00320 uint8_t minor_opcode;
00321 uint16_t length;
00322 uint8_t cancel;
00323 } xcb_x_print_print_end_doc_request_t;
00324
00326 #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
00327
00331 typedef struct xcb_x_print_print_put_document_data_request_t {
00332 uint8_t major_opcode;
00333 uint8_t minor_opcode;
00334 uint16_t length;
00335 xcb_drawable_t drawable;
00336 uint32_t len_data;
00337 uint16_t len_fmt;
00338 uint16_t len_options;
00339 } xcb_x_print_print_put_document_data_request_t;
00340
00344 typedef struct xcb_x_print_print_get_document_data_cookie_t {
00345 unsigned int sequence;
00346 } xcb_x_print_print_get_document_data_cookie_t;
00347
00349 #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
00350
00354 typedef struct xcb_x_print_print_get_document_data_request_t {
00355 uint8_t major_opcode;
00356 uint8_t minor_opcode;
00357 uint16_t length;
00358 xcb_x_print_pcontext_t context;
00359 uint32_t max_bytes;
00360 } xcb_x_print_print_get_document_data_request_t;
00361
00365 typedef struct xcb_x_print_print_get_document_data_reply_t {
00366 uint8_t response_type;
00367 uint8_t pad0;
00368 uint16_t sequence;
00369 uint32_t length;
00370 uint32_t status_code;
00371 uint32_t finished_flag;
00372 uint32_t dataLen;
00373 uint8_t pad1[12];
00374 } xcb_x_print_print_get_document_data_reply_t;
00375
00377 #define XCB_X_PRINT_PRINT_START_PAGE 13
00378
00382 typedef struct xcb_x_print_print_start_page_request_t {
00383 uint8_t major_opcode;
00384 uint8_t minor_opcode;
00385 uint16_t length;
00386 xcb_window_t window;
00387 } xcb_x_print_print_start_page_request_t;
00388
00390 #define XCB_X_PRINT_PRINT_END_PAGE 14
00391
00395 typedef struct xcb_x_print_print_end_page_request_t {
00396 uint8_t major_opcode;
00397 uint8_t minor_opcode;
00398 uint16_t length;
00399 uint8_t cancel;
00400 uint8_t pad0[3];
00401 } xcb_x_print_print_end_page_request_t;
00402
00404 #define XCB_X_PRINT_PRINT_SELECT_INPUT 15
00405
00409 typedef struct xcb_x_print_print_select_input_request_t {
00410 uint8_t major_opcode;
00411 uint8_t minor_opcode;
00412 uint16_t length;
00413 xcb_x_print_pcontext_t context;
00414 uint32_t event_mask;
00415 } xcb_x_print_print_select_input_request_t;
00416
00420 typedef struct xcb_x_print_print_input_selected_cookie_t {
00421 unsigned int sequence;
00422 } xcb_x_print_print_input_selected_cookie_t;
00423
00425 #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
00426
00430 typedef struct xcb_x_print_print_input_selected_request_t {
00431 uint8_t major_opcode;
00432 uint8_t minor_opcode;
00433 uint16_t length;
00434 xcb_x_print_pcontext_t context;
00435 } xcb_x_print_print_input_selected_request_t;
00436
00440 typedef struct xcb_x_print_print_input_selected_reply_t {
00441 uint8_t response_type;
00442 uint8_t pad0;
00443 uint16_t sequence;
00444 uint32_t length;
00445 uint32_t event_mask;
00446 uint32_t all_events_mask;
00447 } xcb_x_print_print_input_selected_reply_t;
00448
00452 typedef struct xcb_x_print_print_get_attributes_cookie_t {
00453 unsigned int sequence;
00454 } xcb_x_print_print_get_attributes_cookie_t;
00455
00457 #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
00458
00462 typedef struct xcb_x_print_print_get_attributes_request_t {
00463 uint8_t major_opcode;
00464 uint8_t minor_opcode;
00465 uint16_t length;
00466 xcb_x_print_pcontext_t context;
00467 uint8_t pool;
00468 uint8_t pad0[3];
00469 } xcb_x_print_print_get_attributes_request_t;
00470
00474 typedef struct xcb_x_print_print_get_attributes_reply_t {
00475 uint8_t response_type;
00476 uint8_t pad0;
00477 uint16_t sequence;
00478 uint32_t length;
00479 uint32_t stringLen;
00480 uint8_t pad1[20];
00481 xcb_x_print_string8_t attributes;
00482 } xcb_x_print_print_get_attributes_reply_t;
00483
00487 typedef struct xcb_x_print_print_get_one_attributes_cookie_t {
00488 unsigned int sequence;
00489 } xcb_x_print_print_get_one_attributes_cookie_t;
00490
00492 #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
00493
00497 typedef struct xcb_x_print_print_get_one_attributes_request_t {
00498 uint8_t major_opcode;
00499 uint8_t minor_opcode;
00500 uint16_t length;
00501 xcb_x_print_pcontext_t context;
00502 uint32_t nameLen;
00503 uint8_t pool;
00504 uint8_t pad0[3];
00505 } xcb_x_print_print_get_one_attributes_request_t;
00506
00510 typedef struct xcb_x_print_print_get_one_attributes_reply_t {
00511 uint8_t response_type;
00512 uint8_t pad0;
00513 uint16_t sequence;
00514 uint32_t length;
00515 uint32_t valueLen;
00516 uint8_t pad1[20];
00517 } xcb_x_print_print_get_one_attributes_reply_t;
00518
00520 #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
00521
00525 typedef struct xcb_x_print_print_set_attributes_request_t {
00526 uint8_t major_opcode;
00527 uint8_t minor_opcode;
00528 uint16_t length;
00529 xcb_x_print_pcontext_t context;
00530 uint32_t stringLen;
00531 uint8_t pool;
00532 uint8_t rule;
00533 uint8_t pad0[2];
00534 } xcb_x_print_print_set_attributes_request_t;
00535
00539 typedef struct xcb_x_print_print_get_page_dimensions_cookie_t {
00540 unsigned int sequence;
00541 } xcb_x_print_print_get_page_dimensions_cookie_t;
00542
00544 #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
00545
00549 typedef struct xcb_x_print_print_get_page_dimensions_request_t {
00550 uint8_t major_opcode;
00551 uint8_t minor_opcode;
00552 uint16_t length;
00553 xcb_x_print_pcontext_t context;
00554 } xcb_x_print_print_get_page_dimensions_request_t;
00555
00559 typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
00560 uint8_t response_type;
00561 uint8_t pad0;
00562 uint16_t sequence;
00563 uint32_t length;
00564 uint16_t width;
00565 uint16_t height;
00566 uint16_t offset_x;
00567 uint16_t offset_y;
00568 uint16_t reproducible_width;
00569 uint16_t reproducible_height;
00570 } xcb_x_print_print_get_page_dimensions_reply_t;
00571
00575 typedef struct xcb_x_print_print_query_screens_cookie_t {
00576 unsigned int sequence;
00577 } xcb_x_print_print_query_screens_cookie_t;
00578
00580 #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
00581
00585 typedef struct xcb_x_print_print_query_screens_request_t {
00586 uint8_t major_opcode;
00587 uint8_t minor_opcode;
00588 uint16_t length;
00589 } xcb_x_print_print_query_screens_request_t;
00590
00594 typedef struct xcb_x_print_print_query_screens_reply_t {
00595 uint8_t response_type;
00596 uint8_t pad0;
00597 uint16_t sequence;
00598 uint32_t length;
00599 uint32_t listCount;
00600 uint8_t pad1[20];
00601 } xcb_x_print_print_query_screens_reply_t;
00602
00606 typedef struct xcb_x_print_print_set_image_resolution_cookie_t {
00607 unsigned int sequence;
00608 } xcb_x_print_print_set_image_resolution_cookie_t;
00609
00611 #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
00612
00616 typedef struct xcb_x_print_print_set_image_resolution_request_t {
00617 uint8_t major_opcode;
00618 uint8_t minor_opcode;
00619 uint16_t length;
00620 xcb_x_print_pcontext_t context;
00621 uint16_t image_resolution;
00622 } xcb_x_print_print_set_image_resolution_request_t;
00623
00627 typedef struct xcb_x_print_print_set_image_resolution_reply_t {
00628 uint8_t response_type;
00629 uint8_t status;
00630 uint16_t sequence;
00631 uint32_t length;
00632 uint16_t previous_resolutions;
00633 } xcb_x_print_print_set_image_resolution_reply_t;
00634
00638 typedef struct xcb_x_print_print_get_image_resolution_cookie_t {
00639 unsigned int sequence;
00640 } xcb_x_print_print_get_image_resolution_cookie_t;
00641
00643 #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
00644
00648 typedef struct xcb_x_print_print_get_image_resolution_request_t {
00649 uint8_t major_opcode;
00650 uint8_t minor_opcode;
00651 uint16_t length;
00652 xcb_x_print_pcontext_t context;
00653 } xcb_x_print_print_get_image_resolution_request_t;
00654
00658 typedef struct xcb_x_print_print_get_image_resolution_reply_t {
00659 uint8_t response_type;
00660 uint8_t pad0;
00661 uint16_t sequence;
00662 uint32_t length;
00663 uint16_t image_resolution;
00664 } xcb_x_print_print_get_image_resolution_reply_t;
00665
00667 #define XCB_X_PRINT_NOTIFY 0
00668
00672 typedef struct xcb_x_print_notify_event_t {
00673 uint8_t response_type;
00674 uint8_t detail;
00675 uint16_t sequence;
00676 xcb_x_print_pcontext_t context;
00677 uint8_t cancel;
00678 } xcb_x_print_notify_event_t;
00679
00681 #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
00682
00686 typedef struct xcb_x_print_attribut_notify_event_t {
00687 uint8_t response_type;
00688 uint8_t detail;
00689 uint16_t sequence;
00690 xcb_x_print_pcontext_t context;
00691 } xcb_x_print_attribut_notify_event_t;
00692
00694 #define XCB_X_PRINT_BAD_CONTEXT 0
00695
00699 typedef struct xcb_x_print_bad_context_error_t {
00700 uint8_t response_type;
00701 uint8_t error_code;
00702 uint16_t sequence;
00703 } xcb_x_print_bad_context_error_t;
00704
00706 #define XCB_X_PRINT_BAD_SEQUENCE 1
00707
00711 typedef struct xcb_x_print_bad_sequence_error_t {
00712 uint8_t response_type;
00713 uint8_t error_code;
00714 uint16_t sequence;
00715 } xcb_x_print_bad_sequence_error_t;
00716
00726
00727
00728
00729
00730
00731
00732
00733
00734
00735 void
00736 xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i );
00737
00748
00749
00750
00751
00752
00753
00754
00755
00756
00757 xcb_generic_iterator_t
00758 xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i );
00759
00760
00761
00762
00763
00764
00765
00766
00767
00768
00769
00770 xcb_x_print_string8_t *
00771 xcb_x_print_printer_name (const xcb_x_print_printer_t *R );
00772
00773
00774
00775
00776
00777
00778
00779
00780
00781
00782
00783 int
00784 xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R );
00785
00786
00787
00788
00789
00790
00791
00792
00793
00794
00795
00796 xcb_generic_iterator_t
00797 xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R );
00798
00799
00800
00801
00802
00803
00804
00805
00806
00807
00808
00809 uint32_t
00810 xcb_x_print_printer_desc_len (const xcb_x_print_printer_t *R );
00811
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822 xcb_x_print_string8_t *
00823 xcb_x_print_printer_description (const xcb_x_print_printer_t *R );
00824
00825
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835 int
00836 xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R );
00837
00838
00839
00840
00841
00842
00843
00844
00845
00846
00847
00848 xcb_generic_iterator_t
00849 xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R );
00850
00860
00861
00862
00863
00864
00865
00866
00867
00868
00869 void
00870 xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i );
00871
00882
00883
00884
00885
00886
00887
00888
00889
00890
00891 xcb_generic_iterator_t
00892 xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i );
00893
00903
00904
00905
00906
00907
00908
00909
00910
00911
00912 void
00913 xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i );
00914
00925
00926
00927
00928
00929
00930
00931
00932
00933
00934 xcb_generic_iterator_t
00935 xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i );
00936
00946
00947
00948
00949
00950
00951
00952
00953
00954
00955 xcb_x_print_print_query_version_cookie_t
00956 xcb_x_print_print_query_version (xcb_connection_t *c );
00957
00970
00971
00972
00973
00974
00975
00976
00977
00978
00979 xcb_x_print_print_query_version_cookie_t
00980 xcb_x_print_print_query_version_unchecked (xcb_connection_t *c );
00981
00997
00998
00999
01000
01001
01002
01003
01004
01005
01006
01007
01008 xcb_x_print_print_query_version_reply_t *
01009 xcb_x_print_print_query_version_reply (xcb_connection_t *c ,
01010 xcb_x_print_print_query_version_cookie_t cookie ,
01011 xcb_generic_error_t **e );
01012
01022
01023
01024
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035 xcb_x_print_print_get_printer_list_cookie_t
01036 xcb_x_print_print_get_printer_list (xcb_connection_t *c ,
01037 uint32_t printerNameLen ,
01038 uint32_t localeLen ,
01039 const xcb_x_print_string8_t *printer_name ,
01040 const xcb_x_print_string8_t *locale );
01041
01054
01055
01056
01057
01058
01059
01060
01061
01062
01063
01064
01065
01066
01067 xcb_x_print_print_get_printer_list_cookie_t
01068 xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c ,
01069 uint32_t printerNameLen ,
01070 uint32_t localeLen ,
01071 const xcb_x_print_string8_t *printer_name ,
01072 const xcb_x_print_string8_t *locale );
01073
01074
01075
01076
01077
01078
01079
01080
01081
01082
01083
01084 int
01085 xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R );
01086
01087
01088
01089
01090
01091
01092
01093
01094
01095
01096
01097 xcb_x_print_printer_iterator_t
01098 xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R );
01099
01115
01116
01117
01118
01119
01120
01121
01122
01123
01124
01125
01126 xcb_x_print_print_get_printer_list_reply_t *
01127 xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c ,
01128 xcb_x_print_print_get_printer_list_cookie_t cookie ,
01129 xcb_generic_error_t **e );
01130
01143
01144
01145
01146
01147
01148
01149
01150
01151
01152 xcb_void_cookie_t
01153 xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c );
01154
01164
01165
01166
01167
01168
01169
01170
01171
01172
01173 xcb_void_cookie_t
01174 xcb_x_print_print_rehash_printer_list (xcb_connection_t *c );
01175
01188
01189
01190
01191
01192
01193
01194
01195
01196
01197
01198
01199
01200
01201
01202 xcb_void_cookie_t
01203 xcb_x_print_create_context_checked (xcb_connection_t *c ,
01204 uint32_t context_id ,
01205 uint32_t printerNameLen ,
01206 uint32_t localeLen ,
01207 const xcb_x_print_string8_t *printerName ,
01208 const xcb_x_print_string8_t *locale );
01209
01219
01220
01221
01222
01223
01224
01225
01226
01227
01228
01229
01230
01231
01232
01233 xcb_void_cookie_t
01234 xcb_x_print_create_context (xcb_connection_t *c ,
01235 uint32_t context_id ,
01236 uint32_t printerNameLen ,
01237 uint32_t localeLen ,
01238 const xcb_x_print_string8_t *printerName ,
01239 const xcb_x_print_string8_t *locale );
01240
01253
01254
01255
01256
01257
01258
01259
01260
01261
01262
01263 xcb_void_cookie_t
01264 xcb_x_print_print_set_context_checked (xcb_connection_t *c ,
01265 uint32_t context );
01266
01276
01277
01278
01279
01280
01281
01282
01283
01284
01285
01286 xcb_void_cookie_t
01287 xcb_x_print_print_set_context (xcb_connection_t *c ,
01288 uint32_t context );
01289
01299
01300
01301
01302
01303
01304
01305
01306
01307
01308 xcb_x_print_print_get_context_cookie_t
01309 xcb_x_print_print_get_context (xcb_connection_t *c );
01310
01323
01324
01325
01326
01327
01328
01329
01330
01331
01332 xcb_x_print_print_get_context_cookie_t
01333 xcb_x_print_print_get_context_unchecked (xcb_connection_t *c );
01334
01350
01351
01352
01353
01354
01355
01356
01357
01358
01359
01360
01361 xcb_x_print_print_get_context_reply_t *
01362 xcb_x_print_print_get_context_reply (xcb_connection_t *c ,
01363 xcb_x_print_print_get_context_cookie_t cookie ,
01364 xcb_generic_error_t **e );
01365
01378
01379
01380
01381
01382
01383
01384
01385
01386
01387
01388 xcb_void_cookie_t
01389 xcb_x_print_print_destroy_context_checked (xcb_connection_t *c ,
01390 uint32_t context );
01391
01401
01402
01403
01404
01405
01406
01407
01408
01409
01410
01411 xcb_void_cookie_t
01412 xcb_x_print_print_destroy_context (xcb_connection_t *c ,
01413 uint32_t context );
01414
01424
01425
01426
01427
01428
01429
01430
01431
01432
01433 xcb_x_print_print_get_screen_of_context_cookie_t
01434 xcb_x_print_print_get_screen_of_context (xcb_connection_t *c );
01435
01448
01449
01450
01451
01452
01453
01454
01455
01456
01457 xcb_x_print_print_get_screen_of_context_cookie_t
01458 xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c );
01459
01475
01476
01477
01478
01479
01480
01481
01482
01483
01484
01485
01486 xcb_x_print_print_get_screen_of_context_reply_t *
01487 xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c ,
01488 xcb_x_print_print_get_screen_of_context_cookie_t cookie ,
01489 xcb_generic_error_t **e );
01490
01503
01504
01505
01506
01507
01508
01509
01510
01511
01512
01513 xcb_void_cookie_t
01514 xcb_x_print_print_start_job_checked (xcb_connection_t *c ,
01515 uint8_t output_mode );
01516
01526
01527
01528
01529
01530
01531
01532
01533
01534
01535
01536 xcb_void_cookie_t
01537 xcb_x_print_print_start_job (xcb_connection_t *c ,
01538 uint8_t output_mode );
01539
01552
01553
01554
01555
01556
01557
01558
01559
01560
01561
01562 xcb_void_cookie_t
01563 xcb_x_print_print_end_job_checked (xcb_connection_t *c ,
01564 uint8_t cancel );
01565
01575
01576
01577
01578
01579
01580
01581
01582
01583
01584
01585 xcb_void_cookie_t
01586 xcb_x_print_print_end_job (xcb_connection_t *c ,
01587 uint8_t cancel );
01588
01601
01602
01603
01604
01605
01606
01607
01608
01609
01610
01611 xcb_void_cookie_t
01612 xcb_x_print_print_start_doc_checked (xcb_connection_t *c ,
01613 uint8_t driver_mode );
01614
01624
01625
01626
01627
01628
01629
01630
01631
01632
01633
01634 xcb_void_cookie_t
01635 xcb_x_print_print_start_doc (xcb_connection_t *c ,
01636 uint8_t driver_mode );
01637
01650
01651
01652
01653
01654
01655
01656
01657
01658
01659
01660 xcb_void_cookie_t
01661 xcb_x_print_print_end_doc_checked (xcb_connection_t *c ,
01662 uint8_t cancel );
01663
01673
01674
01675
01676
01677
01678
01679
01680
01681
01682
01683 xcb_void_cookie_t
01684 xcb_x_print_print_end_doc (xcb_connection_t *c ,
01685 uint8_t cancel );
01686
01699
01700
01701
01702
01703
01704
01705
01706
01707
01708
01709
01710
01711
01712
01713
01714
01715
01716
01717 xcb_void_cookie_t
01718 xcb_x_print_print_put_document_data_checked (xcb_connection_t *c ,
01719 xcb_drawable_t drawable ,
01720 uint32_t len_data ,
01721 uint16_t len_fmt ,
01722 uint16_t len_options ,
01723 const uint8_t *data ,
01724 uint32_t doc_format_len ,
01725 const xcb_x_print_string8_t *doc_format ,
01726 uint32_t options_len ,
01727 const xcb_x_print_string8_t *options );
01728
01738
01739
01740
01741
01742
01743
01744
01745
01746
01747
01748
01749
01750
01751
01752
01753
01754
01755
01756 xcb_void_cookie_t
01757 xcb_x_print_print_put_document_data (xcb_connection_t *c ,
01758 xcb_drawable_t drawable ,
01759 uint32_t len_data ,
01760 uint16_t len_fmt ,
01761 uint16_t len_options ,
01762 const uint8_t *data ,
01763 uint32_t doc_format_len ,
01764 const xcb_x_print_string8_t *doc_format ,
01765 uint32_t options_len ,
01766 const xcb_x_print_string8_t *options );
01767
01777
01778
01779
01780
01781
01782
01783
01784
01785
01786
01787
01788 xcb_x_print_print_get_document_data_cookie_t
01789 xcb_x_print_print_get_document_data (xcb_connection_t *c ,
01790 xcb_x_print_pcontext_t context ,
01791 uint32_t max_bytes );
01792
01805
01806
01807
01808
01809
01810
01811
01812
01813
01814
01815
01816 xcb_x_print_print_get_document_data_cookie_t
01817 xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c ,
01818 xcb_x_print_pcontext_t context ,
01819 uint32_t max_bytes );
01820
01821
01822
01823
01824
01825
01826
01827
01828
01829
01830
01831 uint8_t *
01832 xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R );
01833
01834
01835
01836
01837
01838
01839
01840
01841
01842
01843
01844 int
01845 xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R );
01846
01847
01848
01849
01850
01851
01852
01853
01854
01855
01856
01857 xcb_generic_iterator_t
01858 xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R );
01859
01875
01876
01877
01878
01879
01880
01881
01882
01883
01884
01885
01886 xcb_x_print_print_get_document_data_reply_t *
01887 xcb_x_print_print_get_document_data_reply (xcb_connection_t *c ,
01888 xcb_x_print_print_get_document_data_cookie_t cookie ,
01889 xcb_generic_error_t **e );
01890
01903
01904
01905
01906
01907
01908
01909
01910
01911
01912
01913 xcb_void_cookie_t
01914 xcb_x_print_print_start_page_checked (xcb_connection_t *c ,
01915 xcb_window_t window );
01916
01926
01927
01928
01929
01930
01931
01932
01933
01934
01935
01936 xcb_void_cookie_t
01937 xcb_x_print_print_start_page (xcb_connection_t *c ,
01938 xcb_window_t window );
01939
01952
01953
01954
01955
01956
01957
01958
01959
01960
01961
01962 xcb_void_cookie_t
01963 xcb_x_print_print_end_page_checked (xcb_connection_t *c ,
01964 uint8_t cancel );
01965
01975
01976
01977
01978
01979
01980
01981
01982
01983
01984
01985 xcb_void_cookie_t
01986 xcb_x_print_print_end_page (xcb_connection_t *c ,
01987 uint8_t cancel );
01988
02001
02002
02003
02004
02005
02006
02007
02008
02009
02010
02011
02012
02013 xcb_void_cookie_t
02014 xcb_x_print_print_select_input_checked (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
02039
02040 xcb_void_cookie_t
02041 xcb_x_print_print_select_input (xcb_connection_t *c ,
02042 xcb_x_print_pcontext_t context ,
02043 uint32_t event_mask ,
02044 const uint32_t *event_list );
02045
02055
02056
02057
02058
02059
02060
02061
02062
02063
02064
02065 xcb_x_print_print_input_selected_cookie_t
02066 xcb_x_print_print_input_selected (xcb_connection_t *c ,
02067 xcb_x_print_pcontext_t context );
02068
02081
02082
02083
02084
02085
02086
02087
02088
02089
02090
02091 xcb_x_print_print_input_selected_cookie_t
02092 xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c ,
02093 xcb_x_print_pcontext_t context );
02094
02095
02096
02097
02098
02099
02100
02101
02102
02103
02104
02105 uint32_t *
02106 xcb_x_print_print_input_selected_event_list (const xcb_x_print_print_input_selected_reply_t *R );
02107
02108
02109
02110
02111
02112
02113
02114
02115
02116
02117
02118 int
02119 xcb_x_print_print_input_selected_event_list_length (const xcb_x_print_print_input_selected_reply_t *R );
02120
02121
02122
02123
02124
02125
02126
02127
02128
02129
02130
02131 xcb_generic_iterator_t
02132 xcb_x_print_print_input_selected_event_list_end (const xcb_x_print_print_input_selected_reply_t *R );
02133
02134
02135
02136
02137
02138
02139
02140
02141
02142
02143
02144 uint32_t
02145 xcb_x_print_print_input_selected_all_events_mask (const xcb_x_print_print_input_selected_reply_t *R );
02146
02147
02148
02149
02150
02151
02152
02153
02154
02155
02156
02157 uint32_t *
02158 xcb_x_print_print_input_selected_all_events_list (const xcb_x_print_print_input_selected_reply_t *R );
02159
02160
02161
02162
02163
02164
02165
02166
02167
02168
02169
02170 int
02171 xcb_x_print_print_input_selected_all_events_list_length (const xcb_x_print_print_input_selected_reply_t *R );
02172
02173
02174
02175
02176
02177
02178
02179
02180
02181
02182
02183 xcb_generic_iterator_t
02184 xcb_x_print_print_input_selected_all_events_list_end (const xcb_x_print_print_input_selected_reply_t *R );
02185
02201
02202
02203
02204
02205
02206
02207
02208
02209
02210
02211
02212 xcb_x_print_print_input_selected_reply_t *
02213 xcb_x_print_print_input_selected_reply (xcb_connection_t *c ,
02214 xcb_x_print_print_input_selected_cookie_t cookie ,
02215 xcb_generic_error_t **e );
02216
02226
02227
02228
02229
02230
02231
02232
02233
02234
02235
02236
02237 xcb_x_print_print_get_attributes_cookie_t
02238 xcb_x_print_print_get_attributes (xcb_connection_t *c ,
02239 xcb_x_print_pcontext_t context ,
02240 uint8_t pool );
02241
02254
02255
02256
02257
02258
02259
02260
02261
02262
02263
02264
02265 xcb_x_print_print_get_attributes_cookie_t
02266 xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c ,
02267 xcb_x_print_pcontext_t context ,
02268 uint8_t pool );
02269
02285
02286
02287
02288
02289
02290
02291
02292
02293
02294
02295
02296 xcb_x_print_print_get_attributes_reply_t *
02297 xcb_x_print_print_get_attributes_reply (xcb_connection_t *c ,
02298 xcb_x_print_print_get_attributes_cookie_t cookie ,
02299 xcb_generic_error_t **e );
02300
02310
02311
02312
02313
02314
02315
02316
02317
02318
02319
02320
02321
02322
02323 xcb_x_print_print_get_one_attributes_cookie_t
02324 xcb_x_print_print_get_one_attributes (xcb_connection_t *c ,
02325 xcb_x_print_pcontext_t context ,
02326 uint32_t nameLen ,
02327 uint8_t pool ,
02328 const xcb_x_print_string8_t *name );
02329
02342
02343
02344
02345
02346
02347
02348
02349
02350
02351
02352
02353
02354
02355 xcb_x_print_print_get_one_attributes_cookie_t
02356 xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c ,
02357 xcb_x_print_pcontext_t context ,
02358 uint32_t nameLen ,
02359 uint8_t pool ,
02360 const xcb_x_print_string8_t *name );
02361
02362
02363
02364
02365
02366
02367
02368
02369
02370
02371
02372 xcb_x_print_string8_t *
02373 xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R );
02374
02375
02376
02377
02378
02379
02380
02381
02382
02383
02384
02385 int
02386 xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R );
02387
02388
02389
02390
02391
02392
02393
02394
02395
02396
02397
02398 xcb_generic_iterator_t
02399 xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R );
02400
02416
02417
02418
02419
02420
02421
02422
02423
02424
02425
02426
02427 xcb_x_print_print_get_one_attributes_reply_t *
02428 xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c ,
02429 xcb_x_print_print_get_one_attributes_cookie_t cookie ,
02430 xcb_generic_error_t **e );
02431
02444
02445
02446
02447
02448
02449
02450
02451
02452
02453
02454
02455
02456
02457
02458
02459 xcb_void_cookie_t
02460 xcb_x_print_print_set_attributes_checked (xcb_connection_t *c ,
02461 xcb_x_print_pcontext_t context ,
02462 uint32_t stringLen ,
02463 uint8_t pool ,
02464 uint8_t rule ,
02465 uint32_t attributes_len ,
02466 const xcb_x_print_string8_t *attributes );
02467
02477
02478
02479
02480
02481
02482
02483
02484
02485
02486
02487
02488
02489
02490
02491
02492 xcb_void_cookie_t
02493 xcb_x_print_print_set_attributes (xcb_connection_t *c ,
02494 xcb_x_print_pcontext_t context ,
02495 uint32_t stringLen ,
02496 uint8_t pool ,
02497 uint8_t rule ,
02498 uint32_t attributes_len ,
02499 const xcb_x_print_string8_t *attributes );
02500
02510
02511
02512
02513
02514
02515
02516
02517
02518
02519
02520 xcb_x_print_print_get_page_dimensions_cookie_t
02521 xcb_x_print_print_get_page_dimensions (xcb_connection_t *c ,
02522 xcb_x_print_pcontext_t context );
02523
02536
02537
02538
02539
02540
02541
02542
02543
02544
02545
02546 xcb_x_print_print_get_page_dimensions_cookie_t
02547 xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c ,
02548 xcb_x_print_pcontext_t context );
02549
02565
02566
02567
02568
02569
02570
02571
02572
02573
02574
02575
02576 xcb_x_print_print_get_page_dimensions_reply_t *
02577 xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c ,
02578 xcb_x_print_print_get_page_dimensions_cookie_t cookie ,
02579 xcb_generic_error_t **e );
02580
02590
02591
02592
02593
02594
02595
02596
02597
02598
02599 xcb_x_print_print_query_screens_cookie_t
02600 xcb_x_print_print_query_screens (xcb_connection_t *c );
02601
02614
02615
02616
02617
02618
02619
02620
02621
02622
02623 xcb_x_print_print_query_screens_cookie_t
02624 xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c );
02625
02626
02627
02628
02629
02630
02631
02632
02633
02634
02635
02636 xcb_window_t *
02637 xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R );
02638
02639
02640
02641
02642
02643
02644
02645
02646
02647
02648
02649 int
02650 xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R );
02651
02652
02653
02654
02655
02656
02657
02658
02659
02660
02661
02662 xcb_generic_iterator_t
02663 xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R );
02664
02680
02681
02682
02683
02684
02685
02686
02687
02688
02689
02690
02691 xcb_x_print_print_query_screens_reply_t *
02692 xcb_x_print_print_query_screens_reply (xcb_connection_t *c ,
02693 xcb_x_print_print_query_screens_cookie_t cookie ,
02694 xcb_generic_error_t **e );
02695
02705
02706
02707
02708
02709
02710
02711
02712
02713
02714
02715
02716 xcb_x_print_print_set_image_resolution_cookie_t
02717 xcb_x_print_print_set_image_resolution (xcb_connection_t *c ,
02718 xcb_x_print_pcontext_t context ,
02719 uint16_t image_resolution );
02720
02733
02734
02735
02736
02737
02738
02739
02740
02741
02742
02743
02744 xcb_x_print_print_set_image_resolution_cookie_t
02745 xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c ,
02746 xcb_x_print_pcontext_t context ,
02747 uint16_t image_resolution );
02748
02764
02765
02766
02767
02768
02769
02770
02771
02772
02773
02774
02775 xcb_x_print_print_set_image_resolution_reply_t *
02776 xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c ,
02777 xcb_x_print_print_set_image_resolution_cookie_t cookie ,
02778 xcb_generic_error_t **e );
02779
02789
02790
02791
02792
02793
02794
02795
02796
02797
02798
02799 xcb_x_print_print_get_image_resolution_cookie_t
02800 xcb_x_print_print_get_image_resolution (xcb_connection_t *c ,
02801 xcb_x_print_pcontext_t context );
02802
02815
02816
02817
02818
02819
02820
02821
02822
02823
02824
02825 xcb_x_print_print_get_image_resolution_cookie_t
02826 xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c ,
02827 xcb_x_print_pcontext_t context );
02828
02844
02845
02846
02847
02848
02849
02850
02851
02852
02853
02854
02855 xcb_x_print_print_get_image_resolution_reply_t *
02856 xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c ,
02857 xcb_x_print_print_get_image_resolution_cookie_t cookie ,
02858 xcb_generic_error_t **e );
02859
02860
02861 #ifdef __cplusplus
02862 }
02863 #endif
02864
02865 #endif
02866