]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/include/exevents.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / programs / Xserver / include / exevents.h
1 /* $XFree86: xc/programs/Xserver/include/exevents.h,v 3.1 1996/04/15 11:34:29 dawes Exp $ */
2 /************************************************************
3
4 Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
5
6                         All Rights Reserved
7
8 Permission to use, copy, modify, and distribute this software and its
9 documentation for any purpose and without fee is hereby granted,
10 provided that the above copyright notice appear in all copies and that
11 both that copyright notice and this permission notice appear in
12 supporting documentation, and that the name of the above listed
13 copyright holder(s) not be used in advertising or publicity pertaining
14 to distribution of the software without specific, written prior
15 permission.
16
17 THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
18 TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19 AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
20 LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
22 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
23 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24
25 ********************************************************/
26
27 /********************************************************************
28  * Interface of 'exevents.c'
29  */
30
31 #ifndef EXEVENTS_H
32 #define EXEVENTS_H
33
34 void
35 RegisterOtherDevice (
36 #if NeedFunctionPrototypes
37         DeviceIntPtr           /* device */
38 #endif
39         );
40
41 void
42 ProcessOtherEvent (
43 #if NeedFunctionPrototypes
44         xEventPtr /* FIXME deviceKeyButtonPointer * xE */,
45         DeviceIntPtr           /* other */,
46         int                    /* count */
47 #endif
48         );
49
50 int
51 InitProximityClassDeviceStruct(
52 #if NeedFunctionPrototypes
53         DeviceIntPtr           /* dev */
54 #endif
55         );
56
57 void
58 InitValuatorAxisStruct(
59 #if NeedFunctionPrototypes
60         DeviceIntPtr           /* dev */,
61         int                    /* axnum */,
62         int                    /* minval */,
63         int                    /* maxval */,
64         int                    /* resolution */,
65         int                    /* min_res */,
66         int                    /* max_res */
67 #endif
68         );
69
70 void
71 DeviceFocusEvent(
72 #if NeedFunctionPrototypes
73         DeviceIntPtr           /* dev */,
74         int                    /* type */,
75         int                    /* mode */,
76         int                    /* detail */,
77         WindowPtr              /* pWin */
78 #endif
79         );
80
81 int
82 GrabButton(
83 #if NeedFunctionPrototypes
84         ClientPtr              /* client */,
85         DeviceIntPtr           /* dev */,
86         BYTE                   /* this_device_mode */,
87         BYTE                   /* other_devices_mode */,
88         CARD16                 /* modifiers */,
89         DeviceIntPtr           /* modifier_device */,
90         CARD8                  /* button */,
91         Window                 /* grabWindow */,
92         BOOL                   /* ownerEvents */,
93         Cursor                 /* rcursor */,
94         Window                 /* rconfineTo */,
95         Mask                   /* eventMask */
96 #endif
97         );
98
99 int
100 GrabKey(
101 #if NeedFunctionPrototypes
102         ClientPtr              /* client */,
103         DeviceIntPtr           /* dev */,
104         BYTE                   /* this_device_mode */,
105         BYTE                   /* other_devices_mode */,
106         CARD16                 /* modifiers */,
107         DeviceIntPtr           /* modifier_device */,
108         CARD8                  /* key */,
109         Window                 /* grabWindow */,
110         BOOL                   /* ownerEvents */,
111         Mask                   /* mask */
112 #endif
113         );
114
115 int
116 SelectForWindow(
117 #if NeedFunctionPrototypes
118         DeviceIntPtr           /* dev */,
119         WindowPtr              /* pWin */,
120         ClientPtr              /* client */,
121         Mask                   /* mask */,
122         Mask                   /* exclusivemasks */,
123         Mask                   /* validmasks */
124 #endif
125         );
126
127 int 
128 AddExtensionClient (
129 #if NeedFunctionPrototypes
130         WindowPtr              /* pWin */,
131         ClientPtr              /* client */,
132         Mask                   /* mask */,
133         int                    /* mskidx */
134 #endif
135         );
136
137 void
138 RecalculateDeviceDeliverableEvents(
139 #if NeedFunctionPrototypes
140         WindowPtr              /* pWin */
141 #endif
142         );
143
144 int
145 InputClientGone(
146 #if NeedFunctionPrototypes
147         WindowPtr              /* pWin */,
148         XID                    /* id */
149 #endif
150         );
151
152 int
153 SendEvent (
154 #if NeedFunctionPrototypes
155         ClientPtr              /* client */,
156         DeviceIntPtr           /* d */,
157         Window                 /* dest */,
158         Bool                   /* propagate */,
159         xEvent *               /* ev */,
160         Mask                   /* mask */,
161         int                    /* count */
162 #endif
163         );
164
165 int
166 SetButtonMapping (
167 #if NeedFunctionPrototypes
168         ClientPtr              /* client */,
169         DeviceIntPtr           /* dev */,
170         int                    /* nElts */,
171         BYTE *                 /* map */
172 #endif
173         );
174
175 int 
176 SetModifierMapping(
177 #if NeedFunctionPrototypes
178         ClientPtr              /* client */,
179         DeviceIntPtr           /* dev */,
180         int                    /* len */,
181         int                    /* rlen */,
182         int                    /* numKeyPerModifier */,
183         KeyCode *              /* inputMap */,
184         KeyClassPtr *          /* k */
185 #endif
186         );
187
188 void
189 SendDeviceMappingNotify(
190 #if NeedFunctionPrototypes
191         CARD8                  /* request, */,
192         KeyCode                /* firstKeyCode */,
193         CARD8                  /* count */,
194         DeviceIntPtr           /* dev */
195 #endif
196 );
197
198 int
199 ChangeKeyMapping(
200 #if NeedFunctionPrototypes
201         ClientPtr              /* client */,
202         DeviceIntPtr           /* dev */,
203         unsigned               /* len */,
204         int                    /* type */,
205         KeyCode                /* firstKeyCode */,
206         CARD8                  /* keyCodes */,
207         CARD8                  /* keySymsPerKeyCode */,
208         KeySym *               /* map */
209 #endif
210         );
211
212 void
213 DeleteWindowFromAnyExtEvents(
214 #if NeedFunctionPrototypes
215         WindowPtr              /* pWin */,
216         Bool                   /* freeResources */
217 #endif
218 );
219
220 void
221 DeleteDeviceFromAnyExtEvents(
222 #if NeedFunctionPrototypes
223         WindowPtr              /* pWin */,
224         DeviceIntPtr           /* dev */
225 #endif
226         );
227
228 int
229 MaybeSendDeviceMotionNotifyHint (
230 #if NeedFunctionPrototypes
231         deviceKeyButtonPointer * /* pEvents */,
232         Mask                   /* mask */
233 #endif
234 );
235
236 void
237 CheckDeviceGrabAndHintWindow (
238 #if NeedFunctionPrototypes
239         WindowPtr              /* pWin */,
240         int                    /* type */,
241         deviceKeyButtonPointer * /* xE */,
242         GrabPtr                /* grab */,
243         ClientPtr              /* client */,
244         Mask                   /* deliveryMask */
245 #endif
246         );
247
248 Mask
249 DeviceEventMaskForClient(
250 #if NeedFunctionPrototypes
251         DeviceIntPtr           /* dev */,
252         WindowPtr              /* pWin */,
253         ClientPtr              /* client */
254 #endif
255 );
256
257 void
258 MaybeStopDeviceHint(
259 #if NeedFunctionPrototypes
260         DeviceIntPtr           /* dev */,
261         ClientPtr              /* client */
262 #endif
263         );
264
265 int
266 DeviceEventSuppressForWindow(
267 #if NeedFunctionPrototypes
268         WindowPtr              /* pWin */,
269         ClientPtr              /* client */,
270         Mask                   /* mask */,
271         int                    /* maskndx */
272 #endif
273         );
274
275 #endif /* EXEVENTS_H */