diff options
Diffstat (limited to 'hw/xfree86/dixmods/dbemodule.c')
-rw-r--r-- | hw/xfree86/dixmods/dbemodule.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/hw/xfree86/dixmods/dbemodule.c b/hw/xfree86/dixmods/dbemodule.c new file mode 100644 index 000000000..f9dcc8477 --- /dev/null +++ b/hw/xfree86/dixmods/dbemodule.c @@ -0,0 +1,43 @@ +/* $XFree86: xc/programs/Xserver/dbe/dbemodule.c,v 1.7 2000/01/25 18:37:37 dawes Exp $ */ + +#include "xf86Module.h" + +static MODULESETUPPROTO(dbeSetup); + +extern void DbeExtensionInit(INITARGS); + +ExtensionModule dbeExt = { + DbeExtensionInit, + "DOUBLE-BUFFER", + NULL, + NULL, + NULL +}; + +static XF86ModuleVersionInfo VersRec = +{ + "dbe", + MODULEVENDORSTRING, + MODINFOSTRING1, + MODINFOSTRING2, + XF86_VERSION_CURRENT, + 1, 0, 0, + ABI_CLASS_EXTENSION, + ABI_EXTENSION_VERSION, + MOD_CLASS_EXTENSION, + {0,0,0,0} +}; + +/* + * Data for the loader + */ +XF86ModuleData dbeModuleData = { &VersRec, dbeSetup, NULL }; + +static pointer +dbeSetup(pointer module, pointer opts, int *errmaj, int *errmin) +{ + LoadExtension(&dbeExt, FALSE); + + /* Need a non-NULL return value to indicate success */ + return (pointer)1; +} |