First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xgl / glx / module / xglxmodule.c
blob40af8907de062162902ae646742fb7613737d4ee
1 /*
2 * Copyright © 2005 Novell, Inc.
4 * Permission to use, copy, modify, distribute, and sell this software
5 * and its documentation for any purpose is hereby granted without
6 * fee, provided that the above copyright notice appear in all copies
7 * and that both that copyright notice and this permission notice
8 * appear in supporting documentation, and that the name of
9 * Novell, Inc. not be used in advertising or publicity pertaining to
10 * distribution of the software without specific, written prior permission.
11 * Novell, Inc. makes no representations about the suitability of this
12 * software for any purpose. It is provided "as is" without express or
13 * implied warranty.
15 * NOVELL, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17 * NO EVENT SHALL NOVELL, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Author: David Reveman <davidr@novell.com>
26 #include "xglx.h"
27 #include "xglmodule.h"
29 #include <glitz-glx.h>
31 char *
32 moduleVersion (void)
34 return VERSION;
37 Bool
38 moduleInit (const char *module)
40 glitz_glx_init (module);
42 return TRUE;
45 void
46 InitOutput (ScreenInfo *pScreenInfo,
47 int argc,
48 char **argv)
50 xglxInitOutput (pScreenInfo, argc, argv);
53 Bool
54 LegalModifier (unsigned int key,
55 DeviceIntPtr pDev)
57 return xglxLegalModifier (key, pDev);
60 void
61 ProcessInputEvents (void)
63 xglxProcessInputEvents ();
66 void
67 InitInput (int argc,
68 char **argv)
70 xglxInitInput (argc, argv);
73 void
74 ddxUseMsg (void)
76 ErrorF ("\nXglx usage:\n");
77 xglxUseMsg ();
80 int
81 ddxProcessArgument (int argc,
82 char **argv,
83 int i)
85 return xglxProcessArgument (argc, argv, i);
88 void
89 AbortDDX (void)
91 xglxAbort ();
94 void
95 ddxGiveUp (void)
97 xglxGiveUp ();
100 void
101 OsVendorInit (void)
103 xglxOsVendorInit ();