1 /**************************************************************
3 * Startup code for the IOKit Darwin X Server
5 **************************************************************/
7 * Copyright (c) 2001-2004 Torrey T. Lyons. All Rights Reserved.
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
23 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
27 * Except as contained in this notice, the name(s) of the above copyright
28 * holders shall not be used in advertising or otherwise to promote the sale,
29 * use or other dealings in this Software without prior written authorization.
33 #if HAVE_XORG_CONFIG_H
34 #include <xorg-config.h>
38 #include "darwinKeyboard.h"
41 void GlxExtensionInit(void);
42 void GlxWrapInitVisuals(miInitVisualsProcPtr
*procPtr
);
47 * This function is called first from main().
48 * It does nothing for the IOKit X server.
59 * DarwinGlxExtensionInit
60 * Initialize the GLX extension.
61 * Mesa is linked into the IOKit mode X server so we just call directly.
63 void DarwinGlxExtensionInit(void)
72 * DarwinGlxWrapInitVisuals
74 void DarwinGlxWrapInitVisuals(
75 miInitVisualsProcPtr
*procPtr
)
78 GlxWrapInitVisuals(procPtr
);
84 * DarwinModeProcessArgument
85 * Process IOKit specific command line arguments.
87 int DarwinModeProcessArgument(
92 #ifdef DARWIN_WITH_QUARTZ
93 // XDarwinStartup uses these arguments to indicate which X server
94 // should be started. Ignore them here.
95 if (!strcmp( argv
[i
], "-fullscreen" ) ||
96 !strcmp( argv
[i
], "-rootless" ) ||
97 !strcmp( argv
[i
], "-quartz" ))
102 if (!strcmp( argv
[i
], "-fullscreen" ) ||
103 !strcmp( argv
[i
], "-rootless" ) ||
104 !strcmp( argv
[i
], "-quartz" ))
106 FatalError("Command line option %s is not available without Quartz "
107 "support.\n", argv
[i
]);
116 * DarwinModeSystemKeymapSeed
117 * Changes to NXKeyMapping are not tracked.
120 DarwinModeSystemKeymapSeed(void)
127 * DarwinModeReadSystemKeymap
128 * IOKit has no alternative to NXKeyMapping API.
130 Bool
DarwinModeReadSystemKeymap(
131 darwinKeyboardInfo
*info
)