1 | /************************************************************
|
---|
2 |
|
---|
3 | Author: Eamon Walsh <[email protected]>
|
---|
4 |
|
---|
5 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
6 | documentation for any purpose is hereby granted without fee, provided that
|
---|
7 | this permission notice appear in supporting documentation. This permission
|
---|
8 | notice shall be included in all copies or substantial portions of the
|
---|
9 | Software.
|
---|
10 |
|
---|
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
14 | AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
15 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
16 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
17 |
|
---|
18 | ********************************************************/
|
---|
19 |
|
---|
20 | #ifndef _XACESTR_H
|
---|
21 | #define _XACESTR_H
|
---|
22 |
|
---|
23 | #include <X11/Xdefs.h>
|
---|
24 | #include "dixstruct.h"
|
---|
25 | #include "resource.h"
|
---|
26 | #include "extnsionst.h"
|
---|
27 | #include "gcstruct.h"
|
---|
28 | #include "windowstr.h"
|
---|
29 | #include "inputstr.h"
|
---|
30 | #include "xace.h"
|
---|
31 |
|
---|
32 | /* XACE_CORE_DISPATCH */
|
---|
33 | typedef struct {
|
---|
34 | ClientPtr client;
|
---|
35 | int rval;
|
---|
36 | } XaceCoreDispatchRec;
|
---|
37 |
|
---|
38 | /* XACE_RESOURCE_ACCESS */
|
---|
39 | /* XACE_RESOURCE_CREATE */
|
---|
40 | typedef struct {
|
---|
41 | ClientPtr client;
|
---|
42 | XID id;
|
---|
43 | RESTYPE rtype;
|
---|
44 | Mask access_mode;
|
---|
45 | pointer res;
|
---|
46 | int rval;
|
---|
47 | } XaceResourceAccessRec;
|
---|
48 |
|
---|
49 | /* XACE_DEVICE_ACCESS */
|
---|
50 | typedef struct {
|
---|
51 | ClientPtr client;
|
---|
52 | DeviceIntPtr dev;
|
---|
53 | Bool fromRequest;
|
---|
54 | int rval;
|
---|
55 | } XaceDeviceAccessRec;
|
---|
56 |
|
---|
57 | /* XACE_PROPERTY_ACCESS */
|
---|
58 | typedef struct {
|
---|
59 | ClientPtr client;
|
---|
60 | WindowPtr pWin;
|
---|
61 | Atom propertyName;
|
---|
62 | Mask access_mode;
|
---|
63 | int rval;
|
---|
64 | } XacePropertyAccessRec;
|
---|
65 |
|
---|
66 | /* XACE_DRAWABLE_ACCESS */
|
---|
67 | typedef struct {
|
---|
68 | ClientPtr client;
|
---|
69 | DrawablePtr pDraw;
|
---|
70 | int rval;
|
---|
71 | } XaceDrawableAccessRec;
|
---|
72 |
|
---|
73 | /* XACE_MAP_ACCESS */
|
---|
74 | /* XACE_BACKGRND_ACCESS */
|
---|
75 | typedef struct {
|
---|
76 | ClientPtr client;
|
---|
77 | WindowPtr pWin;
|
---|
78 | int rval;
|
---|
79 | } XaceMapAccessRec;
|
---|
80 |
|
---|
81 | /* XACE_EXT_DISPATCH_ACCESS */
|
---|
82 | /* XACE_EXT_ACCESS */
|
---|
83 | typedef struct {
|
---|
84 | ClientPtr client;
|
---|
85 | ExtensionEntry *ext;
|
---|
86 | int rval;
|
---|
87 | } XaceExtAccessRec;
|
---|
88 |
|
---|
89 | /* XACE_HOSTLIST_ACCESS */
|
---|
90 | typedef struct {
|
---|
91 | ClientPtr client;
|
---|
92 | Mask access_mode;
|
---|
93 | int rval;
|
---|
94 | } XaceHostlistAccessRec;
|
---|
95 |
|
---|
96 | /* XACE_SITE_POLICY */
|
---|
97 | typedef struct {
|
---|
98 | char *policyString;
|
---|
99 | int len;
|
---|
100 | int rval;
|
---|
101 | } XaceSitePolicyRec;
|
---|
102 |
|
---|
103 | /* XACE_DECLARE_EXT_SECURE */
|
---|
104 | typedef struct {
|
---|
105 | ExtensionEntry *ext;
|
---|
106 | Bool secure;
|
---|
107 | } XaceDeclareExtSecureRec;
|
---|
108 |
|
---|
109 | /* XACE_AUTH_AVAIL */
|
---|
110 | typedef struct {
|
---|
111 | ClientPtr client;
|
---|
112 | XID authId;
|
---|
113 | } XaceAuthAvailRec;
|
---|
114 |
|
---|
115 | /* XACE_KEY_AVAIL */
|
---|
116 | typedef struct {
|
---|
117 | xEventPtr event;
|
---|
118 | DeviceIntPtr keybd;
|
---|
119 | int count;
|
---|
120 | } XaceKeyAvailRec;
|
---|
121 |
|
---|
122 | /* XACE_WINDOW_INIT */
|
---|
123 | typedef struct {
|
---|
124 | ClientPtr client;
|
---|
125 | WindowPtr pWin;
|
---|
126 | } XaceWindowRec;
|
---|
127 |
|
---|
128 | /* XACE_AUDIT_BEGIN */
|
---|
129 | /* XACE_AUDIT_END */
|
---|
130 | typedef struct {
|
---|
131 | ClientPtr client;
|
---|
132 | int requestResult;
|
---|
133 | } XaceAuditRec;
|
---|
134 |
|
---|
135 | #endif /* _XACESTR_H */
|
---|