etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libxcb / files / xprint.h
blob9bead966070676f39ef1e15c03cbbf2fbc5c06b4
1 /*
2 * This file generated automatically from xprint.xml by c_client.py.
3 * Edit at your peril.
4 */
6 /**
7 * @defgroup XCB_XPrint_API XCB XPrint API
8 * @brief XPrint XCB Protocol Implementation.
9 * @{
10 **/
12 #ifndef __XPRINT_H
13 #define __XPRINT_H
15 #include "xcb.h"
16 #include "xproto.h"
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 #define XCB_XPRINT_MAJOR_VERSION 1
23 #define XCB_XPRINT_MINOR_VERSION 0
25 extern xcb_extension_t xcb_x_print_id;
27 typedef char xcb_x_print_string8_t;
29 /**
30 * @brief xcb_x_print_string8_iterator_t
31 **/
32 typedef struct xcb_x_print_string8_iterator_t {
33 xcb_x_print_string8_t *data; /**< */
34 int rem; /**< */
35 int index; /**< */
36 } xcb_x_print_string8_iterator_t;
38 /**
39 * @brief xcb_x_print_printer_t
40 **/
41 typedef struct xcb_x_print_printer_t {
42 uint32_t nameLen; /**< */
43 uint32_t descLen; /**< */
44 } xcb_x_print_printer_t;
46 /**
47 * @brief xcb_x_print_printer_iterator_t
48 **/
49 typedef struct xcb_x_print_printer_iterator_t {
50 xcb_x_print_printer_t *data; /**< */
51 int rem; /**< */
52 int index; /**< */
53 } xcb_x_print_printer_iterator_t;
55 typedef uint32_t xcb_x_print_pcontext_t;
57 /**
58 * @brief xcb_x_print_pcontext_iterator_t
59 **/
60 typedef struct xcb_x_print_pcontext_iterator_t {
61 xcb_x_print_pcontext_t *data; /**< */
62 int rem; /**< */
63 int index; /**< */
64 } xcb_x_print_pcontext_iterator_t;
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
94 } xcb_x_print_attr_t;
96 /**
97 * @brief xcb_x_print_print_query_version_cookie_t
98 **/
99 typedef struct xcb_x_print_print_query_version_cookie_t {
100 unsigned int sequence; /**< */
101 } xcb_x_print_print_query_version_cookie_t;
103 /** Opcode for xcb_x_print_print_query_version. */
104 #define XCB_X_PRINT_PRINT_QUERY_VERSION 0
107 * @brief xcb_x_print_print_query_version_request_t
109 typedef struct xcb_x_print_print_query_version_request_t {
110 uint8_t major_opcode; /**< */
111 uint8_t minor_opcode; /**< */
112 uint16_t length; /**< */
113 } xcb_x_print_print_query_version_request_t;
116 * @brief xcb_x_print_print_query_version_reply_t
118 typedef struct xcb_x_print_print_query_version_reply_t {
119 uint8_t response_type; /**< */
120 uint8_t pad0; /**< */
121 uint16_t sequence; /**< */
122 uint32_t length; /**< */
123 uint16_t major_version; /**< */
124 uint16_t minor_version; /**< */
125 } xcb_x_print_print_query_version_reply_t;
128 * @brief xcb_x_print_print_get_printer_list_cookie_t
130 typedef struct xcb_x_print_print_get_printer_list_cookie_t {
131 unsigned int sequence; /**< */
132 } xcb_x_print_print_get_printer_list_cookie_t;
134 /** Opcode for xcb_x_print_print_get_printer_list. */
135 #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
138 * @brief xcb_x_print_print_get_printer_list_request_t
140 typedef struct xcb_x_print_print_get_printer_list_request_t {
141 uint8_t major_opcode; /**< */
142 uint8_t minor_opcode; /**< */
143 uint16_t length; /**< */
144 uint32_t printerNameLen; /**< */
145 uint32_t localeLen; /**< */
146 } xcb_x_print_print_get_printer_list_request_t;
149 * @brief xcb_x_print_print_get_printer_list_reply_t
151 typedef struct xcb_x_print_print_get_printer_list_reply_t {
152 uint8_t response_type; /**< */
153 uint8_t pad0; /**< */
154 uint16_t sequence; /**< */
155 uint32_t length; /**< */
156 uint32_t listCount; /**< */
157 uint8_t pad1[20]; /**< */
158 } xcb_x_print_print_get_printer_list_reply_t;
160 /** Opcode for xcb_x_print_print_rehash_printer_list. */
161 #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
164 * @brief xcb_x_print_print_rehash_printer_list_request_t
166 typedef struct xcb_x_print_print_rehash_printer_list_request_t {
167 uint8_t major_opcode; /**< */
168 uint8_t minor_opcode; /**< */
169 uint16_t length; /**< */
170 } xcb_x_print_print_rehash_printer_list_request_t;
172 /** Opcode for xcb_x_print_create_context. */
173 #define XCB_X_PRINT_CREATE_CONTEXT 2
176 * @brief xcb_x_print_create_context_request_t
178 typedef struct xcb_x_print_create_context_request_t {
179 uint8_t major_opcode; /**< */
180 uint8_t minor_opcode; /**< */
181 uint16_t length; /**< */
182 uint32_t context_id; /**< */
183 uint32_t printerNameLen; /**< */
184 uint32_t localeLen; /**< */
185 } xcb_x_print_create_context_request_t;
187 /** Opcode for xcb_x_print_print_set_context. */
188 #define XCB_X_PRINT_PRINT_SET_CONTEXT 3
191 * @brief xcb_x_print_print_set_context_request_t
193 typedef struct xcb_x_print_print_set_context_request_t {
194 uint8_t major_opcode; /**< */
195 uint8_t minor_opcode; /**< */
196 uint16_t length; /**< */
197 uint32_t context; /**< */
198 } xcb_x_print_print_set_context_request_t;
201 * @brief xcb_x_print_print_get_context_cookie_t
203 typedef struct xcb_x_print_print_get_context_cookie_t {
204 unsigned int sequence; /**< */
205 } xcb_x_print_print_get_context_cookie_t;
207 /** Opcode for xcb_x_print_print_get_context. */
208 #define XCB_X_PRINT_PRINT_GET_CONTEXT 4
211 * @brief xcb_x_print_print_get_context_request_t
213 typedef struct xcb_x_print_print_get_context_request_t {
214 uint8_t major_opcode; /**< */
215 uint8_t minor_opcode; /**< */
216 uint16_t length; /**< */
217 } xcb_x_print_print_get_context_request_t;
220 * @brief xcb_x_print_print_get_context_reply_t
222 typedef struct xcb_x_print_print_get_context_reply_t {
223 uint8_t response_type; /**< */
224 uint8_t pad0; /**< */
225 uint16_t sequence; /**< */
226 uint32_t length; /**< */
227 uint32_t context; /**< */
228 } xcb_x_print_print_get_context_reply_t;
230 /** Opcode for xcb_x_print_print_destroy_context. */
231 #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
234 * @brief xcb_x_print_print_destroy_context_request_t
236 typedef struct xcb_x_print_print_destroy_context_request_t {
237 uint8_t major_opcode; /**< */
238 uint8_t minor_opcode; /**< */
239 uint16_t length; /**< */
240 uint32_t context; /**< */
241 } xcb_x_print_print_destroy_context_request_t;
244 * @brief xcb_x_print_print_get_screen_of_context_cookie_t
246 typedef struct xcb_x_print_print_get_screen_of_context_cookie_t {
247 unsigned int sequence; /**< */
248 } xcb_x_print_print_get_screen_of_context_cookie_t;
250 /** Opcode for xcb_x_print_print_get_screen_of_context. */
251 #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
254 * @brief xcb_x_print_print_get_screen_of_context_request_t
256 typedef struct xcb_x_print_print_get_screen_of_context_request_t {
257 uint8_t major_opcode; /**< */
258 uint8_t minor_opcode; /**< */
259 uint16_t length; /**< */
260 } xcb_x_print_print_get_screen_of_context_request_t;
263 * @brief xcb_x_print_print_get_screen_of_context_reply_t
265 typedef struct xcb_x_print_print_get_screen_of_context_reply_t {
266 uint8_t response_type; /**< */
267 uint8_t pad0; /**< */
268 uint16_t sequence; /**< */
269 uint32_t length; /**< */
270 xcb_window_t root; /**< */
271 } xcb_x_print_print_get_screen_of_context_reply_t;
273 /** Opcode for xcb_x_print_print_start_job. */
274 #define XCB_X_PRINT_PRINT_START_JOB 7
277 * @brief xcb_x_print_print_start_job_request_t
279 typedef struct xcb_x_print_print_start_job_request_t {
280 uint8_t major_opcode; /**< */
281 uint8_t minor_opcode; /**< */
282 uint16_t length; /**< */
283 uint8_t output_mode; /**< */
284 } xcb_x_print_print_start_job_request_t;
286 /** Opcode for xcb_x_print_print_end_job. */
287 #define XCB_X_PRINT_PRINT_END_JOB 8
290 * @brief xcb_x_print_print_end_job_request_t
292 typedef struct xcb_x_print_print_end_job_request_t {
293 uint8_t major_opcode; /**< */
294 uint8_t minor_opcode; /**< */
295 uint16_t length; /**< */
296 uint8_t cancel; /**< */
297 } xcb_x_print_print_end_job_request_t;
299 /** Opcode for xcb_x_print_print_start_doc. */
300 #define XCB_X_PRINT_PRINT_START_DOC 9
303 * @brief xcb_x_print_print_start_doc_request_t
305 typedef struct xcb_x_print_print_start_doc_request_t {
306 uint8_t major_opcode; /**< */
307 uint8_t minor_opcode; /**< */
308 uint16_t length; /**< */
309 uint8_t driver_mode; /**< */
310 } xcb_x_print_print_start_doc_request_t;
312 /** Opcode for xcb_x_print_print_end_doc. */
313 #define XCB_X_PRINT_PRINT_END_DOC 10
316 * @brief xcb_x_print_print_end_doc_request_t
318 typedef struct xcb_x_print_print_end_doc_request_t {
319 uint8_t major_opcode; /**< */
320 uint8_t minor_opcode; /**< */
321 uint16_t length; /**< */
322 uint8_t cancel; /**< */
323 } xcb_x_print_print_end_doc_request_t;
325 /** Opcode for xcb_x_print_print_put_document_data. */
326 #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
329 * @brief xcb_x_print_print_put_document_data_request_t
331 typedef struct xcb_x_print_print_put_document_data_request_t {
332 uint8_t major_opcode; /**< */
333 uint8_t minor_opcode; /**< */
334 uint16_t length; /**< */
335 xcb_drawable_t drawable; /**< */
336 uint32_t len_data; /**< */
337 uint16_t len_fmt; /**< */
338 uint16_t len_options; /**< */
339 } xcb_x_print_print_put_document_data_request_t;
342 * @brief xcb_x_print_print_get_document_data_cookie_t
344 typedef struct xcb_x_print_print_get_document_data_cookie_t {
345 unsigned int sequence; /**< */
346 } xcb_x_print_print_get_document_data_cookie_t;
348 /** Opcode for xcb_x_print_print_get_document_data. */
349 #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
352 * @brief xcb_x_print_print_get_document_data_request_t
354 typedef struct xcb_x_print_print_get_document_data_request_t {
355 uint8_t major_opcode; /**< */
356 uint8_t minor_opcode; /**< */
357 uint16_t length; /**< */
358 xcb_x_print_pcontext_t context; /**< */
359 uint32_t max_bytes; /**< */
360 } xcb_x_print_print_get_document_data_request_t;
363 * @brief xcb_x_print_print_get_document_data_reply_t
365 typedef struct xcb_x_print_print_get_document_data_reply_t {
366 uint8_t response_type; /**< */
367 uint8_t pad0; /**< */
368 uint16_t sequence; /**< */
369 uint32_t length; /**< */
370 uint32_t status_code; /**< */
371 uint32_t finished_flag; /**< */
372 uint32_t dataLen; /**< */
373 uint8_t pad1[12]; /**< */
374 } xcb_x_print_print_get_document_data_reply_t;
376 /** Opcode for xcb_x_print_print_start_page. */
377 #define XCB_X_PRINT_PRINT_START_PAGE 13
380 * @brief xcb_x_print_print_start_page_request_t
382 typedef struct xcb_x_print_print_start_page_request_t {
383 uint8_t major_opcode; /**< */
384 uint8_t minor_opcode; /**< */
385 uint16_t length; /**< */
386 xcb_window_t window; /**< */
387 } xcb_x_print_print_start_page_request_t;
389 /** Opcode for xcb_x_print_print_end_page. */
390 #define XCB_X_PRINT_PRINT_END_PAGE 14
393 * @brief xcb_x_print_print_end_page_request_t
395 typedef struct xcb_x_print_print_end_page_request_t {
396 uint8_t major_opcode; /**< */
397 uint8_t minor_opcode; /**< */
398 uint16_t length; /**< */
399 uint8_t cancel; /**< */
400 uint8_t pad0[3]; /**< */
401 } xcb_x_print_print_end_page_request_t;
403 /** Opcode for xcb_x_print_print_select_input. */
404 #define XCB_X_PRINT_PRINT_SELECT_INPUT 15
407 * @brief xcb_x_print_print_select_input_request_t
409 typedef struct xcb_x_print_print_select_input_request_t {
410 uint8_t major_opcode; /**< */
411 uint8_t minor_opcode; /**< */
412 uint16_t length; /**< */
413 xcb_x_print_pcontext_t context; /**< */
414 uint32_t event_mask; /**< */
415 } xcb_x_print_print_select_input_request_t;
418 * @brief xcb_x_print_print_input_selected_cookie_t
420 typedef struct xcb_x_print_print_input_selected_cookie_t {
421 unsigned int sequence; /**< */
422 } xcb_x_print_print_input_selected_cookie_t;
424 /** Opcode for xcb_x_print_print_input_selected. */
425 #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
428 * @brief xcb_x_print_print_input_selected_request_t
430 typedef struct xcb_x_print_print_input_selected_request_t {
431 uint8_t major_opcode; /**< */
432 uint8_t minor_opcode; /**< */
433 uint16_t length; /**< */
434 xcb_x_print_pcontext_t context; /**< */
435 } xcb_x_print_print_input_selected_request_t;
438 * @brief xcb_x_print_print_input_selected_reply_t
440 typedef struct xcb_x_print_print_input_selected_reply_t {
441 uint8_t response_type; /**< */
442 uint8_t pad0; /**< */
443 uint16_t sequence; /**< */
444 uint32_t length; /**< */
445 uint32_t event_mask; /**< */
446 uint32_t all_events_mask; /**< */
447 } xcb_x_print_print_input_selected_reply_t;
450 * @brief xcb_x_print_print_get_attributes_cookie_t
452 typedef struct xcb_x_print_print_get_attributes_cookie_t {
453 unsigned int sequence; /**< */
454 } xcb_x_print_print_get_attributes_cookie_t;
456 /** Opcode for xcb_x_print_print_get_attributes. */
457 #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
460 * @brief xcb_x_print_print_get_attributes_request_t
462 typedef struct xcb_x_print_print_get_attributes_request_t {
463 uint8_t major_opcode; /**< */
464 uint8_t minor_opcode; /**< */
465 uint16_t length; /**< */
466 xcb_x_print_pcontext_t context; /**< */
467 uint8_t pool; /**< */
468 uint8_t pad0[3]; /**< */
469 } xcb_x_print_print_get_attributes_request_t;
472 * @brief xcb_x_print_print_get_attributes_reply_t
474 typedef struct xcb_x_print_print_get_attributes_reply_t {
475 uint8_t response_type; /**< */
476 uint8_t pad0; /**< */
477 uint16_t sequence; /**< */
478 uint32_t length; /**< */
479 uint32_t stringLen; /**< */
480 uint8_t pad1[20]; /**< */
481 } xcb_x_print_print_get_attributes_reply_t;
484 * @brief xcb_x_print_print_get_one_attributes_cookie_t
486 typedef struct xcb_x_print_print_get_one_attributes_cookie_t {
487 unsigned int sequence; /**< */
488 } xcb_x_print_print_get_one_attributes_cookie_t;
490 /** Opcode for xcb_x_print_print_get_one_attributes. */
491 #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
494 * @brief xcb_x_print_print_get_one_attributes_request_t
496 typedef struct xcb_x_print_print_get_one_attributes_request_t {
497 uint8_t major_opcode; /**< */
498 uint8_t minor_opcode; /**< */
499 uint16_t length; /**< */
500 xcb_x_print_pcontext_t context; /**< */
501 uint32_t nameLen; /**< */
502 uint8_t pool; /**< */
503 uint8_t pad0[3]; /**< */
504 } xcb_x_print_print_get_one_attributes_request_t;
507 * @brief xcb_x_print_print_get_one_attributes_reply_t
509 typedef struct xcb_x_print_print_get_one_attributes_reply_t {
510 uint8_t response_type; /**< */
511 uint8_t pad0; /**< */
512 uint16_t sequence; /**< */
513 uint32_t length; /**< */
514 uint32_t valueLen; /**< */
515 uint8_t pad1[20]; /**< */
516 } xcb_x_print_print_get_one_attributes_reply_t;
518 /** Opcode for xcb_x_print_print_set_attributes. */
519 #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
522 * @brief xcb_x_print_print_set_attributes_request_t
524 typedef struct xcb_x_print_print_set_attributes_request_t {
525 uint8_t major_opcode; /**< */
526 uint8_t minor_opcode; /**< */
527 uint16_t length; /**< */
528 xcb_x_print_pcontext_t context; /**< */
529 uint32_t stringLen; /**< */
530 uint8_t pool; /**< */
531 uint8_t rule; /**< */
532 uint8_t pad0[2]; /**< */
533 } xcb_x_print_print_set_attributes_request_t;
536 * @brief xcb_x_print_print_get_page_dimensions_cookie_t
538 typedef struct xcb_x_print_print_get_page_dimensions_cookie_t {
539 unsigned int sequence; /**< */
540 } xcb_x_print_print_get_page_dimensions_cookie_t;
542 /** Opcode for xcb_x_print_print_get_page_dimensions. */
543 #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
546 * @brief xcb_x_print_print_get_page_dimensions_request_t
548 typedef struct xcb_x_print_print_get_page_dimensions_request_t {
549 uint8_t major_opcode; /**< */
550 uint8_t minor_opcode; /**< */
551 uint16_t length; /**< */
552 xcb_x_print_pcontext_t context; /**< */
553 } xcb_x_print_print_get_page_dimensions_request_t;
556 * @brief xcb_x_print_print_get_page_dimensions_reply_t
558 typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
559 uint8_t response_type; /**< */
560 uint8_t pad0; /**< */
561 uint16_t sequence; /**< */
562 uint32_t length; /**< */
563 uint16_t width; /**< */
564 uint16_t height; /**< */
565 uint16_t offset_x; /**< */
566 uint16_t offset_y; /**< */
567 uint16_t reproducible_width; /**< */
568 uint16_t reproducible_height; /**< */
569 } xcb_x_print_print_get_page_dimensions_reply_t;
572 * @brief xcb_x_print_print_query_screens_cookie_t
574 typedef struct xcb_x_print_print_query_screens_cookie_t {
575 unsigned int sequence; /**< */
576 } xcb_x_print_print_query_screens_cookie_t;
578 /** Opcode for xcb_x_print_print_query_screens. */
579 #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
582 * @brief xcb_x_print_print_query_screens_request_t
584 typedef struct xcb_x_print_print_query_screens_request_t {
585 uint8_t major_opcode; /**< */
586 uint8_t minor_opcode; /**< */
587 uint16_t length; /**< */
588 } xcb_x_print_print_query_screens_request_t;
591 * @brief xcb_x_print_print_query_screens_reply_t
593 typedef struct xcb_x_print_print_query_screens_reply_t {
594 uint8_t response_type; /**< */
595 uint8_t pad0; /**< */
596 uint16_t sequence; /**< */
597 uint32_t length; /**< */
598 uint32_t listCount; /**< */
599 uint8_t pad1[20]; /**< */
600 } xcb_x_print_print_query_screens_reply_t;
603 * @brief xcb_x_print_print_set_image_resolution_cookie_t
605 typedef struct xcb_x_print_print_set_image_resolution_cookie_t {
606 unsigned int sequence; /**< */
607 } xcb_x_print_print_set_image_resolution_cookie_t;
609 /** Opcode for xcb_x_print_print_set_image_resolution. */
610 #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
613 * @brief xcb_x_print_print_set_image_resolution_request_t
615 typedef struct xcb_x_print_print_set_image_resolution_request_t {
616 uint8_t major_opcode; /**< */
617 uint8_t minor_opcode; /**< */
618 uint16_t length; /**< */
619 xcb_x_print_pcontext_t context; /**< */
620 uint16_t image_resolution; /**< */
621 } xcb_x_print_print_set_image_resolution_request_t;
624 * @brief xcb_x_print_print_set_image_resolution_reply_t
626 typedef struct xcb_x_print_print_set_image_resolution_reply_t {
627 uint8_t response_type; /**< */
628 uint8_t status; /**< */
629 uint16_t sequence; /**< */
630 uint32_t length; /**< */
631 uint16_t previous_resolutions; /**< */
632 } xcb_x_print_print_set_image_resolution_reply_t;
635 * @brief xcb_x_print_print_get_image_resolution_cookie_t
637 typedef struct xcb_x_print_print_get_image_resolution_cookie_t {
638 unsigned int sequence; /**< */
639 } xcb_x_print_print_get_image_resolution_cookie_t;
641 /** Opcode for xcb_x_print_print_get_image_resolution. */
642 #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
645 * @brief xcb_x_print_print_get_image_resolution_request_t
647 typedef struct xcb_x_print_print_get_image_resolution_request_t {
648 uint8_t major_opcode; /**< */
649 uint8_t minor_opcode; /**< */
650 uint16_t length; /**< */
651 xcb_x_print_pcontext_t context; /**< */
652 } xcb_x_print_print_get_image_resolution_request_t;
655 * @brief xcb_x_print_print_get_image_resolution_reply_t
657 typedef struct xcb_x_print_print_get_image_resolution_reply_t {
658 uint8_t response_type; /**< */
659 uint8_t pad0; /**< */
660 uint16_t sequence; /**< */
661 uint32_t length; /**< */
662 uint16_t image_resolution; /**< */
663 } xcb_x_print_print_get_image_resolution_reply_t;
665 /** Opcode for xcb_x_print_notify. */
666 #define XCB_X_PRINT_NOTIFY 0
669 * @brief xcb_x_print_notify_event_t
671 typedef struct xcb_x_print_notify_event_t {
672 uint8_t response_type; /**< */
673 uint8_t detail; /**< */
674 uint16_t sequence; /**< */
675 xcb_x_print_pcontext_t context; /**< */
676 uint8_t cancel; /**< */
677 } xcb_x_print_notify_event_t;
679 /** Opcode for xcb_x_print_attribut_notify. */
680 #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
683 * @brief xcb_x_print_attribut_notify_event_t
685 typedef struct xcb_x_print_attribut_notify_event_t {
686 uint8_t response_type; /**< */
687 uint8_t detail; /**< */
688 uint16_t sequence; /**< */
689 xcb_x_print_pcontext_t context; /**< */
690 } xcb_x_print_attribut_notify_event_t;
692 /** Opcode for xcb_x_print_bad_context. */
693 #define XCB_X_PRINT_BAD_CONTEXT 0
696 * @brief xcb_x_print_bad_context_error_t
698 typedef struct xcb_x_print_bad_context_error_t {
699 uint8_t response_type; /**< */
700 uint8_t error_code; /**< */
701 uint16_t sequence; /**< */
702 } xcb_x_print_bad_context_error_t;
704 /** Opcode for xcb_x_print_bad_sequence. */
705 #define XCB_X_PRINT_BAD_SEQUENCE 1
708 * @brief xcb_x_print_bad_sequence_error_t
710 typedef struct xcb_x_print_bad_sequence_error_t {
711 uint8_t response_type; /**< */
712 uint8_t error_code; /**< */
713 uint16_t sequence; /**< */
714 } xcb_x_print_bad_sequence_error_t;
717 * Get the next element of the iterator
718 * @param i Pointer to a xcb_x_print_string8_iterator_t
720 * Get the next element in the iterator. The member rem is
721 * decreased by one. The member data points to the next
722 * element. The member index is increased by sizeof(xcb_x_print_string8_t)
724 void
725 xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i /**< */);
728 * Return the iterator pointing to the last element
729 * @param i An xcb_x_print_string8_iterator_t
730 * @return The iterator pointing to the last element
732 * Set the current element in the iterator to the last element.
733 * The member rem is set to 0. The member data points to the
734 * last element.
736 xcb_generic_iterator_t
737 xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i /**< */);
740 xcb_x_print_printer_serialize (void **_buffer /**< */,
741 const xcb_x_print_printer_t *_aux /**< */,
742 const xcb_x_print_string8_t *name /**< */,
743 const xcb_x_print_string8_t *description /**< */);
746 xcb_x_print_printer_unserialize (const void *_buffer /**< */,
747 xcb_x_print_printer_t **_aux /**< */);
750 xcb_x_print_printer_sizeof (const void *_buffer /**< */);
752 xcb_x_print_string8_t *
753 xcb_x_print_printer_name (const xcb_x_print_printer_t *R /**< */);
756 xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R /**< */);
758 xcb_generic_iterator_t
759 xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R /**< */);
761 xcb_x_print_string8_t *
762 xcb_x_print_printer_description (const xcb_x_print_printer_t *R /**< */);
765 xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R /**< */);
767 xcb_generic_iterator_t
768 xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R /**< */);
771 * Get the next element of the iterator
772 * @param i Pointer to a xcb_x_print_printer_iterator_t
774 * Get the next element in the iterator. The member rem is
775 * decreased by one. The member data points to the next
776 * element. The member index is increased by sizeof(xcb_x_print_printer_t)
778 void
779 xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i /**< */);
782 * Return the iterator pointing to the last element
783 * @param i An xcb_x_print_printer_iterator_t
784 * @return The iterator pointing to the last element
786 * Set the current element in the iterator to the last element.
787 * The member rem is set to 0. The member data points to the
788 * last element.
790 xcb_generic_iterator_t
791 xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i /**< */);
794 * Get the next element of the iterator
795 * @param i Pointer to a xcb_x_print_pcontext_iterator_t
797 * Get the next element in the iterator. The member rem is
798 * decreased by one. The member data points to the next
799 * element. The member index is increased by sizeof(xcb_x_print_pcontext_t)
801 void
802 xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i /**< */);
805 * Return the iterator pointing to the last element
806 * @param i An xcb_x_print_pcontext_iterator_t
807 * @return The iterator pointing to the last element
809 * Set the current element in the iterator to the last element.
810 * The member rem is set to 0. The member data points to the
811 * last element.
813 xcb_generic_iterator_t
814 xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i /**< */);
818 * @param c The connection
819 * @return A cookie
821 * Delivers a request to the X server.
824 xcb_x_print_print_query_version_cookie_t
825 xcb_x_print_print_query_version (xcb_connection_t *c /**< */);
829 * @param c The connection
830 * @return A cookie
832 * Delivers a request to the X server.
834 * This form can be used only if the request will cause
835 * a reply to be generated. Any returned error will be
836 * placed in the event queue.
838 xcb_x_print_print_query_version_cookie_t
839 xcb_x_print_print_query_version_unchecked (xcb_connection_t *c /**< */);
842 * Return the reply
843 * @param c The connection
844 * @param cookie The cookie
845 * @param e The xcb_generic_error_t supplied
847 * Returns the reply of the request asked by
849 * The parameter @p e supplied to this function must be NULL if
850 * xcb_x_print_print_query_version_unchecked(). is used.
851 * Otherwise, it stores the error if any.
853 * The returned value must be freed by the caller using free().
855 xcb_x_print_print_query_version_reply_t *
856 xcb_x_print_print_query_version_reply (xcb_connection_t *c /**< */,
857 xcb_x_print_print_query_version_cookie_t cookie /**< */,
858 xcb_generic_error_t **e /**< */);
861 xcb_x_print_print_get_printer_list_sizeof (const void *_buffer /**< */);
865 * @param c The connection
866 * @return A cookie
868 * Delivers a request to the X server.
871 xcb_x_print_print_get_printer_list_cookie_t
872 xcb_x_print_print_get_printer_list (xcb_connection_t *c /**< */,
873 uint32_t printerNameLen /**< */,
874 uint32_t localeLen /**< */,
875 const xcb_x_print_string8_t *printer_name /**< */,
876 const xcb_x_print_string8_t *locale /**< */);
880 * @param c The connection
881 * @return A cookie
883 * Delivers a request to the X server.
885 * This form can be used only if the request will cause
886 * a reply to be generated. Any returned error will be
887 * placed in the event queue.
889 xcb_x_print_print_get_printer_list_cookie_t
890 xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c /**< */,
891 uint32_t printerNameLen /**< */,
892 uint32_t localeLen /**< */,
893 const xcb_x_print_string8_t *printer_name /**< */,
894 const xcb_x_print_string8_t *locale /**< */);
897 xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R /**< */);
899 xcb_x_print_printer_iterator_t
900 xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R /**< */);
903 * Return the reply
904 * @param c The connection
905 * @param cookie The cookie
906 * @param e The xcb_generic_error_t supplied
908 * Returns the reply of the request asked by
910 * The parameter @p e supplied to this function must be NULL if
911 * xcb_x_print_print_get_printer_list_unchecked(). is used.
912 * Otherwise, it stores the error if any.
914 * The returned value must be freed by the caller using free().
916 xcb_x_print_print_get_printer_list_reply_t *
917 xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c /**< */,
918 xcb_x_print_print_get_printer_list_cookie_t cookie /**< */,
919 xcb_generic_error_t **e /**< */);
923 * @param c The connection
924 * @return A cookie
926 * Delivers a request to the X server.
928 * This form can be used only if the request will not cause
929 * a reply to be generated. Any returned error will be
930 * saved for handling by xcb_request_check().
932 xcb_void_cookie_t
933 xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c /**< */);
937 * @param c The connection
938 * @return A cookie
940 * Delivers a request to the X server.
943 xcb_void_cookie_t
944 xcb_x_print_print_rehash_printer_list (xcb_connection_t *c /**< */);
947 xcb_x_print_create_context_sizeof (const void *_buffer /**< */);
951 * @param c The connection
952 * @return A cookie
954 * Delivers a request to the X server.
956 * This form can be used only if the request will not cause
957 * a reply to be generated. Any returned error will be
958 * saved for handling by xcb_request_check().
960 xcb_void_cookie_t
961 xcb_x_print_create_context_checked (xcb_connection_t *c /**< */,
962 uint32_t context_id /**< */,
963 uint32_t printerNameLen /**< */,
964 uint32_t localeLen /**< */,
965 const xcb_x_print_string8_t *printerName /**< */,
966 const xcb_x_print_string8_t *locale /**< */);
970 * @param c The connection
971 * @return A cookie
973 * Delivers a request to the X server.
976 xcb_void_cookie_t
977 xcb_x_print_create_context (xcb_connection_t *c /**< */,
978 uint32_t context_id /**< */,
979 uint32_t printerNameLen /**< */,
980 uint32_t localeLen /**< */,
981 const xcb_x_print_string8_t *printerName /**< */,
982 const xcb_x_print_string8_t *locale /**< */);
986 * @param c The connection
987 * @return A cookie
989 * Delivers a request to the X server.
991 * This form can be used only if the request will not cause
992 * a reply to be generated. Any returned error will be
993 * saved for handling by xcb_request_check().
995 xcb_void_cookie_t
996 xcb_x_print_print_set_context_checked (xcb_connection_t *c /**< */,
997 uint32_t context /**< */);
1001 * @param c The connection
1002 * @return A cookie
1004 * Delivers a request to the X server.
1007 xcb_void_cookie_t
1008 xcb_x_print_print_set_context (xcb_connection_t *c /**< */,
1009 uint32_t context /**< */);
1013 * @param c The connection
1014 * @return A cookie
1016 * Delivers a request to the X server.
1019 xcb_x_print_print_get_context_cookie_t
1020 xcb_x_print_print_get_context (xcb_connection_t *c /**< */);
1024 * @param c The connection
1025 * @return A cookie
1027 * Delivers a request to the X server.
1029 * This form can be used only if the request will cause
1030 * a reply to be generated. Any returned error will be
1031 * placed in the event queue.
1033 xcb_x_print_print_get_context_cookie_t
1034 xcb_x_print_print_get_context_unchecked (xcb_connection_t *c /**< */);
1037 * Return the reply
1038 * @param c The connection
1039 * @param cookie The cookie
1040 * @param e The xcb_generic_error_t supplied
1042 * Returns the reply of the request asked by
1044 * The parameter @p e supplied to this function must be NULL if
1045 * xcb_x_print_print_get_context_unchecked(). is used.
1046 * Otherwise, it stores the error if any.
1048 * The returned value must be freed by the caller using free().
1050 xcb_x_print_print_get_context_reply_t *
1051 xcb_x_print_print_get_context_reply (xcb_connection_t *c /**< */,
1052 xcb_x_print_print_get_context_cookie_t cookie /**< */,
1053 xcb_generic_error_t **e /**< */);
1057 * @param c The connection
1058 * @return A cookie
1060 * Delivers a request to the X server.
1062 * This form can be used only if the request will not cause
1063 * a reply to be generated. Any returned error will be
1064 * saved for handling by xcb_request_check().
1066 xcb_void_cookie_t
1067 xcb_x_print_print_destroy_context_checked (xcb_connection_t *c /**< */,
1068 uint32_t context /**< */);
1072 * @param c The connection
1073 * @return A cookie
1075 * Delivers a request to the X server.
1078 xcb_void_cookie_t
1079 xcb_x_print_print_destroy_context (xcb_connection_t *c /**< */,
1080 uint32_t context /**< */);
1084 * @param c The connection
1085 * @return A cookie
1087 * Delivers a request to the X server.
1090 xcb_x_print_print_get_screen_of_context_cookie_t
1091 xcb_x_print_print_get_screen_of_context (xcb_connection_t *c /**< */);
1095 * @param c The connection
1096 * @return A cookie
1098 * Delivers a request to the X server.
1100 * This form can be used only if the request will cause
1101 * a reply to be generated. Any returned error will be
1102 * placed in the event queue.
1104 xcb_x_print_print_get_screen_of_context_cookie_t
1105 xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c /**< */);
1108 * Return the reply
1109 * @param c The connection
1110 * @param cookie The cookie
1111 * @param e The xcb_generic_error_t supplied
1113 * Returns the reply of the request asked by
1115 * The parameter @p e supplied to this function must be NULL if
1116 * xcb_x_print_print_get_screen_of_context_unchecked(). is used.
1117 * Otherwise, it stores the error if any.
1119 * The returned value must be freed by the caller using free().
1121 xcb_x_print_print_get_screen_of_context_reply_t *
1122 xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c /**< */,
1123 xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */,
1124 xcb_generic_error_t **e /**< */);
1128 * @param c The connection
1129 * @return A cookie
1131 * Delivers a request to the X server.
1133 * This form can be used only if the request will not cause
1134 * a reply to be generated. Any returned error will be
1135 * saved for handling by xcb_request_check().
1137 xcb_void_cookie_t
1138 xcb_x_print_print_start_job_checked (xcb_connection_t *c /**< */,
1139 uint8_t output_mode /**< */);
1143 * @param c The connection
1144 * @return A cookie
1146 * Delivers a request to the X server.
1149 xcb_void_cookie_t
1150 xcb_x_print_print_start_job (xcb_connection_t *c /**< */,
1151 uint8_t output_mode /**< */);
1155 * @param c The connection
1156 * @return A cookie
1158 * Delivers a request to the X server.
1160 * This form can be used only if the request will not cause
1161 * a reply to be generated. Any returned error will be
1162 * saved for handling by xcb_request_check().
1164 xcb_void_cookie_t
1165 xcb_x_print_print_end_job_checked (xcb_connection_t *c /**< */,
1166 uint8_t cancel /**< */);
1170 * @param c The connection
1171 * @return A cookie
1173 * Delivers a request to the X server.
1176 xcb_void_cookie_t
1177 xcb_x_print_print_end_job (xcb_connection_t *c /**< */,
1178 uint8_t cancel /**< */);
1182 * @param c The connection
1183 * @return A cookie
1185 * Delivers a request to the X server.
1187 * This form can be used only if the request will not cause
1188 * a reply to be generated. Any returned error will be
1189 * saved for handling by xcb_request_check().
1191 xcb_void_cookie_t
1192 xcb_x_print_print_start_doc_checked (xcb_connection_t *c /**< */,
1193 uint8_t driver_mode /**< */);
1197 * @param c The connection
1198 * @return A cookie
1200 * Delivers a request to the X server.
1203 xcb_void_cookie_t
1204 xcb_x_print_print_start_doc (xcb_connection_t *c /**< */,
1205 uint8_t driver_mode /**< */);
1209 * @param c The connection
1210 * @return A cookie
1212 * Delivers a request to the X server.
1214 * This form can be used only if the request will not cause
1215 * a reply to be generated. Any returned error will be
1216 * saved for handling by xcb_request_check().
1218 xcb_void_cookie_t
1219 xcb_x_print_print_end_doc_checked (xcb_connection_t *c /**< */,
1220 uint8_t cancel /**< */);
1224 * @param c The connection
1225 * @return A cookie
1227 * Delivers a request to the X server.
1230 xcb_void_cookie_t
1231 xcb_x_print_print_end_doc (xcb_connection_t *c /**< */,
1232 uint8_t cancel /**< */);
1235 xcb_x_print_print_put_document_data_sizeof (const void *_buffer /**< */,
1236 uint32_t doc_format_len /**< */,
1237 uint32_t options_len /**< */);
1241 * @param c The connection
1242 * @return A cookie
1244 * Delivers a request to the X server.
1246 * This form can be used only if the request will not cause
1247 * a reply to be generated. Any returned error will be
1248 * saved for handling by xcb_request_check().
1250 xcb_void_cookie_t
1251 xcb_x_print_print_put_document_data_checked (xcb_connection_t *c /**< */,
1252 xcb_drawable_t drawable /**< */,
1253 uint32_t len_data /**< */,
1254 uint16_t len_fmt /**< */,
1255 uint16_t len_options /**< */,
1256 const uint8_t *data /**< */,
1257 uint32_t doc_format_len /**< */,
1258 const xcb_x_print_string8_t *doc_format /**< */,
1259 uint32_t options_len /**< */,
1260 const xcb_x_print_string8_t *options /**< */);
1264 * @param c The connection
1265 * @return A cookie
1267 * Delivers a request to the X server.
1270 xcb_void_cookie_t
1271 xcb_x_print_print_put_document_data (xcb_connection_t *c /**< */,
1272 xcb_drawable_t drawable /**< */,
1273 uint32_t len_data /**< */,
1274 uint16_t len_fmt /**< */,
1275 uint16_t len_options /**< */,
1276 const uint8_t *data /**< */,
1277 uint32_t doc_format_len /**< */,
1278 const xcb_x_print_string8_t *doc_format /**< */,
1279 uint32_t options_len /**< */,
1280 const xcb_x_print_string8_t *options /**< */);
1283 xcb_x_print_print_get_document_data_sizeof (const void *_buffer /**< */);
1287 * @param c The connection
1288 * @return A cookie
1290 * Delivers a request to the X server.
1293 xcb_x_print_print_get_document_data_cookie_t
1294 xcb_x_print_print_get_document_data (xcb_connection_t *c /**< */,
1295 xcb_x_print_pcontext_t context /**< */,
1296 uint32_t max_bytes /**< */);
1300 * @param c The connection
1301 * @return A cookie
1303 * Delivers a request to the X server.
1305 * This form can be used only if the request will cause
1306 * a reply to be generated. Any returned error will be
1307 * placed in the event queue.
1309 xcb_x_print_print_get_document_data_cookie_t
1310 xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c /**< */,
1311 xcb_x_print_pcontext_t context /**< */,
1312 uint32_t max_bytes /**< */);
1314 uint8_t *
1315 xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R /**< */);
1318 xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R /**< */);
1320 xcb_generic_iterator_t
1321 xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R /**< */);
1324 * Return the reply
1325 * @param c The connection
1326 * @param cookie The cookie
1327 * @param e The xcb_generic_error_t supplied
1329 * Returns the reply of the request asked by
1331 * The parameter @p e supplied to this function must be NULL if
1332 * xcb_x_print_print_get_document_data_unchecked(). is used.
1333 * Otherwise, it stores the error if any.
1335 * The returned value must be freed by the caller using free().
1337 xcb_x_print_print_get_document_data_reply_t *
1338 xcb_x_print_print_get_document_data_reply (xcb_connection_t *c /**< */,
1339 xcb_x_print_print_get_document_data_cookie_t cookie /**< */,
1340 xcb_generic_error_t **e /**< */);
1344 * @param c The connection
1345 * @return A cookie
1347 * Delivers a request to the X server.
1349 * This form can be used only if the request will not cause
1350 * a reply to be generated. Any returned error will be
1351 * saved for handling by xcb_request_check().
1353 xcb_void_cookie_t
1354 xcb_x_print_print_start_page_checked (xcb_connection_t *c /**< */,
1355 xcb_window_t window /**< */);
1359 * @param c The connection
1360 * @return A cookie
1362 * Delivers a request to the X server.
1365 xcb_void_cookie_t
1366 xcb_x_print_print_start_page (xcb_connection_t *c /**< */,
1367 xcb_window_t window /**< */);
1371 * @param c The connection
1372 * @return A cookie
1374 * Delivers a request to the X server.
1376 * This form can be used only if the request will not cause
1377 * a reply to be generated. Any returned error will be
1378 * saved for handling by xcb_request_check().
1380 xcb_void_cookie_t
1381 xcb_x_print_print_end_page_checked (xcb_connection_t *c /**< */,
1382 uint8_t cancel /**< */);
1386 * @param c The connection
1387 * @return A cookie
1389 * Delivers a request to the X server.
1392 xcb_void_cookie_t
1393 xcb_x_print_print_end_page (xcb_connection_t *c /**< */,
1394 uint8_t cancel /**< */);
1397 xcb_x_print_print_select_input_sizeof (const void *_buffer /**< */);
1401 * @param c The connection
1402 * @return A cookie
1404 * Delivers a request to the X server.
1406 * This form can be used only if the request will not cause
1407 * a reply to be generated. Any returned error will be
1408 * saved for handling by xcb_request_check().
1410 xcb_void_cookie_t
1411 xcb_x_print_print_select_input_checked (xcb_connection_t *c /**< */,
1412 xcb_x_print_pcontext_t context /**< */,
1413 uint32_t event_mask /**< */,
1414 const uint32_t *event_list /**< */);
1418 * @param c The connection
1419 * @return A cookie
1421 * Delivers a request to the X server.
1424 xcb_void_cookie_t
1425 xcb_x_print_print_select_input (xcb_connection_t *c /**< */,
1426 xcb_x_print_pcontext_t context /**< */,
1427 uint32_t event_mask /**< */,
1428 const uint32_t *event_list /**< */);
1431 xcb_x_print_print_input_selected_serialize (void **_buffer /**< */,
1432 const xcb_x_print_print_input_selected_reply_t *_aux /**< */,
1433 const uint32_t *event_list /**< */,
1434 const uint32_t *all_events_list /**< */);
1437 xcb_x_print_print_input_selected_unserialize (const void *_buffer /**< */,
1438 xcb_x_print_print_input_selected_reply_t **_aux /**< */);
1441 xcb_x_print_print_input_selected_sizeof (const void *_buffer /**< */);
1445 * @param c The connection
1446 * @return A cookie
1448 * Delivers a request to the X server.
1451 xcb_x_print_print_input_selected_cookie_t
1452 xcb_x_print_print_input_selected (xcb_connection_t *c /**< */,
1453 xcb_x_print_pcontext_t context /**< */);
1457 * @param c The connection
1458 * @return A cookie
1460 * Delivers a request to the X server.
1462 * This form can be used only if the request will cause
1463 * a reply to be generated. Any returned error will be
1464 * placed in the event queue.
1466 xcb_x_print_print_input_selected_cookie_t
1467 xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c /**< */,
1468 xcb_x_print_pcontext_t context /**< */);
1470 uint32_t *
1471 xcb_x_print_print_input_selected_event_list (const xcb_x_print_print_input_selected_reply_t *R /**< */);
1474 xcb_x_print_print_input_selected_event_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */);
1476 xcb_generic_iterator_t
1477 xcb_x_print_print_input_selected_event_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */);
1479 uint32_t *
1480 xcb_x_print_print_input_selected_all_events_list (const xcb_x_print_print_input_selected_reply_t *R /**< */);
1483 xcb_x_print_print_input_selected_all_events_list_length (const xcb_x_print_print_input_selected_reply_t *R /**< */);
1485 xcb_generic_iterator_t
1486 xcb_x_print_print_input_selected_all_events_list_end (const xcb_x_print_print_input_selected_reply_t *R /**< */);
1489 * Return the reply
1490 * @param c The connection
1491 * @param cookie The cookie
1492 * @param e The xcb_generic_error_t supplied
1494 * Returns the reply of the request asked by
1496 * The parameter @p e supplied to this function must be NULL if
1497 * xcb_x_print_print_input_selected_unchecked(). is used.
1498 * Otherwise, it stores the error if any.
1500 * The returned value must be freed by the caller using free().
1502 xcb_x_print_print_input_selected_reply_t *
1503 xcb_x_print_print_input_selected_reply (xcb_connection_t *c /**< */,
1504 xcb_x_print_print_input_selected_cookie_t cookie /**< */,
1505 xcb_generic_error_t **e /**< */);
1508 xcb_x_print_print_get_attributes_sizeof (const void *_buffer /**< */);
1512 * @param c The connection
1513 * @return A cookie
1515 * Delivers a request to the X server.
1518 xcb_x_print_print_get_attributes_cookie_t
1519 xcb_x_print_print_get_attributes (xcb_connection_t *c /**< */,
1520 xcb_x_print_pcontext_t context /**< */,
1521 uint8_t pool /**< */);
1525 * @param c The connection
1526 * @return A cookie
1528 * Delivers a request to the X server.
1530 * This form can be used only if the request will cause
1531 * a reply to be generated. Any returned error will be
1532 * placed in the event queue.
1534 xcb_x_print_print_get_attributes_cookie_t
1535 xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c /**< */,
1536 xcb_x_print_pcontext_t context /**< */,
1537 uint8_t pool /**< */);
1539 xcb_x_print_string8_t *
1540 xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R /**< */);
1543 xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R /**< */);
1545 xcb_generic_iterator_t
1546 xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R /**< */);
1549 * Return the reply
1550 * @param c The connection
1551 * @param cookie The cookie
1552 * @param e The xcb_generic_error_t supplied
1554 * Returns the reply of the request asked by
1556 * The parameter @p e supplied to this function must be NULL if
1557 * xcb_x_print_print_get_attributes_unchecked(). is used.
1558 * Otherwise, it stores the error if any.
1560 * The returned value must be freed by the caller using free().
1562 xcb_x_print_print_get_attributes_reply_t *
1563 xcb_x_print_print_get_attributes_reply (xcb_connection_t *c /**< */,
1564 xcb_x_print_print_get_attributes_cookie_t cookie /**< */,
1565 xcb_generic_error_t **e /**< */);
1568 xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer /**< */);
1572 * @param c The connection
1573 * @return A cookie
1575 * Delivers a request to the X server.
1578 xcb_x_print_print_get_one_attributes_cookie_t
1579 xcb_x_print_print_get_one_attributes (xcb_connection_t *c /**< */,
1580 xcb_x_print_pcontext_t context /**< */,
1581 uint32_t nameLen /**< */,
1582 uint8_t pool /**< */,
1583 const xcb_x_print_string8_t *name /**< */);
1587 * @param c The connection
1588 * @return A cookie
1590 * Delivers a request to the X server.
1592 * This form can be used only if the request will cause
1593 * a reply to be generated. Any returned error will be
1594 * placed in the event queue.
1596 xcb_x_print_print_get_one_attributes_cookie_t
1597 xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c /**< */,
1598 xcb_x_print_pcontext_t context /**< */,
1599 uint32_t nameLen /**< */,
1600 uint8_t pool /**< */,
1601 const xcb_x_print_string8_t *name /**< */);
1603 xcb_x_print_string8_t *
1604 xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */);
1607 xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */);
1609 xcb_generic_iterator_t
1610 xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R /**< */);
1613 * Return the reply
1614 * @param c The connection
1615 * @param cookie The cookie
1616 * @param e The xcb_generic_error_t supplied
1618 * Returns the reply of the request asked by
1620 * The parameter @p e supplied to this function must be NULL if
1621 * xcb_x_print_print_get_one_attributes_unchecked(). is used.
1622 * Otherwise, it stores the error if any.
1624 * The returned value must be freed by the caller using free().
1626 xcb_x_print_print_get_one_attributes_reply_t *
1627 xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c /**< */,
1628 xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */,
1629 xcb_generic_error_t **e /**< */);
1632 xcb_x_print_print_set_attributes_sizeof (const void *_buffer /**< */,
1633 uint32_t attributes_len /**< */);
1637 * @param c The connection
1638 * @return A cookie
1640 * Delivers a request to the X server.
1642 * This form can be used only if the request will not cause
1643 * a reply to be generated. Any returned error will be
1644 * saved for handling by xcb_request_check().
1646 xcb_void_cookie_t
1647 xcb_x_print_print_set_attributes_checked (xcb_connection_t *c /**< */,
1648 xcb_x_print_pcontext_t context /**< */,
1649 uint32_t stringLen /**< */,
1650 uint8_t pool /**< */,
1651 uint8_t rule /**< */,
1652 uint32_t attributes_len /**< */,
1653 const xcb_x_print_string8_t *attributes /**< */);
1657 * @param c The connection
1658 * @return A cookie
1660 * Delivers a request to the X server.
1663 xcb_void_cookie_t
1664 xcb_x_print_print_set_attributes (xcb_connection_t *c /**< */,
1665 xcb_x_print_pcontext_t context /**< */,
1666 uint32_t stringLen /**< */,
1667 uint8_t pool /**< */,
1668 uint8_t rule /**< */,
1669 uint32_t attributes_len /**< */,
1670 const xcb_x_print_string8_t *attributes /**< */);
1674 * @param c The connection
1675 * @return A cookie
1677 * Delivers a request to the X server.
1680 xcb_x_print_print_get_page_dimensions_cookie_t
1681 xcb_x_print_print_get_page_dimensions (xcb_connection_t *c /**< */,
1682 xcb_x_print_pcontext_t context /**< */);
1686 * @param c The connection
1687 * @return A cookie
1689 * Delivers a request to the X server.
1691 * This form can be used only if the request will cause
1692 * a reply to be generated. Any returned error will be
1693 * placed in the event queue.
1695 xcb_x_print_print_get_page_dimensions_cookie_t
1696 xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c /**< */,
1697 xcb_x_print_pcontext_t context /**< */);
1700 * Return the reply
1701 * @param c The connection
1702 * @param cookie The cookie
1703 * @param e The xcb_generic_error_t supplied
1705 * Returns the reply of the request asked by
1707 * The parameter @p e supplied to this function must be NULL if
1708 * xcb_x_print_print_get_page_dimensions_unchecked(). is used.
1709 * Otherwise, it stores the error if any.
1711 * The returned value must be freed by the caller using free().
1713 xcb_x_print_print_get_page_dimensions_reply_t *
1714 xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c /**< */,
1715 xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */,
1716 xcb_generic_error_t **e /**< */);
1719 xcb_x_print_print_query_screens_sizeof (const void *_buffer /**< */);
1723 * @param c The connection
1724 * @return A cookie
1726 * Delivers a request to the X server.
1729 xcb_x_print_print_query_screens_cookie_t
1730 xcb_x_print_print_query_screens (xcb_connection_t *c /**< */);
1734 * @param c The connection
1735 * @return A cookie
1737 * Delivers a request to the X server.
1739 * This form can be used only if the request will cause
1740 * a reply to be generated. Any returned error will be
1741 * placed in the event queue.
1743 xcb_x_print_print_query_screens_cookie_t
1744 xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c /**< */);
1746 xcb_window_t *
1747 xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R /**< */);
1750 xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R /**< */);
1752 xcb_generic_iterator_t
1753 xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R /**< */);
1756 * Return the reply
1757 * @param c The connection
1758 * @param cookie The cookie
1759 * @param e The xcb_generic_error_t supplied
1761 * Returns the reply of the request asked by
1763 * The parameter @p e supplied to this function must be NULL if
1764 * xcb_x_print_print_query_screens_unchecked(). is used.
1765 * Otherwise, it stores the error if any.
1767 * The returned value must be freed by the caller using free().
1769 xcb_x_print_print_query_screens_reply_t *
1770 xcb_x_print_print_query_screens_reply (xcb_connection_t *c /**< */,
1771 xcb_x_print_print_query_screens_cookie_t cookie /**< */,
1772 xcb_generic_error_t **e /**< */);
1776 * @param c The connection
1777 * @return A cookie
1779 * Delivers a request to the X server.
1782 xcb_x_print_print_set_image_resolution_cookie_t
1783 xcb_x_print_print_set_image_resolution (xcb_connection_t *c /**< */,
1784 xcb_x_print_pcontext_t context /**< */,
1785 uint16_t image_resolution /**< */);
1789 * @param c The connection
1790 * @return A cookie
1792 * Delivers a request to the X server.
1794 * This form can be used only if the request will cause
1795 * a reply to be generated. Any returned error will be
1796 * placed in the event queue.
1798 xcb_x_print_print_set_image_resolution_cookie_t
1799 xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c /**< */,
1800 xcb_x_print_pcontext_t context /**< */,
1801 uint16_t image_resolution /**< */);
1804 * Return the reply
1805 * @param c The connection
1806 * @param cookie The cookie
1807 * @param e The xcb_generic_error_t supplied
1809 * Returns the reply of the request asked by
1811 * The parameter @p e supplied to this function must be NULL if
1812 * xcb_x_print_print_set_image_resolution_unchecked(). is used.
1813 * Otherwise, it stores the error if any.
1815 * The returned value must be freed by the caller using free().
1817 xcb_x_print_print_set_image_resolution_reply_t *
1818 xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c /**< */,
1819 xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */,
1820 xcb_generic_error_t **e /**< */);
1824 * @param c The connection
1825 * @return A cookie
1827 * Delivers a request to the X server.
1830 xcb_x_print_print_get_image_resolution_cookie_t
1831 xcb_x_print_print_get_image_resolution (xcb_connection_t *c /**< */,
1832 xcb_x_print_pcontext_t context /**< */);
1836 * @param c The connection
1837 * @return A cookie
1839 * Delivers a request to the X server.
1841 * This form can be used only if the request will cause
1842 * a reply to be generated. Any returned error will be
1843 * placed in the event queue.
1845 xcb_x_print_print_get_image_resolution_cookie_t
1846 xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c /**< */,
1847 xcb_x_print_pcontext_t context /**< */);
1850 * Return the reply
1851 * @param c The connection
1852 * @param cookie The cookie
1853 * @param e The xcb_generic_error_t supplied
1855 * Returns the reply of the request asked by
1857 * The parameter @p e supplied to this function must be NULL if
1858 * xcb_x_print_print_get_image_resolution_unchecked(). is used.
1859 * Otherwise, it stores the error if any.
1861 * The returned value must be freed by the caller using free().
1863 xcb_x_print_print_get_image_resolution_reply_t *
1864 xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c /**< */,
1865 xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */,
1866 xcb_generic_error_t **e /**< */);
1869 #ifdef __cplusplus
1871 #endif
1873 #endif
1876 * @}