Small fix.
[wine] / tsx11 / ts_xf86dga2.c
1 /*
2  * Thread safe wrappers around xf86dga2 calls.
3  * This file was generated automatically by tools/make_X11wrappers
4  * DO NOT EDIT!
5  */
6
7 #include "config.h"
8
9 #ifndef X_DISPLAY_MISSING
10
11 #ifdef HAVE_LIBXXF86DGA2
12
13 #include <X11/Xlib.h>
14 #include <X11/extensions/xf86dga.h>
15
16 #include "debugtools.h"
17 #include "ts_xf86dga2.h"
18 #include "x11drv.h"
19
20 DEFAULT_DEBUG_CHANNEL(x11)
21
22 Bool TSXDGAQueryVersion(Display* a0, int* a1, int* a2)
23 {
24   Bool r;
25   TRACE("Call XDGAQueryVersion\n");
26   EnterCriticalSection( &X11DRV_CritSection );
27   r = XDGAQueryVersion( a0,  a1,  a2);
28   LeaveCriticalSection( &X11DRV_CritSection );
29   TRACE("Ret XDGAQueryVersion\n");
30   return r;
31 }
32
33 Bool TSXDGAQueryExtension(Display* a0, int* a1, int* a2)
34 {
35   Bool r;
36   TRACE("Call XDGAQueryExtension\n");
37   EnterCriticalSection( &X11DRV_CritSection );
38   r = XDGAQueryExtension( a0,  a1,  a2);
39   LeaveCriticalSection( &X11DRV_CritSection );
40   TRACE("Ret XDGAQueryExtension\n");
41   return r;
42 }
43
44 XDGAMode* TSXDGAQueryModes(Display* a0, int a1, int* a2)
45 {
46   XDGAMode* r;
47   TRACE("Call XDGAQueryModes\n");
48   EnterCriticalSection( &X11DRV_CritSection );
49   r = XDGAQueryModes( a0,  a1,  a2);
50   LeaveCriticalSection( &X11DRV_CritSection );
51   TRACE("Ret XDGAQueryModes\n");
52   return r;
53 }
54
55 XDGADevice* TSXDGASetMode(Display* a0, int a1, int a2)
56 {
57   XDGADevice* r;
58   TRACE("Call XDGASetMode\n");
59   EnterCriticalSection( &X11DRV_CritSection );
60   r = XDGASetMode( a0,  a1,  a2);
61   LeaveCriticalSection( &X11DRV_CritSection );
62   TRACE("Ret XDGASetMode\n");
63   return r;
64 }
65
66 Bool TSXDGAOpenFramebuffer(Display* a0, int a1)
67 {
68   Bool r;
69   TRACE("Call XDGAOpenFramebuffer\n");
70   EnterCriticalSection( &X11DRV_CritSection );
71   r = XDGAOpenFramebuffer( a0,  a1);
72   LeaveCriticalSection( &X11DRV_CritSection );
73   TRACE("Ret XDGAOpenFramebuffer\n");
74   return r;
75 }
76
77 void TSXDGACloseFramebuffer(Display* a0, int a1)
78 {
79   TRACE("Call XDGACloseFramebuffer\n");
80   EnterCriticalSection( &X11DRV_CritSection );
81   XDGACloseFramebuffer( a0,  a1);
82   LeaveCriticalSection( &X11DRV_CritSection );
83   TRACE("Ret XDGACloseFramebuffer\n");
84 }
85
86 void TSXDGASetViewport(Display* a0, int a1, int a2, int a3, int a4)
87 {
88   TRACE("Call XDGASetViewport\n");
89   EnterCriticalSection( &X11DRV_CritSection );
90   XDGASetViewport( a0,  a1,  a2,  a3,  a4);
91   LeaveCriticalSection( &X11DRV_CritSection );
92   TRACE("Ret XDGASetViewport\n");
93 }
94
95 void TSXDGAInstallColormap(Display* a0, int a1, Colormap a2)
96 {
97   TRACE("Call XDGAInstallColormap\n");
98   EnterCriticalSection( &X11DRV_CritSection );
99   XDGAInstallColormap( a0,  a1,  a2);
100   LeaveCriticalSection( &X11DRV_CritSection );
101   TRACE("Ret XDGAInstallColormap\n");
102 }
103
104 Colormap TSXDGACreateColormap(Display* a0, int a1, XDGADevice* a2, int a3)
105 {
106   Colormap r;
107   TRACE("Call XDGACreateColormap\n");
108   EnterCriticalSection( &X11DRV_CritSection );
109   r = XDGACreateColormap( a0,  a1,  a2,  a3);
110   LeaveCriticalSection( &X11DRV_CritSection );
111   TRACE("Ret XDGACreateColormap\n");
112   return r;
113 }
114
115 void TSXDGASelectInput(Display* a0, int a1, long a2)
116 {
117   TRACE("Call XDGASelectInput\n");
118   EnterCriticalSection( &X11DRV_CritSection );
119   XDGASelectInput( a0,  a1,  a2);
120   LeaveCriticalSection( &X11DRV_CritSection );
121   TRACE("Ret XDGASelectInput\n");
122 }
123
124 void TSXDGAFillRectangle(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6)
125 {
126   TRACE("Call XDGAFillRectangle\n");
127   EnterCriticalSection( &X11DRV_CritSection );
128   XDGAFillRectangle( a0,  a1,  a2,  a3,  a4,  a5,  a6);
129   LeaveCriticalSection( &X11DRV_CritSection );
130   TRACE("Ret XDGAFillRectangle\n");
131 }
132
133 void TSXDGACopyArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7)
134 {
135   TRACE("Call XDGACopyArea\n");
136   EnterCriticalSection( &X11DRV_CritSection );
137   XDGACopyArea( a0,  a1,  a2,  a3,  a4,  a5,  a6,  a7);
138   LeaveCriticalSection( &X11DRV_CritSection );
139   TRACE("Ret XDGACopyArea\n");
140 }
141
142 void TSXDGACopyTransparentArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7, unsigned long a8)
143 {
144   TRACE("Call XDGACopyTransparentArea\n");
145   EnterCriticalSection( &X11DRV_CritSection );
146   XDGACopyTransparentArea( a0,  a1,  a2,  a3,  a4,  a5,  a6,  a7,  a8);
147   LeaveCriticalSection( &X11DRV_CritSection );
148   TRACE("Ret XDGACopyTransparentArea\n");
149 }
150
151 int TSXDGAGetViewportStatus(Display* a0, int a1)
152 {
153   int r;
154   TRACE("Call XDGAGetViewportStatus\n");
155   EnterCriticalSection( &X11DRV_CritSection );
156   r = XDGAGetViewportStatus( a0,  a1);
157   LeaveCriticalSection( &X11DRV_CritSection );
158   TRACE("Ret XDGAGetViewportStatus\n");
159   return r;
160 }
161
162 void TSXDGASync(Display* a0, int a1)
163 {
164   TRACE("Call XDGASync\n");
165   EnterCriticalSection( &X11DRV_CritSection );
166   XDGASync( a0,  a1);
167   LeaveCriticalSection( &X11DRV_CritSection );
168   TRACE("Ret XDGASync\n");
169 }
170
171 Bool TSXDGASetClientVersion(Display* a0)
172 {
173   Bool r;
174   TRACE("Call XDGASetClientVersion\n");
175   EnterCriticalSection( &X11DRV_CritSection );
176   r = XDGASetClientVersion( a0);
177   LeaveCriticalSection( &X11DRV_CritSection );
178   TRACE("Ret XDGASetClientVersion\n");
179   return r;
180 }
181
182 void TSXDGAChangePixmapMode(Display* a0, int a1, int* a2, int* a3, int a4)
183 {
184   TRACE("Call XDGAChangePixmapMode\n");
185   EnterCriticalSection( &X11DRV_CritSection );
186   XDGAChangePixmapMode( a0,  a1,  a2,  a3,  a4);
187   LeaveCriticalSection( &X11DRV_CritSection );
188   TRACE("Ret XDGAChangePixmapMode\n");
189 }
190
191 void TSXDGAKeyEventToXKeyEvent(XDGAKeyEvent* a0, XKeyEvent* a1)
192 {
193   TRACE("Call XDGAKeyEventToXKeyEvent\n");
194   EnterCriticalSection( &X11DRV_CritSection );
195   XDGAKeyEventToXKeyEvent( a0,  a1);
196   LeaveCriticalSection( &X11DRV_CritSection );
197   TRACE("Ret XDGAKeyEventToXKeyEvent\n");
198 }
199
200 #endif /* defined(HAVE_LIBXXF86DGA2) */
201
202 #endif /* !defined(X_DISPLAY_MISSING) */