Corrected WinMain.
[wine.git] / tsx11 / ts_xf86dga2.c
blob50c007fe9693026b0b2f86fc290da0220d0dd611
1 /*
2 * Thread safe wrappers around xf86dga2 calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #ifndef X_DISPLAY_MISSING
11 #ifdef HAVE_LIBXXF86DGA2
13 #include <X11/Xlib.h>
14 #include <X11/extensions/xf86dga.h>
16 #include "debugtools.h"
17 #include "ts_xf86dga2.h"
18 #include "x11drv.h"
20 DEFAULT_DEBUG_CHANNEL(x11)
22 Bool TSXDGAQueryVersion(Display* a0, int* a1, int* a2)
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;
33 Bool TSXDGAQueryExtension(Display* a0, int* a1, int* a2)
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;
44 XDGAMode* TSXDGAQueryModes(Display* a0, int a1, int* a2)
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;
55 XDGADevice* TSXDGASetMode(Display* a0, int a1, int a2)
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;
66 Bool TSXDGAOpenFramebuffer(Display* a0, int a1)
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;
77 void TSXDGACloseFramebuffer(Display* a0, int a1)
79 TRACE("Call XDGACloseFramebuffer\n");
80 EnterCriticalSection( &X11DRV_CritSection );
81 XDGACloseFramebuffer( a0, a1);
82 LeaveCriticalSection( &X11DRV_CritSection );
83 TRACE("Ret XDGACloseFramebuffer\n");
86 void TSXDGASetViewport(Display* a0, int a1, int a2, int a3, int a4)
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");
95 void TSXDGAInstallColormap(Display* a0, int a1, Colormap a2)
97 TRACE("Call XDGAInstallColormap\n");
98 EnterCriticalSection( &X11DRV_CritSection );
99 XDGAInstallColormap( a0, a1, a2);
100 LeaveCriticalSection( &X11DRV_CritSection );
101 TRACE("Ret XDGAInstallColormap\n");
104 Colormap TSXDGACreateColormap(Display* a0, int a1, XDGADevice* a2, int a3)
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;
115 void TSXDGASelectInput(Display* a0, int a1, long a2)
117 TRACE("Call XDGASelectInput\n");
118 EnterCriticalSection( &X11DRV_CritSection );
119 XDGASelectInput( a0, a1, a2);
120 LeaveCriticalSection( &X11DRV_CritSection );
121 TRACE("Ret XDGASelectInput\n");
124 void TSXDGAFillRectangle(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6)
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");
133 void TSXDGACopyArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7)
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");
142 void TSXDGACopyTransparentArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7, unsigned long a8)
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");
151 int TSXDGAGetViewportStatus(Display* a0, int a1)
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;
162 void TSXDGASync(Display* a0, int a1)
164 TRACE("Call XDGASync\n");
165 EnterCriticalSection( &X11DRV_CritSection );
166 XDGASync( a0, a1);
167 LeaveCriticalSection( &X11DRV_CritSection );
168 TRACE("Ret XDGASync\n");
171 Bool TSXDGASetClientVersion(Display* a0)
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;
182 void TSXDGAChangePixmapMode(Display* a0, int a1, int* a2, int* a3, int a4)
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");
191 void TSXDGAKeyEventToXKeyEvent(XDGAKeyEvent* a0, XKeyEvent* a1)
193 TRACE("Call XDGAKeyEventToXKeyEvent\n");
194 EnterCriticalSection( &X11DRV_CritSection );
195 XDGAKeyEventToXKeyEvent( a0, a1);
196 LeaveCriticalSection( &X11DRV_CritSection );
197 TRACE("Ret XDGAKeyEventToXKeyEvent\n");
200 #endif /* defined(HAVE_LIBXXF86DGA2) */
202 #endif /* !defined(X_DISPLAY_MISSING) */