Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:46

0001 /*
0002  * This file generated automatically from xprint.xml by c_client.py.
0003  * Edit at your peril.
0004  */
0005 
0006 /**
0007  * @defgroup XCB_XPrint_API XCB XPrint API
0008  * @brief XPrint XCB Protocol Implementation.
0009  * @{
0010  **/
0011 
0012 #ifndef __XPRINT_H
0013 #define __XPRINT_H
0014 
0015 #include "xcb.h"
0016 #include "xproto.h"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 #define XCB_XPRINT_MAJOR_VERSION 1
0023 #define XCB_XPRINT_MINOR_VERSION 0
0024 
0025 extern xcb_extension_t xcb_x_print_id;
0026 
0027 typedef char xcb_x_print_string8_t;
0028 
0029 /**
0030  * @brief xcb_x_print_string8_iterator_t
0031  **/
0032 typedef struct xcb_x_print_string8_iterator_t {
0033     xcb_x_print_string8_t *data;
0034     int                    rem;
0035     int                    index;
0036 } xcb_x_print_string8_iterator_t;
0037 
0038 /**
0039  * @brief xcb_x_print_printer_t
0040  **/
0041 typedef struct xcb_x_print_printer_t {
0042     uint32_t nameLen;
0043     uint32_t descLen;
0044 } xcb_x_print_printer_t;
0045 
0046 /**
0047  * @brief xcb_x_print_printer_iterator_t
0048  **/
0049 typedef struct xcb_x_print_printer_iterator_t {
0050     xcb_x_print_printer_t *data;
0051     int                    rem;
0052     int                    index;
0053 } xcb_x_print_printer_iterator_t;
0054 
0055 typedef uint32_t xcb_x_print_pcontext_t;
0056 
0057 /**
0058  * @brief xcb_x_print_pcontext_iterator_t
0059  **/
0060 typedef struct xcb_x_print_pcontext_iterator_t {
0061     xcb_x_print_pcontext_t *data;
0062     int                     rem;
0063     int                     index;
0064 } xcb_x_print_pcontext_iterator_t;
0065 
0066 typedef enum xcb_x_print_get_doc_t {
0067     XCB_X_PRINT_GET_DOC_FINISHED = 0,
0068     XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1
0069 } xcb_x_print_get_doc_t;
0070 
0071 typedef enum xcb_x_print_ev_mask_t {
0072     XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0,
0073     XCB_X_PRINT_EV_MASK_PRINT_MASK = 1,
0074     XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2
0075 } xcb_x_print_ev_mask_t;
0076 
0077 typedef enum xcb_x_print_detail_t {
0078     XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1,
0079     XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2,
0080     XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3,
0081     XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4,
0082     XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5,
0083     XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6
0084 } xcb_x_print_detail_t;
0085 
0086 typedef enum xcb_x_print_attr_t {
0087     XCB_X_PRINT_ATTR_JOB_ATTR = 1,
0088     XCB_X_PRINT_ATTR_DOC_ATTR = 2,
0089     XCB_X_PRINT_ATTR_PAGE_ATTR = 3,
0090     XCB_X_PRINT_ATTR_PRINTER_ATTR = 4,
0091     XCB_X_PRINT_ATTR_SERVER_ATTR = 5,
0092     XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6,
0093     XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7
0094 } xcb_x_print_attr_t;
0095 
0096 /**
0097  * @brief xcb_x_print_print_query_version_cookie_t
0098  **/
0099 typedef struct xcb_x_print_print_query_version_cookie_t {
0100     unsigned int sequence;
0101 } xcb_x_print_print_query_version_cookie_t;
0102 
0103 /** Opcode for xcb_x_print_print_query_version. */
0104 #define XCB_X_PRINT_PRINT_QUERY_VERSION 0
0105 
0106 /**
0107  * @brief xcb_x_print_print_query_version_request_t
0108  **/
0109 typedef struct xcb_x_print_print_query_version_request_t {
0110     uint8_t  major_opcode;
0111     uint8_t  minor_opcode;
0112     uint16_t length;
0113 } xcb_x_print_print_query_version_request_t;
0114 
0115 /**
0116  * @brief xcb_x_print_print_query_version_reply_t
0117  **/
0118 typedef struct xcb_x_print_print_query_version_reply_t {
0119     uint8_t  response_type;
0120     uint8_t  pad0;
0121     uint16_t sequence;
0122     uint32_t length;
0123     uint16_t major_version;
0124     uint16_t minor_version;
0125 } xcb_x_print_print_query_version_reply_t;
0126 
0127 /**
0128  * @brief xcb_x_print_print_get_printer_list_cookie_t
0129  **/
0130 typedef struct xcb_x_print_print_get_printer_list_cookie_t {
0131     unsigned int sequence;
0132 } xcb_x_print_print_get_printer_list_cookie_t;
0133 
0134 /** Opcode for xcb_x_print_print_get_printer_list. */
0135 #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
0136 
0137 /**
0138  * @brief xcb_x_print_print_get_printer_list_request_t
0139  **/
0140 typedef struct xcb_x_print_print_get_printer_list_request_t {
0141     uint8_t  major_opcode;
0142     uint8_t  minor_opcode;
0143     uint16_t length;
0144     uint32_t printerNameLen;
0145     uint32_t localeLen;
0146 } xcb_x_print_print_get_printer_list_request_t;
0147 
0148 /**
0149  * @brief xcb_x_print_print_get_printer_list_reply_t
0150  **/
0151 typedef struct xcb_x_print_print_get_printer_list_reply_t {
0152     uint8_t  response_type;
0153     uint8_t  pad0;
0154     uint16_t sequence;
0155     uint32_t length;
0156     uint32_t listCount;
0157     uint8_t  pad1[20];
0158 } xcb_x_print_print_get_printer_list_reply_t;
0159 
0160 /** Opcode for xcb_x_print_print_rehash_printer_list. */
0161 #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
0162 
0163 /**
0164  * @brief xcb_x_print_print_rehash_printer_list_request_t
0165  **/
0166 typedef struct xcb_x_print_print_rehash_printer_list_request_t {
0167     uint8_t  major_opcode;
0168     uint8_t  minor_opcode;
0169     uint16_t length;
0170 } xcb_x_print_print_rehash_printer_list_request_t;
0171 
0172 /** Opcode for xcb_x_print_create_context. */
0173 #define XCB_X_PRINT_CREATE_CONTEXT 2
0174 
0175 /**
0176  * @brief xcb_x_print_create_context_request_t
0177  **/
0178 typedef struct xcb_x_print_create_context_request_t {
0179     uint8_t  major_opcode;
0180     uint8_t  minor_opcode;
0181     uint16_t length;
0182     uint32_t context_id;
0183     uint32_t printerNameLen;
0184     uint32_t localeLen;
0185 } xcb_x_print_create_context_request_t;
0186 
0187 /** Opcode for xcb_x_print_print_set_context. */
0188 #define XCB_X_PRINT_PRINT_SET_CONTEXT 3
0189 
0190 /**
0191  * @brief xcb_x_print_print_set_context_request_t
0192  **/
0193 typedef struct xcb_x_print_print_set_context_request_t {
0194     uint8_t  major_opcode;
0195     uint8_t  minor_opcode;
0196     uint16_t length;
0197     uint32_t context;
0198 } xcb_x_print_print_set_context_request_t;
0199 
0200 /**
0201  * @brief xcb_x_print_print_get_context_cookie_t
0202  **/
0203 typedef struct xcb_x_print_print_get_context_cookie_t {
0204     unsigned int sequence;
0205 } xcb_x_print_print_get_context_cookie_t;
0206 
0207 /** Opcode for xcb_x_print_print_get_context. */
0208 #define XCB_X_PRINT_PRINT_GET_CONTEXT 4
0209 
0210 /**
0211  * @brief xcb_x_print_print_get_context_request_t
0212  **/
0213 typedef struct xcb_x_print_print_get_context_request_t {
0214     uint8_t  major_opcode;
0215     uint8_t  minor_opcode;
0216     uint16_t length;
0217 } xcb_x_print_print_get_context_request_t;
0218 
0219 /**
0220  * @brief xcb_x_print_print_get_context_reply_t
0221  **/
0222 typedef struct xcb_x_print_print_get_context_reply_t {
0223     uint8_t  response_type;
0224     uint8_t  pad0;
0225     uint16_t sequence;
0226     uint32_t length;
0227     uint32_t context;
0228 } xcb_x_print_print_get_context_reply_t;
0229 
0230 /** Opcode for xcb_x_print_print_destroy_context. */
0231 #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
0232 
0233 /**
0234  * @brief xcb_x_print_print_destroy_context_request_t
0235  **/
0236 typedef struct xcb_x_print_print_destroy_context_request_t {
0237     uint8_t  major_opcode;
0238     uint8_t  minor_opcode;
0239     uint16_t length;
0240     uint32_t context;
0241 } xcb_x_print_print_destroy_context_request_t;
0242 
0243 /**
0244  * @brief xcb_x_print_print_get_screen_of_context_cookie_t
0245  **/
0246 typedef struct xcb_x_print_print_get_screen_of_context_cookie_t {
0247     unsigned int sequence;
0248 } xcb_x_print_print_get_screen_of_context_cookie_t;
0249 
0250 /** Opcode for xcb_x_print_print_get_screen_of_context. */
0251 #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
0252 
0253 /**
0254  * @brief xcb_x_print_print_get_screen_of_context_request_t
0255  **/
0256 typedef struct xcb_x_print_print_get_screen_of_context_request_t {
0257     uint8_t  major_opcode;
0258     uint8_t  minor_opcode;
0259     uint16_t length;
0260 } xcb_x_print_print_get_screen_of_context_request_t;
0261 
0262 /**
0263  * @brief xcb_x_print_print_get_screen_of_context_reply_t
0264  **/
0265 typedef struct xcb_x_print_print_get_screen_of_context_reply_t {
0266     uint8_t      response_type;
0267     uint8_t      pad0;
0268     uint16_t     sequence;
0269     uint32_t     length;
0270     xcb_window_t root;
0271 } xcb_x_print_print_get_screen_of_context_reply_t;
0272 
0273 /** Opcode for xcb_x_print_print_start_job. */
0274 #define XCB_X_PRINT_PRINT_START_JOB 7
0275 
0276 /**
0277  * @brief xcb_x_print_print_start_job_request_t
0278  **/
0279 typedef struct xcb_x_print_print_start_job_request_t {
0280     uint8_t  major_opcode;
0281     uint8_t  minor_opcode;
0282     uint16_t length;
0283     uint8_t  output_mode;
0284 } xcb_x_print_print_start_job_request_t;
0285 
0286 /** Opcode for xcb_x_print_print_end_job. */
0287 #define XCB_X_PRINT_PRINT_END_JOB 8
0288 
0289 /**
0290  * @brief xcb_x_print_print_end_job_request_t
0291  **/
0292 typedef struct xcb_x_print_print_end_job_request_t {
0293     uint8_t  major_opcode;
0294     uint8_t  minor_opcode;
0295     uint16_t length;
0296     uint8_t  cancel;
0297 } xcb_x_print_print_end_job_request_t;
0298 
0299 /** Opcode for xcb_x_print_print_start_doc. */
0300 #define XCB_X_PRINT_PRINT_START_DOC 9
0301 
0302 /**
0303  * @brief xcb_x_print_print_start_doc_request_t
0304  **/
0305 typedef struct xcb_x_print_print_start_doc_request_t {
0306     uint8_t  major_opcode;
0307     uint8_t  minor_opcode;
0308     uint16_t length;
0309     uint8_t  driver_mode;
0310 } xcb_x_print_print_start_doc_request_t;
0311 
0312 /** Opcode for xcb_x_print_print_end_doc. */
0313 #define XCB_X_PRINT_PRINT_END_DOC 10
0314 
0315 /**
0316  * @brief xcb_x_print_print_end_doc_request_t
0317  **/
0318 typedef struct xcb_x_print_print_end_doc_request_t {
0319     uint8_t  major_opcode;
0320     uint8_t  minor_opcode;
0321     uint16_t length;
0322     uint8_t  cancel;
0323 } xcb_x_print_print_end_doc_request_t;
0324 
0325 /** Opcode for xcb_x_print_print_put_document_data. */
0326 #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
0327 
0328 /**
0329  * @brief xcb_x_print_print_put_document_data_request_t
0330  **/
0331 typedef struct xcb_x_print_print_put_document_data_request_t {
0332     uint8_t        major_opcode;
0333     uint8_t        minor_opcode;
0334     uint16_t       length;
0335     xcb_drawable_t drawable;
0336     uint32_t       len_data;
0337     uint16_t       len_fmt;
0338     uint16_t       len_options;
0339 } xcb_x_print_print_put_document_data_request_t;
0340 
0341 /**
0342  * @brief xcb_x_print_print_get_document_data_cookie_t
0343  **/
0344 typedef struct xcb_x_print_print_get_document_data_cookie_t {
0345     unsigned int sequence;
0346 } xcb_x_print_print_get_document_data_cookie_t;
0347 
0348 /** Opcode for xcb_x_print_print_get_document_data. */
0349 #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
0350 
0351 /**
0352  * @brief xcb_x_print_print_get_document_data_request_t
0353  **/
0354 typedef struct xcb_x_print_print_get_document_data_request_t {
0355     uint8_t                major_opcode;
0356     uint8_t                minor_opcode;
0357     uint16_t               length;
0358     xcb_x_print_pcontext_t context;
0359     uint32_t               max_bytes;
0360 } xcb_x_print_print_get_document_data_request_t;
0361 
0362 /**
0363  * @brief xcb_x_print_print_get_document_data_reply_t
0364  **/
0365 typedef struct xcb_x_print_print_get_document_data_reply_t {
0366     uint8_t  response_type;
0367     uint8_t  pad0;
0368     uint16_t sequence;
0369     uint32_t length;
0370     uint32_t status_code;
0371     uint32_t finished_flag;
0372     uint32_t dataLen;
0373     uint8_t  pad1[12];
0374 } xcb_x_print_print_get_document_data_reply_t;
0375 
0376 /** Opcode for xcb_x_print_print_start_page. */
0377 #define XCB_X_PRINT_PRINT_START_PAGE 13
0378 
0379 /**
0380  * @brief xcb_x_print_print_start_page_request_t
0381  **/
0382 typedef struct xcb_x_print_print_start_page_request_t {
0383     uint8_t      major_opcode;
0384     uint8_t      minor_opcode;
0385     uint16_t     length;
0386     xcb_window_t window;
0387 } xcb_x_print_print_start_page_request_t;
0388 
0389 /** Opcode for xcb_x_print_print_end_page. */
0390 #define XCB_X_PRINT_PRINT_END_PAGE 14
0391 
0392 /**
0393  * @brief xcb_x_print_print_end_page_request_t
0394  **/
0395 typedef struct xcb_x_print_print_end_page_request_t {
0396     uint8_t  major_opcode;
0397     uint8_t  minor_opcode;
0398     uint16_t length;
0399     uint8_t  cancel;
0400     uint8_t  pad0[3];
0401 } xcb_x_print_print_end_page_request_t;
0402 
0403 /** Opcode for xcb_x_print_print_select_input. */
0404 #define XCB_X_PRINT_PRINT_SELECT_INPUT 15
0405 
0406 /**
0407  * @brief xcb_x_print_print_select_input_request_t
0408  **/
0409 typedef struct xcb_x_print_print_select_input_request_t {
0410     uint8_t                major_opcode;
0411     uint8_t                minor_opcode;
0412     uint16_t               length;
0413     xcb_x_print_pcontext_t context;
0414     uint32_t               event_mask;
0415 } xcb_x_print_print_select_input_request_t;
0416 
0417 /**
0418  * @brief xcb_x_print_print_input_selected_cookie_t
0419  **/
0420 typedef struct xcb_x_print_print_input_selected_cookie_t {
0421     unsigned int sequence;
0422 } xcb_x_print_print_input_selected_cookie_t;
0423 
0424 /** Opcode for xcb_x_print_print_input_selected. */
0425 #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
0426 
0427 /**
0428  * @brief xcb_x_print_print_input_selected_request_t
0429  **/
0430 typedef struct xcb_x_print_print_input_selected_request_t {
0431     uint8_t                major_opcode;
0432     uint8_t                minor_opcode;
0433     uint16_t               length;
0434     xcb_x_print_pcontext_t context;
0435 } xcb_x_print_print_input_selected_request_t;
0436 
0437 /**
0438  * @brief xcb_x_print_print_input_selected_reply_t
0439  **/
0440 typedef struct xcb_x_print_print_input_selected_reply_t {
0441     uint8_t  response_type;
0442     uint8_t  pad0;
0443     uint16_t sequence;
0444     uint32_t length;
0445     uint32_t event_mask;
0446     uint32_t all_events_mask;
0447 } xcb_x_print_print_input_selected_reply_t;
0448 
0449 /**
0450  * @brief xcb_x_print_print_get_attributes_cookie_t
0451  **/
0452 typedef struct xcb_x_print_print_get_attributes_cookie_t {
0453     unsigned int sequence;
0454 } xcb_x_print_print_get_attributes_cookie_t;
0455 
0456 /** Opcode for xcb_x_print_print_get_attributes. */
0457 #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
0458 
0459 /**
0460  * @brief xcb_x_print_print_get_attributes_request_t
0461  **/
0462 typedef struct xcb_x_print_print_get_attributes_request_t {
0463     uint8_t                major_opcode;
0464     uint8_t                minor_opcode;
0465     uint16_t               length;
0466     xcb_x_print_pcontext_t context;
0467     uint8_t                pool;
0468     uint8_t                pad0[3];
0469 } xcb_x_print_print_get_attributes_request_t;
0470 
0471 /**
0472  * @brief xcb_x_print_print_get_attributes_reply_t
0473  **/
0474 typedef struct xcb_x_print_print_get_attributes_reply_t {
0475     uint8_t  response_type;
0476     uint8_t  pad0;
0477     uint16_t sequence;
0478     uint32_t length;
0479     uint32_t stringLen;
0480     uint8_t  pad1[20];
0481 } xcb_x_print_print_get_attributes_reply_t;
0482 
0483 /**
0484  * @brief xcb_x_print_print_get_one_attributes_cookie_t
0485  **/
0486 typedef struct xcb_x_print_print_get_one_attributes_cookie_t {
0487     unsigned int sequence;
0488 } xcb_x_print_print_get_one_attributes_cookie_t;
0489 
0490 /** Opcode for xcb_x_print_print_get_one_attributes. */
0491 #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
0492 
0493 /**
0494  * @brief xcb_x_print_print_get_one_attributes_request_t
0495  **/
0496 typedef struct xcb_x_print_print_get_one_attributes_request_t {
0497     uint8_t                major_opcode;
0498     uint8_t                minor_opcode;
0499     uint16_t               length;
0500     xcb_x_print_pcontext_t context;
0501     uint32_t               nameLen;
0502     uint8_t                pool;
0503     uint8_t                pad0[3];
0504 } xcb_x_print_print_get_one_attributes_request_t;
0505 
0506 /**
0507  * @brief xcb_x_print_print_get_one_attributes_reply_t
0508  **/
0509 typedef struct xcb_x_print_print_get_one_attributes_reply_t {
0510     uint8_t  response_type;
0511     uint8_t  pad0;
0512     uint16_t sequence;
0513     uint32_t length;
0514     uint32_t valueLen;
0515     uint8_t  pad1[20];
0516 } xcb_x_print_print_get_one_attributes_reply_t;
0517 
0518 /** Opcode for xcb_x_print_print_set_attributes. */
0519 #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
0520 
0521 /**
0522  * @brief xcb_x_print_print_set_attributes_request_t
0523  **/
0524 typedef struct xcb_x_print_print_set_attributes_request_t {
0525     uint8_t                major_opcode;
0526     uint8_t                minor_opcode;
0527     uint16_t               length;
0528     xcb_x_print_pcontext_t context;
0529     uint32_t               stringLen;
0530     uint8_t                pool;
0531     uint8_t                rule;
0532     uint8_t                pad0[2];
0533 } xcb_x_print_print_set_attributes_request_t;
0534 
0535 /**
0536  * @brief xcb_x_print_print_get_page_dimensions_cookie_t
0537  **/
0538 typedef struct xcb_x_print_print_get_page_dimensions_cookie_t {
0539     unsigned int sequence;
0540 } xcb_x_print_print_get_page_dimensions_cookie_t;
0541 
0542 /** Opcode for xcb_x_print_print_get_page_dimensions. */
0543 #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
0544 
0545 /**
0546  * @brief xcb_x_print_print_get_page_dimensions_request_t
0547  **/
0548 typedef struct xcb_x_print_print_get_page_dimensions_request_t {
0549     uint8_t                major_opcode;
0550     uint8_t                minor_opcode;
0551     uint16_t               length;
0552     xcb_x_print_pcontext_t context;
0553 } xcb_x_print_print_get_page_dimensions_request_t;
0554 
0555 /**
0556  * @brief xcb_x_print_print_get_page_dimensions_reply_t
0557  **/
0558 typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
0559     uint8_t  response_type;
0560     uint8_t  pad0;
0561     uint16_t sequence;
0562     uint32_t length;
0563     uint16_t width;
0564     uint16_t height;
0565     uint16_t offset_x;
0566     uint16_t offset_y;
0567     uint16_t reproducible_width;
0568     uint16_t reproducible_height;
0569 } xcb_x_print_print_get_page_dimensions_reply_t;
0570 
0571 /**
0572  * @brief xcb_x_print_print_query_screens_cookie_t
0573  **/
0574 typedef struct xcb_x_print_print_query_screens_cookie_t {
0575     unsigned int sequence;
0576 } xcb_x_print_print_query_screens_cookie_t;
0577 
0578 /** Opcode for xcb_x_print_print_query_screens. */
0579 #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
0580 
0581 /**
0582  * @brief xcb_x_print_print_query_screens_request_t
0583  **/
0584 typedef struct xcb_x_print_print_query_screens_request_t {
0585     uint8_t  major_opcode;
0586     uint8_t  minor_opcode;
0587     uint16_t length;
0588 } xcb_x_print_print_query_screens_request_t;
0589 
0590 /**
0591  * @brief xcb_x_print_print_query_screens_reply_t
0592  **/
0593 typedef struct xcb_x_print_print_query_screens_reply_t {
0594     uint8_t  response_type;
0595     uint8_t  pad0;
0596     uint16_t sequence;
0597     uint32_t length;
0598     uint32_t listCount;
0599     uint8_t  pad1[20];
0600 } xcb_x_print_print_query_screens_reply_t;
0601 
0602 /**
0603  * @brief xcb_x_print_print_set_image_resolution_cookie_t
0604  **/
0605 typedef struct xcb_x_print_print_set_image_resolution_cookie_t {
0606     unsigned int sequence;
0607 } xcb_x_print_print_set_image_resolution_cookie_t;
0608 
0609 /** Opcode for xcb_x_print_print_set_image_resolution. */
0610 #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
0611 
0612 /**
0613  * @brief xcb_x_print_print_set_image_resolution_request_t
0614  **/
0615 typedef struct xcb_x_print_print_set_image_resolution_request_t {
0616     uint8_t                major_opcode;
0617     uint8_t                minor_opcode;
0618     uint16_t               length;
0619     xcb_x_print_pcontext_t context;
0620     uint16_t               image_resolution;
0621 } xcb_x_print_print_set_image_resolution_request_t;
0622 
0623 /**
0624  * @brief xcb_x_print_print_set_image_resolution_reply_t
0625  **/
0626 typedef struct xcb_x_print_print_set_image_resolution_reply_t {
0627     uint8_t  response_type;
0628     uint8_t  status;
0629     uint16_t sequence;
0630     uint32_t length;
0631     uint16_t previous_resolutions;
0632 } xcb_x_print_print_set_image_resolution_reply_t;
0633 
0634 /**
0635  * @brief xcb_x_print_print_get_image_resolution_cookie_t
0636  **/
0637 typedef struct xcb_x_print_print_get_image_resolution_cookie_t {
0638     unsigned int sequence;
0639 } xcb_x_print_print_get_image_resolution_cookie_t;
0640 
0641 /** Opcode for xcb_x_print_print_get_image_resolution. */
0642 #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
0643 
0644 /**
0645  * @brief xcb_x_print_print_get_image_resolution_request_t
0646  **/
0647 typedef struct xcb_x_print_print_get_image_resolution_request_t {
0648     uint8_t                major_opcode;
0649     uint8_t                minor_opcode;
0650     uint16_t               length;
0651     xcb_x_print_pcontext_t context;
0652 } xcb_x_print_print_get_image_resolution_request_t;
0653 
0654 /**
0655  * @brief xcb_x_print_print_get_image_resolution_reply_t
0656  **/
0657 typedef struct xcb_x_print_print_get_image_resolution_reply_t {
0658     uint8_t  response_type;
0659     uint8_t  pad0;
0660     uint16_t sequence;
0661     uint32_t length;
0662     uint16_t image_resolution;
0663 } xcb_x_print_print_get_image_resolution_reply_t;
0664 
0665 /** Opcode for xcb_x_print_notify. */
0666 #define XCB_X_PRINT_NOTIFY 0
0667 
0668 /**
0669  * @brief xcb_x_print_notify_event_t
0670  **/
0671 typedef struct xcb_x_print_notify_event_t {
0672     uint8_t                response_type;
0673     uint8_t                detail;
0674     uint16_t               sequence;
0675     xcb_x_print_pcontext_t context;
0676     uint8_t                cancel;
0677 } xcb_x_print_notify_event_t;
0678 
0679 /** Opcode for xcb_x_print_attribut_notify. */
0680 #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
0681 
0682 /**
0683  * @brief xcb_x_print_attribut_notify_event_t
0684  **/
0685 typedef struct xcb_x_print_attribut_notify_event_t {
0686     uint8_t                response_type;
0687     uint8_t                detail;
0688     uint16_t               sequence;
0689     xcb_x_print_pcontext_t context;
0690 } xcb_x_print_attribut_notify_event_t;
0691 
0692 /** Opcode for xcb_x_print_bad_context. */
0693 #define XCB_X_PRINT_BAD_CONTEXT 0
0694 
0695 /**
0696  * @brief xcb_x_print_bad_context_error_t
0697  **/
0698 typedef struct xcb_x_print_bad_context_error_t {
0699     uint8_t  response_type;
0700     uint8_t  error_code;
0701     uint16_t sequence;
0702     uint32_t bad_value;
0703     uint16_t minor_opcode;
0704     uint8_t  major_opcode;
0705 } xcb_x_print_bad_context_error_t;
0706 
0707 /** Opcode for xcb_x_print_bad_sequence. */
0708 #define XCB_X_PRINT_BAD_SEQUENCE 1
0709 
0710 /**
0711  * @brief xcb_x_print_bad_sequence_error_t
0712  **/
0713 typedef struct xcb_x_print_bad_sequence_error_t {
0714     uint8_t  response_type;
0715     uint8_t  error_code;
0716     uint16_t sequence;
0717     uint32_t bad_value;
0718     uint16_t minor_opcode;
0719     uint8_t  major_opcode;
0720 } xcb_x_print_bad_sequence_error_t;
0721 
0722 /**
0723  * Get the next element of the iterator
0724  * @param i Pointer to a xcb_x_print_string8_iterator_t
0725  *
0726  * Get the next element in the iterator. The member rem is
0727  * decreased by one. The member data points to the next
0728  * element. The member index is increased by sizeof(xcb_x_print_string8_t)
0729  */
0730 void
0731 xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i);
0732 
0733 /**
0734  * Return the iterator pointing to the last element
0735  * @param i An xcb_x_print_string8_iterator_t
0736  * @return  The iterator pointing to the last element
0737  *
0738  * Set the current element in the iterator to the last element.
0739  * The member rem is set to 0. The member data points to the
0740  * last element.
0741  */
0742 xcb_generic_iterator_t
0743 xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i);
0744 
0745 int
0746 xcb_x_print_printer_serialize (void                        **_buffer,
0747                                const xcb_x_print_printer_t  *_aux,
0748                                const xcb_x_print_string8_t  *name,
0749                                const xcb_x_print_string8_t  *description);
0750 
0751 int
0752 xcb_x_print_printer_unserialize (const void              *_buffer,
0753                                  xcb_x_print_printer_t  **_aux);
0754 
0755 int
0756 xcb_x_print_printer_sizeof (const void  *_buffer);
0757 
0758 xcb_x_print_string8_t *
0759 xcb_x_print_printer_name (const xcb_x_print_printer_t *R);
0760 
0761 int
0762 xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R);
0763 
0764 xcb_generic_iterator_t
0765 xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R);
0766 
0767 xcb_x_print_string8_t *
0768 xcb_x_print_printer_description (const xcb_x_print_printer_t *R);
0769 
0770 int
0771 xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R);
0772 
0773 xcb_generic_iterator_t
0774 xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R);
0775 
0776 /**
0777  * Get the next element of the iterator
0778  * @param i Pointer to a xcb_x_print_printer_iterator_t
0779  *
0780  * Get the next element in the iterator. The member rem is
0781  * decreased by one. The member data points to the next
0782  * element. The member index is increased by sizeof(xcb_x_print_printer_t)
0783  */
0784 void
0785 xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i);
0786 
0787 /**
0788  * Return the iterator pointing to the last element
0789  * @param i An xcb_x_print_printer_iterator_t
0790  * @return  The iterator pointing to the last element
0791  *
0792  * Set the current element in the iterator to the last element.
0793  * The member rem is set to 0. The member data points to the
0794  * last element.
0795  */
0796 xcb_generic_iterator_t
0797 xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i);
0798 
0799 /**
0800  * Get the next element of the iterator
0801  * @param i Pointer to a xcb_x_print_pcontext_iterator_t
0802  *
0803  * Get the next element in the iterator. The member rem is
0804  * decreased by one. The member data points to the next
0805  * element. The member index is increased by sizeof(xcb_x_print_pcontext_t)
0806  */
0807 void
0808 xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i);
0809 
0810 /**
0811  * Return the iterator pointing to the last element
0812  * @param i An xcb_x_print_pcontext_iterator_t
0813  * @return  The iterator pointing to the last element
0814  *
0815  * Set the current element in the iterator to the last element.
0816  * The member rem is set to 0. The member data points to the
0817  * last element.
0818  */
0819 xcb_generic_iterator_t
0820 xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i);
0821 
0822 /**
0823  *
0824  * @param c The connection
0825  * @return A cookie
0826  *
0827  * Delivers a request to the X server.
0828  *
0829  */
0830 xcb_x_print_print_query_version_cookie_t
0831 xcb_x_print_print_query_version (xcb_connection_t *c);
0832 
0833 /**
0834  *
0835  * @param c The connection
0836  * @return A cookie
0837  *
0838  * Delivers a request to the X server.
0839  *
0840  * This form can be used only if the request will cause
0841  * a reply to be generated. Any returned error will be
0842  * placed in the event queue.
0843  */
0844 xcb_x_print_print_query_version_cookie_t
0845 xcb_x_print_print_query_version_unchecked (xcb_connection_t *c);
0846 
0847 /**
0848  * Return the reply
0849  * @param c      The connection
0850  * @param cookie The cookie
0851  * @param e      The xcb_generic_error_t supplied
0852  *
0853  * Returns the reply of the request asked by
0854  *
0855  * The parameter @p e supplied to this function must be NULL if
0856  * xcb_x_print_print_query_version_unchecked(). is used.
0857  * Otherwise, it stores the error if any.
0858  *
0859  * The returned value must be freed by the caller using free().
0860  */
0861 xcb_x_print_print_query_version_reply_t *
0862 xcb_x_print_print_query_version_reply (xcb_connection_t                          *c,
0863                                        xcb_x_print_print_query_version_cookie_t   cookie  /**< */,
0864                                        xcb_generic_error_t                      **e);
0865 
0866 int
0867 xcb_x_print_print_get_printer_list_sizeof (const void  *_buffer);
0868 
0869 /**
0870  *
0871  * @param c The connection
0872  * @return A cookie
0873  *
0874  * Delivers a request to the X server.
0875  *
0876  */
0877 xcb_x_print_print_get_printer_list_cookie_t
0878 xcb_x_print_print_get_printer_list (xcb_connection_t            *c,
0879                                     uint32_t                     printerNameLen,
0880                                     uint32_t                     localeLen,
0881                                     const xcb_x_print_string8_t *printer_name,
0882                                     const xcb_x_print_string8_t *locale);
0883 
0884 /**
0885  *
0886  * @param c The connection
0887  * @return A cookie
0888  *
0889  * Delivers a request to the X server.
0890  *
0891  * This form can be used only if the request will cause
0892  * a reply to be generated. Any returned error will be
0893  * placed in the event queue.
0894  */
0895 xcb_x_print_print_get_printer_list_cookie_t
0896 xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t            *c,
0897                                               uint32_t                     printerNameLen,
0898                                               uint32_t                     localeLen,
0899                                               const xcb_x_print_string8_t *printer_name,
0900                                               const xcb_x_print_string8_t *locale);
0901 
0902 int
0903 xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R);
0904 
0905 xcb_x_print_printer_iterator_t
0906 xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R);
0907 
0908 /**
0909  * Return the reply
0910  * @param c      The connection
0911  * @param cookie The cookie
0912  * @param e      The xcb_generic_error_t supplied
0913  *
0914  * Returns the reply of the request asked by
0915  *
0916  * The parameter @p e supplied to this function must be NULL if
0917  * xcb_x_print_print_get_printer_list_unchecked(). is used.
0918  * Otherwise, it stores the error if any.
0919  *
0920  * The returned value must be freed by the caller using free().
0921  */
0922 xcb_x_print_print_get_printer_list_reply_t *
0923 xcb_x_print_print_get_printer_list_reply (xcb_connection_t                             *c,
0924                                           xcb_x_print_print_get_printer_list_cookie_t   cookie  /**< */,
0925                                           xcb_generic_error_t                         **e);
0926 
0927 /**
0928  *
0929  * @param c The connection
0930  * @return A cookie
0931  *
0932  * Delivers a request to the X server.
0933  *
0934  * This form can be used only if the request will not cause
0935  * a reply to be generated. Any returned error will be
0936  * saved for handling by xcb_request_check().
0937  */
0938 xcb_void_cookie_t
0939 xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c);
0940 
0941 /**
0942  *
0943  * @param c The connection
0944  * @return A cookie
0945  *
0946  * Delivers a request to the X server.
0947  *
0948  */
0949 xcb_void_cookie_t
0950 xcb_x_print_print_rehash_printer_list (xcb_connection_t *c);
0951 
0952 int
0953 xcb_x_print_create_context_sizeof (const void  *_buffer);
0954 
0955 /**
0956  *
0957  * @param c The connection
0958  * @return A cookie
0959  *
0960  * Delivers a request to the X server.
0961  *
0962  * This form can be used only if the request will not cause
0963  * a reply to be generated. Any returned error will be
0964  * saved for handling by xcb_request_check().
0965  */
0966 xcb_void_cookie_t
0967 xcb_x_print_create_context_checked (xcb_connection_t            *c,
0968                                     uint32_t                     context_id,
0969                                     uint32_t                     printerNameLen,
0970                                     uint32_t                     localeLen,
0971                                     const xcb_x_print_string8_t *printerName,
0972                                     const xcb_x_print_string8_t *locale);
0973 
0974 /**
0975  *
0976  * @param c The connection
0977  * @return A cookie
0978  *
0979  * Delivers a request to the X server.
0980  *
0981  */
0982 xcb_void_cookie_t
0983 xcb_x_print_create_context (xcb_connection_t            *c,
0984                             uint32_t                     context_id,
0985                             uint32_t                     printerNameLen,
0986                             uint32_t                     localeLen,
0987                             const xcb_x_print_string8_t *printerName,
0988                             const xcb_x_print_string8_t *locale);
0989 
0990 xcb_x_print_string8_t *
0991 xcb_x_print_create_context_printer_name (const xcb_x_print_create_context_request_t *R);
0992 
0993 int
0994 xcb_x_print_create_context_printer_name_length (const xcb_x_print_create_context_request_t *R);
0995 
0996 xcb_generic_iterator_t
0997 xcb_x_print_create_context_printer_name_end (const xcb_x_print_create_context_request_t *R);
0998 
0999 xcb_x_print_string8_t *
1000 xcb_x_print_create_context_locale (const xcb_x_print_create_context_request_t *R);
1001 
1002 int
1003 xcb_x_print_create_context_locale_length (const xcb_x_print_create_context_request_t *R);
1004 
1005 xcb_generic_iterator_t
1006 xcb_x_print_create_context_locale_end (const xcb_x_print_create_context_request_t *R);
1007 
1008 /**
1009  *
1010  * @param c The connection
1011  * @return A cookie
1012  *
1013  * Delivers a request to the X server.
1014  *
1015  * This form can be used only if the request will not cause
1016  * a reply to be generated. Any returned error will be
1017  * saved for handling by xcb_request_check().
1018  */
1019 xcb_void_cookie_t
1020 xcb_x_print_print_set_context_checked (xcb_connection_t *c,
1021                                        uint32_t          context);
1022 
1023 /**
1024  *
1025  * @param c The connection
1026  * @return A cookie
1027  *
1028  * Delivers a request to the X server.
1029  *
1030  */
1031 xcb_void_cookie_t
1032 xcb_x_print_print_set_context (xcb_connection_t *c,
1033                                uint32_t          context);
1034 
1035 /**
1036  *
1037  * @param c The connection
1038  * @return A cookie
1039  *
1040  * Delivers a request to the X server.
1041  *
1042  */
1043 xcb_x_print_print_get_context_cookie_t
1044 xcb_x_print_print_get_context (xcb_connection_t *c);
1045 
1046 /**
1047  *
1048  * @param c The connection
1049  * @return A cookie
1050  *
1051  * Delivers a request to the X server.
1052  *
1053  * This form can be used only if the request will cause
1054  * a reply to be generated. Any returned error will be
1055  * placed in the event queue.
1056  */
1057 xcb_x_print_print_get_context_cookie_t
1058 xcb_x_print_print_get_context_unchecked (xcb_connection_t *c);
1059 
1060 /**
1061  * Return the reply
1062  * @param c      The connection
1063  * @param cookie The cookie
1064  * @param e      The xcb_generic_error_t supplied
1065  *
1066  * Returns the reply of the request asked by
1067  *
1068  * The parameter @p e supplied to this function must be NULL if
1069  * xcb_x_print_print_get_context_unchecked(). is used.
1070  * Otherwise, it stores the error if any.
1071  *
1072  * The returned value must be freed by the caller using free().
1073  */
1074 xcb_x_print_print_get_context_reply_t *
1075 xcb_x_print_print_get_context_reply (xcb_connection_t                        *c,
1076                                      xcb_x_print_print_get_context_cookie_t   cookie  /**< */,
1077                                      xcb_generic_error_t                    **e);
1078 
1079 /**
1080  *
1081  * @param c The connection
1082  * @return A cookie
1083  *
1084  * Delivers a request to the X server.
1085  *
1086  * This form can be used only if the request will not cause
1087  * a reply to be generated. Any returned error will be
1088  * saved for handling by xcb_request_check().
1089  */
1090 xcb_void_cookie_t
1091 xcb_x_print_print_destroy_context_checked (xcb_connection_t *c,
1092                                            uint32_t          context);
1093 
1094 /**
1095  *
1096  * @param c The connection
1097  * @return A cookie
1098  *
1099  * Delivers a request to the X server.
1100  *
1101  */
1102 xcb_void_cookie_t
1103 xcb_x_print_print_destroy_context (xcb_connection_t *c,
1104                                    uint32_t          context);
1105 
1106 /**
1107  *
1108  * @param c The connection
1109  * @return A cookie
1110  *
1111  * Delivers a request to the X server.
1112  *
1113  */
1114 xcb_x_print_print_get_screen_of_context_cookie_t
1115 xcb_x_print_print_get_screen_of_context (xcb_connection_t *c);
1116 
1117 /**
1118  *
1119  * @param c The connection
1120  * @return A cookie
1121  *
1122  * Delivers a request to the X server.
1123  *
1124  * This form can be used only if the request will cause
1125  * a reply to be generated. Any returned error will be
1126  * placed in the event queue.
1127  */
1128 xcb_x_print_print_get_screen_of_context_cookie_t
1129 xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c);
1130 
1131 /**
1132  * Return the reply
1133  * @param c      The connection
1134  * @param cookie The cookie
1135  * @param e      The xcb_generic_error_t supplied
1136  *
1137  * Returns the reply of the request asked by
1138  *
1139  * The parameter @p e supplied to this function must be NULL if
1140  * xcb_x_print_print_get_screen_of_context_unchecked(). is used.
1141  * Otherwise, it stores the error if any.
1142  *
1143  * The returned value must be freed by the caller using free().
1144  */
1145 xcb_x_print_print_get_screen_of_context_reply_t *
1146 xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t                                  *c,
1147                                                xcb_x_print_print_get_screen_of_context_cookie_t   cookie  /**< */,
1148                                                xcb_generic_error_t                              **e);
1149 
1150 /**
1151  *
1152  * @param c The connection
1153  * @return A cookie
1154  *
1155  * Delivers a request to the X server.
1156  *
1157  * This form can be used only if the request will not cause
1158  * a reply to be generated. Any returned error will be
1159  * saved for handling by xcb_request_check().
1160  */
1161 xcb_void_cookie_t
1162 xcb_x_print_print_start_job_checked (xcb_connection_t *c,
1163                                      uint8_t           output_mode);
1164 
1165 /**
1166  *
1167  * @param c The connection
1168  * @return A cookie
1169  *
1170  * Delivers a request to the X server.
1171  *
1172  */
1173 xcb_void_cookie_t
1174 xcb_x_print_print_start_job (xcb_connection_t *c,
1175                              uint8_t           output_mode);
1176 
1177 /**
1178  *
1179  * @param c The connection
1180  * @return A cookie
1181  *
1182  * Delivers a request to the X server.
1183  *
1184  * This form can be used only if the request will not cause
1185  * a reply to be generated. Any returned error will be
1186  * saved for handling by xcb_request_check().
1187  */
1188 xcb_void_cookie_t
1189 xcb_x_print_print_end_job_checked (xcb_connection_t *c,
1190                                    uint8_t           cancel);
1191 
1192 /**
1193  *
1194  * @param c The connection
1195  * @return A cookie
1196  *
1197  * Delivers a request to the X server.
1198  *
1199  */
1200 xcb_void_cookie_t
1201 xcb_x_print_print_end_job (xcb_connection_t *c,
1202                            uint8_t           cancel);
1203 
1204 /**
1205  *
1206  * @param c The connection
1207  * @return A cookie
1208  *
1209  * Delivers a request to the X server.
1210  *
1211  * This form can be used only if the request will not cause
1212  * a reply to be generated. Any returned error will be
1213  * saved for handling by xcb_request_check().
1214  */
1215 xcb_void_cookie_t
1216 xcb_x_print_print_start_doc_checked (xcb_connection_t *c,
1217                                      uint8_t           driver_mode);
1218 
1219 /**
1220  *
1221  * @param c The connection
1222  * @return A cookie
1223  *
1224  * Delivers a request to the X server.
1225  *
1226  */
1227 xcb_void_cookie_t
1228 xcb_x_print_print_start_doc (xcb_connection_t *c,
1229                              uint8_t           driver_mode);
1230 
1231 /**
1232  *
1233  * @param c The connection
1234  * @return A cookie
1235  *
1236  * Delivers a request to the X server.
1237  *
1238  * This form can be used only if the request will not cause
1239  * a reply to be generated. Any returned error will be
1240  * saved for handling by xcb_request_check().
1241  */
1242 xcb_void_cookie_t
1243 xcb_x_print_print_end_doc_checked (xcb_connection_t *c,
1244                                    uint8_t           cancel);
1245 
1246 /**
1247  *
1248  * @param c The connection
1249  * @return A cookie
1250  *
1251  * Delivers a request to the X server.
1252  *
1253  */
1254 xcb_void_cookie_t
1255 xcb_x_print_print_end_doc (xcb_connection_t *c,
1256                            uint8_t           cancel);
1257 
1258 int
1259 xcb_x_print_print_put_document_data_sizeof (const void  *_buffer);
1260 
1261 /**
1262  *
1263  * @param c The connection
1264  * @return A cookie
1265  *
1266  * Delivers a request to the X server.
1267  *
1268  * This form can be used only if the request will not cause
1269  * a reply to be generated. Any returned error will be
1270  * saved for handling by xcb_request_check().
1271  */
1272 xcb_void_cookie_t
1273 xcb_x_print_print_put_document_data_checked (xcb_connection_t            *c,
1274                                              xcb_drawable_t               drawable,
1275                                              uint32_t                     len_data,
1276                                              uint16_t                     len_fmt,
1277                                              uint16_t                     len_options,
1278                                              const uint8_t               *data,
1279                                              const xcb_x_print_string8_t *doc_format,
1280                                              const xcb_x_print_string8_t *options);
1281 
1282 /**
1283  *
1284  * @param c The connection
1285  * @return A cookie
1286  *
1287  * Delivers a request to the X server.
1288  *
1289  */
1290 xcb_void_cookie_t
1291 xcb_x_print_print_put_document_data (xcb_connection_t            *c,
1292                                      xcb_drawable_t               drawable,
1293                                      uint32_t                     len_data,
1294                                      uint16_t                     len_fmt,
1295                                      uint16_t                     len_options,
1296                                      const uint8_t               *data,
1297                                      const xcb_x_print_string8_t *doc_format,
1298                                      const xcb_x_print_string8_t *options);
1299 
1300 uint8_t *
1301 xcb_x_print_print_put_document_data_data (const xcb_x_print_print_put_document_data_request_t *R);
1302 
1303 int
1304 xcb_x_print_print_put_document_data_data_length (const xcb_x_print_print_put_document_data_request_t *R);
1305 
1306 xcb_generic_iterator_t
1307 xcb_x_print_print_put_document_data_data_end (const xcb_x_print_print_put_document_data_request_t *R);
1308 
1309 xcb_x_print_string8_t *
1310 xcb_x_print_print_put_document_data_doc_format (const xcb_x_print_print_put_document_data_request_t *R);
1311 
1312 int
1313 xcb_x_print_print_put_document_data_doc_format_length (const xcb_x_print_print_put_document_data_request_t *R);
1314 
1315 xcb_generic_iterator_t
1316 xcb_x_print_print_put_document_data_doc_format_end (const xcb_x_print_print_put_document_data_request_t *R);
1317 
1318 xcb_x_print_string8_t *
1319 xcb_x_print_print_put_document_data_options (const xcb_x_print_print_put_document_data_request_t *R);
1320 
1321 int
1322 xcb_x_print_print_put_document_data_options_length (const xcb_x_print_print_put_document_data_request_t *R);
1323 
1324 xcb_generic_iterator_t
1325 xcb_x_print_print_put_document_data_options_end (const xcb_x_print_print_put_document_data_request_t *R);
1326 
1327 int
1328 xcb_x_print_print_get_document_data_sizeof (const void  *_buffer);
1329 
1330 /**
1331  *
1332  * @param c The connection
1333  * @return A cookie
1334  *
1335  * Delivers a request to the X server.
1336  *
1337  */
1338 xcb_x_print_print_get_document_data_cookie_t
1339 xcb_x_print_print_get_document_data (xcb_connection_t       *c,
1340                                      xcb_x_print_pcontext_t  context,
1341                                      uint32_t                max_bytes);
1342 
1343 /**
1344  *
1345  * @param c The connection
1346  * @return A cookie
1347  *
1348  * Delivers a request to the X server.
1349  *
1350  * This form can be used only if the request will cause
1351  * a reply to be generated. Any returned error will be
1352  * placed in the event queue.
1353  */
1354 xcb_x_print_print_get_document_data_cookie_t
1355 xcb_x_print_print_get_document_data_unchecked (xcb_connection_t       *c,
1356                                                xcb_x_print_pcontext_t  context,
1357                                                uint32_t                max_bytes);
1358 
1359 uint8_t *
1360 xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R);
1361 
1362 int
1363 xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R);
1364 
1365 xcb_generic_iterator_t
1366 xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R);
1367 
1368 /**
1369  * Return the reply
1370  * @param c      The connection
1371  * @param cookie The cookie
1372  * @param e      The xcb_generic_error_t supplied
1373  *
1374  * Returns the reply of the request asked by
1375  *
1376  * The parameter @p e supplied to this function must be NULL if
1377  * xcb_x_print_print_get_document_data_unchecked(). is used.
1378  * Otherwise, it stores the error if any.
1379  *
1380  * The returned value must be freed by the caller using free().
1381  */
1382 xcb_x_print_print_get_document_data_reply_t *
1383 xcb_x_print_print_get_document_data_reply (xcb_connection_t                              *c,
1384                                            xcb_x_print_print_get_document_data_cookie_t   cookie  /**< */,
1385                                            xcb_generic_error_t                          **e);
1386 
1387 /**
1388  *
1389  * @param c The connection
1390  * @return A cookie
1391  *
1392  * Delivers a request to the X server.
1393  *
1394  * This form can be used only if the request will not cause
1395  * a reply to be generated. Any returned error will be
1396  * saved for handling by xcb_request_check().
1397  */
1398 xcb_void_cookie_t
1399 xcb_x_print_print_start_page_checked (xcb_connection_t *c,
1400                                       xcb_window_t      window);
1401 
1402 /**
1403  *
1404  * @param c The connection
1405  * @return A cookie
1406  *
1407  * Delivers a request to the X server.
1408  *
1409  */
1410 xcb_void_cookie_t
1411 xcb_x_print_print_start_page (xcb_connection_t *c,
1412                               xcb_window_t      window);
1413 
1414 /**
1415  *
1416  * @param c The connection
1417  * @return A cookie
1418  *
1419  * Delivers a request to the X server.
1420  *
1421  * This form can be used only if the request will not cause
1422  * a reply to be generated. Any returned error will be
1423  * saved for handling by xcb_request_check().
1424  */
1425 xcb_void_cookie_t
1426 xcb_x_print_print_end_page_checked (xcb_connection_t *c,
1427                                     uint8_t           cancel);
1428 
1429 /**
1430  *
1431  * @param c The connection
1432  * @return A cookie
1433  *
1434  * Delivers a request to the X server.
1435  *
1436  */
1437 xcb_void_cookie_t
1438 xcb_x_print_print_end_page (xcb_connection_t *c,
1439                             uint8_t           cancel);
1440 
1441 /**
1442  *
1443  * @param c The connection
1444  * @return A cookie
1445  *
1446  * Delivers a request to the X server.
1447  *
1448  * This form can be used only if the request will not cause
1449  * a reply to be generated. Any returned error will be
1450  * saved for handling by xcb_request_check().
1451  */
1452 xcb_void_cookie_t
1453 xcb_x_print_print_select_input_checked (xcb_connection_t       *c,
1454                                         xcb_x_print_pcontext_t  context,
1455                                         uint32_t                event_mask);
1456 
1457 /**
1458  *
1459  * @param c The connection
1460  * @return A cookie
1461  *
1462  * Delivers a request to the X server.
1463  *
1464  */
1465 xcb_void_cookie_t
1466 xcb_x_print_print_select_input (xcb_connection_t       *c,
1467                                 xcb_x_print_pcontext_t  context,
1468                                 uint32_t                event_mask);
1469 
1470 /**
1471  *
1472  * @param c The connection
1473  * @return A cookie
1474  *
1475  * Delivers a request to the X server.
1476  *
1477  */
1478 xcb_x_print_print_input_selected_cookie_t
1479 xcb_x_print_print_input_selected (xcb_connection_t       *c,
1480                                   xcb_x_print_pcontext_t  context);
1481 
1482 /**
1483  *
1484  * @param c The connection
1485  * @return A cookie
1486  *
1487  * Delivers a request to the X server.
1488  *
1489  * This form can be used only if the request will cause
1490  * a reply to be generated. Any returned error will be
1491  * placed in the event queue.
1492  */
1493 xcb_x_print_print_input_selected_cookie_t
1494 xcb_x_print_print_input_selected_unchecked (xcb_connection_t       *c,
1495                                             xcb_x_print_pcontext_t  context);
1496 
1497 /**
1498  * Return the reply
1499  * @param c      The connection
1500  * @param cookie The cookie
1501  * @param e      The xcb_generic_error_t supplied
1502  *
1503  * Returns the reply of the request asked by
1504  *
1505  * The parameter @p e supplied to this function must be NULL if
1506  * xcb_x_print_print_input_selected_unchecked(). is used.
1507  * Otherwise, it stores the error if any.
1508  *
1509  * The returned value must be freed by the caller using free().
1510  */
1511 xcb_x_print_print_input_selected_reply_t *
1512 xcb_x_print_print_input_selected_reply (xcb_connection_t                           *c,
1513                                         xcb_x_print_print_input_selected_cookie_t   cookie  /**< */,
1514                                         xcb_generic_error_t                       **e);
1515 
1516 int
1517 xcb_x_print_print_get_attributes_sizeof (const void  *_buffer);
1518 
1519 /**
1520  *
1521  * @param c The connection
1522  * @return A cookie
1523  *
1524  * Delivers a request to the X server.
1525  *
1526  */
1527 xcb_x_print_print_get_attributes_cookie_t
1528 xcb_x_print_print_get_attributes (xcb_connection_t       *c,
1529                                   xcb_x_print_pcontext_t  context,
1530                                   uint8_t                 pool);
1531 
1532 /**
1533  *
1534  * @param c The connection
1535  * @return A cookie
1536  *
1537  * Delivers a request to the X server.
1538  *
1539  * This form can be used only if the request will cause
1540  * a reply to be generated. Any returned error will be
1541  * placed in the event queue.
1542  */
1543 xcb_x_print_print_get_attributes_cookie_t
1544 xcb_x_print_print_get_attributes_unchecked (xcb_connection_t       *c,
1545                                             xcb_x_print_pcontext_t  context,
1546                                             uint8_t                 pool);
1547 
1548 xcb_x_print_string8_t *
1549 xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R);
1550 
1551 int
1552 xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R);
1553 
1554 xcb_generic_iterator_t
1555 xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R);
1556 
1557 /**
1558  * Return the reply
1559  * @param c      The connection
1560  * @param cookie The cookie
1561  * @param e      The xcb_generic_error_t supplied
1562  *
1563  * Returns the reply of the request asked by
1564  *
1565  * The parameter @p e supplied to this function must be NULL if
1566  * xcb_x_print_print_get_attributes_unchecked(). is used.
1567  * Otherwise, it stores the error if any.
1568  *
1569  * The returned value must be freed by the caller using free().
1570  */
1571 xcb_x_print_print_get_attributes_reply_t *
1572 xcb_x_print_print_get_attributes_reply (xcb_connection_t                           *c,
1573                                         xcb_x_print_print_get_attributes_cookie_t   cookie  /**< */,
1574                                         xcb_generic_error_t                       **e);
1575 
1576 int
1577 xcb_x_print_print_get_one_attributes_sizeof (const void  *_buffer);
1578 
1579 /**
1580  *
1581  * @param c The connection
1582  * @return A cookie
1583  *
1584  * Delivers a request to the X server.
1585  *
1586  */
1587 xcb_x_print_print_get_one_attributes_cookie_t
1588 xcb_x_print_print_get_one_attributes (xcb_connection_t            *c,
1589                                       xcb_x_print_pcontext_t       context,
1590                                       uint32_t                     nameLen,
1591                                       uint8_t                      pool,
1592                                       const xcb_x_print_string8_t *name);
1593 
1594 /**
1595  *
1596  * @param c The connection
1597  * @return A cookie
1598  *
1599  * Delivers a request to the X server.
1600  *
1601  * This form can be used only if the request will cause
1602  * a reply to be generated. Any returned error will be
1603  * placed in the event queue.
1604  */
1605 xcb_x_print_print_get_one_attributes_cookie_t
1606 xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t            *c,
1607                                                 xcb_x_print_pcontext_t       context,
1608                                                 uint32_t                     nameLen,
1609                                                 uint8_t                      pool,
1610                                                 const xcb_x_print_string8_t *name);
1611 
1612 xcb_x_print_string8_t *
1613 xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R);
1614 
1615 int
1616 xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R);
1617 
1618 xcb_generic_iterator_t
1619 xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R);
1620 
1621 /**
1622  * Return the reply
1623  * @param c      The connection
1624  * @param cookie The cookie
1625  * @param e      The xcb_generic_error_t supplied
1626  *
1627  * Returns the reply of the request asked by
1628  *
1629  * The parameter @p e supplied to this function must be NULL if
1630  * xcb_x_print_print_get_one_attributes_unchecked(). is used.
1631  * Otherwise, it stores the error if any.
1632  *
1633  * The returned value must be freed by the caller using free().
1634  */
1635 xcb_x_print_print_get_one_attributes_reply_t *
1636 xcb_x_print_print_get_one_attributes_reply (xcb_connection_t                               *c,
1637                                             xcb_x_print_print_get_one_attributes_cookie_t   cookie  /**< */,
1638                                             xcb_generic_error_t                           **e);
1639 
1640 int
1641 xcb_x_print_print_set_attributes_sizeof (const void  *_buffer,
1642                                          uint32_t     attributes_len);
1643 
1644 /**
1645  *
1646  * @param c The connection
1647  * @return A cookie
1648  *
1649  * Delivers a request to the X server.
1650  *
1651  * This form can be used only if the request will not cause
1652  * a reply to be generated. Any returned error will be
1653  * saved for handling by xcb_request_check().
1654  */
1655 xcb_void_cookie_t
1656 xcb_x_print_print_set_attributes_checked (xcb_connection_t            *c,
1657                                           xcb_x_print_pcontext_t       context,
1658                                           uint32_t                     stringLen,
1659                                           uint8_t                      pool,
1660                                           uint8_t                      rule,
1661                                           uint32_t                     attributes_len,
1662                                           const xcb_x_print_string8_t *attributes);
1663 
1664 /**
1665  *
1666  * @param c The connection
1667  * @return A cookie
1668  *
1669  * Delivers a request to the X server.
1670  *
1671  */
1672 xcb_void_cookie_t
1673 xcb_x_print_print_set_attributes (xcb_connection_t            *c,
1674                                   xcb_x_print_pcontext_t       context,
1675                                   uint32_t                     stringLen,
1676                                   uint8_t                      pool,
1677                                   uint8_t                      rule,
1678                                   uint32_t                     attributes_len,
1679                                   const xcb_x_print_string8_t *attributes);
1680 
1681 xcb_x_print_string8_t *
1682 xcb_x_print_print_set_attributes_attributes (const xcb_x_print_print_set_attributes_request_t *R);
1683 
1684 int
1685 xcb_x_print_print_set_attributes_attributes_length (const xcb_x_print_print_set_attributes_request_t *R);
1686 
1687 xcb_generic_iterator_t
1688 xcb_x_print_print_set_attributes_attributes_end (const xcb_x_print_print_set_attributes_request_t *R);
1689 
1690 /**
1691  *
1692  * @param c The connection
1693  * @return A cookie
1694  *
1695  * Delivers a request to the X server.
1696  *
1697  */
1698 xcb_x_print_print_get_page_dimensions_cookie_t
1699 xcb_x_print_print_get_page_dimensions (xcb_connection_t       *c,
1700                                        xcb_x_print_pcontext_t  context);
1701 
1702 /**
1703  *
1704  * @param c The connection
1705  * @return A cookie
1706  *
1707  * Delivers a request to the X server.
1708  *
1709  * This form can be used only if the request will cause
1710  * a reply to be generated. Any returned error will be
1711  * placed in the event queue.
1712  */
1713 xcb_x_print_print_get_page_dimensions_cookie_t
1714 xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t       *c,
1715                                                  xcb_x_print_pcontext_t  context);
1716 
1717 /**
1718  * Return the reply
1719  * @param c      The connection
1720  * @param cookie The cookie
1721  * @param e      The xcb_generic_error_t supplied
1722  *
1723  * Returns the reply of the request asked by
1724  *
1725  * The parameter @p e supplied to this function must be NULL if
1726  * xcb_x_print_print_get_page_dimensions_unchecked(). is used.
1727  * Otherwise, it stores the error if any.
1728  *
1729  * The returned value must be freed by the caller using free().
1730  */
1731 xcb_x_print_print_get_page_dimensions_reply_t *
1732 xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t                                *c,
1733                                              xcb_x_print_print_get_page_dimensions_cookie_t   cookie  /**< */,
1734                                              xcb_generic_error_t                            **e);
1735 
1736 int
1737 xcb_x_print_print_query_screens_sizeof (const void  *_buffer);
1738 
1739 /**
1740  *
1741  * @param c The connection
1742  * @return A cookie
1743  *
1744  * Delivers a request to the X server.
1745  *
1746  */
1747 xcb_x_print_print_query_screens_cookie_t
1748 xcb_x_print_print_query_screens (xcb_connection_t *c);
1749 
1750 /**
1751  *
1752  * @param c The connection
1753  * @return A cookie
1754  *
1755  * Delivers a request to the X server.
1756  *
1757  * This form can be used only if the request will cause
1758  * a reply to be generated. Any returned error will be
1759  * placed in the event queue.
1760  */
1761 xcb_x_print_print_query_screens_cookie_t
1762 xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c);
1763 
1764 xcb_window_t *
1765 xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R);
1766 
1767 int
1768 xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R);
1769 
1770 xcb_generic_iterator_t
1771 xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R);
1772 
1773 /**
1774  * Return the reply
1775  * @param c      The connection
1776  * @param cookie The cookie
1777  * @param e      The xcb_generic_error_t supplied
1778  *
1779  * Returns the reply of the request asked by
1780  *
1781  * The parameter @p e supplied to this function must be NULL if
1782  * xcb_x_print_print_query_screens_unchecked(). is used.
1783  * Otherwise, it stores the error if any.
1784  *
1785  * The returned value must be freed by the caller using free().
1786  */
1787 xcb_x_print_print_query_screens_reply_t *
1788 xcb_x_print_print_query_screens_reply (xcb_connection_t                          *c,
1789                                        xcb_x_print_print_query_screens_cookie_t   cookie  /**< */,
1790                                        xcb_generic_error_t                      **e);
1791 
1792 /**
1793  *
1794  * @param c The connection
1795  * @return A cookie
1796  *
1797  * Delivers a request to the X server.
1798  *
1799  */
1800 xcb_x_print_print_set_image_resolution_cookie_t
1801 xcb_x_print_print_set_image_resolution (xcb_connection_t       *c,
1802                                         xcb_x_print_pcontext_t  context,
1803                                         uint16_t                image_resolution);
1804 
1805 /**
1806  *
1807  * @param c The connection
1808  * @return A cookie
1809  *
1810  * Delivers a request to the X server.
1811  *
1812  * This form can be used only if the request will cause
1813  * a reply to be generated. Any returned error will be
1814  * placed in the event queue.
1815  */
1816 xcb_x_print_print_set_image_resolution_cookie_t
1817 xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t       *c,
1818                                                   xcb_x_print_pcontext_t  context,
1819                                                   uint16_t                image_resolution);
1820 
1821 /**
1822  * Return the reply
1823  * @param c      The connection
1824  * @param cookie The cookie
1825  * @param e      The xcb_generic_error_t supplied
1826  *
1827  * Returns the reply of the request asked by
1828  *
1829  * The parameter @p e supplied to this function must be NULL if
1830  * xcb_x_print_print_set_image_resolution_unchecked(). is used.
1831  * Otherwise, it stores the error if any.
1832  *
1833  * The returned value must be freed by the caller using free().
1834  */
1835 xcb_x_print_print_set_image_resolution_reply_t *
1836 xcb_x_print_print_set_image_resolution_reply (xcb_connection_t                                 *c,
1837                                               xcb_x_print_print_set_image_resolution_cookie_t   cookie  /**< */,
1838                                               xcb_generic_error_t                             **e);
1839 
1840 /**
1841  *
1842  * @param c The connection
1843  * @return A cookie
1844  *
1845  * Delivers a request to the X server.
1846  *
1847  */
1848 xcb_x_print_print_get_image_resolution_cookie_t
1849 xcb_x_print_print_get_image_resolution (xcb_connection_t       *c,
1850                                         xcb_x_print_pcontext_t  context);
1851 
1852 /**
1853  *
1854  * @param c The connection
1855  * @return A cookie
1856  *
1857  * Delivers a request to the X server.
1858  *
1859  * This form can be used only if the request will cause
1860  * a reply to be generated. Any returned error will be
1861  * placed in the event queue.
1862  */
1863 xcb_x_print_print_get_image_resolution_cookie_t
1864 xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t       *c,
1865                                                   xcb_x_print_pcontext_t  context);
1866 
1867 /**
1868  * Return the reply
1869  * @param c      The connection
1870  * @param cookie The cookie
1871  * @param e      The xcb_generic_error_t supplied
1872  *
1873  * Returns the reply of the request asked by
1874  *
1875  * The parameter @p e supplied to this function must be NULL if
1876  * xcb_x_print_print_get_image_resolution_unchecked(). is used.
1877  * Otherwise, it stores the error if any.
1878  *
1879  * The returned value must be freed by the caller using free().
1880  */
1881 xcb_x_print_print_get_image_resolution_reply_t *
1882 xcb_x_print_print_get_image_resolution_reply (xcb_connection_t                                 *c,
1883                                               xcb_x_print_print_get_image_resolution_cookie_t   cookie  /**< */,
1884                                               xcb_generic_error_t                             **e);
1885 
1886 
1887 #ifdef __cplusplus
1888 }
1889 #endif
1890 
1891 #endif
1892 
1893 /**
1894  * @}
1895  */