Merged main Wine changes into Corel's treeview control rewritten by
[wine/multimedia.git] / tsx11 / ts_xf86dga2.c
blobd8e16e0bde87283da6f7a23475d016cb624c7db3
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 #ifdef HAVE_LIBXXF86DGA2
11 #include <X11/Xlib.h>
12 #include <X11/extensions/xf86dga.h>
14 #include "debugtools.h"
15 #include "ts_xf86dga2.h"
16 #include "x11drv.h"
18 DEFAULT_DEBUG_CHANNEL(x11)
20 Bool TSXDGAQueryVersion(Display* a0, int* a1, int* a2)
22 Bool r;
23 TRACE("Call XDGAQueryVersion\n");
24 EnterCriticalSection( &X11DRV_CritSection );
25 r = XDGAQueryVersion( a0, a1, a2);
26 LeaveCriticalSection( &X11DRV_CritSection );
27 TRACE("Ret XDGAQueryVersion\n");
28 return r;
31 Bool TSXDGAQueryExtension(Display* a0, int* a1, int* a2)
33 Bool r;
34 TRACE("Call XDGAQueryExtension\n");
35 EnterCriticalSection( &X11DRV_CritSection );
36 r = XDGAQueryExtension( a0, a1, a2);
37 LeaveCriticalSection( &X11DRV_CritSection );
38 TRACE("Ret XDGAQueryExtension\n");
39 return r;
42 XDGAMode* TSXDGAQueryModes(Display* a0, int a1, int* a2)
44 XDGAMode* r;
45 TRACE("Call XDGAQueryModes\n");
46 EnterCriticalSection( &X11DRV_CritSection );
47 r = XDGAQueryModes( a0, a1, a2);
48 LeaveCriticalSection( &X11DRV_CritSection );
49 TRACE("Ret XDGAQueryModes\n");
50 return r;
53 XDGADevice* TSXDGASetMode(Display* a0, int a1, int a2)
55 XDGADevice* r;
56 TRACE("Call XDGASetMode\n");
57 EnterCriticalSection( &X11DRV_CritSection );
58 r = XDGASetMode( a0, a1, a2);
59 LeaveCriticalSection( &X11DRV_CritSection );
60 TRACE("Ret XDGASetMode\n");
61 return r;
64 Bool TSXDGAOpenFramebuffer(Display* a0, int a1)
66 Bool r;
67 TRACE("Call XDGAOpenFramebuffer\n");
68 EnterCriticalSection( &X11DRV_CritSection );
69 r = XDGAOpenFramebuffer( a0, a1);
70 LeaveCriticalSection( &X11DRV_CritSection );
71 TRACE("Ret XDGAOpenFramebuffer\n");
72 return r;
75 void TSXDGACloseFramebuffer(Display* a0, int a1)
77 TRACE("Call XDGACloseFramebuffer\n");
78 EnterCriticalSection( &X11DRV_CritSection );
79 XDGACloseFramebuffer( a0, a1);
80 LeaveCriticalSection( &X11DRV_CritSection );
81 TRACE("Ret XDGACloseFramebuffer\n");
84 void TSXDGASetViewport(Display* a0, int a1, int a2, int a3, int a4)
86 TRACE("Call XDGASetViewport\n");
87 EnterCriticalSection( &X11DRV_CritSection );
88 XDGASetViewport( a0, a1, a2, a3, a4);
89 LeaveCriticalSection( &X11DRV_CritSection );
90 TRACE("Ret XDGASetViewport\n");
93 void TSXDGAInstallColormap(Display* a0, int a1, Colormap a2)
95 TRACE("Call XDGAInstallColormap\n");
96 EnterCriticalSection( &X11DRV_CritSection );
97 XDGAInstallColormap( a0, a1, a2);
98 LeaveCriticalSection( &X11DRV_CritSection );
99 TRACE("Ret XDGAInstallColormap\n");
102 Colormap TSXDGACreateColormap(Display* a0, int a1, XDGADevice* a2, int a3)
104 Colormap r;
105 TRACE("Call XDGACreateColormap\n");
106 EnterCriticalSection( &X11DRV_CritSection );
107 r = XDGACreateColormap( a0, a1, a2, a3);
108 LeaveCriticalSection( &X11DRV_CritSection );
109 TRACE("Ret XDGACreateColormap\n");
110 return r;
113 void TSXDGASelectInput(Display* a0, int a1, long a2)
115 TRACE("Call XDGASelectInput\n");
116 EnterCriticalSection( &X11DRV_CritSection );
117 XDGASelectInput( a0, a1, a2);
118 LeaveCriticalSection( &X11DRV_CritSection );
119 TRACE("Ret XDGASelectInput\n");
122 void TSXDGAFillRectangle(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6)
124 TRACE("Call XDGAFillRectangle\n");
125 EnterCriticalSection( &X11DRV_CritSection );
126 XDGAFillRectangle( a0, a1, a2, a3, a4, a5, a6);
127 LeaveCriticalSection( &X11DRV_CritSection );
128 TRACE("Ret XDGAFillRectangle\n");
131 void TSXDGACopyArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7)
133 TRACE("Call XDGACopyArea\n");
134 EnterCriticalSection( &X11DRV_CritSection );
135 XDGACopyArea( a0, a1, a2, a3, a4, a5, a6, a7);
136 LeaveCriticalSection( &X11DRV_CritSection );
137 TRACE("Ret XDGACopyArea\n");
140 void TSXDGACopyTransparentArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7, unsigned long a8)
142 TRACE("Call XDGACopyTransparentArea\n");
143 EnterCriticalSection( &X11DRV_CritSection );
144 XDGACopyTransparentArea( a0, a1, a2, a3, a4, a5, a6, a7, a8);
145 LeaveCriticalSection( &X11DRV_CritSection );
146 TRACE("Ret XDGACopyTransparentArea\n");
149 int TSXDGAGetViewportStatus(Display* a0, int a1)
151 int r;
152 TRACE("Call XDGAGetViewportStatus\n");
153 EnterCriticalSection( &X11DRV_CritSection );
154 r = XDGAGetViewportStatus( a0, a1);
155 LeaveCriticalSection( &X11DRV_CritSection );
156 TRACE("Ret XDGAGetViewportStatus\n");
157 return r;
160 void TSXDGASync(Display* a0, int a1)
162 TRACE("Call XDGASync\n");
163 EnterCriticalSection( &X11DRV_CritSection );
164 XDGASync( a0, a1);
165 LeaveCriticalSection( &X11DRV_CritSection );
166 TRACE("Ret XDGASync\n");
169 Bool TSXDGASetClientVersion(Display* a0)
171 Bool r;
172 TRACE("Call XDGASetClientVersion\n");
173 EnterCriticalSection( &X11DRV_CritSection );
174 r = XDGASetClientVersion( a0);
175 LeaveCriticalSection( &X11DRV_CritSection );
176 TRACE("Ret XDGASetClientVersion\n");
177 return r;
180 void TSXDGAChangePixmapMode(Display* a0, int a1, int* a2, int* a3, int a4)
182 TRACE("Call XDGAChangePixmapMode\n");
183 EnterCriticalSection( &X11DRV_CritSection );
184 XDGAChangePixmapMode( a0, a1, a2, a3, a4);
185 LeaveCriticalSection( &X11DRV_CritSection );
186 TRACE("Ret XDGAChangePixmapMode\n");
189 void TSXDGAKeyEventToXKeyEvent(XDGAKeyEvent* a0, XKeyEvent* a1)
191 TRACE("Call XDGAKeyEventToXKeyEvent\n");
192 EnterCriticalSection( &X11DRV_CritSection );
193 XDGAKeyEventToXKeyEvent( a0, a1);
194 LeaveCriticalSection( &X11DRV_CritSection );
195 TRACE("Ret XDGAKeyEventToXKeyEvent\n");
198 #endif /* defined(HAVE_LIBXXF86DGA2) */