-
Notifications
You must be signed in to change notification settings - Fork 5
/
xcb-xselinux.el
392 lines (353 loc) · 13.1 KB
/
xcb-xselinux.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
;;; xcb-xselinux.el --- X11 SELinux extension -*- lexical-binding: t -*-
;; Copyright (C) 2015-2024 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; This file was generated by 'xelb-gen' from 'xselinux.xml',
;; which you can retrieve from <git://anongit.freedesktop.org/xcb/proto>.
;;; Code:
(require 'xcb-types)
(defconst xcb:xselinux:-extension-xname "SELinux")
(defconst xcb:xselinux:-extension-name "SELinux")
(defconst xcb:xselinux:-major-version 1)
(defconst xcb:xselinux:-minor-version 0)
(require 'xcb-xproto)
(defclass xcb:xselinux:QueryVersion
(xcb:-request)
((~opcode :initform 0 :type xcb:-u1)
(client-major :initarg :client-major :type xcb:CARD8)
(client-minor :initarg :client-minor :type xcb:CARD8)))
(defclass xcb:xselinux:QueryVersion~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(server-major :initarg :server-major :type xcb:CARD16)
(server-minor :initarg :server-minor :type xcb:CARD16)))
(defclass xcb:xselinux:SetDeviceCreateContext
(xcb:-request)
((~opcode :initform 1 :type xcb:-u1)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetDeviceCreateContext
(xcb:-request)
((~opcode :initform 2 :type xcb:-u1)))
(defclass xcb:xselinux:GetDeviceCreateContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:SetDeviceContext
(xcb:-request)
((~opcode :initform 3 :type xcb:-u1)
(device :initarg :device :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetDeviceContext
(xcb:-request)
((~opcode :initform 4 :type xcb:-u1)
(device :initarg :device :type xcb:CARD32)))
(defclass xcb:xselinux:GetDeviceContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:SetWindowCreateContext
(xcb:-request)
((~opcode :initform 5 :type xcb:-u1)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetWindowCreateContext
(xcb:-request)
((~opcode :initform 6 :type xcb:-u1)))
(defclass xcb:xselinux:GetWindowCreateContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetWindowContext
(xcb:-request)
((~opcode :initform 7 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)))
(defclass xcb:xselinux:GetWindowContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:ListItem
(xcb:-struct)
((name :initarg :name :type xcb:ATOM)
(object-context-len :initarg :object-context-len :type xcb:CARD32)
(data-context-len :initarg :data-context-len :type xcb:CARD32)
(object-context~ :initform
'(name object-context type xcb:char size
(xcb:-fieldref 'object-context-len))
:type xcb:-list)
(object-context :initarg :object-context :type xcb:-ignore)
(pad~0 :initform 4 :type xcb:-pad-align)
(data-context~ :initform
'(name data-context type xcb:char size
(xcb:-fieldref 'data-context-len))
:type xcb:-list)
(data-context :initarg :data-context :type xcb:-ignore)
(pad~1 :initform 4 :type xcb:-pad-align)))
(defclass xcb:xselinux:SetPropertyCreateContext
(xcb:-request)
((~opcode :initform 8 :type xcb:-u1)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetPropertyCreateContext
(xcb:-request)
((~opcode :initform 9 :type xcb:-u1)))
(defclass xcb:xselinux:GetPropertyCreateContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:SetPropertyUseContext
(xcb:-request)
((~opcode :initform 10 :type xcb:-u1)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetPropertyUseContext
(xcb:-request)
((~opcode :initform 11 :type xcb:-u1)))
(defclass xcb:xselinux:GetPropertyUseContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetPropertyContext
(xcb:-request)
((~opcode :initform 12 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)
(property :initarg :property :type xcb:ATOM)))
(defclass xcb:xselinux:GetPropertyContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetPropertyDataContext
(xcb:-request)
((~opcode :initform 13 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)
(property :initarg :property :type xcb:ATOM)))
(defclass xcb:xselinux:GetPropertyDataContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:ListProperties
(xcb:-request)
((~opcode :initform 14 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)))
(defclass xcb:xselinux:ListProperties~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(properties-len :initarg :properties-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(properties~ :initform
'(name properties type xcb:xselinux:ListItem size
(xcb:-fieldref 'properties-len))
:type xcb:-list)
(properties :initarg :properties :type xcb:-ignore)))
(defclass xcb:xselinux:SetSelectionCreateContext
(xcb:-request)
((~opcode :initform 15 :type xcb:-u1)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetSelectionCreateContext
(xcb:-request)
((~opcode :initform 16 :type xcb:-u1)))
(defclass xcb:xselinux:GetSelectionCreateContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:SetSelectionUseContext
(xcb:-request)
((~opcode :initform 17 :type xcb:-u1)
(context-len :initarg :context-len :type xcb:CARD32)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetSelectionUseContext
(xcb:-request)
((~opcode :initform 18 :type xcb:-u1)))
(defclass xcb:xselinux:GetSelectionUseContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetSelectionContext
(xcb:-request)
((~opcode :initform 19 :type xcb:-u1)
(selection :initarg :selection :type xcb:ATOM)))
(defclass xcb:xselinux:GetSelectionContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:GetSelectionDataContext
(xcb:-request)
((~opcode :initform 20 :type xcb:-u1)
(selection :initarg :selection :type xcb:ATOM)))
(defclass xcb:xselinux:GetSelectionDataContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(defclass xcb:xselinux:ListSelections
(xcb:-request)
((~opcode :initform 21 :type xcb:-u1)))
(defclass xcb:xselinux:ListSelections~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(selections-len :initarg :selections-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(selections~ :initform
'(name selections type xcb:xselinux:ListItem size
(xcb:-fieldref 'selections-len))
:type xcb:-list)
(selections :initarg :selections :type xcb:-ignore)))
(defclass xcb:xselinux:GetClientContext
(xcb:-request)
((~opcode :initform 22 :type xcb:-u1)
(resource :initarg :resource :type xcb:CARD32)))
(defclass xcb:xselinux:GetClientContext~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(context-len :initarg :context-len :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(context~ :initform
'(name context type xcb:char size
(xcb:-fieldref 'context-len))
:type xcb:-list)
(context :initarg :context :type xcb:-ignore)))
(provide 'xcb-xselinux)
;;; xcb-xselinux.el ends here