xprint.h 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889
  1. /*
  2. * This file generated automatically from xprint.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_XPrint_API XCB XPrint API
  7. * @brief XPrint XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __XPRINT_H
  11. #define __XPRINT_H
  12. #include "xcb.h"
  13. #include "xproto.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define XCB_XPRINT_MAJOR_VERSION 1
  18. #define XCB_XPRINT_MINOR_VERSION 0
  19. extern xcb_extension_t xcb_x_print_id;
  20. typedef char xcb_x_print_string8_t;
  21. /**
  22. * @brief xcb_x_print_string8_iterator_t
  23. **/
  24. typedef struct xcb_x_print_string8_iterator_t {
  25. xcb_x_print_string8_t *data;
  26. int rem;
  27. int index;
  28. } xcb_x_print_string8_iterator_t;
  29. /**
  30. * @brief xcb_x_print_printer_t
  31. **/
  32. typedef struct xcb_x_print_printer_t {
  33. uint32_t nameLen;
  34. uint32_t descLen;
  35. } xcb_x_print_printer_t;
  36. /**
  37. * @brief xcb_x_print_printer_iterator_t
  38. **/
  39. typedef struct xcb_x_print_printer_iterator_t {
  40. xcb_x_print_printer_t *data;
  41. int rem;
  42. int index;
  43. } xcb_x_print_printer_iterator_t;
  44. typedef uint32_t xcb_x_print_pcontext_t;
  45. /**
  46. * @brief xcb_x_print_pcontext_iterator_t
  47. **/
  48. typedef struct xcb_x_print_pcontext_iterator_t {
  49. xcb_x_print_pcontext_t *data;
  50. int rem;
  51. int index;
  52. } xcb_x_print_pcontext_iterator_t;
  53. typedef enum xcb_x_print_get_doc_t {
  54. XCB_X_PRINT_GET_DOC_FINISHED = 0,
  55. XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1
  56. } xcb_x_print_get_doc_t;
  57. typedef enum xcb_x_print_ev_mask_t {
  58. XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0,
  59. XCB_X_PRINT_EV_MASK_PRINT_MASK = 1,
  60. XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2
  61. } xcb_x_print_ev_mask_t;
  62. typedef enum xcb_x_print_detail_t {
  63. XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1,
  64. XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2,
  65. XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3,
  66. XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4,
  67. XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5,
  68. XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6
  69. } xcb_x_print_detail_t;
  70. typedef enum xcb_x_print_attr_t {
  71. XCB_X_PRINT_ATTR_JOB_ATTR = 1,
  72. XCB_X_PRINT_ATTR_DOC_ATTR = 2,
  73. XCB_X_PRINT_ATTR_PAGE_ATTR = 3,
  74. XCB_X_PRINT_ATTR_PRINTER_ATTR = 4,
  75. XCB_X_PRINT_ATTR_SERVER_ATTR = 5,
  76. XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6,
  77. XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7
  78. } xcb_x_print_attr_t;
  79. /**
  80. * @brief xcb_x_print_print_query_version_cookie_t
  81. **/
  82. typedef struct xcb_x_print_print_query_version_cookie_t {
  83. unsigned int sequence;
  84. } xcb_x_print_print_query_version_cookie_t;
  85. /** Opcode for xcb_x_print_print_query_version. */
  86. #define XCB_X_PRINT_PRINT_QUERY_VERSION 0
  87. /**
  88. * @brief xcb_x_print_print_query_version_request_t
  89. **/
  90. typedef struct xcb_x_print_print_query_version_request_t {
  91. uint8_t major_opcode;
  92. uint8_t minor_opcode;
  93. uint16_t length;
  94. } xcb_x_print_print_query_version_request_t;
  95. /**
  96. * @brief xcb_x_print_print_query_version_reply_t
  97. **/
  98. typedef struct xcb_x_print_print_query_version_reply_t {
  99. uint8_t response_type;
  100. uint8_t pad0;
  101. uint16_t sequence;
  102. uint32_t length;
  103. uint16_t major_version;
  104. uint16_t minor_version;
  105. } xcb_x_print_print_query_version_reply_t;
  106. /**
  107. * @brief xcb_x_print_print_get_printer_list_cookie_t
  108. **/
  109. typedef struct xcb_x_print_print_get_printer_list_cookie_t {
  110. unsigned int sequence;
  111. } xcb_x_print_print_get_printer_list_cookie_t;
  112. /** Opcode for xcb_x_print_print_get_printer_list. */
  113. #define XCB_X_PRINT_PRINT_GET_PRINTER_LIST 1
  114. /**
  115. * @brief xcb_x_print_print_get_printer_list_request_t
  116. **/
  117. typedef struct xcb_x_print_print_get_printer_list_request_t {
  118. uint8_t major_opcode;
  119. uint8_t minor_opcode;
  120. uint16_t length;
  121. uint32_t printerNameLen;
  122. uint32_t localeLen;
  123. } xcb_x_print_print_get_printer_list_request_t;
  124. /**
  125. * @brief xcb_x_print_print_get_printer_list_reply_t
  126. **/
  127. typedef struct xcb_x_print_print_get_printer_list_reply_t {
  128. uint8_t response_type;
  129. uint8_t pad0;
  130. uint16_t sequence;
  131. uint32_t length;
  132. uint32_t listCount;
  133. uint8_t pad1[20];
  134. } xcb_x_print_print_get_printer_list_reply_t;
  135. /** Opcode for xcb_x_print_print_rehash_printer_list. */
  136. #define XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST 20
  137. /**
  138. * @brief xcb_x_print_print_rehash_printer_list_request_t
  139. **/
  140. typedef struct xcb_x_print_print_rehash_printer_list_request_t {
  141. uint8_t major_opcode;
  142. uint8_t minor_opcode;
  143. uint16_t length;
  144. } xcb_x_print_print_rehash_printer_list_request_t;
  145. /** Opcode for xcb_x_print_create_context. */
  146. #define XCB_X_PRINT_CREATE_CONTEXT 2
  147. /**
  148. * @brief xcb_x_print_create_context_request_t
  149. **/
  150. typedef struct xcb_x_print_create_context_request_t {
  151. uint8_t major_opcode;
  152. uint8_t minor_opcode;
  153. uint16_t length;
  154. uint32_t context_id;
  155. uint32_t printerNameLen;
  156. uint32_t localeLen;
  157. } xcb_x_print_create_context_request_t;
  158. /** Opcode for xcb_x_print_print_set_context. */
  159. #define XCB_X_PRINT_PRINT_SET_CONTEXT 3
  160. /**
  161. * @brief xcb_x_print_print_set_context_request_t
  162. **/
  163. typedef struct xcb_x_print_print_set_context_request_t {
  164. uint8_t major_opcode;
  165. uint8_t minor_opcode;
  166. uint16_t length;
  167. uint32_t context;
  168. } xcb_x_print_print_set_context_request_t;
  169. /**
  170. * @brief xcb_x_print_print_get_context_cookie_t
  171. **/
  172. typedef struct xcb_x_print_print_get_context_cookie_t {
  173. unsigned int sequence;
  174. } xcb_x_print_print_get_context_cookie_t;
  175. /** Opcode for xcb_x_print_print_get_context. */
  176. #define XCB_X_PRINT_PRINT_GET_CONTEXT 4
  177. /**
  178. * @brief xcb_x_print_print_get_context_request_t
  179. **/
  180. typedef struct xcb_x_print_print_get_context_request_t {
  181. uint8_t major_opcode;
  182. uint8_t minor_opcode;
  183. uint16_t length;
  184. } xcb_x_print_print_get_context_request_t;
  185. /**
  186. * @brief xcb_x_print_print_get_context_reply_t
  187. **/
  188. typedef struct xcb_x_print_print_get_context_reply_t {
  189. uint8_t response_type;
  190. uint8_t pad0;
  191. uint16_t sequence;
  192. uint32_t length;
  193. uint32_t context;
  194. } xcb_x_print_print_get_context_reply_t;
  195. /** Opcode for xcb_x_print_print_destroy_context. */
  196. #define XCB_X_PRINT_PRINT_DESTROY_CONTEXT 5
  197. /**
  198. * @brief xcb_x_print_print_destroy_context_request_t
  199. **/
  200. typedef struct xcb_x_print_print_destroy_context_request_t {
  201. uint8_t major_opcode;
  202. uint8_t minor_opcode;
  203. uint16_t length;
  204. uint32_t context;
  205. } xcb_x_print_print_destroy_context_request_t;
  206. /**
  207. * @brief xcb_x_print_print_get_screen_of_context_cookie_t
  208. **/
  209. typedef struct xcb_x_print_print_get_screen_of_context_cookie_t {
  210. unsigned int sequence;
  211. } xcb_x_print_print_get_screen_of_context_cookie_t;
  212. /** Opcode for xcb_x_print_print_get_screen_of_context. */
  213. #define XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT 6
  214. /**
  215. * @brief xcb_x_print_print_get_screen_of_context_request_t
  216. **/
  217. typedef struct xcb_x_print_print_get_screen_of_context_request_t {
  218. uint8_t major_opcode;
  219. uint8_t minor_opcode;
  220. uint16_t length;
  221. } xcb_x_print_print_get_screen_of_context_request_t;
  222. /**
  223. * @brief xcb_x_print_print_get_screen_of_context_reply_t
  224. **/
  225. typedef struct xcb_x_print_print_get_screen_of_context_reply_t {
  226. uint8_t response_type;
  227. uint8_t pad0;
  228. uint16_t sequence;
  229. uint32_t length;
  230. xcb_window_t root;
  231. } xcb_x_print_print_get_screen_of_context_reply_t;
  232. /** Opcode for xcb_x_print_print_start_job. */
  233. #define XCB_X_PRINT_PRINT_START_JOB 7
  234. /**
  235. * @brief xcb_x_print_print_start_job_request_t
  236. **/
  237. typedef struct xcb_x_print_print_start_job_request_t {
  238. uint8_t major_opcode;
  239. uint8_t minor_opcode;
  240. uint16_t length;
  241. uint8_t output_mode;
  242. } xcb_x_print_print_start_job_request_t;
  243. /** Opcode for xcb_x_print_print_end_job. */
  244. #define XCB_X_PRINT_PRINT_END_JOB 8
  245. /**
  246. * @brief xcb_x_print_print_end_job_request_t
  247. **/
  248. typedef struct xcb_x_print_print_end_job_request_t {
  249. uint8_t major_opcode;
  250. uint8_t minor_opcode;
  251. uint16_t length;
  252. uint8_t cancel;
  253. } xcb_x_print_print_end_job_request_t;
  254. /** Opcode for xcb_x_print_print_start_doc. */
  255. #define XCB_X_PRINT_PRINT_START_DOC 9
  256. /**
  257. * @brief xcb_x_print_print_start_doc_request_t
  258. **/
  259. typedef struct xcb_x_print_print_start_doc_request_t {
  260. uint8_t major_opcode;
  261. uint8_t minor_opcode;
  262. uint16_t length;
  263. uint8_t driver_mode;
  264. } xcb_x_print_print_start_doc_request_t;
  265. /** Opcode for xcb_x_print_print_end_doc. */
  266. #define XCB_X_PRINT_PRINT_END_DOC 10
  267. /**
  268. * @brief xcb_x_print_print_end_doc_request_t
  269. **/
  270. typedef struct xcb_x_print_print_end_doc_request_t {
  271. uint8_t major_opcode;
  272. uint8_t minor_opcode;
  273. uint16_t length;
  274. uint8_t cancel;
  275. } xcb_x_print_print_end_doc_request_t;
  276. /** Opcode for xcb_x_print_print_put_document_data. */
  277. #define XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA 11
  278. /**
  279. * @brief xcb_x_print_print_put_document_data_request_t
  280. **/
  281. typedef struct xcb_x_print_print_put_document_data_request_t {
  282. uint8_t major_opcode;
  283. uint8_t minor_opcode;
  284. uint16_t length;
  285. xcb_drawable_t drawable;
  286. uint32_t len_data;
  287. uint16_t len_fmt;
  288. uint16_t len_options;
  289. } xcb_x_print_print_put_document_data_request_t;
  290. /**
  291. * @brief xcb_x_print_print_get_document_data_cookie_t
  292. **/
  293. typedef struct xcb_x_print_print_get_document_data_cookie_t {
  294. unsigned int sequence;
  295. } xcb_x_print_print_get_document_data_cookie_t;
  296. /** Opcode for xcb_x_print_print_get_document_data. */
  297. #define XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA 12
  298. /**
  299. * @brief xcb_x_print_print_get_document_data_request_t
  300. **/
  301. typedef struct xcb_x_print_print_get_document_data_request_t {
  302. uint8_t major_opcode;
  303. uint8_t minor_opcode;
  304. uint16_t length;
  305. xcb_x_print_pcontext_t context;
  306. uint32_t max_bytes;
  307. } xcb_x_print_print_get_document_data_request_t;
  308. /**
  309. * @brief xcb_x_print_print_get_document_data_reply_t
  310. **/
  311. typedef struct xcb_x_print_print_get_document_data_reply_t {
  312. uint8_t response_type;
  313. uint8_t pad0;
  314. uint16_t sequence;
  315. uint32_t length;
  316. uint32_t status_code;
  317. uint32_t finished_flag;
  318. uint32_t dataLen;
  319. uint8_t pad1[12];
  320. } xcb_x_print_print_get_document_data_reply_t;
  321. /** Opcode for xcb_x_print_print_start_page. */
  322. #define XCB_X_PRINT_PRINT_START_PAGE 13
  323. /**
  324. * @brief xcb_x_print_print_start_page_request_t
  325. **/
  326. typedef struct xcb_x_print_print_start_page_request_t {
  327. uint8_t major_opcode;
  328. uint8_t minor_opcode;
  329. uint16_t length;
  330. xcb_window_t window;
  331. } xcb_x_print_print_start_page_request_t;
  332. /** Opcode for xcb_x_print_print_end_page. */
  333. #define XCB_X_PRINT_PRINT_END_PAGE 14
  334. /**
  335. * @brief xcb_x_print_print_end_page_request_t
  336. **/
  337. typedef struct xcb_x_print_print_end_page_request_t {
  338. uint8_t major_opcode;
  339. uint8_t minor_opcode;
  340. uint16_t length;
  341. uint8_t cancel;
  342. uint8_t pad0[3];
  343. } xcb_x_print_print_end_page_request_t;
  344. /** Opcode for xcb_x_print_print_select_input. */
  345. #define XCB_X_PRINT_PRINT_SELECT_INPUT 15
  346. /**
  347. * @brief xcb_x_print_print_select_input_request_t
  348. **/
  349. typedef struct xcb_x_print_print_select_input_request_t {
  350. uint8_t major_opcode;
  351. uint8_t minor_opcode;
  352. uint16_t length;
  353. xcb_x_print_pcontext_t context;
  354. uint32_t event_mask;
  355. } xcb_x_print_print_select_input_request_t;
  356. /**
  357. * @brief xcb_x_print_print_input_selected_cookie_t
  358. **/
  359. typedef struct xcb_x_print_print_input_selected_cookie_t {
  360. unsigned int sequence;
  361. } xcb_x_print_print_input_selected_cookie_t;
  362. /** Opcode for xcb_x_print_print_input_selected. */
  363. #define XCB_X_PRINT_PRINT_INPUT_SELECTED 16
  364. /**
  365. * @brief xcb_x_print_print_input_selected_request_t
  366. **/
  367. typedef struct xcb_x_print_print_input_selected_request_t {
  368. uint8_t major_opcode;
  369. uint8_t minor_opcode;
  370. uint16_t length;
  371. xcb_x_print_pcontext_t context;
  372. } xcb_x_print_print_input_selected_request_t;
  373. /**
  374. * @brief xcb_x_print_print_input_selected_reply_t
  375. **/
  376. typedef struct xcb_x_print_print_input_selected_reply_t {
  377. uint8_t response_type;
  378. uint8_t pad0;
  379. uint16_t sequence;
  380. uint32_t length;
  381. uint32_t event_mask;
  382. uint32_t all_events_mask;
  383. } xcb_x_print_print_input_selected_reply_t;
  384. /**
  385. * @brief xcb_x_print_print_get_attributes_cookie_t
  386. **/
  387. typedef struct xcb_x_print_print_get_attributes_cookie_t {
  388. unsigned int sequence;
  389. } xcb_x_print_print_get_attributes_cookie_t;
  390. /** Opcode for xcb_x_print_print_get_attributes. */
  391. #define XCB_X_PRINT_PRINT_GET_ATTRIBUTES 17
  392. /**
  393. * @brief xcb_x_print_print_get_attributes_request_t
  394. **/
  395. typedef struct xcb_x_print_print_get_attributes_request_t {
  396. uint8_t major_opcode;
  397. uint8_t minor_opcode;
  398. uint16_t length;
  399. xcb_x_print_pcontext_t context;
  400. uint8_t pool;
  401. uint8_t pad0[3];
  402. } xcb_x_print_print_get_attributes_request_t;
  403. /**
  404. * @brief xcb_x_print_print_get_attributes_reply_t
  405. **/
  406. typedef struct xcb_x_print_print_get_attributes_reply_t {
  407. uint8_t response_type;
  408. uint8_t pad0;
  409. uint16_t sequence;
  410. uint32_t length;
  411. uint32_t stringLen;
  412. uint8_t pad1[20];
  413. } xcb_x_print_print_get_attributes_reply_t;
  414. /**
  415. * @brief xcb_x_print_print_get_one_attributes_cookie_t
  416. **/
  417. typedef struct xcb_x_print_print_get_one_attributes_cookie_t {
  418. unsigned int sequence;
  419. } xcb_x_print_print_get_one_attributes_cookie_t;
  420. /** Opcode for xcb_x_print_print_get_one_attributes. */
  421. #define XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES 19
  422. /**
  423. * @brief xcb_x_print_print_get_one_attributes_request_t
  424. **/
  425. typedef struct xcb_x_print_print_get_one_attributes_request_t {
  426. uint8_t major_opcode;
  427. uint8_t minor_opcode;
  428. uint16_t length;
  429. xcb_x_print_pcontext_t context;
  430. uint32_t nameLen;
  431. uint8_t pool;
  432. uint8_t pad0[3];
  433. } xcb_x_print_print_get_one_attributes_request_t;
  434. /**
  435. * @brief xcb_x_print_print_get_one_attributes_reply_t
  436. **/
  437. typedef struct xcb_x_print_print_get_one_attributes_reply_t {
  438. uint8_t response_type;
  439. uint8_t pad0;
  440. uint16_t sequence;
  441. uint32_t length;
  442. uint32_t valueLen;
  443. uint8_t pad1[20];
  444. } xcb_x_print_print_get_one_attributes_reply_t;
  445. /** Opcode for xcb_x_print_print_set_attributes. */
  446. #define XCB_X_PRINT_PRINT_SET_ATTRIBUTES 18
  447. /**
  448. * @brief xcb_x_print_print_set_attributes_request_t
  449. **/
  450. typedef struct xcb_x_print_print_set_attributes_request_t {
  451. uint8_t major_opcode;
  452. uint8_t minor_opcode;
  453. uint16_t length;
  454. xcb_x_print_pcontext_t context;
  455. uint32_t stringLen;
  456. uint8_t pool;
  457. uint8_t rule;
  458. uint8_t pad0[2];
  459. } xcb_x_print_print_set_attributes_request_t;
  460. /**
  461. * @brief xcb_x_print_print_get_page_dimensions_cookie_t
  462. **/
  463. typedef struct xcb_x_print_print_get_page_dimensions_cookie_t {
  464. unsigned int sequence;
  465. } xcb_x_print_print_get_page_dimensions_cookie_t;
  466. /** Opcode for xcb_x_print_print_get_page_dimensions. */
  467. #define XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS 21
  468. /**
  469. * @brief xcb_x_print_print_get_page_dimensions_request_t
  470. **/
  471. typedef struct xcb_x_print_print_get_page_dimensions_request_t {
  472. uint8_t major_opcode;
  473. uint8_t minor_opcode;
  474. uint16_t length;
  475. xcb_x_print_pcontext_t context;
  476. } xcb_x_print_print_get_page_dimensions_request_t;
  477. /**
  478. * @brief xcb_x_print_print_get_page_dimensions_reply_t
  479. **/
  480. typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
  481. uint8_t response_type;
  482. uint8_t pad0;
  483. uint16_t sequence;
  484. uint32_t length;
  485. uint16_t width;
  486. uint16_t height;
  487. uint16_t offset_x;
  488. uint16_t offset_y;
  489. uint16_t reproducible_width;
  490. uint16_t reproducible_height;
  491. } xcb_x_print_print_get_page_dimensions_reply_t;
  492. /**
  493. * @brief xcb_x_print_print_query_screens_cookie_t
  494. **/
  495. typedef struct xcb_x_print_print_query_screens_cookie_t {
  496. unsigned int sequence;
  497. } xcb_x_print_print_query_screens_cookie_t;
  498. /** Opcode for xcb_x_print_print_query_screens. */
  499. #define XCB_X_PRINT_PRINT_QUERY_SCREENS 22
  500. /**
  501. * @brief xcb_x_print_print_query_screens_request_t
  502. **/
  503. typedef struct xcb_x_print_print_query_screens_request_t {
  504. uint8_t major_opcode;
  505. uint8_t minor_opcode;
  506. uint16_t length;
  507. } xcb_x_print_print_query_screens_request_t;
  508. /**
  509. * @brief xcb_x_print_print_query_screens_reply_t
  510. **/
  511. typedef struct xcb_x_print_print_query_screens_reply_t {
  512. uint8_t response_type;
  513. uint8_t pad0;
  514. uint16_t sequence;
  515. uint32_t length;
  516. uint32_t listCount;
  517. uint8_t pad1[20];
  518. } xcb_x_print_print_query_screens_reply_t;
  519. /**
  520. * @brief xcb_x_print_print_set_image_resolution_cookie_t
  521. **/
  522. typedef struct xcb_x_print_print_set_image_resolution_cookie_t {
  523. unsigned int sequence;
  524. } xcb_x_print_print_set_image_resolution_cookie_t;
  525. /** Opcode for xcb_x_print_print_set_image_resolution. */
  526. #define XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION 23
  527. /**
  528. * @brief xcb_x_print_print_set_image_resolution_request_t
  529. **/
  530. typedef struct xcb_x_print_print_set_image_resolution_request_t {
  531. uint8_t major_opcode;
  532. uint8_t minor_opcode;
  533. uint16_t length;
  534. xcb_x_print_pcontext_t context;
  535. uint16_t image_resolution;
  536. } xcb_x_print_print_set_image_resolution_request_t;
  537. /**
  538. * @brief xcb_x_print_print_set_image_resolution_reply_t
  539. **/
  540. typedef struct xcb_x_print_print_set_image_resolution_reply_t {
  541. uint8_t response_type;
  542. uint8_t status;
  543. uint16_t sequence;
  544. uint32_t length;
  545. uint16_t previous_resolutions;
  546. } xcb_x_print_print_set_image_resolution_reply_t;
  547. /**
  548. * @brief xcb_x_print_print_get_image_resolution_cookie_t
  549. **/
  550. typedef struct xcb_x_print_print_get_image_resolution_cookie_t {
  551. unsigned int sequence;
  552. } xcb_x_print_print_get_image_resolution_cookie_t;
  553. /** Opcode for xcb_x_print_print_get_image_resolution. */
  554. #define XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION 24
  555. /**
  556. * @brief xcb_x_print_print_get_image_resolution_request_t
  557. **/
  558. typedef struct xcb_x_print_print_get_image_resolution_request_t {
  559. uint8_t major_opcode;
  560. uint8_t minor_opcode;
  561. uint16_t length;
  562. xcb_x_print_pcontext_t context;
  563. } xcb_x_print_print_get_image_resolution_request_t;
  564. /**
  565. * @brief xcb_x_print_print_get_image_resolution_reply_t
  566. **/
  567. typedef struct xcb_x_print_print_get_image_resolution_reply_t {
  568. uint8_t response_type;
  569. uint8_t pad0;
  570. uint16_t sequence;
  571. uint32_t length;
  572. uint16_t image_resolution;
  573. } xcb_x_print_print_get_image_resolution_reply_t;
  574. /** Opcode for xcb_x_print_notify. */
  575. #define XCB_X_PRINT_NOTIFY 0
  576. /**
  577. * @brief xcb_x_print_notify_event_t
  578. **/
  579. typedef struct xcb_x_print_notify_event_t {
  580. uint8_t response_type;
  581. uint8_t detail;
  582. uint16_t sequence;
  583. xcb_x_print_pcontext_t context;
  584. uint8_t cancel;
  585. } xcb_x_print_notify_event_t;
  586. /** Opcode for xcb_x_print_attribut_notify. */
  587. #define XCB_X_PRINT_ATTRIBUT_NOTIFY 1
  588. /**
  589. * @brief xcb_x_print_attribut_notify_event_t
  590. **/
  591. typedef struct xcb_x_print_attribut_notify_event_t {
  592. uint8_t response_type;
  593. uint8_t detail;
  594. uint16_t sequence;
  595. xcb_x_print_pcontext_t context;
  596. } xcb_x_print_attribut_notify_event_t;
  597. /** Opcode for xcb_x_print_bad_context. */
  598. #define XCB_X_PRINT_BAD_CONTEXT 0
  599. /**
  600. * @brief xcb_x_print_bad_context_error_t
  601. **/
  602. typedef struct xcb_x_print_bad_context_error_t {
  603. uint8_t response_type;
  604. uint8_t error_code;
  605. uint16_t sequence;
  606. } xcb_x_print_bad_context_error_t;
  607. /** Opcode for xcb_x_print_bad_sequence. */
  608. #define XCB_X_PRINT_BAD_SEQUENCE 1
  609. /**
  610. * @brief xcb_x_print_bad_sequence_error_t
  611. **/
  612. typedef struct xcb_x_print_bad_sequence_error_t {
  613. uint8_t response_type;
  614. uint8_t error_code;
  615. uint16_t sequence;
  616. } xcb_x_print_bad_sequence_error_t;
  617. /**
  618. * Get the next element of the iterator
  619. * @param i Pointer to a xcb_x_print_string8_iterator_t
  620. *
  621. * Get the next element in the iterator. The member rem is
  622. * decreased by one. The member data points to the next
  623. * element. The member index is increased by sizeof(xcb_x_print_string8_t)
  624. */
  625. void
  626. xcb_x_print_string8_next (xcb_x_print_string8_iterator_t *i);
  627. /**
  628. * Return the iterator pointing to the last element
  629. * @param i An xcb_x_print_string8_iterator_t
  630. * @return The iterator pointing to the last element
  631. *
  632. * Set the current element in the iterator to the last element.
  633. * The member rem is set to 0. The member data points to the
  634. * last element.
  635. */
  636. xcb_generic_iterator_t
  637. xcb_x_print_string8_end (xcb_x_print_string8_iterator_t i);
  638. int
  639. xcb_x_print_printer_serialize (void **_buffer,
  640. const xcb_x_print_printer_t *_aux,
  641. const xcb_x_print_string8_t *name,
  642. const xcb_x_print_string8_t *description);
  643. int
  644. xcb_x_print_printer_unserialize (const void *_buffer,
  645. xcb_x_print_printer_t **_aux);
  646. int
  647. xcb_x_print_printer_sizeof (const void *_buffer);
  648. xcb_x_print_string8_t *
  649. xcb_x_print_printer_name (const xcb_x_print_printer_t *R);
  650. int
  651. xcb_x_print_printer_name_length (const xcb_x_print_printer_t *R);
  652. xcb_generic_iterator_t
  653. xcb_x_print_printer_name_end (const xcb_x_print_printer_t *R);
  654. xcb_x_print_string8_t *
  655. xcb_x_print_printer_description (const xcb_x_print_printer_t *R);
  656. int
  657. xcb_x_print_printer_description_length (const xcb_x_print_printer_t *R);
  658. xcb_generic_iterator_t
  659. xcb_x_print_printer_description_end (const xcb_x_print_printer_t *R);
  660. /**
  661. * Get the next element of the iterator
  662. * @param i Pointer to a xcb_x_print_printer_iterator_t
  663. *
  664. * Get the next element in the iterator. The member rem is
  665. * decreased by one. The member data points to the next
  666. * element. The member index is increased by sizeof(xcb_x_print_printer_t)
  667. */
  668. void
  669. xcb_x_print_printer_next (xcb_x_print_printer_iterator_t *i);
  670. /**
  671. * Return the iterator pointing to the last element
  672. * @param i An xcb_x_print_printer_iterator_t
  673. * @return The iterator pointing to the last element
  674. *
  675. * Set the current element in the iterator to the last element.
  676. * The member rem is set to 0. The member data points to the
  677. * last element.
  678. */
  679. xcb_generic_iterator_t
  680. xcb_x_print_printer_end (xcb_x_print_printer_iterator_t i);
  681. /**
  682. * Get the next element of the iterator
  683. * @param i Pointer to a xcb_x_print_pcontext_iterator_t
  684. *
  685. * Get the next element in the iterator. The member rem is
  686. * decreased by one. The member data points to the next
  687. * element. The member index is increased by sizeof(xcb_x_print_pcontext_t)
  688. */
  689. void
  690. xcb_x_print_pcontext_next (xcb_x_print_pcontext_iterator_t *i);
  691. /**
  692. * Return the iterator pointing to the last element
  693. * @param i An xcb_x_print_pcontext_iterator_t
  694. * @return The iterator pointing to the last element
  695. *
  696. * Set the current element in the iterator to the last element.
  697. * The member rem is set to 0. The member data points to the
  698. * last element.
  699. */
  700. xcb_generic_iterator_t
  701. xcb_x_print_pcontext_end (xcb_x_print_pcontext_iterator_t i);
  702. /**
  703. *
  704. * @param c The connection
  705. * @return A cookie
  706. *
  707. * Delivers a request to the X server.
  708. *
  709. */
  710. xcb_x_print_print_query_version_cookie_t
  711. xcb_x_print_print_query_version (xcb_connection_t *c);
  712. /**
  713. *
  714. * @param c The connection
  715. * @return A cookie
  716. *
  717. * Delivers a request to the X server.
  718. *
  719. * This form can be used only if the request will cause
  720. * a reply to be generated. Any returned error will be
  721. * placed in the event queue.
  722. */
  723. xcb_x_print_print_query_version_cookie_t
  724. xcb_x_print_print_query_version_unchecked (xcb_connection_t *c);
  725. /**
  726. * Return the reply
  727. * @param c The connection
  728. * @param cookie The cookie
  729. * @param e The xcb_generic_error_t supplied
  730. *
  731. * Returns the reply of the request asked by
  732. *
  733. * The parameter @p e supplied to this function must be NULL if
  734. * xcb_x_print_print_query_version_unchecked(). is used.
  735. * Otherwise, it stores the error if any.
  736. *
  737. * The returned value must be freed by the caller using free().
  738. */
  739. xcb_x_print_print_query_version_reply_t *
  740. xcb_x_print_print_query_version_reply (xcb_connection_t *c,
  741. xcb_x_print_print_query_version_cookie_t cookie /**< */,
  742. xcb_generic_error_t **e);
  743. int
  744. xcb_x_print_print_get_printer_list_sizeof (const void *_buffer);
  745. /**
  746. *
  747. * @param c The connection
  748. * @return A cookie
  749. *
  750. * Delivers a request to the X server.
  751. *
  752. */
  753. xcb_x_print_print_get_printer_list_cookie_t
  754. xcb_x_print_print_get_printer_list (xcb_connection_t *c,
  755. uint32_t printerNameLen,
  756. uint32_t localeLen,
  757. const xcb_x_print_string8_t *printer_name,
  758. const xcb_x_print_string8_t *locale);
  759. /**
  760. *
  761. * @param c The connection
  762. * @return A cookie
  763. *
  764. * Delivers a request to the X server.
  765. *
  766. * This form can be used only if the request will cause
  767. * a reply to be generated. Any returned error will be
  768. * placed in the event queue.
  769. */
  770. xcb_x_print_print_get_printer_list_cookie_t
  771. xcb_x_print_print_get_printer_list_unchecked (xcb_connection_t *c,
  772. uint32_t printerNameLen,
  773. uint32_t localeLen,
  774. const xcb_x_print_string8_t *printer_name,
  775. const xcb_x_print_string8_t *locale);
  776. int
  777. xcb_x_print_print_get_printer_list_printers_length (const xcb_x_print_print_get_printer_list_reply_t *R);
  778. xcb_x_print_printer_iterator_t
  779. xcb_x_print_print_get_printer_list_printers_iterator (const xcb_x_print_print_get_printer_list_reply_t *R);
  780. /**
  781. * Return the reply
  782. * @param c The connection
  783. * @param cookie The cookie
  784. * @param e The xcb_generic_error_t supplied
  785. *
  786. * Returns the reply of the request asked by
  787. *
  788. * The parameter @p e supplied to this function must be NULL if
  789. * xcb_x_print_print_get_printer_list_unchecked(). is used.
  790. * Otherwise, it stores the error if any.
  791. *
  792. * The returned value must be freed by the caller using free().
  793. */
  794. xcb_x_print_print_get_printer_list_reply_t *
  795. xcb_x_print_print_get_printer_list_reply (xcb_connection_t *c,
  796. xcb_x_print_print_get_printer_list_cookie_t cookie /**< */,
  797. xcb_generic_error_t **e);
  798. /**
  799. *
  800. * @param c The connection
  801. * @return A cookie
  802. *
  803. * Delivers a request to the X server.
  804. *
  805. * This form can be used only if the request will not cause
  806. * a reply to be generated. Any returned error will be
  807. * saved for handling by xcb_request_check().
  808. */
  809. xcb_void_cookie_t
  810. xcb_x_print_print_rehash_printer_list_checked (xcb_connection_t *c);
  811. /**
  812. *
  813. * @param c The connection
  814. * @return A cookie
  815. *
  816. * Delivers a request to the X server.
  817. *
  818. */
  819. xcb_void_cookie_t
  820. xcb_x_print_print_rehash_printer_list (xcb_connection_t *c);
  821. int
  822. xcb_x_print_create_context_sizeof (const void *_buffer);
  823. /**
  824. *
  825. * @param c The connection
  826. * @return A cookie
  827. *
  828. * Delivers a request to the X server.
  829. *
  830. * This form can be used only if the request will not cause
  831. * a reply to be generated. Any returned error will be
  832. * saved for handling by xcb_request_check().
  833. */
  834. xcb_void_cookie_t
  835. xcb_x_print_create_context_checked (xcb_connection_t *c,
  836. uint32_t context_id,
  837. uint32_t printerNameLen,
  838. uint32_t localeLen,
  839. const xcb_x_print_string8_t *printerName,
  840. const xcb_x_print_string8_t *locale);
  841. /**
  842. *
  843. * @param c The connection
  844. * @return A cookie
  845. *
  846. * Delivers a request to the X server.
  847. *
  848. */
  849. xcb_void_cookie_t
  850. xcb_x_print_create_context (xcb_connection_t *c,
  851. uint32_t context_id,
  852. uint32_t printerNameLen,
  853. uint32_t localeLen,
  854. const xcb_x_print_string8_t *printerName,
  855. const xcb_x_print_string8_t *locale);
  856. xcb_x_print_string8_t *
  857. xcb_x_print_create_context_printer_name (const xcb_x_print_create_context_request_t *R);
  858. int
  859. xcb_x_print_create_context_printer_name_length (const xcb_x_print_create_context_request_t *R);
  860. xcb_generic_iterator_t
  861. xcb_x_print_create_context_printer_name_end (const xcb_x_print_create_context_request_t *R);
  862. xcb_x_print_string8_t *
  863. xcb_x_print_create_context_locale (const xcb_x_print_create_context_request_t *R);
  864. int
  865. xcb_x_print_create_context_locale_length (const xcb_x_print_create_context_request_t *R);
  866. xcb_generic_iterator_t
  867. xcb_x_print_create_context_locale_end (const xcb_x_print_create_context_request_t *R);
  868. /**
  869. *
  870. * @param c The connection
  871. * @return A cookie
  872. *
  873. * Delivers a request to the X server.
  874. *
  875. * This form can be used only if the request will not cause
  876. * a reply to be generated. Any returned error will be
  877. * saved for handling by xcb_request_check().
  878. */
  879. xcb_void_cookie_t
  880. xcb_x_print_print_set_context_checked (xcb_connection_t *c,
  881. uint32_t context);
  882. /**
  883. *
  884. * @param c The connection
  885. * @return A cookie
  886. *
  887. * Delivers a request to the X server.
  888. *
  889. */
  890. xcb_void_cookie_t
  891. xcb_x_print_print_set_context (xcb_connection_t *c,
  892. uint32_t context);
  893. /**
  894. *
  895. * @param c The connection
  896. * @return A cookie
  897. *
  898. * Delivers a request to the X server.
  899. *
  900. */
  901. xcb_x_print_print_get_context_cookie_t
  902. xcb_x_print_print_get_context (xcb_connection_t *c);
  903. /**
  904. *
  905. * @param c The connection
  906. * @return A cookie
  907. *
  908. * Delivers a request to the X server.
  909. *
  910. * This form can be used only if the request will cause
  911. * a reply to be generated. Any returned error will be
  912. * placed in the event queue.
  913. */
  914. xcb_x_print_print_get_context_cookie_t
  915. xcb_x_print_print_get_context_unchecked (xcb_connection_t *c);
  916. /**
  917. * Return the reply
  918. * @param c The connection
  919. * @param cookie The cookie
  920. * @param e The xcb_generic_error_t supplied
  921. *
  922. * Returns the reply of the request asked by
  923. *
  924. * The parameter @p e supplied to this function must be NULL if
  925. * xcb_x_print_print_get_context_unchecked(). is used.
  926. * Otherwise, it stores the error if any.
  927. *
  928. * The returned value must be freed by the caller using free().
  929. */
  930. xcb_x_print_print_get_context_reply_t *
  931. xcb_x_print_print_get_context_reply (xcb_connection_t *c,
  932. xcb_x_print_print_get_context_cookie_t cookie /**< */,
  933. xcb_generic_error_t **e);
  934. /**
  935. *
  936. * @param c The connection
  937. * @return A cookie
  938. *
  939. * Delivers a request to the X server.
  940. *
  941. * This form can be used only if the request will not cause
  942. * a reply to be generated. Any returned error will be
  943. * saved for handling by xcb_request_check().
  944. */
  945. xcb_void_cookie_t
  946. xcb_x_print_print_destroy_context_checked (xcb_connection_t *c,
  947. uint32_t context);
  948. /**
  949. *
  950. * @param c The connection
  951. * @return A cookie
  952. *
  953. * Delivers a request to the X server.
  954. *
  955. */
  956. xcb_void_cookie_t
  957. xcb_x_print_print_destroy_context (xcb_connection_t *c,
  958. uint32_t context);
  959. /**
  960. *
  961. * @param c The connection
  962. * @return A cookie
  963. *
  964. * Delivers a request to the X server.
  965. *
  966. */
  967. xcb_x_print_print_get_screen_of_context_cookie_t
  968. xcb_x_print_print_get_screen_of_context (xcb_connection_t *c);
  969. /**
  970. *
  971. * @param c The connection
  972. * @return A cookie
  973. *
  974. * Delivers a request to the X server.
  975. *
  976. * This form can be used only if the request will cause
  977. * a reply to be generated. Any returned error will be
  978. * placed in the event queue.
  979. */
  980. xcb_x_print_print_get_screen_of_context_cookie_t
  981. xcb_x_print_print_get_screen_of_context_unchecked (xcb_connection_t *c);
  982. /**
  983. * Return the reply
  984. * @param c The connection
  985. * @param cookie The cookie
  986. * @param e The xcb_generic_error_t supplied
  987. *
  988. * Returns the reply of the request asked by
  989. *
  990. * The parameter @p e supplied to this function must be NULL if
  991. * xcb_x_print_print_get_screen_of_context_unchecked(). is used.
  992. * Otherwise, it stores the error if any.
  993. *
  994. * The returned value must be freed by the caller using free().
  995. */
  996. xcb_x_print_print_get_screen_of_context_reply_t *
  997. xcb_x_print_print_get_screen_of_context_reply (xcb_connection_t *c,
  998. xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */,
  999. xcb_generic_error_t **e);
  1000. /**
  1001. *
  1002. * @param c The connection
  1003. * @return A cookie
  1004. *
  1005. * Delivers a request to the X server.
  1006. *
  1007. * This form can be used only if the request will not cause
  1008. * a reply to be generated. Any returned error will be
  1009. * saved for handling by xcb_request_check().
  1010. */
  1011. xcb_void_cookie_t
  1012. xcb_x_print_print_start_job_checked (xcb_connection_t *c,
  1013. uint8_t output_mode);
  1014. /**
  1015. *
  1016. * @param c The connection
  1017. * @return A cookie
  1018. *
  1019. * Delivers a request to the X server.
  1020. *
  1021. */
  1022. xcb_void_cookie_t
  1023. xcb_x_print_print_start_job (xcb_connection_t *c,
  1024. uint8_t output_mode);
  1025. /**
  1026. *
  1027. * @param c The connection
  1028. * @return A cookie
  1029. *
  1030. * Delivers a request to the X server.
  1031. *
  1032. * This form can be used only if the request will not cause
  1033. * a reply to be generated. Any returned error will be
  1034. * saved for handling by xcb_request_check().
  1035. */
  1036. xcb_void_cookie_t
  1037. xcb_x_print_print_end_job_checked (xcb_connection_t *c,
  1038. uint8_t cancel);
  1039. /**
  1040. *
  1041. * @param c The connection
  1042. * @return A cookie
  1043. *
  1044. * Delivers a request to the X server.
  1045. *
  1046. */
  1047. xcb_void_cookie_t
  1048. xcb_x_print_print_end_job (xcb_connection_t *c,
  1049. uint8_t cancel);
  1050. /**
  1051. *
  1052. * @param c The connection
  1053. * @return A cookie
  1054. *
  1055. * Delivers a request to the X server.
  1056. *
  1057. * This form can be used only if the request will not cause
  1058. * a reply to be generated. Any returned error will be
  1059. * saved for handling by xcb_request_check().
  1060. */
  1061. xcb_void_cookie_t
  1062. xcb_x_print_print_start_doc_checked (xcb_connection_t *c,
  1063. uint8_t driver_mode);
  1064. /**
  1065. *
  1066. * @param c The connection
  1067. * @return A cookie
  1068. *
  1069. * Delivers a request to the X server.
  1070. *
  1071. */
  1072. xcb_void_cookie_t
  1073. xcb_x_print_print_start_doc (xcb_connection_t *c,
  1074. uint8_t driver_mode);
  1075. /**
  1076. *
  1077. * @param c The connection
  1078. * @return A cookie
  1079. *
  1080. * Delivers a request to the X server.
  1081. *
  1082. * This form can be used only if the request will not cause
  1083. * a reply to be generated. Any returned error will be
  1084. * saved for handling by xcb_request_check().
  1085. */
  1086. xcb_void_cookie_t
  1087. xcb_x_print_print_end_doc_checked (xcb_connection_t *c,
  1088. uint8_t cancel);
  1089. /**
  1090. *
  1091. * @param c The connection
  1092. * @return A cookie
  1093. *
  1094. * Delivers a request to the X server.
  1095. *
  1096. */
  1097. xcb_void_cookie_t
  1098. xcb_x_print_print_end_doc (xcb_connection_t *c,
  1099. uint8_t cancel);
  1100. int
  1101. xcb_x_print_print_put_document_data_sizeof (const void *_buffer);
  1102. /**
  1103. *
  1104. * @param c The connection
  1105. * @return A cookie
  1106. *
  1107. * Delivers a request to the X server.
  1108. *
  1109. * This form can be used only if the request will not cause
  1110. * a reply to be generated. Any returned error will be
  1111. * saved for handling by xcb_request_check().
  1112. */
  1113. xcb_void_cookie_t
  1114. xcb_x_print_print_put_document_data_checked (xcb_connection_t *c,
  1115. xcb_drawable_t drawable,
  1116. uint32_t len_data,
  1117. uint16_t len_fmt,
  1118. uint16_t len_options,
  1119. const uint8_t *data,
  1120. const xcb_x_print_string8_t *doc_format,
  1121. const xcb_x_print_string8_t *options);
  1122. /**
  1123. *
  1124. * @param c The connection
  1125. * @return A cookie
  1126. *
  1127. * Delivers a request to the X server.
  1128. *
  1129. */
  1130. xcb_void_cookie_t
  1131. xcb_x_print_print_put_document_data (xcb_connection_t *c,
  1132. xcb_drawable_t drawable,
  1133. uint32_t len_data,
  1134. uint16_t len_fmt,
  1135. uint16_t len_options,
  1136. const uint8_t *data,
  1137. const xcb_x_print_string8_t *doc_format,
  1138. const xcb_x_print_string8_t *options);
  1139. uint8_t *
  1140. xcb_x_print_print_put_document_data_data (const xcb_x_print_print_put_document_data_request_t *R);
  1141. int
  1142. xcb_x_print_print_put_document_data_data_length (const xcb_x_print_print_put_document_data_request_t *R);
  1143. xcb_generic_iterator_t
  1144. xcb_x_print_print_put_document_data_data_end (const xcb_x_print_print_put_document_data_request_t *R);
  1145. xcb_x_print_string8_t *
  1146. xcb_x_print_print_put_document_data_doc_format (const xcb_x_print_print_put_document_data_request_t *R);
  1147. int
  1148. xcb_x_print_print_put_document_data_doc_format_length (const xcb_x_print_print_put_document_data_request_t *R);
  1149. xcb_generic_iterator_t
  1150. xcb_x_print_print_put_document_data_doc_format_end (const xcb_x_print_print_put_document_data_request_t *R);
  1151. xcb_x_print_string8_t *
  1152. xcb_x_print_print_put_document_data_options (const xcb_x_print_print_put_document_data_request_t *R);
  1153. int
  1154. xcb_x_print_print_put_document_data_options_length (const xcb_x_print_print_put_document_data_request_t *R);
  1155. xcb_generic_iterator_t
  1156. xcb_x_print_print_put_document_data_options_end (const xcb_x_print_print_put_document_data_request_t *R);
  1157. int
  1158. xcb_x_print_print_get_document_data_sizeof (const void *_buffer);
  1159. /**
  1160. *
  1161. * @param c The connection
  1162. * @return A cookie
  1163. *
  1164. * Delivers a request to the X server.
  1165. *
  1166. */
  1167. xcb_x_print_print_get_document_data_cookie_t
  1168. xcb_x_print_print_get_document_data (xcb_connection_t *c,
  1169. xcb_x_print_pcontext_t context,
  1170. uint32_t max_bytes);
  1171. /**
  1172. *
  1173. * @param c The connection
  1174. * @return A cookie
  1175. *
  1176. * Delivers a request to the X server.
  1177. *
  1178. * This form can be used only if the request will cause
  1179. * a reply to be generated. Any returned error will be
  1180. * placed in the event queue.
  1181. */
  1182. xcb_x_print_print_get_document_data_cookie_t
  1183. xcb_x_print_print_get_document_data_unchecked (xcb_connection_t *c,
  1184. xcb_x_print_pcontext_t context,
  1185. uint32_t max_bytes);
  1186. uint8_t *
  1187. xcb_x_print_print_get_document_data_data (const xcb_x_print_print_get_document_data_reply_t *R);
  1188. int
  1189. xcb_x_print_print_get_document_data_data_length (const xcb_x_print_print_get_document_data_reply_t *R);
  1190. xcb_generic_iterator_t
  1191. xcb_x_print_print_get_document_data_data_end (const xcb_x_print_print_get_document_data_reply_t *R);
  1192. /**
  1193. * Return the reply
  1194. * @param c The connection
  1195. * @param cookie The cookie
  1196. * @param e The xcb_generic_error_t supplied
  1197. *
  1198. * Returns the reply of the request asked by
  1199. *
  1200. * The parameter @p e supplied to this function must be NULL if
  1201. * xcb_x_print_print_get_document_data_unchecked(). is used.
  1202. * Otherwise, it stores the error if any.
  1203. *
  1204. * The returned value must be freed by the caller using free().
  1205. */
  1206. xcb_x_print_print_get_document_data_reply_t *
  1207. xcb_x_print_print_get_document_data_reply (xcb_connection_t *c,
  1208. xcb_x_print_print_get_document_data_cookie_t cookie /**< */,
  1209. xcb_generic_error_t **e);
  1210. /**
  1211. *
  1212. * @param c The connection
  1213. * @return A cookie
  1214. *
  1215. * Delivers a request to the X server.
  1216. *
  1217. * This form can be used only if the request will not cause
  1218. * a reply to be generated. Any returned error will be
  1219. * saved for handling by xcb_request_check().
  1220. */
  1221. xcb_void_cookie_t
  1222. xcb_x_print_print_start_page_checked (xcb_connection_t *c,
  1223. xcb_window_t window);
  1224. /**
  1225. *
  1226. * @param c The connection
  1227. * @return A cookie
  1228. *
  1229. * Delivers a request to the X server.
  1230. *
  1231. */
  1232. xcb_void_cookie_t
  1233. xcb_x_print_print_start_page (xcb_connection_t *c,
  1234. xcb_window_t window);
  1235. /**
  1236. *
  1237. * @param c The connection
  1238. * @return A cookie
  1239. *
  1240. * Delivers a request to the X server.
  1241. *
  1242. * This form can be used only if the request will not cause
  1243. * a reply to be generated. Any returned error will be
  1244. * saved for handling by xcb_request_check().
  1245. */
  1246. xcb_void_cookie_t
  1247. xcb_x_print_print_end_page_checked (xcb_connection_t *c,
  1248. uint8_t cancel);
  1249. /**
  1250. *
  1251. * @param c The connection
  1252. * @return A cookie
  1253. *
  1254. * Delivers a request to the X server.
  1255. *
  1256. */
  1257. xcb_void_cookie_t
  1258. xcb_x_print_print_end_page (xcb_connection_t *c,
  1259. uint8_t cancel);
  1260. /**
  1261. *
  1262. * @param c The connection
  1263. * @return A cookie
  1264. *
  1265. * Delivers a request to the X server.
  1266. *
  1267. * This form can be used only if the request will not cause
  1268. * a reply to be generated. Any returned error will be
  1269. * saved for handling by xcb_request_check().
  1270. */
  1271. xcb_void_cookie_t
  1272. xcb_x_print_print_select_input_checked (xcb_connection_t *c,
  1273. xcb_x_print_pcontext_t context,
  1274. uint32_t event_mask);
  1275. /**
  1276. *
  1277. * @param c The connection
  1278. * @return A cookie
  1279. *
  1280. * Delivers a request to the X server.
  1281. *
  1282. */
  1283. xcb_void_cookie_t
  1284. xcb_x_print_print_select_input (xcb_connection_t *c,
  1285. xcb_x_print_pcontext_t context,
  1286. uint32_t event_mask);
  1287. /**
  1288. *
  1289. * @param c The connection
  1290. * @return A cookie
  1291. *
  1292. * Delivers a request to the X server.
  1293. *
  1294. */
  1295. xcb_x_print_print_input_selected_cookie_t
  1296. xcb_x_print_print_input_selected (xcb_connection_t *c,
  1297. xcb_x_print_pcontext_t context);
  1298. /**
  1299. *
  1300. * @param c The connection
  1301. * @return A cookie
  1302. *
  1303. * Delivers a request to the X server.
  1304. *
  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.
  1308. */
  1309. xcb_x_print_print_input_selected_cookie_t
  1310. xcb_x_print_print_input_selected_unchecked (xcb_connection_t *c,
  1311. xcb_x_print_pcontext_t context);
  1312. /**
  1313. * Return the reply
  1314. * @param c The connection
  1315. * @param cookie The cookie
  1316. * @param e The xcb_generic_error_t supplied
  1317. *
  1318. * Returns the reply of the request asked by
  1319. *
  1320. * The parameter @p e supplied to this function must be NULL if
  1321. * xcb_x_print_print_input_selected_unchecked(). is used.
  1322. * Otherwise, it stores the error if any.
  1323. *
  1324. * The returned value must be freed by the caller using free().
  1325. */
  1326. xcb_x_print_print_input_selected_reply_t *
  1327. xcb_x_print_print_input_selected_reply (xcb_connection_t *c,
  1328. xcb_x_print_print_input_selected_cookie_t cookie /**< */,
  1329. xcb_generic_error_t **e);
  1330. int
  1331. xcb_x_print_print_get_attributes_sizeof (const void *_buffer);
  1332. /**
  1333. *
  1334. * @param c The connection
  1335. * @return A cookie
  1336. *
  1337. * Delivers a request to the X server.
  1338. *
  1339. */
  1340. xcb_x_print_print_get_attributes_cookie_t
  1341. xcb_x_print_print_get_attributes (xcb_connection_t *c,
  1342. xcb_x_print_pcontext_t context,
  1343. uint8_t pool);
  1344. /**
  1345. *
  1346. * @param c The connection
  1347. * @return A cookie
  1348. *
  1349. * Delivers a request to the X server.
  1350. *
  1351. * This form can be used only if the request will cause
  1352. * a reply to be generated. Any returned error will be
  1353. * placed in the event queue.
  1354. */
  1355. xcb_x_print_print_get_attributes_cookie_t
  1356. xcb_x_print_print_get_attributes_unchecked (xcb_connection_t *c,
  1357. xcb_x_print_pcontext_t context,
  1358. uint8_t pool);
  1359. xcb_x_print_string8_t *
  1360. xcb_x_print_print_get_attributes_attributes (const xcb_x_print_print_get_attributes_reply_t *R);
  1361. int
  1362. xcb_x_print_print_get_attributes_attributes_length (const xcb_x_print_print_get_attributes_reply_t *R);
  1363. xcb_generic_iterator_t
  1364. xcb_x_print_print_get_attributes_attributes_end (const xcb_x_print_print_get_attributes_reply_t *R);
  1365. /**
  1366. * Return the reply
  1367. * @param c The connection
  1368. * @param cookie The cookie
  1369. * @param e The xcb_generic_error_t supplied
  1370. *
  1371. * Returns the reply of the request asked by
  1372. *
  1373. * The parameter @p e supplied to this function must be NULL if
  1374. * xcb_x_print_print_get_attributes_unchecked(). is used.
  1375. * Otherwise, it stores the error if any.
  1376. *
  1377. * The returned value must be freed by the caller using free().
  1378. */
  1379. xcb_x_print_print_get_attributes_reply_t *
  1380. xcb_x_print_print_get_attributes_reply (xcb_connection_t *c,
  1381. xcb_x_print_print_get_attributes_cookie_t cookie /**< */,
  1382. xcb_generic_error_t **e);
  1383. int
  1384. xcb_x_print_print_get_one_attributes_sizeof (const void *_buffer);
  1385. /**
  1386. *
  1387. * @param c The connection
  1388. * @return A cookie
  1389. *
  1390. * Delivers a request to the X server.
  1391. *
  1392. */
  1393. xcb_x_print_print_get_one_attributes_cookie_t
  1394. xcb_x_print_print_get_one_attributes (xcb_connection_t *c,
  1395. xcb_x_print_pcontext_t context,
  1396. uint32_t nameLen,
  1397. uint8_t pool,
  1398. const xcb_x_print_string8_t *name);
  1399. /**
  1400. *
  1401. * @param c The connection
  1402. * @return A cookie
  1403. *
  1404. * Delivers a request to the X server.
  1405. *
  1406. * This form can be used only if the request will cause
  1407. * a reply to be generated. Any returned error will be
  1408. * placed in the event queue.
  1409. */
  1410. xcb_x_print_print_get_one_attributes_cookie_t
  1411. xcb_x_print_print_get_one_attributes_unchecked (xcb_connection_t *c,
  1412. xcb_x_print_pcontext_t context,
  1413. uint32_t nameLen,
  1414. uint8_t pool,
  1415. const xcb_x_print_string8_t *name);
  1416. xcb_x_print_string8_t *
  1417. xcb_x_print_print_get_one_attributes_value (const xcb_x_print_print_get_one_attributes_reply_t *R);
  1418. int
  1419. xcb_x_print_print_get_one_attributes_value_length (const xcb_x_print_print_get_one_attributes_reply_t *R);
  1420. xcb_generic_iterator_t
  1421. xcb_x_print_print_get_one_attributes_value_end (const xcb_x_print_print_get_one_attributes_reply_t *R);
  1422. /**
  1423. * Return the reply
  1424. * @param c The connection
  1425. * @param cookie The cookie
  1426. * @param e The xcb_generic_error_t supplied
  1427. *
  1428. * Returns the reply of the request asked by
  1429. *
  1430. * The parameter @p e supplied to this function must be NULL if
  1431. * xcb_x_print_print_get_one_attributes_unchecked(). is used.
  1432. * Otherwise, it stores the error if any.
  1433. *
  1434. * The returned value must be freed by the caller using free().
  1435. */
  1436. xcb_x_print_print_get_one_attributes_reply_t *
  1437. xcb_x_print_print_get_one_attributes_reply (xcb_connection_t *c,
  1438. xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */,
  1439. xcb_generic_error_t **e);
  1440. int
  1441. xcb_x_print_print_set_attributes_sizeof (const void *_buffer,
  1442. uint32_t attributes_len);
  1443. /**
  1444. *
  1445. * @param c The connection
  1446. * @return A cookie
  1447. *
  1448. * Delivers a request to the X server.
  1449. *
  1450. * This form can be used only if the request will not cause
  1451. * a reply to be generated. Any returned error will be
  1452. * saved for handling by xcb_request_check().
  1453. */
  1454. xcb_void_cookie_t
  1455. xcb_x_print_print_set_attributes_checked (xcb_connection_t *c,
  1456. xcb_x_print_pcontext_t context,
  1457. uint32_t stringLen,
  1458. uint8_t pool,
  1459. uint8_t rule,
  1460. uint32_t attributes_len,
  1461. const xcb_x_print_string8_t *attributes);
  1462. /**
  1463. *
  1464. * @param c The connection
  1465. * @return A cookie
  1466. *
  1467. * Delivers a request to the X server.
  1468. *
  1469. */
  1470. xcb_void_cookie_t
  1471. xcb_x_print_print_set_attributes (xcb_connection_t *c,
  1472. xcb_x_print_pcontext_t context,
  1473. uint32_t stringLen,
  1474. uint8_t pool,
  1475. uint8_t rule,
  1476. uint32_t attributes_len,
  1477. const xcb_x_print_string8_t *attributes);
  1478. xcb_x_print_string8_t *
  1479. xcb_x_print_print_set_attributes_attributes (const xcb_x_print_print_set_attributes_request_t *R);
  1480. int
  1481. xcb_x_print_print_set_attributes_attributes_length (const xcb_x_print_print_set_attributes_request_t *R);
  1482. xcb_generic_iterator_t
  1483. xcb_x_print_print_set_attributes_attributes_end (const xcb_x_print_print_set_attributes_request_t *R);
  1484. /**
  1485. *
  1486. * @param c The connection
  1487. * @return A cookie
  1488. *
  1489. * Delivers a request to the X server.
  1490. *
  1491. */
  1492. xcb_x_print_print_get_page_dimensions_cookie_t
  1493. xcb_x_print_print_get_page_dimensions (xcb_connection_t *c,
  1494. xcb_x_print_pcontext_t context);
  1495. /**
  1496. *
  1497. * @param c The connection
  1498. * @return A cookie
  1499. *
  1500. * Delivers a request to the X server.
  1501. *
  1502. * This form can be used only if the request will cause
  1503. * a reply to be generated. Any returned error will be
  1504. * placed in the event queue.
  1505. */
  1506. xcb_x_print_print_get_page_dimensions_cookie_t
  1507. xcb_x_print_print_get_page_dimensions_unchecked (xcb_connection_t *c,
  1508. xcb_x_print_pcontext_t context);
  1509. /**
  1510. * Return the reply
  1511. * @param c The connection
  1512. * @param cookie The cookie
  1513. * @param e The xcb_generic_error_t supplied
  1514. *
  1515. * Returns the reply of the request asked by
  1516. *
  1517. * The parameter @p e supplied to this function must be NULL if
  1518. * xcb_x_print_print_get_page_dimensions_unchecked(). is used.
  1519. * Otherwise, it stores the error if any.
  1520. *
  1521. * The returned value must be freed by the caller using free().
  1522. */
  1523. xcb_x_print_print_get_page_dimensions_reply_t *
  1524. xcb_x_print_print_get_page_dimensions_reply (xcb_connection_t *c,
  1525. xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */,
  1526. xcb_generic_error_t **e);
  1527. int
  1528. xcb_x_print_print_query_screens_sizeof (const void *_buffer);
  1529. /**
  1530. *
  1531. * @param c The connection
  1532. * @return A cookie
  1533. *
  1534. * Delivers a request to the X server.
  1535. *
  1536. */
  1537. xcb_x_print_print_query_screens_cookie_t
  1538. xcb_x_print_print_query_screens (xcb_connection_t *c);
  1539. /**
  1540. *
  1541. * @param c The connection
  1542. * @return A cookie
  1543. *
  1544. * Delivers a request to the X server.
  1545. *
  1546. * This form can be used only if the request will cause
  1547. * a reply to be generated. Any returned error will be
  1548. * placed in the event queue.
  1549. */
  1550. xcb_x_print_print_query_screens_cookie_t
  1551. xcb_x_print_print_query_screens_unchecked (xcb_connection_t *c);
  1552. xcb_window_t *
  1553. xcb_x_print_print_query_screens_roots (const xcb_x_print_print_query_screens_reply_t *R);
  1554. int
  1555. xcb_x_print_print_query_screens_roots_length (const xcb_x_print_print_query_screens_reply_t *R);
  1556. xcb_generic_iterator_t
  1557. xcb_x_print_print_query_screens_roots_end (const xcb_x_print_print_query_screens_reply_t *R);
  1558. /**
  1559. * Return the reply
  1560. * @param c The connection
  1561. * @param cookie The cookie
  1562. * @param e The xcb_generic_error_t supplied
  1563. *
  1564. * Returns the reply of the request asked by
  1565. *
  1566. * The parameter @p e supplied to this function must be NULL if
  1567. * xcb_x_print_print_query_screens_unchecked(). is used.
  1568. * Otherwise, it stores the error if any.
  1569. *
  1570. * The returned value must be freed by the caller using free().
  1571. */
  1572. xcb_x_print_print_query_screens_reply_t *
  1573. xcb_x_print_print_query_screens_reply (xcb_connection_t *c,
  1574. xcb_x_print_print_query_screens_cookie_t cookie /**< */,
  1575. xcb_generic_error_t **e);
  1576. /**
  1577. *
  1578. * @param c The connection
  1579. * @return A cookie
  1580. *
  1581. * Delivers a request to the X server.
  1582. *
  1583. */
  1584. xcb_x_print_print_set_image_resolution_cookie_t
  1585. xcb_x_print_print_set_image_resolution (xcb_connection_t *c,
  1586. xcb_x_print_pcontext_t context,
  1587. uint16_t image_resolution);
  1588. /**
  1589. *
  1590. * @param c The connection
  1591. * @return A cookie
  1592. *
  1593. * Delivers a request to the X server.
  1594. *
  1595. * This form can be used only if the request will cause
  1596. * a reply to be generated. Any returned error will be
  1597. * placed in the event queue.
  1598. */
  1599. xcb_x_print_print_set_image_resolution_cookie_t
  1600. xcb_x_print_print_set_image_resolution_unchecked (xcb_connection_t *c,
  1601. xcb_x_print_pcontext_t context,
  1602. uint16_t image_resolution);
  1603. /**
  1604. * Return the reply
  1605. * @param c The connection
  1606. * @param cookie The cookie
  1607. * @param e The xcb_generic_error_t supplied
  1608. *
  1609. * Returns the reply of the request asked by
  1610. *
  1611. * The parameter @p e supplied to this function must be NULL if
  1612. * xcb_x_print_print_set_image_resolution_unchecked(). is used.
  1613. * Otherwise, it stores the error if any.
  1614. *
  1615. * The returned value must be freed by the caller using free().
  1616. */
  1617. xcb_x_print_print_set_image_resolution_reply_t *
  1618. xcb_x_print_print_set_image_resolution_reply (xcb_connection_t *c,
  1619. xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */,
  1620. xcb_generic_error_t **e);
  1621. /**
  1622. *
  1623. * @param c The connection
  1624. * @return A cookie
  1625. *
  1626. * Delivers a request to the X server.
  1627. *
  1628. */
  1629. xcb_x_print_print_get_image_resolution_cookie_t
  1630. xcb_x_print_print_get_image_resolution (xcb_connection_t *c,
  1631. xcb_x_print_pcontext_t context);
  1632. /**
  1633. *
  1634. * @param c The connection
  1635. * @return A cookie
  1636. *
  1637. * Delivers a request to the X server.
  1638. *
  1639. * This form can be used only if the request will cause
  1640. * a reply to be generated. Any returned error will be
  1641. * placed in the event queue.
  1642. */
  1643. xcb_x_print_print_get_image_resolution_cookie_t
  1644. xcb_x_print_print_get_image_resolution_unchecked (xcb_connection_t *c,
  1645. xcb_x_print_pcontext_t context);
  1646. /**
  1647. * Return the reply
  1648. * @param c The connection
  1649. * @param cookie The cookie
  1650. * @param e The xcb_generic_error_t supplied
  1651. *
  1652. * Returns the reply of the request asked by
  1653. *
  1654. * The parameter @p e supplied to this function must be NULL if
  1655. * xcb_x_print_print_get_image_resolution_unchecked(). is used.
  1656. * Otherwise, it stores the error if any.
  1657. *
  1658. * The returned value must be freed by the caller using free().
  1659. */
  1660. xcb_x_print_print_get_image_resolution_reply_t *
  1661. xcb_x_print_print_get_image_resolution_reply (xcb_connection_t *c,
  1662. xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */,
  1663. xcb_generic_error_t **e);
  1664. #ifdef __cplusplus
  1665. }
  1666. #endif
  1667. #endif
  1668. /**
  1669. * @}
  1670. */