First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / dixmods / xf86XTrapModule.c
blobe89d7751d61ecd90880ee06bd6718cc6d5cb4d44
1 /* This is the xf86 module code for the DEC_XTRAP extension. */
3 #ifdef HAVE_DIX_CONFIG_H
4 #include <dix-config.h>
5 #endif
7 #include "xf86Module.h"
9 #include <X11/extensions/xtrapdi.h>
11 extern void DEC_XTRAPInit(INITARGS);
13 static MODULESETUPPROTO(xtrapSetup);
15 static ExtensionModule xtrapExt =
17 DEC_XTRAPInit,
18 XTrapExtName,
19 NULL,
20 NULL,
21 NULL
24 static XF86ModuleVersionInfo xtrapVersRec =
26 "xtrap",
27 MODULEVENDORSTRING,
28 MODINFOSTRING1,
29 MODINFOSTRING2,
30 XORG_VERSION_CURRENT,
31 1, 0, 0,
32 ABI_CLASS_EXTENSION, /* needs the server extension ABI */
33 ABI_EXTENSION_VERSION,
34 MOD_CLASS_EXTENSION,
35 {0,0,0,0}
38 _X_EXPORT XF86ModuleData xtrapModuleData = { &xtrapVersRec, xtrapSetup, NULL };
40 static pointer
41 xtrapSetup(pointer module, pointer opts, int *errmaj, int *errmin) {
42 LoadExtension(&xtrapExt, FALSE);
43 /* Need a non-NULL return value to indicate success */
44 return (pointer)1;