2 * Thread safe wrappers around xf86dga2 calls.
3 * This file was generated automatically by tools/make_X11wrappers
9 #ifdef HAVE_LIBXXF86DGA2
12 #include <X11/extensions/xf86dga.h>
14 #include "debugtools.h"
15 #include "ts_xf86dga2.h"
18 DEFAULT_DEBUG_CHANNEL(x11
)
20 Bool
TSXDGAQueryVersion(Display
* a0
, int* a1
, int* a2
)
23 TRACE("Call XDGAQueryVersion\n");
24 EnterCriticalSection( &X11DRV_CritSection
);
25 r
= XDGAQueryVersion( a0
, a1
, a2
);
26 LeaveCriticalSection( &X11DRV_CritSection
);
27 TRACE("Ret XDGAQueryVersion\n");
31 Bool
TSXDGAQueryExtension(Display
* a0
, int* a1
, int* a2
)
34 TRACE("Call XDGAQueryExtension\n");
35 EnterCriticalSection( &X11DRV_CritSection
);
36 r
= XDGAQueryExtension( a0
, a1
, a2
);
37 LeaveCriticalSection( &X11DRV_CritSection
);
38 TRACE("Ret XDGAQueryExtension\n");
42 XDGAMode
* TSXDGAQueryModes(Display
* a0
, int a1
, int* a2
)
45 TRACE("Call XDGAQueryModes\n");
46 EnterCriticalSection( &X11DRV_CritSection
);
47 r
= XDGAQueryModes( a0
, a1
, a2
);
48 LeaveCriticalSection( &X11DRV_CritSection
);
49 TRACE("Ret XDGAQueryModes\n");
53 XDGADevice
* TSXDGASetMode(Display
* a0
, int a1
, int a2
)
56 TRACE("Call XDGASetMode\n");
57 EnterCriticalSection( &X11DRV_CritSection
);
58 r
= XDGASetMode( a0
, a1
, a2
);
59 LeaveCriticalSection( &X11DRV_CritSection
);
60 TRACE("Ret XDGASetMode\n");
64 Bool
TSXDGAOpenFramebuffer(Display
* a0
, int a1
)
67 TRACE("Call XDGAOpenFramebuffer\n");
68 EnterCriticalSection( &X11DRV_CritSection
);
69 r
= XDGAOpenFramebuffer( a0
, a1
);
70 LeaveCriticalSection( &X11DRV_CritSection
);
71 TRACE("Ret XDGAOpenFramebuffer\n");
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
)
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");
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
)
152 TRACE("Call XDGAGetViewportStatus\n");
153 EnterCriticalSection( &X11DRV_CritSection
);
154 r
= XDGAGetViewportStatus( a0
, a1
);
155 LeaveCriticalSection( &X11DRV_CritSection
);
156 TRACE("Ret XDGAGetViewportStatus\n");
160 void TSXDGASync(Display
* a0
, int a1
)
162 TRACE("Call XDGASync\n");
163 EnterCriticalSection( &X11DRV_CritSection
);
165 LeaveCriticalSection( &X11DRV_CritSection
);
166 TRACE("Ret XDGASync\n");
169 Bool
TSXDGASetClientVersion(Display
* a0
)
172 TRACE("Call XDGASetClientVersion\n");
173 EnterCriticalSection( &X11DRV_CritSection
);
174 r
= XDGASetClientVersion( a0
);
175 LeaveCriticalSection( &X11DRV_CritSection
);
176 TRACE("Ret XDGASetClientVersion\n");
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) */