22 #define XCB_XPRINT_MAJOR_VERSION 1
23 #define XCB_XPRINT_MINOR_VERSION 0
27 typedef char xcb_x_print_string8_t;
33 xcb_x_print_string8_t *data;
55 typedef uint32_t xcb_x_print_pcontext_t;
61 xcb_x_print_pcontext_t *data;
66 typedef enum xcb_x_print_get_doc_t {
67 XCB_X_PRINT_GET_DOC_FINISHED = 0,
68 XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1
69 } xcb_x_print_get_doc_t;
71 typedef enum xcb_x_print_ev_mask_t {
72 XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0,
73 XCB_X_PRINT_EV_MASK_PRINT_MASK = 1,
74 XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2
75 } xcb_x_print_ev_mask_t;
77 typedef enum xcb_x_print_detail_t {
78 XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1,
79 XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2,
80 XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3,
81 XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4,
82 XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5,
83 XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6
84 } xcb_x_print_detail_t;
86 typedef enum xcb_x_print_attr_t {
87 XCB_X_PRINT_ATTR_JOB_ATTR = 1,
88 XCB_X_PRINT_ATTR_DOC_ATTR = 2,
89 XCB_X_PRINT_ATTR_PAGE_ATTR = 3,
90 XCB_X_PRINT_ATTR_PRINTER_ATTR = 4,
91 XCB_X_PRINT_ATTR_SERVER_ATTR = 5,
92 XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6,
93 XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7
100 unsigned int sequence;
104 #define XCB_X_PRINT_PRINT_QUERY_VERSION 0
110 uint8_t major_opcode;
111 uint8_t minor_opcode;
119 uint8_t response_type;
123 uint16_t major_version;
124 uint16_t minor_version;
131 unsigned int sequence;
135 #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
141 uint8_t major_opcode;
142 uint8_t minor_opcode;
144 uint32_t printerNameLen;
152 uint8_t response_type;
161 #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
167 uint8_t major_opcode;
168 uint8_t minor_opcode;
173 #define XCB_X_PRINT_CREATE_CONTEXT 2
179 uint8_t major_opcode;
180 uint8_t minor_opcode;
183 uint32_t printerNameLen;
188 #define XCB_X_PRINT_PRINT_SET_CONTEXT 3
194 uint8_t major_opcode;
195 uint8_t minor_opcode;
204 unsigned int sequence;
208 #define XCB_X_PRINT_PRINT_GET_CONTEXT 4
214 uint8_t major_opcode;
215 uint8_t minor_opcode;
223 uint8_t response_type;
231 #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
237 uint8_t major_opcode;
238 uint8_t minor_opcode;
247 unsigned int sequence;
251 #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
257 uint8_t major_opcode;
258 uint8_t minor_opcode;
266 uint8_t response_type;
274 #define XCB_X_PRINT_PRINT_START_JOB 7
280 uint8_t major_opcode;
281 uint8_t minor_opcode;
287 #define XCB_X_PRINT_PRINT_END_JOB 8
293 uint8_t major_opcode;
294 uint8_t minor_opcode;
300 #define XCB_X_PRINT_PRINT_START_DOC 9
306 uint8_t major_opcode;
307 uint8_t minor_opcode;
313 #define XCB_X_PRINT_PRINT_END_DOC 10
319 uint8_t major_opcode;
320 uint8_t minor_opcode;
326 #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
332 uint8_t major_opcode;
333 uint8_t minor_opcode;
335 xcb_drawable_t drawable;
338 uint16_t len_options;
345 unsigned int sequence;
349 #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
355 uint8_t major_opcode;
356 uint8_t minor_opcode;
358 xcb_x_print_pcontext_t context;
366 uint8_t response_type;
370 uint32_t status_code;
371 uint32_t finished_flag;
377 #define XCB_X_PRINT_PRINT_START_PAGE 13
383 uint8_t major_opcode;
384 uint8_t minor_opcode;
390 #define XCB_X_PRINT_PRINT_END_PAGE 14
396 uint8_t major_opcode;
397 uint8_t minor_opcode;
404 #define XCB_X_PRINT_PRINT_SELECT_INPUT 15
410 uint8_t major_opcode;
411 uint8_t minor_opcode;
413 xcb_x_print_pcontext_t context;
421 unsigned int sequence;
425 #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
431 uint8_t major_opcode;
432 uint8_t minor_opcode;
434 xcb_x_print_pcontext_t context;
441 uint8_t response_type;
446 uint32_t all_events_mask;
453 unsigned int sequence;
457 #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
463 uint8_t major_opcode;
464 uint8_t minor_opcode;
466 xcb_x_print_pcontext_t context;
475 uint8_t response_type;
487 unsigned int sequence;
491 #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
497 uint8_t major_opcode;
498 uint8_t minor_opcode;
500 xcb_x_print_pcontext_t context;
510 uint8_t response_type;
519 #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
525 uint8_t major_opcode;
526 uint8_t minor_opcode;
528 xcb_x_print_pcontext_t context;
539 unsigned int sequence;
543 #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
549 uint8_t major_opcode;
550 uint8_t minor_opcode;
552 xcb_x_print_pcontext_t context;
559 uint8_t response_type;
567 uint16_t reproducible_width;
568 uint16_t reproducible_height;
575 unsigned int sequence;
579 #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
585 uint8_t major_opcode;
586 uint8_t minor_opcode;
594 uint8_t response_type;
606 unsigned int sequence;
610 #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
616 uint8_t major_opcode;
617 uint8_t minor_opcode;
619 xcb_x_print_pcontext_t context;
620 uint16_t image_resolution;
627 uint8_t response_type;
631 uint16_t previous_resolutions;
638 unsigned int sequence;
642 #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
648 uint8_t major_opcode;
649 uint8_t minor_opcode;
651 xcb_x_print_pcontext_t context;
658 uint8_t response_type;
662 uint16_t image_resolution;
666 #define XCB_X_PRINT_NOTIFY 0
672 uint8_t response_type;
675 xcb_x_print_pcontext_t context;
680 #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
686 uint8_t response_type;
689 xcb_x_print_pcontext_t context;
693 #define XCB_X_PRINT_BAD_CONTEXT 0
699 uint8_t response_type;
705 #define XCB_X_PRINT_BAD_SEQUENCE 1
711 uint8_t response_type;
740 xcb_x_print_printer_serialize (
void **_buffer ,
742 const xcb_x_print_string8_t *name ,
743 const xcb_x_print_string8_t *description );
746 xcb_x_print_printer_unserialize (
const void *_buffer ,
750 xcb_x_print_printer_sizeof (
const void *_buffer );
752 xcb_x_print_string8_t *
761 xcb_x_print_string8_t *
861 xcb_x_print_print_get_printer_list_sizeof (
const void *_buffer );
873 uint32_t printerNameLen ,
875 const xcb_x_print_string8_t *printer_name ,
876 const xcb_x_print_string8_t *locale );
891 uint32_t printerNameLen ,
893 const xcb_x_print_string8_t *printer_name ,
894 const xcb_x_print_string8_t *locale );
947 xcb_x_print_create_context_sizeof (
const void *_buffer );
962 uint32_t context_id ,
963 uint32_t printerNameLen ,
965 const xcb_x_print_string8_t *printerName ,
966 const xcb_x_print_string8_t *locale );
978 uint32_t context_id ,
979 uint32_t printerNameLen ,
981 const xcb_x_print_string8_t *printerName ,
982 const xcb_x_print_string8_t *locale );
1139 uint8_t output_mode );
1151 uint8_t output_mode );
1193 uint8_t driver_mode );
1205 uint8_t driver_mode );
1235 xcb_x_print_print_put_document_data_sizeof (
const void *_buffer ,
1236 uint32_t doc_format_len ,
1237 uint32_t options_len );
1252 xcb_drawable_t drawable ,
1255 uint16_t len_options ,
1256 const uint8_t *data ,
1257 uint32_t doc_format_len ,
1258 const xcb_x_print_string8_t *doc_format ,
1259 uint32_t options_len ,
1260 const xcb_x_print_string8_t *options );
1272 xcb_drawable_t drawable ,
1275 uint16_t len_options ,
1276 const uint8_t *data ,
1277 uint32_t doc_format_len ,
1278 const xcb_x_print_string8_t *doc_format ,
1279 uint32_t options_len ,
1280 const xcb_x_print_string8_t *options );
1283 xcb_x_print_print_get_document_data_sizeof (
const void *_buffer );
1295 xcb_x_print_pcontext_t context ,
1296 uint32_t max_bytes );
1311 xcb_x_print_pcontext_t context ,
1312 uint32_t max_bytes );
1355 xcb_window_t window );
1367 xcb_window_t window );
1397 xcb_x_print_print_select_input_sizeof (
const void *_buffer );
1412 xcb_x_print_pcontext_t context ,
1413 uint32_t event_mask ,
1426 xcb_x_print_pcontext_t context ,
1427 uint32_t event_mask ,
1431 xcb_x_print_print_input_selected_serialize (
void **_buffer ,
1434 const uint32_t *all_events_list );
1437 xcb_x_print_print_input_selected_unserialize (
const void *_buffer ,
1441 xcb_x_print_print_input_selected_sizeof (
const void *_buffer );
1453 xcb_x_print_pcontext_t context );
1468 xcb_x_print_pcontext_t context );
1508 xcb_x_print_print_get_attributes_sizeof (
const void *_buffer );
1520 xcb_x_print_pcontext_t context ,
1536 xcb_x_print_pcontext_t context ,
1539 xcb_x_print_string8_t *
1568 xcb_x_print_print_get_one_attributes_sizeof (
const void *_buffer );
1580 xcb_x_print_pcontext_t context ,
1583 const xcb_x_print_string8_t *name );
1598 xcb_x_print_pcontext_t context ,
1601 const xcb_x_print_string8_t *name );
1603 xcb_x_print_string8_t *
1632 xcb_x_print_print_set_attributes_sizeof (
const void *_buffer ,
1633 uint32_t attributes_len );
1648 xcb_x_print_pcontext_t context ,
1649 uint32_t stringLen ,
1652 uint32_t attributes_len ,
1653 const xcb_x_print_string8_t *attributes );
1665 xcb_x_print_pcontext_t context ,
1666 uint32_t stringLen ,
1669 uint32_t attributes_len ,
1670 const xcb_x_print_string8_t *attributes );
1682 xcb_x_print_pcontext_t context );
1697 xcb_x_print_pcontext_t context );
1719 xcb_x_print_print_query_screens_sizeof (
const void *_buffer );
1784 xcb_x_print_pcontext_t context ,
1785 uint16_t image_resolution );
1800 xcb_x_print_pcontext_t context ,
1801 uint16_t image_resolution );
1832 xcb_x_print_pcontext_t context );
1847 xcb_x_print_pcontext_t context );