void init_simple(void) { screenInfo.numScreens = 1; screenInfo.screens[0] = &screen; screen.myNum = 0; screen.id = 100; screen.width = 640; screen.height = 480; screen.DeviceCursorInitialize = device_cursor_init; screen.DeviceCursorCleanup = device_cursor_cleanup; screen.SetCursorPosition = set_cursor_pos; screen.root = &root; dixResetPrivates(); InitAtoms(); XkbInitPrivates(); dixRegisterPrivateKey(&XIClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(XIClientRec)); dixRegisterPrivateKey(&miPointerScreenKeyRec, PRIVATE_SCREEN, 0); dixRegisterPrivateKey(&miPointerPrivKeyRec, PRIVATE_DEVICE, 0); XInputExtensionInit(); init_window(&root, NULL, ROOT_WINDOW_ID); init_window(&window, &root, CLIENT_WINDOW_ID); serverClient = &server_client; InitClient(serverClient, 0, (void *) NULL); if (!InitClientResources(serverClient)) /* for root resources */ FatalError("couldn't init server resources"); SyncExtensionInit(); devices = init_devices(); }
/*ARGSUSED*/ void InitExtensions(int argc, char *argv[]) { if (!noGEExtension) GEExtensionInit(); #ifdef PANORAMIX if (!noPanoramiXExtension) PanoramiXExtensionInit(); #endif #ifdef INXQUARTZ if (!noPseudoramiXExtension) PseudoramiXExtensionInit(); #endif ShapeExtensionInit(); #ifdef MITSHM if (!noMITShmExtension) ShmExtensionInit(); #endif XInputExtensionInit(); #ifdef XTEST if (!noTestExtensions) XTestExtensionInit(); #endif BigReqExtensionInit(); #if defined(SCREENSAVER) if (!noScreenSaverExtension) ScreenSaverExtensionInit(); #endif #ifdef XV if (!noXvExtension) { XvExtensionInit(); XvMCExtensionInit(); } #endif SyncExtensionInit(); XkbExtensionInit(); XCMiscExtensionInit(); #ifdef XRECORD if (!noTestExtensions) RecordExtensionInit(); #endif #ifdef DBE if (!noDbeExtension) DbeExtensionInit(); #endif #ifdef XCSECURITY if (!noSecurityExtension) SecurityExtensionInit(); #endif #ifdef XSELINUX if (!noSELinuxExtension) SELinuxExtensionInit(); #endif #if defined(DPMSExtension) && !defined(NO_HW_ONLY_EXTS) if (!noDPMSExtension) DPMSExtensionInit(); #endif #ifdef XF86BIGFONT if (!noXFree86BigfontExtension) XFree86BigfontExtensionInit(); #endif #if !defined(NO_HW_ONLY_EXTS) #if defined(XF86VIDMODE) if (!noXFree86VidModeExtension) XFree86VidModeExtensionInit(); #endif #if defined(XFreeXDGA) if (!noXFree86DGAExtension) XFree86DGAExtensionInit(); #endif #ifdef XF86DRI if (!noXFree86DRIExtension) XFree86DRIExtensionInit(); #endif #endif #ifdef XFIXES /* must be before Render to layer DisplayCursor correctly */ if (!noXFixesExtension) XFixesExtensionInit(); #endif if (!noRenderExtension) RenderExtensionInit(); #ifdef RANDR if (!noRRExtension) RRExtensionInit(); #endif #ifdef RES if (!noResExtension) ResExtensionInit(); #endif #ifdef DMXEXT DMXExtensionInit(); /* server-specific extension, cannot be disabled */ #endif #ifdef COMPOSITE if (!noCompositeExtension) CompositeExtensionInit(); #endif #ifdef DAMAGE if (!noDamageExtension) DamageExtensionInit(); #endif #ifdef GLXEXT if (serverGeneration == 1) GlxPushProvider(&__glXDRISWRastProvider); if (!noGlxExtension) GlxExtensionInit(); #endif }
/*ARGSUSED*/ void InitExtensions(int argc, char *argv[]) { #ifdef PANORAMIX if (!noPanoramiXExtension) PanoramiXExtensionInit(); #endif #ifdef XTESTEXT1 if (!noTestExtensions) XTestExtension1Init(); #endif #ifdef SHAPE ShapeExtensionInit(); #endif #ifdef MITSHM ShmExtensionInit(); #endif #ifdef EVI EVIExtensionInit(); #endif #ifdef MULTIBUFFER MultibufferExtensionInit(); #endif #ifdef XINPUT XInputExtensionInit(); #endif #ifdef XTEST if (!noTestExtensions) XTestExtensionInit(); #endif #ifdef BIGREQS BigReqExtensionInit(); #endif #ifdef MITMISC MITMiscExtensionInit(); #endif #ifdef XTRAP if (!noTestExtensions) DEC_XTRAPInit(); #endif #ifdef SCREENSAVER ScreenSaverExtensionInit (); #endif #ifdef XV XvExtensionInit(); #endif #ifdef XVMC XvMCExtensionInit(); #endif #ifdef XSYNC SyncExtensionInit(); #endif #ifdef XKB if (!noXkbExtension) XkbExtensionInit(); #endif #ifdef XCMISC XCMiscExtensionInit(); #endif #ifdef XRECORD if (!noTestExtensions) RecordExtensionInit(); #endif #ifdef LBX LbxExtensionInit(); #endif #ifdef DBE DbeExtensionInit(); #endif #ifdef XAPPGROUP XagExtensionInit(); #endif #ifdef XCSECURITY SecurityExtensionInit(); #endif #ifdef XPRINT XpExtensionInit(); #endif #ifdef TOGCUP XcupExtensionInit(); #endif #ifdef DPMSExtension DPMSExtensionInit(); #endif #ifdef FONTCACHE FontCacheExtensionInit(); #endif #ifdef XF86BIGFONT XFree86BigfontExtensionInit(); #endif #ifdef XF86VIDMODE XFree86VidModeExtensionInit(); #endif #ifdef XF86MISC XFree86MiscExtensionInit(); #endif #ifdef XFreeXDGA XFree86DGAExtensionInit(); #endif #ifdef XF86DRI XFree86DRIExtensionInit(); #endif #ifdef GLXEXT #ifndef __DARWIN__ GlxExtensionInit(); #else DarwinGlxExtensionInit(); #endif #endif #ifdef DPSEXT DPSExtensionInit(); #endif #ifdef RENDER #ifdef DMXSERVER if (!dmxNoRender) #endif RenderExtensionInit(); #endif #ifdef RANDR RRExtensionInit(); #endif #ifdef RES ResExtensionInit(); #endif #ifdef DMXEXT DMXExtensionInit(); #endif }