~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/xgl/egl/module/xeglmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
Import upstream version 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2005 Novell, Inc.
 
3
 *
 
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.
 
14
 *
 
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.
 
22
 *
 
23
 * Author: David Reveman <davidr@novell.com>
 
24
 */
 
25
 
 
26
#include "xglmodule.h"
 
27
#include "xegl.h"
 
28
 
 
29
#include <glitz-egl.h>
 
30
 
 
31
char *
 
32
moduleVersion (void)
 
33
{
 
34
    return VERSION;
 
35
}
 
36
 
 
37
Bool
 
38
moduleInit (const char *module)
 
39
{
 
40
    glitz_egl_init (module);
 
41
 
 
42
    return TRUE;
 
43
}
 
44
 
 
45
void
 
46
InitOutput (ScreenInfo *pScreenInfo,
 
47
            int        argc,
 
48
            char       **argv)
 
49
{
 
50
    xeglInitOutput (pScreenInfo, argc, argv);
 
51
}
 
52
 
 
53
Bool
 
54
LegalModifier (unsigned int key,
 
55
               DevicePtr    pDev)
 
56
{
 
57
    return xeglLegalModifier (key, pDev);
 
58
}
 
59
 
 
60
void
 
61
ProcessInputEvents (void)
 
62
{
 
63
    xeglProcessInputEvents ();
 
64
}
 
65
 
 
66
void
 
67
InitInput (int  argc,
 
68
           char **argv)
 
69
{
 
70
    xeglInitInput (argc, argv);
 
71
}
 
72
 
 
73
void
 
74
ddxUseMsg (void)
 
75
{
 
76
    ErrorF ("\nXegl usage:\n");
 
77
    xeglUseMsg ();
 
78
}
 
79
 
 
80
int
 
81
ddxProcessArgument (int  argc,
 
82
                    char **argv,
 
83
                    int  i)
 
84
{
 
85
    return xeglProcessArgument (argc, argv, i);
 
86
}
 
87
 
 
88
void
 
89
AbortDDX (void)
 
90
{
 
91
    xeglAbort ();
 
92
}
 
93
 
 
94
void
 
95
ddxGiveUp (void)
 
96
{
 
97
    xeglGiveUp ();
 
98
}
 
99
 
 
100
void
 
101
OsVendorInit (void)
 
102
{
 
103
    xeglOsVendorInit ();
 
104
}