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
19extern "C" {
20#endif
21
22#define XCB_SELINUX_MAJOR_VERSION 1
23#define XCB_SELINUX_MINOR_VERSION 0
24
25extern xcb_extension_t xcb_selinux_id;
26
27/**
28 * @brief xcb_selinux_query_version_cookie_t
29 **/
30typedef 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 **/
40typedef 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 **/
51typedef 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 **/
66typedef 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 **/
76typedef 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 **/
86typedef 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 **/
95typedef 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 **/
110typedef 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 **/
121typedef 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 **/
131typedef 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 **/
141typedef 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 **/
156typedef 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 **/
166typedef 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 **/
176typedef 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 **/
185typedef 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 **/
197typedef 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 **/
207typedef 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 **/
217typedef 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 **/
229typedef 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 **/
238typedef 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 **/
250typedef 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 **/
260typedef 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 **/
270typedef 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 **/
279typedef 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 **/
294typedef 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 **/
304typedef 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 **/
314typedef 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 **/
323typedef 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 **/
335typedef 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 **/
345typedef 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 **/
356typedef 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 **/
368typedef 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 **/
378typedef 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 **/
389typedef 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 **/
401typedef 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 **/
411typedef 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 **/
421typedef 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 **/
436typedef 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 **/
446typedef 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 **/
456typedef 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 **/
465typedef 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 **/
480typedef 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 **/
490typedef 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 **/
500typedef 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 **/
509typedef 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 **/
521typedef 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 **/
531typedef 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 **/
541typedef 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 **/
553typedef 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 **/
563typedef 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 **/
573typedef 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 **/
585typedef 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 **/
595typedef 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 **/
604typedef 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 **/
616typedef 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 **/
626typedef 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 **/
636typedef 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 */
653xcb_selinux_query_version_cookie_t
654xcb_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 */
669xcb_selinux_query_version_cookie_t
670xcb_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 */
688xcb_selinux_query_version_reply_t *
689xcb_selinux_query_version_reply (xcb_connection_t                    *c,
690                                 xcb_selinux_query_version_cookie_t   cookie  /**< */,
691                                 xcb_generic_error_t                **e);
692
693int
694xcb_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 */
707xcb_void_cookie_t
708xcb_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 */
720xcb_void_cookie_t
721xcb_selinux_set_device_create_context (xcb_connection_t *c,
722                                       uint32_t          context_len,
723                                       const char       *context);
724
725char *
726xcb_selinux_set_device_create_context_context (const xcb_selinux_set_device_create_context_request_t *R);
727
728int
729xcb_selinux_set_device_create_context_context_length (const xcb_selinux_set_device_create_context_request_t *R);
730
731xcb_generic_iterator_t
732xcb_selinux_set_device_create_context_context_end (const xcb_selinux_set_device_create_context_request_t *R);
733
734int
735xcb_selinux_get_device_create_context_sizeof (const void  *_buffer);
736
737/**
738 *
739 * @param c The connection
740 * @return A cookie
741 *
742 * Delivers a request to the X server.
743 *
744 */
745xcb_selinux_get_device_create_context_cookie_t
746xcb_selinux_get_device_create_context (xcb_connection_t *c);
747
748/**
749 *
750 * @param c The connection
751 * @return A cookie
752 *
753 * Delivers a request to the X server.
754 *
755 * This form can be used only if the request will cause
756 * a reply to be generated. Any returned error will be
757 * placed in the event queue.
758 */
759xcb_selinux_get_device_create_context_cookie_t
760xcb_selinux_get_device_create_context_unchecked (xcb_connection_t *c);
761
762char *
763xcb_selinux_get_device_create_context_context (const xcb_selinux_get_device_create_context_reply_t *R);
764
765int
766xcb_selinux_get_device_create_context_context_length (const xcb_selinux_get_device_create_context_reply_t *R);
767
768xcb_generic_iterator_t
769xcb_selinux_get_device_create_context_context_end (const xcb_selinux_get_device_create_context_reply_t *R);
770
771/**
772 * Return the reply
773 * @param c      The connection
774 * @param cookie The cookie
775 * @param e      The xcb_generic_error_t supplied
776 *
777 * Returns the reply of the request asked by
778 *
779 * The parameter @p e supplied to this function must be NULL if
780 * xcb_selinux_get_device_create_context_unchecked(). is used.
781 * Otherwise, it stores the error if any.
782 *
783 * The returned value must be freed by the caller using free().
784 */
785xcb_selinux_get_device_create_context_reply_t *
786xcb_selinux_get_device_create_context_reply (xcb_connection_t                                *c,
787                                             xcb_selinux_get_device_create_context_cookie_t   cookie  /**< */,
788                                             xcb_generic_error_t                            **e);
789
790int
791xcb_selinux_set_device_context_sizeof (const void  *_buffer);
792
793/**
794 *
795 * @param c The connection
796 * @return A cookie
797 *
798 * Delivers a request to the X server.
799 *
800 * This form can be used only if the request will not cause
801 * a reply to be generated. Any returned error will be
802 * saved for handling by xcb_request_check().
803 */
804xcb_void_cookie_t
805xcb_selinux_set_device_context_checked (xcb_connection_t *c,
806                                        uint32_t          device,
807                                        uint32_t          context_len,
808                                        const char       *context);
809
810/**
811 *
812 * @param c The connection
813 * @return A cookie
814 *
815 * Delivers a request to the X server.
816 *
817 */
818xcb_void_cookie_t
819xcb_selinux_set_device_context (xcb_connection_t *c,
820                                uint32_t          device,
821                                uint32_t          context_len,
822                                const char       *context);
823
824char *
825xcb_selinux_set_device_context_context (const xcb_selinux_set_device_context_request_t *R);
826
827int
828xcb_selinux_set_device_context_context_length (const xcb_selinux_set_device_context_request_t *R);
829
830xcb_generic_iterator_t
831xcb_selinux_set_device_context_context_end (const xcb_selinux_set_device_context_request_t *R);
832
833int
834xcb_selinux_get_device_context_sizeof (const void  *_buffer);
835
836/**
837 *
838 * @param c The connection
839 * @return A cookie
840 *
841 * Delivers a request to the X server.
842 *
843 */
844xcb_selinux_get_device_context_cookie_t
845xcb_selinux_get_device_context (xcb_connection_t *c,
846                                uint32_t          device);
847
848/**
849 *
850 * @param c The connection
851 * @return A cookie
852 *
853 * Delivers a request to the X server.
854 *
855 * This form can be used only if the request will cause
856 * a reply to be generated. Any returned error will be
857 * placed in the event queue.
858 */
859xcb_selinux_get_device_context_cookie_t
860xcb_selinux_get_device_context_unchecked (xcb_connection_t *c,
861                                          uint32_t          device);
862
863char *
864xcb_selinux_get_device_context_context (const xcb_selinux_get_device_context_reply_t *R);
865
866int
867xcb_selinux_get_device_context_context_length (const xcb_selinux_get_device_context_reply_t *R);
868
869xcb_generic_iterator_t
870xcb_selinux_get_device_context_context_end (const xcb_selinux_get_device_context_reply_t *R);
871
872/**
873 * Return the reply
874 * @param c      The connection
875 * @param cookie The cookie
876 * @param e      The xcb_generic_error_t supplied
877 *
878 * Returns the reply of the request asked by
879 *
880 * The parameter @p e supplied to this function must be NULL if
881 * xcb_selinux_get_device_context_unchecked(). is used.
882 * Otherwise, it stores the error if any.
883 *
884 * The returned value must be freed by the caller using free().
885 */
886xcb_selinux_get_device_context_reply_t *
887xcb_selinux_get_device_context_reply (xcb_connection_t                         *c,
888                                      xcb_selinux_get_device_context_cookie_t   cookie  /**< */,
889                                      xcb_generic_error_t                     **e);
890
891int
892xcb_selinux_set_window_create_context_sizeof (const void  *_buffer);
893
894/**
895 *
896 * @param c The connection
897 * @return A cookie
898 *
899 * Delivers a request to the X server.
900 *
901 * This form can be used only if the request will not cause
902 * a reply to be generated. Any returned error will be
903 * saved for handling by xcb_request_check().
904 */
905xcb_void_cookie_t
906xcb_selinux_set_window_create_context_checked (xcb_connection_t *c,
907                                               uint32_t          context_len,
908                                               const char       *context);
909
910/**
911 *
912 * @param c The connection
913 * @return A cookie
914 *
915 * Delivers a request to the X server.
916 *
917 */
918xcb_void_cookie_t
919xcb_selinux_set_window_create_context (xcb_connection_t *c,
920                                       uint32_t          context_len,
921                                       const char       *context);
922
923char *
924xcb_selinux_set_window_create_context_context (const xcb_selinux_set_window_create_context_request_t *R);
925
926int
927xcb_selinux_set_window_create_context_context_length (const xcb_selinux_set_window_create_context_request_t *R);
928
929xcb_generic_iterator_t
930xcb_selinux_set_window_create_context_context_end (const xcb_selinux_set_window_create_context_request_t *R);
931
932int
933xcb_selinux_get_window_create_context_sizeof (const void  *_buffer);
934
935/**
936 *
937 * @param c The connection
938 * @return A cookie
939 *
940 * Delivers a request to the X server.
941 *
942 */
943xcb_selinux_get_window_create_context_cookie_t
944xcb_selinux_get_window_create_context (xcb_connection_t *c);
945
946/**
947 *
948 * @param c The connection
949 * @return A cookie
950 *
951 * Delivers a request to the X server.
952 *
953 * This form can be used only if the request will cause
954 * a reply to be generated. Any returned error will be
955 * placed in the event queue.
956 */
957xcb_selinux_get_window_create_context_cookie_t
958xcb_selinux_get_window_create_context_unchecked (xcb_connection_t *c);
959
960char *
961xcb_selinux_get_window_create_context_context (const xcb_selinux_get_window_create_context_reply_t *R);
962
963int
964xcb_selinux_get_window_create_context_context_length (const xcb_selinux_get_window_create_context_reply_t *R);
965
966xcb_generic_iterator_t
967xcb_selinux_get_window_create_context_context_end (const xcb_selinux_get_window_create_context_reply_t *R);
968
969/**
970 * Return the reply
971 * @param c      The connection
972 * @param cookie The cookie
973 * @param e      The xcb_generic_error_t supplied
974 *
975 * Returns the reply of the request asked by
976 *
977 * The parameter @p e supplied to this function must be NULL if
978 * xcb_selinux_get_window_create_context_unchecked(). is used.
979 * Otherwise, it stores the error if any.
980 *
981 * The returned value must be freed by the caller using free().
982 */
983xcb_selinux_get_window_create_context_reply_t *
984xcb_selinux_get_window_create_context_reply (xcb_connection_t                                *c,
985                                             xcb_selinux_get_window_create_context_cookie_t   cookie  /**< */,
986                                             xcb_generic_error_t                            **e);
987
988int
989xcb_selinux_get_window_context_sizeof (const void  *_buffer);
990
991/**
992 *
993 * @param c The connection
994 * @return A cookie
995 *
996 * Delivers a request to the X server.
997 *
998 */
999xcb_selinux_get_window_context_cookie_t
1000xcb_selinux_get_window_context (xcb_connection_t *c,
1001                                xcb_window_t      window);
1002
1003/**
1004 *
1005 * @param c The connection
1006 * @return A cookie
1007 *
1008 * Delivers a request to the X server.
1009 *
1010 * This form can be used only if the request will cause
1011 * a reply to be generated. Any returned error will be
1012 * placed in the event queue.
1013 */
1014xcb_selinux_get_window_context_cookie_t
1015xcb_selinux_get_window_context_unchecked (xcb_connection_t *c,
1016                                          xcb_window_t      window);
1017
1018char *
1019xcb_selinux_get_window_context_context (const xcb_selinux_get_window_context_reply_t *R);
1020
1021int
1022xcb_selinux_get_window_context_context_length (const xcb_selinux_get_window_context_reply_t *R);
1023
1024xcb_generic_iterator_t
1025xcb_selinux_get_window_context_context_end (const xcb_selinux_get_window_context_reply_t *R);
1026
1027/**
1028 * Return the reply
1029 * @param c      The connection
1030 * @param cookie The cookie
1031 * @param e      The xcb_generic_error_t supplied
1032 *
1033 * Returns the reply of the request asked by
1034 *
1035 * The parameter @p e supplied to this function must be NULL if
1036 * xcb_selinux_get_window_context_unchecked(). is used.
1037 * Otherwise, it stores the error if any.
1038 *
1039 * The returned value must be freed by the caller using free().
1040 */
1041xcb_selinux_get_window_context_reply_t *
1042xcb_selinux_get_window_context_reply (xcb_connection_t                         *c,
1043                                      xcb_selinux_get_window_context_cookie_t   cookie  /**< */,
1044                                      xcb_generic_error_t                     **e);
1045
1046int
1047xcb_selinux_list_item_sizeof (const void  *_buffer);
1048
1049char *
1050xcb_selinux_list_item_object_context (const xcb_selinux_list_item_t *R);
1051
1052int
1053xcb_selinux_list_item_object_context_length (const xcb_selinux_list_item_t *R);
1054
1055xcb_generic_iterator_t
1056xcb_selinux_list_item_object_context_end (const xcb_selinux_list_item_t *R);
1057
1058char *
1059xcb_selinux_list_item_data_context (const xcb_selinux_list_item_t *R);
1060
1061int
1062xcb_selinux_list_item_data_context_length (const xcb_selinux_list_item_t *R);
1063
1064xcb_generic_iterator_t
1065xcb_selinux_list_item_data_context_end (const xcb_selinux_list_item_t *R);
1066
1067/**
1068 * Get the next element of the iterator
1069 * @param i Pointer to a xcb_selinux_list_item_iterator_t
1070 *
1071 * Get the next element in the iterator. The member rem is
1072 * decreased by one. The member data points to the next
1073 * element. The member index is increased by sizeof(xcb_selinux_list_item_t)
1074 */
1075void
1076xcb_selinux_list_item_next (xcb_selinux_list_item_iterator_t *i);
1077
1078/**
1079 * Return the iterator pointing to the last element
1080 * @param i An xcb_selinux_list_item_iterator_t
1081 * @return  The iterator pointing to the last element
1082 *
1083 * Set the current element in the iterator to the last element.
1084 * The member rem is set to 0. The member data points to the
1085 * last element.
1086 */
1087xcb_generic_iterator_t
1088xcb_selinux_list_item_end (xcb_selinux_list_item_iterator_t i);
1089
1090int
1091xcb_selinux_set_property_create_context_sizeof (const void  *_buffer);
1092
1093/**
1094 *
1095 * @param c The connection
1096 * @return A cookie
1097 *
1098 * Delivers a request to the X server.
1099 *
1100 * This form can be used only if the request will not cause
1101 * a reply to be generated. Any returned error will be
1102 * saved for handling by xcb_request_check().
1103 */
1104xcb_void_cookie_t
1105xcb_selinux_set_property_create_context_checked (xcb_connection_t *c,
1106                                                 uint32_t          context_len,
1107                                                 const char       *context);
1108
1109/**
1110 *
1111 * @param c The connection
1112 * @return A cookie
1113 *
1114 * Delivers a request to the X server.
1115 *
1116 */
1117xcb_void_cookie_t
1118xcb_selinux_set_property_create_context (xcb_connection_t *c,
1119                                         uint32_t          context_len,
1120                                         const char       *context);
1121
1122char *
1123xcb_selinux_set_property_create_context_context (const xcb_selinux_set_property_create_context_request_t *R);
1124
1125int
1126xcb_selinux_set_property_create_context_context_length (const xcb_selinux_set_property_create_context_request_t *R);
1127
1128xcb_generic_iterator_t
1129xcb_selinux_set_property_create_context_context_end (const xcb_selinux_set_property_create_context_request_t *R);
1130
1131int
1132xcb_selinux_get_property_create_context_sizeof (const void  *_buffer);
1133
1134/**
1135 *
1136 * @param c The connection
1137 * @return A cookie
1138 *
1139 * Delivers a request to the X server.
1140 *
1141 */
1142xcb_selinux_get_property_create_context_cookie_t
1143xcb_selinux_get_property_create_context (xcb_connection_t *c);
1144
1145/**
1146 *
1147 * @param c The connection
1148 * @return A cookie
1149 *
1150 * Delivers a request to the X server.
1151 *
1152 * This form can be used only if the request will cause
1153 * a reply to be generated. Any returned error will be
1154 * placed in the event queue.
1155 */
1156xcb_selinux_get_property_create_context_cookie_t
1157xcb_selinux_get_property_create_context_unchecked (xcb_connection_t *c);
1158
1159char *
1160xcb_selinux_get_property_create_context_context (const xcb_selinux_get_property_create_context_reply_t *R);
1161
1162int
1163xcb_selinux_get_property_create_context_context_length (const xcb_selinux_get_property_create_context_reply_t *R);
1164
1165xcb_generic_iterator_t
1166xcb_selinux_get_property_create_context_context_end (const xcb_selinux_get_property_create_context_reply_t *R);
1167
1168/**
1169 * Return the reply
1170 * @param c      The connection
1171 * @param cookie The cookie
1172 * @param e      The xcb_generic_error_t supplied
1173 *
1174 * Returns the reply of the request asked by
1175 *
1176 * The parameter @p e supplied to this function must be NULL if
1177 * xcb_selinux_get_property_create_context_unchecked(). is used.
1178 * Otherwise, it stores the error if any.
1179 *
1180 * The returned value must be freed by the caller using free().
1181 */
1182xcb_selinux_get_property_create_context_reply_t *
1183xcb_selinux_get_property_create_context_reply (xcb_connection_t                                  *c,
1184                                               xcb_selinux_get_property_create_context_cookie_t   cookie  /**< */,
1185                                               xcb_generic_error_t                              **e);
1186
1187int
1188xcb_selinux_set_property_use_context_sizeof (const void  *_buffer);
1189
1190/**
1191 *
1192 * @param c The connection
1193 * @return A cookie
1194 *
1195 * Delivers a request to the X server.
1196 *
1197 * This form can be used only if the request will not cause
1198 * a reply to be generated. Any returned error will be
1199 * saved for handling by xcb_request_check().
1200 */
1201xcb_void_cookie_t
1202xcb_selinux_set_property_use_context_checked (xcb_connection_t *c,
1203                                              uint32_t          context_len,
1204                                              const char       *context);
1205
1206/**
1207 *
1208 * @param c The connection
1209 * @return A cookie
1210 *
1211 * Delivers a request to the X server.
1212 *
1213 */
1214xcb_void_cookie_t
1215xcb_selinux_set_property_use_context (xcb_connection_t *c,
1216                                      uint32_t          context_len,
1217                                      const char       *context);
1218
1219char *
1220xcb_selinux_set_property_use_context_context (const xcb_selinux_set_property_use_context_request_t *R);
1221
1222int
1223xcb_selinux_set_property_use_context_context_length (const xcb_selinux_set_property_use_context_request_t *R);
1224
1225xcb_generic_iterator_t
1226xcb_selinux_set_property_use_context_context_end (const xcb_selinux_set_property_use_context_request_t *R);
1227
1228int
1229xcb_selinux_get_property_use_context_sizeof (const void  *_buffer);
1230
1231/**
1232 *
1233 * @param c The connection
1234 * @return A cookie
1235 *
1236 * Delivers a request to the X server.
1237 *
1238 */
1239xcb_selinux_get_property_use_context_cookie_t
1240xcb_selinux_get_property_use_context (xcb_connection_t *c);
1241
1242/**
1243 *
1244 * @param c The connection
1245 * @return A cookie
1246 *
1247 * Delivers a request to the X server.
1248 *
1249 * This form can be used only if the request will cause
1250 * a reply to be generated. Any returned error will be
1251 * placed in the event queue.
1252 */
1253xcb_selinux_get_property_use_context_cookie_t
1254xcb_selinux_get_property_use_context_unchecked (xcb_connection_t *c);
1255
1256char *
1257xcb_selinux_get_property_use_context_context (const xcb_selinux_get_property_use_context_reply_t *R);
1258
1259int
1260xcb_selinux_get_property_use_context_context_length (const xcb_selinux_get_property_use_context_reply_t *R);
1261
1262xcb_generic_iterator_t
1263xcb_selinux_get_property_use_context_context_end (const xcb_selinux_get_property_use_context_reply_t *R);
1264
1265/**
1266 * Return the reply
1267 * @param c      The connection
1268 * @param cookie The cookie
1269 * @param e      The xcb_generic_error_t supplied
1270 *
1271 * Returns the reply of the request asked by
1272 *
1273 * The parameter @p e supplied to this function must be NULL if
1274 * xcb_selinux_get_property_use_context_unchecked(). is used.
1275 * Otherwise, it stores the error if any.
1276 *
1277 * The returned value must be freed by the caller using free().
1278 */
1279xcb_selinux_get_property_use_context_reply_t *
1280xcb_selinux_get_property_use_context_reply (xcb_connection_t                               *c,
1281                                            xcb_selinux_get_property_use_context_cookie_t   cookie  /**< */,
1282                                            xcb_generic_error_t                           **e);
1283
1284int
1285xcb_selinux_get_property_context_sizeof (const void  *_buffer);
1286
1287/**
1288 *
1289 * @param c The connection
1290 * @return A cookie
1291 *
1292 * Delivers a request to the X server.
1293 *
1294 */
1295xcb_selinux_get_property_context_cookie_t
1296xcb_selinux_get_property_context (xcb_connection_t *c,
1297                                  xcb_window_t      window,
1298                                  xcb_atom_t        property);
1299
1300/**
1301 *
1302 * @param c The connection
1303 * @return A cookie
1304 *
1305 * Delivers a request to the X server.
1306 *
1307 * This form can be used only if the request will cause
1308 * a reply to be generated. Any returned error will be
1309 * placed in the event queue.
1310 */
1311xcb_selinux_get_property_context_cookie_t
1312xcb_selinux_get_property_context_unchecked (xcb_connection_t *c,
1313                                            xcb_window_t      window,
1314                                            xcb_atom_t        property);
1315
1316char *
1317xcb_selinux_get_property_context_context (const xcb_selinux_get_property_context_reply_t *R);
1318
1319int
1320xcb_selinux_get_property_context_context_length (const xcb_selinux_get_property_context_reply_t *R);
1321
1322xcb_generic_iterator_t
1323xcb_selinux_get_property_context_context_end (const xcb_selinux_get_property_context_reply_t *R);
1324
1325/**
1326 * Return the reply
1327 * @param c      The connection
1328 * @param cookie The cookie
1329 * @param e      The xcb_generic_error_t supplied
1330 *
1331 * Returns the reply of the request asked by
1332 *
1333 * The parameter @p e supplied to this function must be NULL if
1334 * xcb_selinux_get_property_context_unchecked(). is used.
1335 * Otherwise, it stores the error if any.
1336 *
1337 * The returned value must be freed by the caller using free().
1338 */
1339xcb_selinux_get_property_context_reply_t *
1340xcb_selinux_get_property_context_reply (xcb_connection_t                           *c,
1341                                        xcb_selinux_get_property_context_cookie_t   cookie  /**< */,
1342                                        xcb_generic_error_t                       **e);
1343
1344int
1345xcb_selinux_get_property_data_context_sizeof (const void  *_buffer);
1346
1347/**
1348 *
1349 * @param c The connection
1350 * @return A cookie
1351 *
1352 * Delivers a request to the X server.
1353 *
1354 */
1355xcb_selinux_get_property_data_context_cookie_t
1356xcb_selinux_get_property_data_context (xcb_connection_t *c,
1357                                       xcb_window_t      window,
1358                                       xcb_atom_t        property);
1359
1360/**
1361 *
1362 * @param c The connection
1363 * @return A cookie
1364 *
1365 * Delivers a request to the X server.
1366 *
1367 * This form can be used only if the request will cause
1368 * a reply to be generated. Any returned error will be
1369 * placed in the event queue.
1370 */
1371xcb_selinux_get_property_data_context_cookie_t
1372xcb_selinux_get_property_data_context_unchecked (xcb_connection_t *c,
1373                                                 xcb_window_t      window,
1374                                                 xcb_atom_t        property);
1375
1376char *
1377xcb_selinux_get_property_data_context_context (const xcb_selinux_get_property_data_context_reply_t *R);
1378
1379int
1380xcb_selinux_get_property_data_context_context_length (const xcb_selinux_get_property_data_context_reply_t *R);
1381
1382xcb_generic_iterator_t
1383xcb_selinux_get_property_data_context_context_end (const xcb_selinux_get_property_data_context_reply_t *R);
1384
1385/**
1386 * Return the reply
1387 * @param c      The connection
1388 * @param cookie The cookie
1389 * @param e      The xcb_generic_error_t supplied
1390 *
1391 * Returns the reply of the request asked by
1392 *
1393 * The parameter @p e supplied to this function must be NULL if
1394 * xcb_selinux_get_property_data_context_unchecked(). is used.
1395 * Otherwise, it stores the error if any.
1396 *
1397 * The returned value must be freed by the caller using free().
1398 */
1399xcb_selinux_get_property_data_context_reply_t *
1400xcb_selinux_get_property_data_context_reply (xcb_connection_t                                *c,
1401                                             xcb_selinux_get_property_data_context_cookie_t   cookie  /**< */,
1402                                             xcb_generic_error_t                            **e);
1403
1404int
1405xcb_selinux_list_properties_sizeof (const void  *_buffer);
1406
1407/**
1408 *
1409 * @param c The connection
1410 * @return A cookie
1411 *
1412 * Delivers a request to the X server.
1413 *
1414 */
1415xcb_selinux_list_properties_cookie_t
1416xcb_selinux_list_properties (xcb_connection_t *c,
1417                             xcb_window_t      window);
1418
1419/**
1420 *
1421 * @param c The connection
1422 * @return A cookie
1423 *
1424 * Delivers a request to the X server.
1425 *
1426 * This form can be used only if the request will cause
1427 * a reply to be generated. Any returned error will be
1428 * placed in the event queue.
1429 */
1430xcb_selinux_list_properties_cookie_t
1431xcb_selinux_list_properties_unchecked (xcb_connection_t *c,
1432                                       xcb_window_t      window);
1433
1434int
1435xcb_selinux_list_properties_properties_length (const xcb_selinux_list_properties_reply_t *R);
1436
1437xcb_selinux_list_item_iterator_t
1438xcb_selinux_list_properties_properties_iterator (const xcb_selinux_list_properties_reply_t *R);
1439
1440/**
1441 * Return the reply
1442 * @param c      The connection
1443 * @param cookie The cookie
1444 * @param e      The xcb_generic_error_t supplied
1445 *
1446 * Returns the reply of the request asked by
1447 *
1448 * The parameter @p e supplied to this function must be NULL if
1449 * xcb_selinux_list_properties_unchecked(). is used.
1450 * Otherwise, it stores the error if any.
1451 *
1452 * The returned value must be freed by the caller using free().
1453 */
1454xcb_selinux_list_properties_reply_t *
1455xcb_selinux_list_properties_reply (xcb_connection_t                      *c,
1456                                   xcb_selinux_list_properties_cookie_t   cookie  /**< */,
1457                                   xcb_generic_error_t                  **e);
1458
1459int
1460xcb_selinux_set_selection_create_context_sizeof (const void  *_buffer);
1461
1462/**
1463 *
1464 * @param c The connection
1465 * @return A cookie
1466 *
1467 * Delivers a request to the X server.
1468 *
1469 * This form can be used only if the request will not cause
1470 * a reply to be generated. Any returned error will be
1471 * saved for handling by xcb_request_check().
1472 */
1473xcb_void_cookie_t
1474xcb_selinux_set_selection_create_context_checked (xcb_connection_t *c,
1475                                                  uint32_t          context_len,
1476                                                  const char       *context);
1477
1478/**
1479 *
1480 * @param c The connection
1481 * @return A cookie
1482 *
1483 * Delivers a request to the X server.
1484 *
1485 */
1486xcb_void_cookie_t
1487xcb_selinux_set_selection_create_context (xcb_connection_t *c,
1488                                          uint32_t          context_len,
1489                                          const char       *context);
1490
1491char *
1492xcb_selinux_set_selection_create_context_context (const xcb_selinux_set_selection_create_context_request_t *R);
1493
1494int
1495xcb_selinux_set_selection_create_context_context_length (const xcb_selinux_set_selection_create_context_request_t *R);
1496
1497xcb_generic_iterator_t
1498xcb_selinux_set_selection_create_context_context_end (const xcb_selinux_set_selection_create_context_request_t *R);
1499
1500int
1501xcb_selinux_get_selection_create_context_sizeof (const void  *_buffer);
1502
1503/**
1504 *
1505 * @param c The connection
1506 * @return A cookie
1507 *
1508 * Delivers a request to the X server.
1509 *
1510 */
1511xcb_selinux_get_selection_create_context_cookie_t
1512xcb_selinux_get_selection_create_context (xcb_connection_t *c);
1513
1514/**
1515 *
1516 * @param c The connection
1517 * @return A cookie
1518 *
1519 * Delivers a request to the X server.
1520 *
1521 * This form can be used only if the request will cause
1522 * a reply to be generated. Any returned error will be
1523 * placed in the event queue.
1524 */
1525xcb_selinux_get_selection_create_context_cookie_t
1526xcb_selinux_get_selection_create_context_unchecked (xcb_connection_t *c);
1527
1528char *
1529xcb_selinux_get_selection_create_context_context (const xcb_selinux_get_selection_create_context_reply_t *R);
1530
1531int
1532xcb_selinux_get_selection_create_context_context_length (const xcb_selinux_get_selection_create_context_reply_t *R);
1533
1534xcb_generic_iterator_t
1535xcb_selinux_get_selection_create_context_context_end (const xcb_selinux_get_selection_create_context_reply_t *R);
1536
1537/**
1538 * Return the reply
1539 * @param c      The connection
1540 * @param cookie The cookie
1541 * @param e      The xcb_generic_error_t supplied
1542 *
1543 * Returns the reply of the request asked by
1544 *
1545 * The parameter @p e supplied to this function must be NULL if
1546 * xcb_selinux_get_selection_create_context_unchecked(). is used.
1547 * Otherwise, it stores the error if any.
1548 *
1549 * The returned value must be freed by the caller using free().
1550 */
1551xcb_selinux_get_selection_create_context_reply_t *
1552xcb_selinux_get_selection_create_context_reply (xcb_connection_t                                   *c,
1553                                                xcb_selinux_get_selection_create_context_cookie_t   cookie  /**< */,
1554                                                xcb_generic_error_t                               **e);
1555
1556int
1557xcb_selinux_set_selection_use_context_sizeof (const void  *_buffer);
1558
1559/**
1560 *
1561 * @param c The connection
1562 * @return A cookie
1563 *
1564 * Delivers a request to the X server.
1565 *
1566 * This form can be used only if the request will not cause
1567 * a reply to be generated. Any returned error will be
1568 * saved for handling by xcb_request_check().
1569 */
1570xcb_void_cookie_t
1571xcb_selinux_set_selection_use_context_checked (xcb_connection_t *c,
1572                                               uint32_t          context_len,
1573                                               const char       *context);
1574
1575/**
1576 *
1577 * @param c The connection
1578 * @return A cookie
1579 *
1580 * Delivers a request to the X server.
1581 *
1582 */
1583xcb_void_cookie_t
1584xcb_selinux_set_selection_use_context (xcb_connection_t *c,
1585                                       uint32_t          context_len,
1586                                       const char       *context);
1587
1588char *
1589xcb_selinux_set_selection_use_context_context (const xcb_selinux_set_selection_use_context_request_t *R);
1590
1591int
1592xcb_selinux_set_selection_use_context_context_length (const xcb_selinux_set_selection_use_context_request_t *R);
1593
1594xcb_generic_iterator_t
1595xcb_selinux_set_selection_use_context_context_end (const xcb_selinux_set_selection_use_context_request_t *R);
1596
1597int
1598xcb_selinux_get_selection_use_context_sizeof (const void  *_buffer);
1599
1600/**
1601 *
1602 * @param c The connection
1603 * @return A cookie
1604 *
1605 * Delivers a request to the X server.
1606 *
1607 */
1608xcb_selinux_get_selection_use_context_cookie_t
1609xcb_selinux_get_selection_use_context (xcb_connection_t *c);
1610
1611/**
1612 *
1613 * @param c The connection
1614 * @return A cookie
1615 *
1616 * Delivers a request to the X server.
1617 *
1618 * This form can be used only if the request will cause
1619 * a reply to be generated. Any returned error will be
1620 * placed in the event queue.
1621 */
1622xcb_selinux_get_selection_use_context_cookie_t
1623xcb_selinux_get_selection_use_context_unchecked (xcb_connection_t *c);
1624
1625char *
1626xcb_selinux_get_selection_use_context_context (const xcb_selinux_get_selection_use_context_reply_t *R);
1627
1628int
1629xcb_selinux_get_selection_use_context_context_length (const xcb_selinux_get_selection_use_context_reply_t *R);
1630
1631xcb_generic_iterator_t
1632xcb_selinux_get_selection_use_context_context_end (const xcb_selinux_get_selection_use_context_reply_t *R);
1633
1634/**
1635 * Return the reply
1636 * @param c      The connection
1637 * @param cookie The cookie
1638 * @param e      The xcb_generic_error_t supplied
1639 *
1640 * Returns the reply of the request asked by
1641 *
1642 * The parameter @p e supplied to this function must be NULL if
1643 * xcb_selinux_get_selection_use_context_unchecked(). is used.
1644 * Otherwise, it stores the error if any.
1645 *
1646 * The returned value must be freed by the caller using free().
1647 */
1648xcb_selinux_get_selection_use_context_reply_t *
1649xcb_selinux_get_selection_use_context_reply (xcb_connection_t                                *c,
1650                                             xcb_selinux_get_selection_use_context_cookie_t   cookie  /**< */,
1651                                             xcb_generic_error_t                            **e);
1652
1653int
1654xcb_selinux_get_selection_context_sizeof (const void  *_buffer);
1655
1656/**
1657 *
1658 * @param c The connection
1659 * @return A cookie
1660 *
1661 * Delivers a request to the X server.
1662 *
1663 */
1664xcb_selinux_get_selection_context_cookie_t
1665xcb_selinux_get_selection_context (xcb_connection_t *c,
1666                                   xcb_atom_t        selection);
1667
1668/**
1669 *
1670 * @param c The connection
1671 * @return A cookie
1672 *
1673 * Delivers a request to the X server.
1674 *
1675 * This form can be used only if the request will cause
1676 * a reply to be generated. Any returned error will be
1677 * placed in the event queue.
1678 */
1679xcb_selinux_get_selection_context_cookie_t
1680xcb_selinux_get_selection_context_unchecked (xcb_connection_t *c,
1681                                             xcb_atom_t        selection);
1682
1683char *
1684xcb_selinux_get_selection_context_context (const xcb_selinux_get_selection_context_reply_t *R);
1685
1686int
1687xcb_selinux_get_selection_context_context_length (const xcb_selinux_get_selection_context_reply_t *R);
1688
1689xcb_generic_iterator_t
1690xcb_selinux_get_selection_context_context_end (const xcb_selinux_get_selection_context_reply_t *R);
1691
1692/**
1693 * Return the reply
1694 * @param c      The connection
1695 * @param cookie The cookie
1696 * @param e      The xcb_generic_error_t supplied
1697 *
1698 * Returns the reply of the request asked by
1699 *
1700 * The parameter @p e supplied to this function must be NULL if
1701 * xcb_selinux_get_selection_context_unchecked(). is used.
1702 * Otherwise, it stores the error if any.
1703 *
1704 * The returned value must be freed by the caller using free().
1705 */
1706xcb_selinux_get_selection_context_reply_t *
1707xcb_selinux_get_selection_context_reply (xcb_connection_t                            *c,
1708                                         xcb_selinux_get_selection_context_cookie_t   cookie  /**< */,
1709                                         xcb_generic_error_t                        **e);
1710
1711int
1712xcb_selinux_get_selection_data_context_sizeof (const void  *_buffer);
1713
1714/**
1715 *
1716 * @param c The connection
1717 * @return A cookie
1718 *
1719 * Delivers a request to the X server.
1720 *
1721 */
1722xcb_selinux_get_selection_data_context_cookie_t
1723xcb_selinux_get_selection_data_context (xcb_connection_t *c,
1724                                        xcb_atom_t        selection);
1725
1726/**
1727 *
1728 * @param c The connection
1729 * @return A cookie
1730 *
1731 * Delivers a request to the X server.
1732 *
1733 * This form can be used only if the request will cause
1734 * a reply to be generated. Any returned error will be
1735 * placed in the event queue.
1736 */
1737xcb_selinux_get_selection_data_context_cookie_t
1738xcb_selinux_get_selection_data_context_unchecked (xcb_connection_t *c,
1739                                                  xcb_atom_t        selection);
1740
1741char *
1742xcb_selinux_get_selection_data_context_context (const xcb_selinux_get_selection_data_context_reply_t *R);
1743
1744int
1745xcb_selinux_get_selection_data_context_context_length (const xcb_selinux_get_selection_data_context_reply_t *R);
1746
1747xcb_generic_iterator_t
1748xcb_selinux_get_selection_data_context_context_end (const xcb_selinux_get_selection_data_context_reply_t *R);
1749
1750/**
1751 * Return the reply
1752 * @param c      The connection
1753 * @param cookie The cookie
1754 * @param e      The xcb_generic_error_t supplied
1755 *
1756 * Returns the reply of the request asked by
1757 *
1758 * The parameter @p e supplied to this function must be NULL if
1759 * xcb_selinux_get_selection_data_context_unchecked(). is used.
1760 * Otherwise, it stores the error if any.
1761 *
1762 * The returned value must be freed by the caller using free().
1763 */
1764xcb_selinux_get_selection_data_context_reply_t *
1765xcb_selinux_get_selection_data_context_reply (xcb_connection_t                                 *c,
1766                                              xcb_selinux_get_selection_data_context_cookie_t   cookie  /**< */,
1767                                              xcb_generic_error_t                             **e);
1768
1769int
1770xcb_selinux_list_selections_sizeof (const void  *_buffer);
1771
1772/**
1773 *
1774 * @param c The connection
1775 * @return A cookie
1776 *
1777 * Delivers a request to the X server.
1778 *
1779 */
1780xcb_selinux_list_selections_cookie_t
1781xcb_selinux_list_selections (xcb_connection_t *c);
1782
1783/**
1784 *
1785 * @param c The connection
1786 * @return A cookie
1787 *
1788 * Delivers a request to the X server.
1789 *
1790 * This form can be used only if the request will cause
1791 * a reply to be generated. Any returned error will be
1792 * placed in the event queue.
1793 */
1794xcb_selinux_list_selections_cookie_t
1795xcb_selinux_list_selections_unchecked (xcb_connection_t *c);
1796
1797int
1798xcb_selinux_list_selections_selections_length (const xcb_selinux_list_selections_reply_t *R);
1799
1800xcb_selinux_list_item_iterator_t
1801xcb_selinux_list_selections_selections_iterator (const xcb_selinux_list_selections_reply_t *R);
1802
1803/**
1804 * Return the reply
1805 * @param c      The connection
1806 * @param cookie The cookie
1807 * @param e      The xcb_generic_error_t supplied
1808 *
1809 * Returns the reply of the request asked by
1810 *
1811 * The parameter @p e supplied to this function must be NULL if
1812 * xcb_selinux_list_selections_unchecked(). is used.
1813 * Otherwise, it stores the error if any.
1814 *
1815 * The returned value must be freed by the caller using free().
1816 */
1817xcb_selinux_list_selections_reply_t *
1818xcb_selinux_list_selections_reply (xcb_connection_t                      *c,
1819                                   xcb_selinux_list_selections_cookie_t   cookie  /**< */,
1820                                   xcb_generic_error_t                  **e);
1821
1822int
1823xcb_selinux_get_client_context_sizeof (const void  *_buffer);
1824
1825/**
1826 *
1827 * @param c The connection
1828 * @return A cookie
1829 *
1830 * Delivers a request to the X server.
1831 *
1832 */
1833xcb_selinux_get_client_context_cookie_t
1834xcb_selinux_get_client_context (xcb_connection_t *c,
1835                                uint32_t          resource);
1836
1837/**
1838 *
1839 * @param c The connection
1840 * @return A cookie
1841 *
1842 * Delivers a request to the X server.
1843 *
1844 * This form can be used only if the request will cause
1845 * a reply to be generated. Any returned error will be
1846 * placed in the event queue.
1847 */
1848xcb_selinux_get_client_context_cookie_t
1849xcb_selinux_get_client_context_unchecked (xcb_connection_t *c,
1850                                          uint32_t          resource);
1851
1852char *
1853xcb_selinux_get_client_context_context (const xcb_selinux_get_client_context_reply_t *R);
1854
1855int
1856xcb_selinux_get_client_context_context_length (const xcb_selinux_get_client_context_reply_t *R);
1857
1858xcb_generic_iterator_t
1859xcb_selinux_get_client_context_context_end (const xcb_selinux_get_client_context_reply_t *R);
1860
1861/**
1862 * Return the reply
1863 * @param c      The connection
1864 * @param cookie The cookie
1865 * @param e      The xcb_generic_error_t supplied
1866 *
1867 * Returns the reply of the request asked by
1868 *
1869 * The parameter @p e supplied to this function must be NULL if
1870 * xcb_selinux_get_client_context_unchecked(). is used.
1871 * Otherwise, it stores the error if any.
1872 *
1873 * The returned value must be freed by the caller using free().
1874 */
1875xcb_selinux_get_client_context_reply_t *
1876xcb_selinux_get_client_context_reply (xcb_connection_t                         *c,
1877                                      xcb_selinux_get_client_context_cookie_t   cookie  /**< */,
1878                                      xcb_generic_error_t                     **e);
1879
1880
1881#ifdef __cplusplus
1882}
1883#endif
1884
1885#endif
1886
1887/**
1888 * @}
1889 */
1890