Change WSACleanup - wsinfo is a static structure now.
[wine.git] / tsx11 / ts_xf86dga2.c
blob6ad371436d75c43af26c4911b29cd57d54f0ddce
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 "ts_xf86dga2.h"
17 Bool TSXDGAQueryVersion(Display* a0, int* a1, int* a2)
19 Bool r;
20 wine_tsx11_lock();
21 r = XDGAQueryVersion( a0, a1, a2);
22 wine_tsx11_unlock();
23 return r;
26 Bool TSXDGAQueryExtension(Display* a0, int* a1, int* a2)
28 Bool r;
29 wine_tsx11_lock();
30 r = XDGAQueryExtension( a0, a1, a2);
31 wine_tsx11_unlock();
32 return r;
35 XDGAMode* TSXDGAQueryModes(Display* a0, int a1, int* a2)
37 XDGAMode* r;
38 wine_tsx11_lock();
39 r = XDGAQueryModes( a0, a1, a2);
40 wine_tsx11_unlock();
41 return r;
44 XDGADevice* TSXDGASetMode(Display* a0, int a1, int a2)
46 XDGADevice* r;
47 wine_tsx11_lock();
48 r = XDGASetMode( a0, a1, a2);
49 wine_tsx11_unlock();
50 return r;
53 Bool TSXDGAOpenFramebuffer(Display* a0, int a1)
55 Bool r;
56 wine_tsx11_lock();
57 r = XDGAOpenFramebuffer( a0, a1);
58 wine_tsx11_unlock();
59 return r;
62 void TSXDGACloseFramebuffer(Display* a0, int a1)
64 wine_tsx11_lock();
65 XDGACloseFramebuffer( a0, a1);
66 wine_tsx11_unlock();
69 void TSXDGASetViewport(Display* a0, int a1, int a2, int a3, int a4)
71 wine_tsx11_lock();
72 XDGASetViewport( a0, a1, a2, a3, a4);
73 wine_tsx11_unlock();
76 void TSXDGAInstallColormap(Display* a0, int a1, Colormap a2)
78 wine_tsx11_lock();
79 XDGAInstallColormap( a0, a1, a2);
80 wine_tsx11_unlock();
83 Colormap TSXDGACreateColormap(Display* a0, int a1, XDGADevice* a2, int a3)
85 Colormap r;
86 wine_tsx11_lock();
87 r = XDGACreateColormap( a0, a1, a2, a3);
88 wine_tsx11_unlock();
89 return r;
92 void TSXDGASelectInput(Display* a0, int a1, long a2)
94 wine_tsx11_lock();
95 XDGASelectInput( a0, a1, a2);
96 wine_tsx11_unlock();
99 void TSXDGAFillRectangle(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6)
101 wine_tsx11_lock();
102 XDGAFillRectangle( a0, a1, a2, a3, a4, a5, a6);
103 wine_tsx11_unlock();
106 void TSXDGACopyArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7)
108 wine_tsx11_lock();
109 XDGACopyArea( a0, a1, a2, a3, a4, a5, a6, a7);
110 wine_tsx11_unlock();
113 void TSXDGACopyTransparentArea(Display* a0, int a1, int a2, int a3, unsigned int a4, unsigned int a5, int a6, int a7, unsigned long a8)
115 wine_tsx11_lock();
116 XDGACopyTransparentArea( a0, a1, a2, a3, a4, a5, a6, a7, a8);
117 wine_tsx11_unlock();
120 int TSXDGAGetViewportStatus(Display* a0, int a1)
122 int r;
123 wine_tsx11_lock();
124 r = XDGAGetViewportStatus( a0, a1);
125 wine_tsx11_unlock();
126 return r;
129 void TSXDGASync(Display* a0, int a1)
131 wine_tsx11_lock();
132 XDGASync( a0, a1);
133 wine_tsx11_unlock();
136 Bool TSXDGASetClientVersion(Display* a0)
138 Bool r;
139 wine_tsx11_lock();
140 r = XDGASetClientVersion( a0);
141 wine_tsx11_unlock();
142 return r;
145 void TSXDGAChangePixmapMode(Display* a0, int a1, int* a2, int* a3, int a4)
147 wine_tsx11_lock();
148 XDGAChangePixmapMode( a0, a1, a2, a3, a4);
149 wine_tsx11_unlock();
152 void TSXDGAKeyEventToXKeyEvent(XDGAKeyEvent* a0, XKeyEvent* a1)
154 wine_tsx11_lock();
155 XDGAKeyEventToXKeyEvent( a0, a1);
156 wine_tsx11_unlock();
159 #endif /* defined(HAVE_LIBXXF86DGA2) */