xref: /minix/external/mit/xorg/lib/libxcb/files/xselinux.h (revision 0a6a1f1d)
1 /*
2  * This file generated automatically from xselinux.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
6 /**
7  * @defgroup XCB_SELinux_API XCB SELinux API
8  * @brief SELinux XCB Protocol Implementation.
9  * @{
10  **/
11 
12 #ifndef __XSELINUX_H
13 #define __XSELINUX_H
14 
15 #include "xcb.h"
16 #include "xproto.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define XCB_SELINUX_MAJOR_VERSION 1
23 #define XCB_SELINUX_MINOR_VERSION 0
24 
25 extern xcb_extension_t xcb_selinux_id;
26 
27 /**
28  * @brief xcb_selinux_query_version_cookie_t
29  **/
30 typedef struct xcb_selinux_query_version_cookie_t {
31     unsigned int sequence; /**<  */
32 } xcb_selinux_query_version_cookie_t;
33 
34 /** Opcode for xcb_selinux_query_version. */
35 #define XCB_SELINUX_QUERY_VERSION 0
36 
37 /**
38  * @brief xcb_selinux_query_version_request_t
39  **/
40 typedef struct xcb_selinux_query_version_request_t {
41     uint8_t  major_opcode; /**<  */
42     uint8_t  minor_opcode; /**<  */
43     uint16_t length; /**<  */
44     uint8_t  client_major; /**<  */
45     uint8_t  client_minor; /**<  */
46 } xcb_selinux_query_version_request_t;
47 
48 /**
49  * @brief xcb_selinux_query_version_reply_t
50  **/
51 typedef struct xcb_selinux_query_version_reply_t {
52     uint8_t  response_type; /**<  */
53     uint8_t  pad0; /**<  */
54     uint16_t sequence; /**<  */
55     uint32_t length; /**<  */
56     uint16_t server_major; /**<  */
57     uint16_t server_minor; /**<  */
58 } xcb_selinux_query_version_reply_t;
59 
60 /** Opcode for xcb_selinux_set_device_create_context. */
61 #define XCB_SELINUX_SET_DEVICE_CREATE_CONTEXT 1
62 
63 /**
64  * @brief xcb_selinux_set_device_create_context_request_t
65  **/
66 typedef struct xcb_selinux_set_device_create_context_request_t {
67     uint8_t  major_opcode; /**<  */
68     uint8_t  minor_opcode; /**<  */
69     uint16_t length; /**<  */
70     uint32_t context_len; /**<  */
71 } xcb_selinux_set_device_create_context_request_t;
72 
73 /**
74  * @brief xcb_selinux_get_device_create_context_cookie_t
75  **/
76 typedef struct xcb_selinux_get_device_create_context_cookie_t {
77     unsigned int sequence; /**<  */
78 } xcb_selinux_get_device_create_context_cookie_t;
79 
80 /** Opcode for xcb_selinux_get_device_create_context. */
81 #define XCB_SELINUX_GET_DEVICE_CREATE_CONTEXT 2
82 
83 /**
84  * @brief xcb_selinux_get_device_create_context_request_t
85  **/
86 typedef struct xcb_selinux_get_device_create_context_request_t {
87     uint8_t  major_opcode; /**<  */
88     uint8_t  minor_opcode; /**<  */
89     uint16_t length; /**<  */
90 } xcb_selinux_get_device_create_context_request_t;
91 
92 /**
93  * @brief xcb_selinux_get_device_create_context_reply_t
94  **/
95 typedef struct xcb_selinux_get_device_create_context_reply_t {
96     uint8_t  response_type; /**<  */
97     uint8_t  pad0; /**<  */
98     uint16_t sequence; /**<  */
99     uint32_t length; /**<  */
100     uint32_t context_len; /**<  */
101     uint8_t  pad1[20]; /**<  */
102 } xcb_selinux_get_device_create_context_reply_t;
103 
104 /** Opcode for xcb_selinux_set_device_context. */
105 #define XCB_SELINUX_SET_DEVICE_CONTEXT 3
106 
107 /**
108  * @brief xcb_selinux_set_device_context_request_t
109  **/
110 typedef struct xcb_selinux_set_device_context_request_t {
111     uint8_t  major_opcode; /**<  */
112     uint8_t  minor_opcode; /**<  */
113     uint16_t length; /**<  */
114     uint32_t device; /**<  */
115     uint32_t context_len; /**<  */
116 } xcb_selinux_set_device_context_request_t;
117 
118 /**
119  * @brief xcb_selinux_get_device_context_cookie_t
120  **/
121 typedef struct xcb_selinux_get_device_context_cookie_t {
122     unsigned int sequence; /**<  */
123 } xcb_selinux_get_device_context_cookie_t;
124 
125 /** Opcode for xcb_selinux_get_device_context. */
126 #define XCB_SELINUX_GET_DEVICE_CONTEXT 4
127 
128 /**
129  * @brief xcb_selinux_get_device_context_request_t
130  **/
131 typedef struct xcb_selinux_get_device_context_request_t {
132     uint8_t  major_opcode; /**<  */
133     uint8_t  minor_opcode; /**<  */
134     uint16_t length; /**<  */
135     uint32_t device; /**<  */
136 } xcb_selinux_get_device_context_request_t;
137 
138 /**
139  * @brief xcb_selinux_get_device_context_reply_t
140  **/
141 typedef struct xcb_selinux_get_device_context_reply_t {
142     uint8_t  response_type; /**<  */
143     uint8_t  pad0; /**<  */
144     uint16_t sequence; /**<  */
145     uint32_t length; /**<  */
146     uint32_t context_len; /**<  */
147     uint8_t  pad1[20]; /**<  */
148 } xcb_selinux_get_device_context_reply_t;
149 
150 /** Opcode for xcb_selinux_set_window_create_context. */
151 #define XCB_SELINUX_SET_WINDOW_CREATE_CONTEXT 5
152 
153 /**
154  * @brief xcb_selinux_set_window_create_context_request_t
155  **/
156 typedef struct xcb_selinux_set_window_create_context_request_t {
157     uint8_t  major_opcode; /**<  */
158     uint8_t  minor_opcode; /**<  */
159     uint16_t length; /**<  */
160     uint32_t context_len; /**<  */
161 } xcb_selinux_set_window_create_context_request_t;
162 
163 /**
164  * @brief xcb_selinux_get_window_create_context_cookie_t
165  **/
166 typedef struct xcb_selinux_get_window_create_context_cookie_t {
167     unsigned int sequence; /**<  */
168 } xcb_selinux_get_window_create_context_cookie_t;
169 
170 /** Opcode for xcb_selinux_get_window_create_context. */
171 #define XCB_SELINUX_GET_WINDOW_CREATE_CONTEXT 6
172 
173 /**
174  * @brief xcb_selinux_get_window_create_context_request_t
175  **/
176 typedef struct xcb_selinux_get_window_create_context_request_t {
177     uint8_t  major_opcode; /**<  */
178     uint8_t  minor_opcode; /**<  */
179     uint16_t length; /**<  */
180 } xcb_selinux_get_window_create_context_request_t;
181 
182 /**
183  * @brief xcb_selinux_get_window_create_context_reply_t
184  **/
185 typedef struct xcb_selinux_get_window_create_context_reply_t {
186     uint8_t  response_type; /**<  */
187     uint8_t  pad0; /**<  */
188     uint16_t sequence; /**<  */
189     uint32_t length; /**<  */
190     uint32_t context_len; /**<  */
191     uint8_t  pad1[20]; /**<  */
192 } xcb_selinux_get_window_create_context_reply_t;
193 
194 /**
195  * @brief xcb_selinux_get_window_context_cookie_t
196  **/
197 typedef struct xcb_selinux_get_window_context_cookie_t {
198     unsigned int sequence; /**<  */
199 } xcb_selinux_get_window_context_cookie_t;
200 
201 /** Opcode for xcb_selinux_get_window_context. */
202 #define XCB_SELINUX_GET_WINDOW_CONTEXT 7
203 
204 /**
205  * @brief xcb_selinux_get_window_context_request_t
206  **/
207 typedef struct xcb_selinux_get_window_context_request_t {
208     uint8_t      major_opcode; /**<  */
209     uint8_t      minor_opcode; /**<  */
210     uint16_t     length; /**<  */
211     xcb_window_t window; /**<  */
212 } xcb_selinux_get_window_context_request_t;
213 
214 /**
215  * @brief xcb_selinux_get_window_context_reply_t
216  **/
217 typedef struct xcb_selinux_get_window_context_reply_t {
218     uint8_t  response_type; /**<  */
219     uint8_t  pad0; /**<  */
220     uint16_t sequence; /**<  */
221     uint32_t length; /**<  */
222     uint32_t context_len; /**<  */
223     uint8_t  pad1[20]; /**<  */
224 } xcb_selinux_get_window_context_reply_t;
225 
226 /**
227  * @brief xcb_selinux_list_item_t
228  **/
229 typedef struct xcb_selinux_list_item_t {
230     xcb_atom_t name; /**<  */
231     uint32_t   object_context_len; /**<  */
232     uint32_t   data_context_len; /**<  */
233 } xcb_selinux_list_item_t;
234 
235 /**
236  * @brief xcb_selinux_list_item_iterator_t
237  **/
238 typedef struct xcb_selinux_list_item_iterator_t {
239     xcb_selinux_list_item_t *data; /**<  */
240     int                      rem; /**<  */
241     int                      index; /**<  */
242 } xcb_selinux_list_item_iterator_t;
243 
244 /** Opcode for xcb_selinux_set_property_create_context. */
245 #define XCB_SELINUX_SET_PROPERTY_CREATE_CONTEXT 8
246 
247 /**
248  * @brief xcb_selinux_set_property_create_context_request_t
249  **/
250 typedef struct xcb_selinux_set_property_create_context_request_t {
251     uint8_t  major_opcode; /**<  */
252     uint8_t  minor_opcode; /**<  */
253     uint16_t length; /**<  */
254     uint32_t context_len; /**<  */
255 } xcb_selinux_set_property_create_context_request_t;
256 
257 /**
258  * @brief xcb_selinux_get_property_create_context_cookie_t
259  **/
260 typedef struct xcb_selinux_get_property_create_context_cookie_t {
261     unsigned int sequence; /**<  */
262 } xcb_selinux_get_property_create_context_cookie_t;
263 
264 /** Opcode for xcb_selinux_get_property_create_context. */
265 #define XCB_SELINUX_GET_PROPERTY_CREATE_CONTEXT 9
266 
267 /**
268  * @brief xcb_selinux_get_property_create_context_request_t
269  **/
270 typedef struct xcb_selinux_get_property_create_context_request_t {
271     uint8_t  major_opcode; /**<  */
272     uint8_t  minor_opcode; /**<  */
273     uint16_t length; /**<  */
274 } xcb_selinux_get_property_create_context_request_t;
275 
276 /**
277  * @brief xcb_selinux_get_property_create_context_reply_t
278  **/
279 typedef struct xcb_selinux_get_property_create_context_reply_t {
280     uint8_t  response_type; /**<  */
281     uint8_t  pad0; /**<  */
282     uint16_t sequence; /**<  */
283     uint32_t length; /**<  */
284     uint32_t context_len; /**<  */
285     uint8_t  pad1[20]; /**<  */
286 } xcb_selinux_get_property_create_context_reply_t;
287 
288 /** Opcode for xcb_selinux_set_property_use_context. */
289 #define XCB_SELINUX_SET_PROPERTY_USE_CONTEXT 10
290 
291 /**
292  * @brief xcb_selinux_set_property_use_context_request_t
293  **/
294 typedef struct xcb_selinux_set_property_use_context_request_t {
295     uint8_t  major_opcode; /**<  */
296     uint8_t  minor_opcode; /**<  */
297     uint16_t length; /**<  */
298     uint32_t context_len; /**<  */
299 } xcb_selinux_set_property_use_context_request_t;
300 
301 /**
302  * @brief xcb_selinux_get_property_use_context_cookie_t
303  **/
304 typedef struct xcb_selinux_get_property_use_context_cookie_t {
305     unsigned int sequence; /**<  */
306 } xcb_selinux_get_property_use_context_cookie_t;
307 
308 /** Opcode for xcb_selinux_get_property_use_context. */
309 #define XCB_SELINUX_GET_PROPERTY_USE_CONTEXT 11
310 
311 /**
312  * @brief xcb_selinux_get_property_use_context_request_t
313  **/
314 typedef struct xcb_selinux_get_property_use_context_request_t {
315     uint8_t  major_opcode; /**<  */
316     uint8_t  minor_opcode; /**<  */
317     uint16_t length; /**<  */
318 } xcb_selinux_get_property_use_context_request_t;
319 
320 /**
321  * @brief xcb_selinux_get_property_use_context_reply_t
322  **/
323 typedef struct xcb_selinux_get_property_use_context_reply_t {
324     uint8_t  response_type; /**<  */
325     uint8_t  pad0; /**<  */
326     uint16_t sequence; /**<  */
327     uint32_t length; /**<  */
328     uint32_t context_len; /**<  */
329     uint8_t  pad1[20]; /**<  */
330 } xcb_selinux_get_property_use_context_reply_t;
331 
332 /**
333  * @brief xcb_selinux_get_property_context_cookie_t
334  **/
335 typedef struct xcb_selinux_get_property_context_cookie_t {
336     unsigned int sequence; /**<  */
337 } xcb_selinux_get_property_context_cookie_t;
338 
339 /** Opcode for xcb_selinux_get_property_context. */
340 #define XCB_SELINUX_GET_PROPERTY_CONTEXT 12
341 
342 /**
343  * @brief xcb_selinux_get_property_context_request_t
344  **/
345 typedef struct xcb_selinux_get_property_context_request_t {
346     uint8_t      major_opcode; /**<  */
347     uint8_t      minor_opcode; /**<  */
348     uint16_t     length; /**<  */
349     xcb_window_t window; /**<  */
350     xcb_atom_t   property; /**<  */
351 } xcb_selinux_get_property_context_request_t;
352 
353 /**
354  * @brief xcb_selinux_get_property_context_reply_t
355  **/
356 typedef struct xcb_selinux_get_property_context_reply_t {
357     uint8_t  response_type; /**<  */
358     uint8_t  pad0; /**<  */
359     uint16_t sequence; /**<  */
360     uint32_t length; /**<  */
361     uint32_t context_len; /**<  */
362     uint8_t  pad1[20]; /**<  */
363 } xcb_selinux_get_property_context_reply_t;
364 
365 /**
366  * @brief xcb_selinux_get_property_data_context_cookie_t
367  **/
368 typedef struct xcb_selinux_get_property_data_context_cookie_t {
369     unsigned int sequence; /**<  */
370 } xcb_selinux_get_property_data_context_cookie_t;
371 
372 /** Opcode for xcb_selinux_get_property_data_context. */
373 #define XCB_SELINUX_GET_PROPERTY_DATA_CONTEXT 13
374 
375 /**
376  * @brief xcb_selinux_get_property_data_context_request_t
377  **/
378 typedef struct xcb_selinux_get_property_data_context_request_t {
379     uint8_t      major_opcode; /**<  */
380     uint8_t      minor_opcode; /**<  */
381     uint16_t     length; /**<  */
382     xcb_window_t window; /**<  */
383     xcb_atom_t   property; /**<  */
384 } xcb_selinux_get_property_data_context_request_t;
385 
386 /**
387  * @brief xcb_selinux_get_property_data_context_reply_t
388  **/
389 typedef struct xcb_selinux_get_property_data_context_reply_t {
390     uint8_t  response_type; /**<  */
391     uint8_t  pad0; /**<  */
392     uint16_t sequence; /**<  */
393     uint32_t length; /**<  */
394     uint32_t context_len; /**<  */
395     uint8_t  pad1[20]; /**<  */
396 } xcb_selinux_get_property_data_context_reply_t;
397 
398 /**
399  * @brief xcb_selinux_list_properties_cookie_t
400  **/
401 typedef struct xcb_selinux_list_properties_cookie_t {
402     unsigned int sequence; /**<  */
403 } xcb_selinux_list_properties_cookie_t;
404 
405 /** Opcode for xcb_selinux_list_properties. */
406 #define XCB_SELINUX_LIST_PROPERTIES 14
407 
408 /**
409  * @brief xcb_selinux_list_properties_request_t
410  **/
411 typedef struct xcb_selinux_list_properties_request_t {
412     uint8_t      major_opcode; /**<  */
413     uint8_t      minor_opcode; /**<  */
414     uint16_t     length; /**<  */
415     xcb_window_t window; /**<  */
416 } xcb_selinux_list_properties_request_t;
417 
418 /**
419  * @brief xcb_selinux_list_properties_reply_t
420  **/
421 typedef struct xcb_selinux_list_properties_reply_t {
422     uint8_t  response_type; /**<  */
423     uint8_t  pad0; /**<  */
424     uint16_t sequence; /**<  */
425     uint32_t length; /**<  */
426     uint32_t properties_len; /**<  */
427     uint8_t  pad1[20]; /**<  */
428 } xcb_selinux_list_properties_reply_t;
429 
430 /** Opcode for xcb_selinux_set_selection_create_context. */
431 #define XCB_SELINUX_SET_SELECTION_CREATE_CONTEXT 15
432 
433 /**
434  * @brief xcb_selinux_set_selection_create_context_request_t
435  **/
436 typedef struct xcb_selinux_set_selection_create_context_request_t {
437     uint8_t  major_opcode; /**<  */
438     uint8_t  minor_opcode; /**<  */
439     uint16_t length; /**<  */
440     uint32_t context_len; /**<  */
441 } xcb_selinux_set_selection_create_context_request_t;
442 
443 /**
444  * @brief xcb_selinux_get_selection_create_context_cookie_t
445  **/
446 typedef struct xcb_selinux_get_selection_create_context_cookie_t {
447     unsigned int sequence; /**<  */
448 } xcb_selinux_get_selection_create_context_cookie_t;
449 
450 /** Opcode for xcb_selinux_get_selection_create_context. */
451 #define XCB_SELINUX_GET_SELECTION_CREATE_CONTEXT 16
452 
453 /**
454  * @brief xcb_selinux_get_selection_create_context_request_t
455  **/
456 typedef struct xcb_selinux_get_selection_create_context_request_t {
457     uint8_t  major_opcode; /**<  */
458     uint8_t  minor_opcode; /**<  */
459     uint16_t length; /**<  */
460 } xcb_selinux_get_selection_create_context_request_t;
461 
462 /**
463  * @brief xcb_selinux_get_selection_create_context_reply_t
464  **/
465 typedef struct xcb_selinux_get_selection_create_context_reply_t {
466     uint8_t  response_type; /**<  */
467     uint8_t  pad0; /**<  */
468     uint16_t sequence; /**<  */
469     uint32_t length; /**<  */
470     uint32_t context_len; /**<  */
471     uint8_t  pad1[20]; /**<  */
472 } xcb_selinux_get_selection_create_context_reply_t;
473 
474 /** Opcode for xcb_selinux_set_selection_use_context. */
475 #define XCB_SELINUX_SET_SELECTION_USE_CONTEXT 17
476 
477 /**
478  * @brief xcb_selinux_set_selection_use_context_request_t
479  **/
480 typedef struct xcb_selinux_set_selection_use_context_request_t {
481     uint8_t  major_opcode; /**<  */
482     uint8_t  minor_opcode; /**<  */
483     uint16_t length; /**<  */
484     uint32_t context_len; /**<  */
485 } xcb_selinux_set_selection_use_context_request_t;
486 
487 /**
488  * @brief xcb_selinux_get_selection_use_context_cookie_t
489  **/
490 typedef struct xcb_selinux_get_selection_use_context_cookie_t {
491     unsigned int sequence; /**<  */
492 } xcb_selinux_get_selection_use_context_cookie_t;
493 
494 /** Opcode for xcb_selinux_get_selection_use_context. */
495 #define XCB_SELINUX_GET_SELECTION_USE_CONTEXT 18
496 
497 /**
498  * @brief xcb_selinux_get_selection_use_context_request_t
499  **/
500 typedef struct xcb_selinux_get_selection_use_context_request_t {
501     uint8_t  major_opcode; /**<  */
502     uint8_t  minor_opcode; /**<  */
503     uint16_t length; /**<  */
504 } xcb_selinux_get_selection_use_context_request_t;
505 
506 /**
507  * @brief xcb_selinux_get_selection_use_context_reply_t
508  **/
509 typedef struct xcb_selinux_get_selection_use_context_reply_t {
510     uint8_t  response_type; /**<  */
511     uint8_t  pad0; /**<  */
512     uint16_t sequence; /**<  */
513     uint32_t length; /**<  */
514     uint32_t context_len; /**<  */
515     uint8_t  pad1[20]; /**<  */
516 } xcb_selinux_get_selection_use_context_reply_t;
517 
518 /**
519  * @brief xcb_selinux_get_selection_context_cookie_t
520  **/
521 typedef struct xcb_selinux_get_selection_context_cookie_t {
522     unsigned int sequence; /**<  */
523 } xcb_selinux_get_selection_context_cookie_t;
524 
525 /** Opcode for xcb_selinux_get_selection_context. */
526 #define XCB_SELINUX_GET_SELECTION_CONTEXT 19
527 
528 /**
529  * @brief xcb_selinux_get_selection_context_request_t
530  **/
531 typedef struct xcb_selinux_get_selection_context_request_t {
532     uint8_t    major_opcode; /**<  */
533     uint8_t    minor_opcode; /**<  */
534     uint16_t   length; /**<  */
535     xcb_atom_t selection; /**<  */
536 } xcb_selinux_get_selection_context_request_t;
537 
538 /**
539  * @brief xcb_selinux_get_selection_context_reply_t
540  **/
541 typedef struct xcb_selinux_get_selection_context_reply_t {
542     uint8_t  response_type; /**<  */
543     uint8_t  pad0; /**<  */
544     uint16_t sequence; /**<  */
545     uint32_t length; /**<  */
546     uint32_t context_len; /**<  */
547     uint8_t  pad1[20]; /**<  */
548 } xcb_selinux_get_selection_context_reply_t;
549 
550 /**
551  * @brief xcb_selinux_get_selection_data_context_cookie_t
552  **/
553 typedef struct xcb_selinux_get_selection_data_context_cookie_t {
554     unsigned int sequence; /**<  */
555 } xcb_selinux_get_selection_data_context_cookie_t;
556 
557 /** Opcode for xcb_selinux_get_selection_data_context. */
558 #define XCB_SELINUX_GET_SELECTION_DATA_CONTEXT 20
559 
560 /**
561  * @brief xcb_selinux_get_selection_data_context_request_t
562  **/
563 typedef struct xcb_selinux_get_selection_data_context_request_t {
564     uint8_t    major_opcode; /**<  */
565     uint8_t    minor_opcode; /**<  */
566     uint16_t   length; /**<  */
567     xcb_atom_t selection; /**<  */
568 } xcb_selinux_get_selection_data_context_request_t;
569 
570 /**
571  * @brief xcb_selinux_get_selection_data_context_reply_t
572  **/
573 typedef struct xcb_selinux_get_selection_data_context_reply_t {
574     uint8_t  response_type; /**<  */
575     uint8_t  pad0; /**<  */
576     uint16_t sequence; /**<  */
577     uint32_t length; /**<  */
578     uint32_t context_len; /**<  */
579     uint8_t  pad1[20]; /**<  */
580 } xcb_selinux_get_selection_data_context_reply_t;
581 
582 /**
583  * @brief xcb_selinux_list_selections_cookie_t
584  **/
585 typedef struct xcb_selinux_list_selections_cookie_t {
586     unsigned int sequence; /**<  */
587 } xcb_selinux_list_selections_cookie_t;
588 
589 /** Opcode for xcb_selinux_list_selections. */
590 #define XCB_SELINUX_LIST_SELECTIONS 21
591 
592 /**
593  * @brief xcb_selinux_list_selections_request_t
594  **/
595 typedef struct xcb_selinux_list_selections_request_t {
596     uint8_t  major_opcode; /**<  */
597     uint8_t  minor_opcode; /**<  */
598     uint16_t length; /**<  */
599 } xcb_selinux_list_selections_request_t;
600 
601 /**
602  * @brief xcb_selinux_list_selections_reply_t
603  **/
604 typedef struct xcb_selinux_list_selections_reply_t {
605     uint8_t  response_type; /**<  */
606     uint8_t  pad0; /**<  */
607     uint16_t sequence; /**<  */
608     uint32_t length; /**<  */
609     uint32_t selections_len; /**<  */
610     uint8_t  pad1[20]; /**<  */
611 } xcb_selinux_list_selections_reply_t;
612 
613 /**
614  * @brief xcb_selinux_get_client_context_cookie_t
615  **/
616 typedef struct xcb_selinux_get_client_context_cookie_t {
617     unsigned int sequence; /**<  */
618 } xcb_selinux_get_client_context_cookie_t;
619 
620 /** Opcode for xcb_selinux_get_client_context. */
621 #define XCB_SELINUX_GET_CLIENT_CONTEXT 22
622 
623 /**
624  * @brief xcb_selinux_get_client_context_request_t
625  **/
626 typedef struct xcb_selinux_get_client_context_request_t {
627     uint8_t  major_opcode; /**<  */
628     uint8_t  minor_opcode; /**<  */
629     uint16_t length; /**<  */
630     uint32_t resource; /**<  */
631 } xcb_selinux_get_client_context_request_t;
632 
633 /**
634  * @brief xcb_selinux_get_client_context_reply_t
635  **/
636 typedef struct xcb_selinux_get_client_context_reply_t {
637     uint8_t  response_type; /**<  */
638     uint8_t  pad0; /**<  */
639     uint16_t sequence; /**<  */
640     uint32_t length; /**<  */
641     uint32_t context_len; /**<  */
642     uint8_t  pad1[20]; /**<  */
643 } xcb_selinux_get_client_context_reply_t;
644 
645 /**
646  *
647  * @param c The connection
648  * @return A cookie
649  *
650  * Delivers a request to the X server.
651  *
652  */
653 xcb_selinux_query_version_cookie_t
654 xcb_selinux_query_version (xcb_connection_t *c  /**< */,
655                            uint8_t           client_major  /**< */,
656                            uint8_t           client_minor  /**< */);
657 
658 /**
659  *
660  * @param c The connection
661  * @return A cookie
662  *
663  * Delivers a request to the X server.
664  *
665  * This form can be used only if the request will cause
666  * a reply to be generated. Any returned error will be
667  * placed in the event queue.
668  */
669 xcb_selinux_query_version_cookie_t
670 xcb_selinux_query_version_unchecked (xcb_connection_t *c  /**< */,
671                                      uint8_t           client_major  /**< */,
672                                      uint8_t           client_minor  /**< */);
673 
674 /**
675  * Return the reply
676  * @param c      The connection
677  * @param cookie The cookie
678  * @param e      The xcb_generic_error_t supplied
679  *
680  * Returns the reply of the request asked by
681  *
682  * The parameter @p e supplied to this function must be NULL if
683  * xcb_selinux_query_version_unchecked(). is used.
684  * Otherwise, it stores the error if any.
685  *
686  * The returned value must be freed by the caller using free().
687  */
688 xcb_selinux_query_version_reply_t *
689 xcb_selinux_query_version_reply (xcb_connection_t                    *c  /**< */,
690                                  xcb_selinux_query_version_cookie_t   cookie  /**< */,
691                                  xcb_generic_error_t                **e  /**< */);
692 
693 int
694 xcb_selinux_set_device_create_context_sizeof (const void  *_buffer  /**< */);
695 
696 /**
697  *
698  * @param c The connection
699  * @return A cookie
700  *
701  * Delivers a request to the X server.
702  *
703  * This form can be used only if the request will not cause
704  * a reply to be generated. Any returned error will be
705  * saved for handling by xcb_request_check().
706  */
707 xcb_void_cookie_t
708 xcb_selinux_set_device_create_context_checked (xcb_connection_t *c  /**< */,
709                                                uint32_t          context_len  /**< */,
710                                                const char       *context  /**< */);
711 
712 /**
713  *
714  * @param c The connection
715  * @return A cookie
716  *
717  * Delivers a request to the X server.
718  *
719  */
720 xcb_void_cookie_t
721 xcb_selinux_set_device_create_context (xcb_connection_t *c  /**< */,
722                                        uint32_t          context_len  /**< */,
723                                        const char       *context  /**< */);
724 
725 int
726 xcb_selinux_get_device_create_context_sizeof (const void  *_buffer  /**< */);
727 
728 /**
729  *
730  * @param c The connection
731  * @return A cookie
732  *
733  * Delivers a request to the X server.
734  *
735  */
736 xcb_selinux_get_device_create_context_cookie_t
737 xcb_selinux_get_device_create_context (xcb_connection_t *c  /**< */);
738 
739 /**
740  *
741  * @param c The connection
742  * @return A cookie
743  *
744  * Delivers a request to the X server.
745  *
746  * This form can be used only if the request will cause
747  * a reply to be generated. Any returned error will be
748  * placed in the event queue.
749  */
750 xcb_selinux_get_device_create_context_cookie_t
751 xcb_selinux_get_device_create_context_unchecked (xcb_connection_t *c  /**< */);
752 
753 char *
754 xcb_selinux_get_device_create_context_context (const xcb_selinux_get_device_create_context_reply_t *R  /**< */);
755 
756 int
757 xcb_selinux_get_device_create_context_context_length (const xcb_selinux_get_device_create_context_reply_t *R  /**< */);
758 
759 xcb_generic_iterator_t
760 xcb_selinux_get_device_create_context_context_end (const xcb_selinux_get_device_create_context_reply_t *R  /**< */);
761 
762 /**
763  * Return the reply
764  * @param c      The connection
765  * @param cookie The cookie
766  * @param e      The xcb_generic_error_t supplied
767  *
768  * Returns the reply of the request asked by
769  *
770  * The parameter @p e supplied to this function must be NULL if
771  * xcb_selinux_get_device_create_context_unchecked(). is used.
772  * Otherwise, it stores the error if any.
773  *
774  * The returned value must be freed by the caller using free().
775  */
776 xcb_selinux_get_device_create_context_reply_t *
777 xcb_selinux_get_device_create_context_reply (xcb_connection_t                                *c  /**< */,
778                                              xcb_selinux_get_device_create_context_cookie_t   cookie  /**< */,
779                                              xcb_generic_error_t                            **e  /**< */);
780 
781 int
782 xcb_selinux_set_device_context_sizeof (const void  *_buffer  /**< */);
783 
784 /**
785  *
786  * @param c The connection
787  * @return A cookie
788  *
789  * Delivers a request to the X server.
790  *
791  * This form can be used only if the request will not cause
792  * a reply to be generated. Any returned error will be
793  * saved for handling by xcb_request_check().
794  */
795 xcb_void_cookie_t
796 xcb_selinux_set_device_context_checked (xcb_connection_t *c  /**< */,
797                                         uint32_t          device  /**< */,
798                                         uint32_t          context_len  /**< */,
799                                         const char       *context  /**< */);
800 
801 /**
802  *
803  * @param c The connection
804  * @return A cookie
805  *
806  * Delivers a request to the X server.
807  *
808  */
809 xcb_void_cookie_t
810 xcb_selinux_set_device_context (xcb_connection_t *c  /**< */,
811                                 uint32_t          device  /**< */,
812                                 uint32_t          context_len  /**< */,
813                                 const char       *context  /**< */);
814 
815 int
816 xcb_selinux_get_device_context_sizeof (const void  *_buffer  /**< */);
817 
818 /**
819  *
820  * @param c The connection
821  * @return A cookie
822  *
823  * Delivers a request to the X server.
824  *
825  */
826 xcb_selinux_get_device_context_cookie_t
827 xcb_selinux_get_device_context (xcb_connection_t *c  /**< */,
828                                 uint32_t          device  /**< */);
829 
830 /**
831  *
832  * @param c The connection
833  * @return A cookie
834  *
835  * Delivers a request to the X server.
836  *
837  * This form can be used only if the request will cause
838  * a reply to be generated. Any returned error will be
839  * placed in the event queue.
840  */
841 xcb_selinux_get_device_context_cookie_t
842 xcb_selinux_get_device_context_unchecked (xcb_connection_t *c  /**< */,
843                                           uint32_t          device  /**< */);
844 
845 char *
846 xcb_selinux_get_device_context_context (const xcb_selinux_get_device_context_reply_t *R  /**< */);
847 
848 int
849 xcb_selinux_get_device_context_context_length (const xcb_selinux_get_device_context_reply_t *R  /**< */);
850 
851 xcb_generic_iterator_t
852 xcb_selinux_get_device_context_context_end (const xcb_selinux_get_device_context_reply_t *R  /**< */);
853 
854 /**
855  * Return the reply
856  * @param c      The connection
857  * @param cookie The cookie
858  * @param e      The xcb_generic_error_t supplied
859  *
860  * Returns the reply of the request asked by
861  *
862  * The parameter @p e supplied to this function must be NULL if
863  * xcb_selinux_get_device_context_unchecked(). is used.
864  * Otherwise, it stores the error if any.
865  *
866  * The returned value must be freed by the caller using free().
867  */
868 xcb_selinux_get_device_context_reply_t *
869 xcb_selinux_get_device_context_reply (xcb_connection_t                         *c  /**< */,
870                                       xcb_selinux_get_device_context_cookie_t   cookie  /**< */,
871                                       xcb_generic_error_t                     **e  /**< */);
872 
873 int
874 xcb_selinux_set_window_create_context_sizeof (const void  *_buffer  /**< */);
875 
876 /**
877  *
878  * @param c The connection
879  * @return A cookie
880  *
881  * Delivers a request to the X server.
882  *
883  * This form can be used only if the request will not cause
884  * a reply to be generated. Any returned error will be
885  * saved for handling by xcb_request_check().
886  */
887 xcb_void_cookie_t
888 xcb_selinux_set_window_create_context_checked (xcb_connection_t *c  /**< */,
889                                                uint32_t          context_len  /**< */,
890                                                const char       *context  /**< */);
891 
892 /**
893  *
894  * @param c The connection
895  * @return A cookie
896  *
897  * Delivers a request to the X server.
898  *
899  */
900 xcb_void_cookie_t
901 xcb_selinux_set_window_create_context (xcb_connection_t *c  /**< */,
902                                        uint32_t          context_len  /**< */,
903                                        const char       *context  /**< */);
904 
905 int
906 xcb_selinux_get_window_create_context_sizeof (const void  *_buffer  /**< */);
907 
908 /**
909  *
910  * @param c The connection
911  * @return A cookie
912  *
913  * Delivers a request to the X server.
914  *
915  */
916 xcb_selinux_get_window_create_context_cookie_t
917 xcb_selinux_get_window_create_context (xcb_connection_t *c  /**< */);
918 
919 /**
920  *
921  * @param c The connection
922  * @return A cookie
923  *
924  * Delivers a request to the X server.
925  *
926  * This form can be used only if the request will cause
927  * a reply to be generated. Any returned error will be
928  * placed in the event queue.
929  */
930 xcb_selinux_get_window_create_context_cookie_t
931 xcb_selinux_get_window_create_context_unchecked (xcb_connection_t *c  /**< */);
932 
933 char *
934 xcb_selinux_get_window_create_context_context (const xcb_selinux_get_window_create_context_reply_t *R  /**< */);
935 
936 int
937 xcb_selinux_get_window_create_context_context_length (const xcb_selinux_get_window_create_context_reply_t *R  /**< */);
938 
939 xcb_generic_iterator_t
940 xcb_selinux_get_window_create_context_context_end (const xcb_selinux_get_window_create_context_reply_t *R  /**< */);
941 
942 /**
943  * Return the reply
944  * @param c      The connection
945  * @param cookie The cookie
946  * @param e      The xcb_generic_error_t supplied
947  *
948  * Returns the reply of the request asked by
949  *
950  * The parameter @p e supplied to this function must be NULL if
951  * xcb_selinux_get_window_create_context_unchecked(). is used.
952  * Otherwise, it stores the error if any.
953  *
954  * The returned value must be freed by the caller using free().
955  */
956 xcb_selinux_get_window_create_context_reply_t *
957 xcb_selinux_get_window_create_context_reply (xcb_connection_t                                *c  /**< */,
958                                              xcb_selinux_get_window_create_context_cookie_t   cookie  /**< */,
959                                              xcb_generic_error_t                            **e  /**< */);
960 
961 int
962 xcb_selinux_get_window_context_sizeof (const void  *_buffer  /**< */);
963 
964 /**
965  *
966  * @param c The connection
967  * @return A cookie
968  *
969  * Delivers a request to the X server.
970  *
971  */
972 xcb_selinux_get_window_context_cookie_t
973 xcb_selinux_get_window_context (xcb_connection_t *c  /**< */,
974                                 xcb_window_t      window  /**< */);
975 
976 /**
977  *
978  * @param c The connection
979  * @return A cookie
980  *
981  * Delivers a request to the X server.
982  *
983  * This form can be used only if the request will cause
984  * a reply to be generated. Any returned error will be
985  * placed in the event queue.
986  */
987 xcb_selinux_get_window_context_cookie_t
988 xcb_selinux_get_window_context_unchecked (xcb_connection_t *c  /**< */,
989                                           xcb_window_t      window  /**< */);
990 
991 char *
992 xcb_selinux_get_window_context_context (const xcb_selinux_get_window_context_reply_t *R  /**< */);
993 
994 int
995 xcb_selinux_get_window_context_context_length (const xcb_selinux_get_window_context_reply_t *R  /**< */);
996 
997 xcb_generic_iterator_t
998 xcb_selinux_get_window_context_context_end (const xcb_selinux_get_window_context_reply_t *R  /**< */);
999 
1000 /**
1001  * Return the reply
1002  * @param c      The connection
1003  * @param cookie The cookie
1004  * @param e      The xcb_generic_error_t supplied
1005  *
1006  * Returns the reply of the request asked by
1007  *
1008  * The parameter @p e supplied to this function must be NULL if
1009  * xcb_selinux_get_window_context_unchecked(). is used.
1010  * Otherwise, it stores the error if any.
1011  *
1012  * The returned value must be freed by the caller using free().
1013  */
1014 xcb_selinux_get_window_context_reply_t *
1015 xcb_selinux_get_window_context_reply (xcb_connection_t                         *c  /**< */,
1016                                       xcb_selinux_get_window_context_cookie_t   cookie  /**< */,
1017                                       xcb_generic_error_t                     **e  /**< */);
1018 
1019 int
1020 xcb_selinux_list_item_sizeof (const void  *_buffer  /**< */);
1021 
1022 char *
1023 xcb_selinux_list_item_object_context (const xcb_selinux_list_item_t *R  /**< */);
1024 
1025 int
1026 xcb_selinux_list_item_object_context_length (const xcb_selinux_list_item_t *R  /**< */);
1027 
1028 xcb_generic_iterator_t
1029 xcb_selinux_list_item_object_context_end (const xcb_selinux_list_item_t *R  /**< */);
1030 
1031 char *
1032 xcb_selinux_list_item_data_context (const xcb_selinux_list_item_t *R  /**< */);
1033 
1034 int
1035 xcb_selinux_list_item_data_context_length (const xcb_selinux_list_item_t *R  /**< */);
1036 
1037 xcb_generic_iterator_t
1038 xcb_selinux_list_item_data_context_end (const xcb_selinux_list_item_t *R  /**< */);
1039 
1040 /**
1041  * Get the next element of the iterator
1042  * @param i Pointer to a xcb_selinux_list_item_iterator_t
1043  *
1044  * Get the next element in the iterator. The member rem is
1045  * decreased by one. The member data points to the next
1046  * element. The member index is increased by sizeof(xcb_selinux_list_item_t)
1047  */
1048 void
1049 xcb_selinux_list_item_next (xcb_selinux_list_item_iterator_t *i  /**< */);
1050 
1051 /**
1052  * Return the iterator pointing to the last element
1053  * @param i An xcb_selinux_list_item_iterator_t
1054  * @return  The iterator pointing to the last element
1055  *
1056  * Set the current element in the iterator to the last element.
1057  * The member rem is set to 0. The member data points to the
1058  * last element.
1059  */
1060 xcb_generic_iterator_t
1061 xcb_selinux_list_item_end (xcb_selinux_list_item_iterator_t i  /**< */);
1062 
1063 int
1064 xcb_selinux_set_property_create_context_sizeof (const void  *_buffer  /**< */);
1065 
1066 /**
1067  *
1068  * @param c The connection
1069  * @return A cookie
1070  *
1071  * Delivers a request to the X server.
1072  *
1073  * This form can be used only if the request will not cause
1074  * a reply to be generated. Any returned error will be
1075  * saved for handling by xcb_request_check().
1076  */
1077 xcb_void_cookie_t
1078 xcb_selinux_set_property_create_context_checked (xcb_connection_t *c  /**< */,
1079                                                  uint32_t          context_len  /**< */,
1080                                                  const char       *context  /**< */);
1081 
1082 /**
1083  *
1084  * @param c The connection
1085  * @return A cookie
1086  *
1087  * Delivers a request to the X server.
1088  *
1089  */
1090 xcb_void_cookie_t
1091 xcb_selinux_set_property_create_context (xcb_connection_t *c  /**< */,
1092                                          uint32_t          context_len  /**< */,
1093                                          const char       *context  /**< */);
1094 
1095 int
1096 xcb_selinux_get_property_create_context_sizeof (const void  *_buffer  /**< */);
1097 
1098 /**
1099  *
1100  * @param c The connection
1101  * @return A cookie
1102  *
1103  * Delivers a request to the X server.
1104  *
1105  */
1106 xcb_selinux_get_property_create_context_cookie_t
1107 xcb_selinux_get_property_create_context (xcb_connection_t *c  /**< */);
1108 
1109 /**
1110  *
1111  * @param c The connection
1112  * @return A cookie
1113  *
1114  * Delivers a request to the X server.
1115  *
1116  * This form can be used only if the request will cause
1117  * a reply to be generated. Any returned error will be
1118  * placed in the event queue.
1119  */
1120 xcb_selinux_get_property_create_context_cookie_t
1121 xcb_selinux_get_property_create_context_unchecked (xcb_connection_t *c  /**< */);
1122 
1123 char *
1124 xcb_selinux_get_property_create_context_context (const xcb_selinux_get_property_create_context_reply_t *R  /**< */);
1125 
1126 int
1127 xcb_selinux_get_property_create_context_context_length (const xcb_selinux_get_property_create_context_reply_t *R  /**< */);
1128 
1129 xcb_generic_iterator_t
1130 xcb_selinux_get_property_create_context_context_end (const xcb_selinux_get_property_create_context_reply_t *R  /**< */);
1131 
1132 /**
1133  * Return the reply
1134  * @param c      The connection
1135  * @param cookie The cookie
1136  * @param e      The xcb_generic_error_t supplied
1137  *
1138  * Returns the reply of the request asked by
1139  *
1140  * The parameter @p e supplied to this function must be NULL if
1141  * xcb_selinux_get_property_create_context_unchecked(). is used.
1142  * Otherwise, it stores the error if any.
1143  *
1144  * The returned value must be freed by the caller using free().
1145  */
1146 xcb_selinux_get_property_create_context_reply_t *
1147 xcb_selinux_get_property_create_context_reply (xcb_connection_t                                  *c  /**< */,
1148                                                xcb_selinux_get_property_create_context_cookie_t   cookie  /**< */,
1149                                                xcb_generic_error_t                              **e  /**< */);
1150 
1151 int
1152 xcb_selinux_set_property_use_context_sizeof (const void  *_buffer  /**< */);
1153 
1154 /**
1155  *
1156  * @param c The connection
1157  * @return A cookie
1158  *
1159  * Delivers a request to the X server.
1160  *
1161  * This form can be used only if the request will not cause
1162  * a reply to be generated. Any returned error will be
1163  * saved for handling by xcb_request_check().
1164  */
1165 xcb_void_cookie_t
1166 xcb_selinux_set_property_use_context_checked (xcb_connection_t *c  /**< */,
1167                                               uint32_t          context_len  /**< */,
1168                                               const char       *context  /**< */);
1169 
1170 /**
1171  *
1172  * @param c The connection
1173  * @return A cookie
1174  *
1175  * Delivers a request to the X server.
1176  *
1177  */
1178 xcb_void_cookie_t
1179 xcb_selinux_set_property_use_context (xcb_connection_t *c  /**< */,
1180                                       uint32_t          context_len  /**< */,
1181                                       const char       *context  /**< */);
1182 
1183 int
1184 xcb_selinux_get_property_use_context_sizeof (const void  *_buffer  /**< */);
1185 
1186 /**
1187  *
1188  * @param c The connection
1189  * @return A cookie
1190  *
1191  * Delivers a request to the X server.
1192  *
1193  */
1194 xcb_selinux_get_property_use_context_cookie_t
1195 xcb_selinux_get_property_use_context (xcb_connection_t *c  /**< */);
1196 
1197 /**
1198  *
1199  * @param c The connection
1200  * @return A cookie
1201  *
1202  * Delivers a request to the X server.
1203  *
1204  * This form can be used only if the request will cause
1205  * a reply to be generated. Any returned error will be
1206  * placed in the event queue.
1207  */
1208 xcb_selinux_get_property_use_context_cookie_t
1209 xcb_selinux_get_property_use_context_unchecked (xcb_connection_t *c  /**< */);
1210 
1211 char *
1212 xcb_selinux_get_property_use_context_context (const xcb_selinux_get_property_use_context_reply_t *R  /**< */);
1213 
1214 int
1215 xcb_selinux_get_property_use_context_context_length (const xcb_selinux_get_property_use_context_reply_t *R  /**< */);
1216 
1217 xcb_generic_iterator_t
1218 xcb_selinux_get_property_use_context_context_end (const xcb_selinux_get_property_use_context_reply_t *R  /**< */);
1219 
1220 /**
1221  * Return the reply
1222  * @param c      The connection
1223  * @param cookie The cookie
1224  * @param e      The xcb_generic_error_t supplied
1225  *
1226  * Returns the reply of the request asked by
1227  *
1228  * The parameter @p e supplied to this function must be NULL if
1229  * xcb_selinux_get_property_use_context_unchecked(). is used.
1230  * Otherwise, it stores the error if any.
1231  *
1232  * The returned value must be freed by the caller using free().
1233  */
1234 xcb_selinux_get_property_use_context_reply_t *
1235 xcb_selinux_get_property_use_context_reply (xcb_connection_t                               *c  /**< */,
1236                                             xcb_selinux_get_property_use_context_cookie_t   cookie  /**< */,
1237                                             xcb_generic_error_t                           **e  /**< */);
1238 
1239 int
1240 xcb_selinux_get_property_context_sizeof (const void  *_buffer  /**< */);
1241 
1242 /**
1243  *
1244  * @param c The connection
1245  * @return A cookie
1246  *
1247  * Delivers a request to the X server.
1248  *
1249  */
1250 xcb_selinux_get_property_context_cookie_t
1251 xcb_selinux_get_property_context (xcb_connection_t *c  /**< */,
1252                                   xcb_window_t      window  /**< */,
1253                                   xcb_atom_t        property  /**< */);
1254 
1255 /**
1256  *
1257  * @param c The connection
1258  * @return A cookie
1259  *
1260  * Delivers a request to the X server.
1261  *
1262  * This form can be used only if the request will cause
1263  * a reply to be generated. Any returned error will be
1264  * placed in the event queue.
1265  */
1266 xcb_selinux_get_property_context_cookie_t
1267 xcb_selinux_get_property_context_unchecked (xcb_connection_t *c  /**< */,
1268                                             xcb_window_t      window  /**< */,
1269                                             xcb_atom_t        property  /**< */);
1270 
1271 char *
1272 xcb_selinux_get_property_context_context (const xcb_selinux_get_property_context_reply_t *R  /**< */);
1273 
1274 int
1275 xcb_selinux_get_property_context_context_length (const xcb_selinux_get_property_context_reply_t *R  /**< */);
1276 
1277 xcb_generic_iterator_t
1278 xcb_selinux_get_property_context_context_end (const xcb_selinux_get_property_context_reply_t *R  /**< */);
1279 
1280 /**
1281  * Return the reply
1282  * @param c      The connection
1283  * @param cookie The cookie
1284  * @param e      The xcb_generic_error_t supplied
1285  *
1286  * Returns the reply of the request asked by
1287  *
1288  * The parameter @p e supplied to this function must be NULL if
1289  * xcb_selinux_get_property_context_unchecked(). is used.
1290  * Otherwise, it stores the error if any.
1291  *
1292  * The returned value must be freed by the caller using free().
1293  */
1294 xcb_selinux_get_property_context_reply_t *
1295 xcb_selinux_get_property_context_reply (xcb_connection_t                           *c  /**< */,
1296                                         xcb_selinux_get_property_context_cookie_t   cookie  /**< */,
1297                                         xcb_generic_error_t                       **e  /**< */);
1298 
1299 int
1300 xcb_selinux_get_property_data_context_sizeof (const void  *_buffer  /**< */);
1301 
1302 /**
1303  *
1304  * @param c The connection
1305  * @return A cookie
1306  *
1307  * Delivers a request to the X server.
1308  *
1309  */
1310 xcb_selinux_get_property_data_context_cookie_t
1311 xcb_selinux_get_property_data_context (xcb_connection_t *c  /**< */,
1312                                        xcb_window_t      window  /**< */,
1313                                        xcb_atom_t        property  /**< */);
1314 
1315 /**
1316  *
1317  * @param c The connection
1318  * @return A cookie
1319  *
1320  * Delivers a request to the X server.
1321  *
1322  * This form can be used only if the request will cause
1323  * a reply to be generated. Any returned error will be
1324  * placed in the event queue.
1325  */
1326 xcb_selinux_get_property_data_context_cookie_t
1327 xcb_selinux_get_property_data_context_unchecked (xcb_connection_t *c  /**< */,
1328                                                  xcb_window_t      window  /**< */,
1329                                                  xcb_atom_t        property  /**< */);
1330 
1331 char *
1332 xcb_selinux_get_property_data_context_context (const xcb_selinux_get_property_data_context_reply_t *R  /**< */);
1333 
1334 int
1335 xcb_selinux_get_property_data_context_context_length (const xcb_selinux_get_property_data_context_reply_t *R  /**< */);
1336 
1337 xcb_generic_iterator_t
1338 xcb_selinux_get_property_data_context_context_end (const xcb_selinux_get_property_data_context_reply_t *R  /**< */);
1339 
1340 /**
1341  * Return the reply
1342  * @param c      The connection
1343  * @param cookie The cookie
1344  * @param e      The xcb_generic_error_t supplied
1345  *
1346  * Returns the reply of the request asked by
1347  *
1348  * The parameter @p e supplied to this function must be NULL if
1349  * xcb_selinux_get_property_data_context_unchecked(). is used.
1350  * Otherwise, it stores the error if any.
1351  *
1352  * The returned value must be freed by the caller using free().
1353  */
1354 xcb_selinux_get_property_data_context_reply_t *
1355 xcb_selinux_get_property_data_context_reply (xcb_connection_t                                *c  /**< */,
1356                                              xcb_selinux_get_property_data_context_cookie_t   cookie  /**< */,
1357                                              xcb_generic_error_t                            **e  /**< */);
1358 
1359 int
1360 xcb_selinux_list_properties_sizeof (const void  *_buffer  /**< */);
1361 
1362 /**
1363  *
1364  * @param c The connection
1365  * @return A cookie
1366  *
1367  * Delivers a request to the X server.
1368  *
1369  */
1370 xcb_selinux_list_properties_cookie_t
1371 xcb_selinux_list_properties (xcb_connection_t *c  /**< */,
1372                              xcb_window_t      window  /**< */);
1373 
1374 /**
1375  *
1376  * @param c The connection
1377  * @return A cookie
1378  *
1379  * Delivers a request to the X server.
1380  *
1381  * This form can be used only if the request will cause
1382  * a reply to be generated. Any returned error will be
1383  * placed in the event queue.
1384  */
1385 xcb_selinux_list_properties_cookie_t
1386 xcb_selinux_list_properties_unchecked (xcb_connection_t *c  /**< */,
1387                                        xcb_window_t      window  /**< */);
1388 
1389 int
1390 xcb_selinux_list_properties_properties_length (const xcb_selinux_list_properties_reply_t *R  /**< */);
1391 
1392 xcb_selinux_list_item_iterator_t
1393 xcb_selinux_list_properties_properties_iterator (const xcb_selinux_list_properties_reply_t *R  /**< */);
1394 
1395 /**
1396  * Return the reply
1397  * @param c      The connection
1398  * @param cookie The cookie
1399  * @param e      The xcb_generic_error_t supplied
1400  *
1401  * Returns the reply of the request asked by
1402  *
1403  * The parameter @p e supplied to this function must be NULL if
1404  * xcb_selinux_list_properties_unchecked(). is used.
1405  * Otherwise, it stores the error if any.
1406  *
1407  * The returned value must be freed by the caller using free().
1408  */
1409 xcb_selinux_list_properties_reply_t *
1410 xcb_selinux_list_properties_reply (xcb_connection_t                      *c  /**< */,
1411                                    xcb_selinux_list_properties_cookie_t   cookie  /**< */,
1412                                    xcb_generic_error_t                  **e  /**< */);
1413 
1414 int
1415 xcb_selinux_set_selection_create_context_sizeof (const void  *_buffer  /**< */);
1416 
1417 /**
1418  *
1419  * @param c The connection
1420  * @return A cookie
1421  *
1422  * Delivers a request to the X server.
1423  *
1424  * This form can be used only if the request will not cause
1425  * a reply to be generated. Any returned error will be
1426  * saved for handling by xcb_request_check().
1427  */
1428 xcb_void_cookie_t
1429 xcb_selinux_set_selection_create_context_checked (xcb_connection_t *c  /**< */,
1430                                                   uint32_t          context_len  /**< */,
1431                                                   const char       *context  /**< */);
1432 
1433 /**
1434  *
1435  * @param c The connection
1436  * @return A cookie
1437  *
1438  * Delivers a request to the X server.
1439  *
1440  */
1441 xcb_void_cookie_t
1442 xcb_selinux_set_selection_create_context (xcb_connection_t *c  /**< */,
1443                                           uint32_t          context_len  /**< */,
1444                                           const char       *context  /**< */);
1445 
1446 int
1447 xcb_selinux_get_selection_create_context_sizeof (const void  *_buffer  /**< */);
1448 
1449 /**
1450  *
1451  * @param c The connection
1452  * @return A cookie
1453  *
1454  * Delivers a request to the X server.
1455  *
1456  */
1457 xcb_selinux_get_selection_create_context_cookie_t
1458 xcb_selinux_get_selection_create_context (xcb_connection_t *c  /**< */);
1459 
1460 /**
1461  *
1462  * @param c The connection
1463  * @return A cookie
1464  *
1465  * Delivers a request to the X server.
1466  *
1467  * This form can be used only if the request will cause
1468  * a reply to be generated. Any returned error will be
1469  * placed in the event queue.
1470  */
1471 xcb_selinux_get_selection_create_context_cookie_t
1472 xcb_selinux_get_selection_create_context_unchecked (xcb_connection_t *c  /**< */);
1473 
1474 char *
1475 xcb_selinux_get_selection_create_context_context (const xcb_selinux_get_selection_create_context_reply_t *R  /**< */);
1476 
1477 int
1478 xcb_selinux_get_selection_create_context_context_length (const xcb_selinux_get_selection_create_context_reply_t *R  /**< */);
1479 
1480 xcb_generic_iterator_t
1481 xcb_selinux_get_selection_create_context_context_end (const xcb_selinux_get_selection_create_context_reply_t *R  /**< */);
1482 
1483 /**
1484  * Return the reply
1485  * @param c      The connection
1486  * @param cookie The cookie
1487  * @param e      The xcb_generic_error_t supplied
1488  *
1489  * Returns the reply of the request asked by
1490  *
1491  * The parameter @p e supplied to this function must be NULL if
1492  * xcb_selinux_get_selection_create_context_unchecked(). is used.
1493  * Otherwise, it stores the error if any.
1494  *
1495  * The returned value must be freed by the caller using free().
1496  */
1497 xcb_selinux_get_selection_create_context_reply_t *
1498 xcb_selinux_get_selection_create_context_reply (xcb_connection_t                                   *c  /**< */,
1499                                                 xcb_selinux_get_selection_create_context_cookie_t   cookie  /**< */,
1500                                                 xcb_generic_error_t                               **e  /**< */);
1501 
1502 int
1503 xcb_selinux_set_selection_use_context_sizeof (const void  *_buffer  /**< */);
1504 
1505 /**
1506  *
1507  * @param c The connection
1508  * @return A cookie
1509  *
1510  * Delivers a request to the X server.
1511  *
1512  * This form can be used only if the request will not cause
1513  * a reply to be generated. Any returned error will be
1514  * saved for handling by xcb_request_check().
1515  */
1516 xcb_void_cookie_t
1517 xcb_selinux_set_selection_use_context_checked (xcb_connection_t *c  /**< */,
1518                                                uint32_t          context_len  /**< */,
1519                                                const char       *context  /**< */);
1520 
1521 /**
1522  *
1523  * @param c The connection
1524  * @return A cookie
1525  *
1526  * Delivers a request to the X server.
1527  *
1528  */
1529 xcb_void_cookie_t
1530 xcb_selinux_set_selection_use_context (xcb_connection_t *c  /**< */,
1531                                        uint32_t          context_len  /**< */,
1532                                        const char       *context  /**< */);
1533 
1534 int
1535 xcb_selinux_get_selection_use_context_sizeof (const void  *_buffer  /**< */);
1536 
1537 /**
1538  *
1539  * @param c The connection
1540  * @return A cookie
1541  *
1542  * Delivers a request to the X server.
1543  *
1544  */
1545 xcb_selinux_get_selection_use_context_cookie_t
1546 xcb_selinux_get_selection_use_context (xcb_connection_t *c  /**< */);
1547 
1548 /**
1549  *
1550  * @param c The connection
1551  * @return A cookie
1552  *
1553  * Delivers a request to the X server.
1554  *
1555  * This form can be used only if the request will cause
1556  * a reply to be generated. Any returned error will be
1557  * placed in the event queue.
1558  */
1559 xcb_selinux_get_selection_use_context_cookie_t
1560 xcb_selinux_get_selection_use_context_unchecked (xcb_connection_t *c  /**< */);
1561 
1562 char *
1563 xcb_selinux_get_selection_use_context_context (const xcb_selinux_get_selection_use_context_reply_t *R  /**< */);
1564 
1565 int
1566 xcb_selinux_get_selection_use_context_context_length (const xcb_selinux_get_selection_use_context_reply_t *R  /**< */);
1567 
1568 xcb_generic_iterator_t
1569 xcb_selinux_get_selection_use_context_context_end (const xcb_selinux_get_selection_use_context_reply_t *R  /**< */);
1570 
1571 /**
1572  * Return the reply
1573  * @param c      The connection
1574  * @param cookie The cookie
1575  * @param e      The xcb_generic_error_t supplied
1576  *
1577  * Returns the reply of the request asked by
1578  *
1579  * The parameter @p e supplied to this function must be NULL if
1580  * xcb_selinux_get_selection_use_context_unchecked(). is used.
1581  * Otherwise, it stores the error if any.
1582  *
1583  * The returned value must be freed by the caller using free().
1584  */
1585 xcb_selinux_get_selection_use_context_reply_t *
1586 xcb_selinux_get_selection_use_context_reply (xcb_connection_t                                *c  /**< */,
1587                                              xcb_selinux_get_selection_use_context_cookie_t   cookie  /**< */,
1588                                              xcb_generic_error_t                            **e  /**< */);
1589 
1590 int
1591 xcb_selinux_get_selection_context_sizeof (const void  *_buffer  /**< */);
1592 
1593 /**
1594  *
1595  * @param c The connection
1596  * @return A cookie
1597  *
1598  * Delivers a request to the X server.
1599  *
1600  */
1601 xcb_selinux_get_selection_context_cookie_t
1602 xcb_selinux_get_selection_context (xcb_connection_t *c  /**< */,
1603                                    xcb_atom_t        selection  /**< */);
1604 
1605 /**
1606  *
1607  * @param c The connection
1608  * @return A cookie
1609  *
1610  * Delivers a request to the X server.
1611  *
1612  * This form can be used only if the request will cause
1613  * a reply to be generated. Any returned error will be
1614  * placed in the event queue.
1615  */
1616 xcb_selinux_get_selection_context_cookie_t
1617 xcb_selinux_get_selection_context_unchecked (xcb_connection_t *c  /**< */,
1618                                              xcb_atom_t        selection  /**< */);
1619 
1620 char *
1621 xcb_selinux_get_selection_context_context (const xcb_selinux_get_selection_context_reply_t *R  /**< */);
1622 
1623 int
1624 xcb_selinux_get_selection_context_context_length (const xcb_selinux_get_selection_context_reply_t *R  /**< */);
1625 
1626 xcb_generic_iterator_t
1627 xcb_selinux_get_selection_context_context_end (const xcb_selinux_get_selection_context_reply_t *R  /**< */);
1628 
1629 /**
1630  * Return the reply
1631  * @param c      The connection
1632  * @param cookie The cookie
1633  * @param e      The xcb_generic_error_t supplied
1634  *
1635  * Returns the reply of the request asked by
1636  *
1637  * The parameter @p e supplied to this function must be NULL if
1638  * xcb_selinux_get_selection_context_unchecked(). is used.
1639  * Otherwise, it stores the error if any.
1640  *
1641  * The returned value must be freed by the caller using free().
1642  */
1643 xcb_selinux_get_selection_context_reply_t *
1644 xcb_selinux_get_selection_context_reply (xcb_connection_t                            *c  /**< */,
1645                                          xcb_selinux_get_selection_context_cookie_t   cookie  /**< */,
1646                                          xcb_generic_error_t                        **e  /**< */);
1647 
1648 int
1649 xcb_selinux_get_selection_data_context_sizeof (const void  *_buffer  /**< */);
1650 
1651 /**
1652  *
1653  * @param c The connection
1654  * @return A cookie
1655  *
1656  * Delivers a request to the X server.
1657  *
1658  */
1659 xcb_selinux_get_selection_data_context_cookie_t
1660 xcb_selinux_get_selection_data_context (xcb_connection_t *c  /**< */,
1661                                         xcb_atom_t        selection  /**< */);
1662 
1663 /**
1664  *
1665  * @param c The connection
1666  * @return A cookie
1667  *
1668  * Delivers a request to the X server.
1669  *
1670  * This form can be used only if the request will cause
1671  * a reply to be generated. Any returned error will be
1672  * placed in the event queue.
1673  */
1674 xcb_selinux_get_selection_data_context_cookie_t
1675 xcb_selinux_get_selection_data_context_unchecked (xcb_connection_t *c  /**< */,
1676                                                   xcb_atom_t        selection  /**< */);
1677 
1678 char *
1679 xcb_selinux_get_selection_data_context_context (const xcb_selinux_get_selection_data_context_reply_t *R  /**< */);
1680 
1681 int
1682 xcb_selinux_get_selection_data_context_context_length (const xcb_selinux_get_selection_data_context_reply_t *R  /**< */);
1683 
1684 xcb_generic_iterator_t
1685 xcb_selinux_get_selection_data_context_context_end (const xcb_selinux_get_selection_data_context_reply_t *R  /**< */);
1686 
1687 /**
1688  * Return the reply
1689  * @param c      The connection
1690  * @param cookie The cookie
1691  * @param e      The xcb_generic_error_t supplied
1692  *
1693  * Returns the reply of the request asked by
1694  *
1695  * The parameter @p e supplied to this function must be NULL if
1696  * xcb_selinux_get_selection_data_context_unchecked(). is used.
1697  * Otherwise, it stores the error if any.
1698  *
1699  * The returned value must be freed by the caller using free().
1700  */
1701 xcb_selinux_get_selection_data_context_reply_t *
1702 xcb_selinux_get_selection_data_context_reply (xcb_connection_t                                 *c  /**< */,
1703                                               xcb_selinux_get_selection_data_context_cookie_t   cookie  /**< */,
1704                                               xcb_generic_error_t                             **e  /**< */);
1705 
1706 int
1707 xcb_selinux_list_selections_sizeof (const void  *_buffer  /**< */);
1708 
1709 /**
1710  *
1711  * @param c The connection
1712  * @return A cookie
1713  *
1714  * Delivers a request to the X server.
1715  *
1716  */
1717 xcb_selinux_list_selections_cookie_t
1718 xcb_selinux_list_selections (xcb_connection_t *c  /**< */);
1719 
1720 /**
1721  *
1722  * @param c The connection
1723  * @return A cookie
1724  *
1725  * Delivers a request to the X server.
1726  *
1727  * This form can be used only if the request will cause
1728  * a reply to be generated. Any returned error will be
1729  * placed in the event queue.
1730  */
1731 xcb_selinux_list_selections_cookie_t
1732 xcb_selinux_list_selections_unchecked (xcb_connection_t *c  /**< */);
1733 
1734 int
1735 xcb_selinux_list_selections_selections_length (const xcb_selinux_list_selections_reply_t *R  /**< */);
1736 
1737 xcb_selinux_list_item_iterator_t
1738 xcb_selinux_list_selections_selections_iterator (const xcb_selinux_list_selections_reply_t *R  /**< */);
1739 
1740 /**
1741  * Return the reply
1742  * @param c      The connection
1743  * @param cookie The cookie
1744  * @param e      The xcb_generic_error_t supplied
1745  *
1746  * Returns the reply of the request asked by
1747  *
1748  * The parameter @p e supplied to this function must be NULL if
1749  * xcb_selinux_list_selections_unchecked(). is used.
1750  * Otherwise, it stores the error if any.
1751  *
1752  * The returned value must be freed by the caller using free().
1753  */
1754 xcb_selinux_list_selections_reply_t *
1755 xcb_selinux_list_selections_reply (xcb_connection_t                      *c  /**< */,
1756                                    xcb_selinux_list_selections_cookie_t   cookie  /**< */,
1757                                    xcb_generic_error_t                  **e  /**< */);
1758 
1759 int
1760 xcb_selinux_get_client_context_sizeof (const void  *_buffer  /**< */);
1761 
1762 /**
1763  *
1764  * @param c The connection
1765  * @return A cookie
1766  *
1767  * Delivers a request to the X server.
1768  *
1769  */
1770 xcb_selinux_get_client_context_cookie_t
1771 xcb_selinux_get_client_context (xcb_connection_t *c  /**< */,
1772                                 uint32_t          resource  /**< */);
1773 
1774 /**
1775  *
1776  * @param c The connection
1777  * @return A cookie
1778  *
1779  * Delivers a request to the X server.
1780  *
1781  * This form can be used only if the request will cause
1782  * a reply to be generated. Any returned error will be
1783  * placed in the event queue.
1784  */
1785 xcb_selinux_get_client_context_cookie_t
1786 xcb_selinux_get_client_context_unchecked (xcb_connection_t *c  /**< */,
1787                                           uint32_t          resource  /**< */);
1788 
1789 char *
1790 xcb_selinux_get_client_context_context (const xcb_selinux_get_client_context_reply_t *R  /**< */);
1791 
1792 int
1793 xcb_selinux_get_client_context_context_length (const xcb_selinux_get_client_context_reply_t *R  /**< */);
1794 
1795 xcb_generic_iterator_t
1796 xcb_selinux_get_client_context_context_end (const xcb_selinux_get_client_context_reply_t *R  /**< */);
1797 
1798 /**
1799  * Return the reply
1800  * @param c      The connection
1801  * @param cookie The cookie
1802  * @param e      The xcb_generic_error_t supplied
1803  *
1804  * Returns the reply of the request asked by
1805  *
1806  * The parameter @p e supplied to this function must be NULL if
1807  * xcb_selinux_get_client_context_unchecked(). is used.
1808  * Otherwise, it stores the error if any.
1809  *
1810  * The returned value must be freed by the caller using free().
1811  */
1812 xcb_selinux_get_client_context_reply_t *
1813 xcb_selinux_get_client_context_reply (xcb_connection_t                         *c  /**< */,
1814                                       xcb_selinux_get_client_context_cookie_t   cookie  /**< */,
1815                                       xcb_generic_error_t                     **e  /**< */);
1816 
1817 
1818 #ifdef __cplusplus
1819 }
1820 #endif
1821 
1822 #endif
1823 
1824 /**
1825  * @}
1826  */
1827