]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/mi/miinitext.c
Support RDP5 logon packets.
[rdpsrv] / Xserver / programs / Xserver / mi / miinitext.c
1 /***********************************************************
2
3 Copyright (c) 1987  X Consortium
4
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22 Except as contained in this notice, the name of the X Consortium shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from the X Consortium.
25
26
27 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
28
29                         All Rights Reserved
30
31 Permission to use, copy, modify, and distribute this software and its 
32 documentation for any purpose and without fee is hereby granted, 
33 provided that the above copyright notice appear in all copies and that
34 both that copyright notice and this permission notice appear in 
35 supporting documentation, and that the name of Digital not be
36 used in advertising or publicity pertaining to distribution of the
37 software without specific, written prior permission.  
38
39 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
40 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
41 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
42 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
43 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
44 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45 SOFTWARE.
46
47 ******************************************************************/
48 /* $XConsortium: miinitext.c /main/41 1996/09/28 17:15:08 rws $ */
49 /* $XFree86: xc/programs/Xserver/mi/miinitext.c,v 3.17.2.3 1997/05/22 14:00:46 dawes Exp $ */
50
51 #include "misc.h"
52 #include "extension.h"
53
54 #ifdef NOPEXEXT /* sleaze for Solaris cpp building XsunMono */
55 #undef PEXEXT
56 #endif
57
58 extern Bool noTestExtensions;
59 #ifdef XKB
60 extern Bool noXkbExtension;
61 #endif
62
63 #if NeedFunctionPrototypes
64 #define INITARGS void
65 #else
66 #define INITARGS /*nothing*/
67 #endif
68 typedef void (*InitExtension)(INITARGS);
69
70 /* FIXME: this whole block of externs should be from the appropriate headers */
71 #ifdef BEZIER
72 extern void BezierExtensionInit(INITARGS);
73 #endif
74 #ifdef XTESTEXT1
75 extern void XTestExtension1Init(INITARGS);
76 #endif
77 #ifdef SHAPE
78 extern void ShapeExtensionInit(INITARGS);
79 #endif
80 #ifdef MITSHM
81 extern void ShmExtensionInit(INITARGS);
82 #endif
83 #ifdef PEXEXT
84 #ifndef PEX_MODULE
85 extern void PexExtensionInit(INITARGS);
86 #endif
87 InitExtension PexExtensionInitPtr = NULL;
88 #endif
89 #ifdef MULTIBUFFER
90 extern void MultibufferExtensionInit(INITARGS);
91 #endif
92 #ifdef XINPUT
93 extern void XInputExtensionInit(INITARGS);
94 #endif
95 #ifdef XTEST
96 extern void XTestExtensionInit(INITARGS);
97 #endif
98 #ifdef BIGREQS
99 extern void BigReqExtensionInit(INITARGS);
100 #endif
101 #ifdef MITMISC
102 extern void MITMiscExtensionInit(INITARGS);
103 #endif
104 #ifdef XIDLE
105 extern void XIdleExtensionInit(INITARGS);
106 #endif
107 #ifdef XTRAP
108 extern void DEC_XTRAPInit(INITARGS);
109 #endif
110 #ifdef SCREENSAVER
111 extern void ScreenSaverExtensionInit (INITARGS);
112 #endif
113 #ifdef XV
114 extern void XvExtensionInit(INITARGS);
115 #endif
116 #ifdef XIE
117 #ifndef XIE_MODULE
118 extern void XieInit(INITARGS);
119 #endif
120 InitExtension XieInitPtr = NULL;
121 #endif
122 #ifdef XSYNC
123 extern void SyncExtensionInit(INITARGS);
124 #endif
125 #ifdef XKB
126 extern void XkbExtensionInit(INITARGS);
127 #endif
128 #ifdef XCMISC
129 extern void XCMiscExtensionInit(INITARGS);
130 #endif
131 #ifdef XRECORD
132 extern void RecordExtensionInit(INITARGS);
133 #endif
134 #ifdef LBX
135 extern void     LbxExtensionInit(INITARGS);
136 #endif
137 #ifdef DBE
138 extern void     DbeExtensionInit(INITARGS);
139 #endif
140 #ifdef XAPPGROUP
141 extern void XagExtensionInit(INITARGS);
142 #endif
143 #ifdef XCSECURITY
144 extern void SecurityExtensionInit(INITARGS);
145 #endif
146 #ifdef XPRINT
147 extern void     XpExtensionInit(INITARGS);
148 #endif
149 #ifdef XF86VIDMODE
150 extern void     XFree86VidModeExtensionInit(INITARGS);
151 #endif
152 #ifdef XF86MISC
153 extern void     XFree86MiscExtensionInit(INITARGS);
154 #endif
155 #ifdef XFreeXDGA
156 extern void XFree86DGAExtensionInit(INITARGS);
157 #endif
158 #ifdef DPMSExtension
159 extern void DPMSExtensionInit(INITARGS);
160 #endif
161 #ifdef GLXEXT
162 #ifndef GLX_MODULE
163 extern void GlxExtensionInit(INITARGS);
164 #else
165 InitExtension GlxExtensionInitPtr = NULL;
166 #endif
167 #endif
168
169 /*ARGSUSED*/
170 void
171 InitExtensions(argc, argv)
172     int         argc;
173     char        *argv[];
174 {
175 #ifdef BEZIER
176     BezierExtensionInit();
177 #endif
178 #ifdef XTESTEXT1
179     if (!noTestExtensions) XTestExtension1Init();
180 #endif
181 #ifdef SHAPE
182     ShapeExtensionInit();
183 #endif
184 #ifdef MITSHM
185     ShmExtensionInit();
186 #endif
187 #ifdef PEXEXT
188 #ifndef PEX_MODULE
189     PexExtensionInit();
190 #else
191     if (PexExtensionInitPtr != NULL) {
192         (*PexExtensionInitPtr)();
193     }
194 #endif
195 #endif
196 #ifdef MULTIBUFFER
197     MultibufferExtensionInit();
198 #endif
199 #ifdef XINPUT
200     XInputExtensionInit();
201 #endif
202 #ifdef XTEST
203     if (!noTestExtensions) XTestExtensionInit();
204 #endif
205 #ifdef BIGREQS
206     BigReqExtensionInit();
207 #endif
208 #ifdef MITMISC
209     MITMiscExtensionInit();
210 #endif
211 #ifdef XIDLE
212     XIdleExtensionInit();
213 #endif
214 #ifdef XTRAP
215     if (!noTestExtensions) DEC_XTRAPInit();
216 #endif
217 #ifdef SCREENSAVER
218     ScreenSaverExtensionInit ();
219 #endif
220 #ifdef XV
221     XvExtensionInit();
222 #endif
223 #ifdef XIE
224 #ifndef XIE_MODULE
225     XieInit();
226 #else
227     if (XieInitPtr != NULL) {
228         (*XieInitPtr)();
229     }
230 #endif
231 #endif
232 #ifdef XSYNC
233     SyncExtensionInit();
234 #endif
235 #ifdef XKB
236     if (!noXkbExtension) XkbExtensionInit();
237 #endif
238 #ifdef XCMISC
239     XCMiscExtensionInit();
240 #endif
241 #ifdef XRECORD
242     if (!noTestExtensions) RecordExtensionInit(); 
243 #endif
244 #ifdef LBX
245     LbxExtensionInit();
246 #endif
247 #ifdef DBE
248     DbeExtensionInit();
249 #endif
250 #ifdef XAPPGROUP
251     XagExtensionInit();
252 #endif
253 #ifdef XCSECURITY
254     SecurityExtensionInit();
255 #endif
256 #ifdef XPRINT
257     XpExtensionInit();
258 #endif
259 #if defined(XF86VIDMODE) && !defined(PRINT_ONLY_SERVER)
260     XFree86VidModeExtensionInit();
261 #endif
262 #if defined(XF86MISC) && !defined(PRINT_ONLY_SERVER)
263     XFree86MiscExtensionInit();
264 #endif
265 #if defined(XFreeXDGA) && !defined(PRINT_ONLY_SERVER)
266     XFree86DGAExtensionInit();
267 #endif
268 #if defined(DPMSExtension) && !defined(PRINT_ONLY_SERVER)
269     DPMSExtensionInit();
270 #endif
271 #ifdef GLXEXT
272 #ifndef GLX_MODULE
273     GlxExtensionInit();
274 #else
275     if (GlxExtensionInitPtr != NULL) {
276         (*GlxExtensionInitPtr)();
277     }
278 #endif
279 #endif
280 }