Fixed getting a variable address.
[wine/multimedia.git] / tsx11 / ts_xutil.c
blob8deb364b791289951b99d6619b95a37feca9cfe2
1 /*
2 * Thread safe wrappers around Xutil calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
10 #include <X11/Xlib.h>
11 #include <X11/Xresource.h>
12 #include <X11/Xutil.h>
14 #include "ts_xutil.h"
17 XClassHint * TSXAllocClassHint(void)
19 XClassHint * r;
20 wine_tsx11_lock();
21 r = XAllocClassHint();
22 wine_tsx11_unlock();
23 return r;
26 XSizeHints * TSXAllocSizeHints(void)
28 XSizeHints * r;
29 wine_tsx11_lock();
30 r = XAllocSizeHints();
31 wine_tsx11_unlock();
32 return r;
35 XWMHints * TSXAllocWMHints(void)
37 XWMHints * r;
38 wine_tsx11_lock();
39 r = XAllocWMHints();
40 wine_tsx11_unlock();
41 return r;
44 int TSXClipBox(Region a0, XRectangle* a1)
46 int r;
47 wine_tsx11_lock();
48 r = XClipBox(a0, a1);
49 wine_tsx11_unlock();
50 return r;
53 Region TSXCreateRegion(void)
55 Region r;
56 wine_tsx11_lock();
57 r = XCreateRegion();
58 wine_tsx11_unlock();
59 return r;
62 int TSXDeleteContext(Display* a0, XID a1, XContext a2)
64 int r;
65 wine_tsx11_lock();
66 r = XDeleteContext(a0, a1, a2);
67 wine_tsx11_unlock();
68 return r;
71 int TSXDestroyRegion(Region a0)
73 int r;
74 wine_tsx11_lock();
75 r = XDestroyRegion(a0);
76 wine_tsx11_unlock();
77 return r;
80 int TSXEmptyRegion(Region a0)
82 int r;
83 wine_tsx11_lock();
84 r = XEmptyRegion(a0);
85 wine_tsx11_unlock();
86 return r;
89 int TSXEqualRegion(Region a0, Region a1)
91 int r;
92 wine_tsx11_lock();
93 r = XEqualRegion(a0, a1);
94 wine_tsx11_unlock();
95 return r;
98 int TSXFindContext(Display* a0, XID a1, XContext a2, XPointer* a3)
100 int r;
101 wine_tsx11_lock();
102 r = XFindContext(a0, a1, a2, a3);
103 wine_tsx11_unlock();
104 return r;
107 XVisualInfo * TSXGetVisualInfo(Display* a0, long a1, XVisualInfo* a2, int* a3)
109 XVisualInfo * r;
110 wine_tsx11_lock();
111 r = XGetVisualInfo(a0, a1, a2, a3);
112 wine_tsx11_unlock();
113 return r;
116 XWMHints * TSXGetWMHints(Display* a0, Window a1)
118 XWMHints * r;
119 wine_tsx11_lock();
120 r = XGetWMHints(a0, a1);
121 wine_tsx11_unlock();
122 return r;
125 int TSXGetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, long* a3, Atom a4)
127 int r;
128 wine_tsx11_lock();
129 r = XGetWMSizeHints(a0, a1, a2, a3, a4);
130 wine_tsx11_unlock();
131 return r;
134 int TSXIntersectRegion(Region a0, Region a1, Region a2)
136 int r;
137 wine_tsx11_lock();
138 r = XIntersectRegion(a0, a1, a2);
139 wine_tsx11_unlock();
140 return r;
143 int TSXLookupString(XKeyEvent* a0, char* a1, int a2, KeySym* a3, XComposeStatus* a4)
145 int r;
146 wine_tsx11_lock();
147 r = XLookupString(a0, a1, a2, a3, a4);
148 wine_tsx11_unlock();
149 return r;
152 int TSXOffsetRegion(Region a0, int a1, int a2)
154 int r;
155 wine_tsx11_lock();
156 r = XOffsetRegion(a0, a1, a2);
157 wine_tsx11_unlock();
158 return r;
161 int TSXPointInRegion(Region a0, int a1, int a2)
163 int r;
164 wine_tsx11_lock();
165 r = XPointInRegion(a0, a1, a2);
166 wine_tsx11_unlock();
167 return r;
170 Region TSXPolygonRegion(XPoint* a0, int a1, int a2)
172 Region r;
173 wine_tsx11_lock();
174 r = XPolygonRegion(a0, a1, a2);
175 wine_tsx11_unlock();
176 return r;
179 int TSXRectInRegion(Region a0, int a1, int a2, unsigned int a3, unsigned int a4)
181 int r;
182 wine_tsx11_lock();
183 r = XRectInRegion(a0, a1, a2, a3, a4);
184 wine_tsx11_unlock();
185 return r;
188 int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
190 int r;
191 wine_tsx11_lock();
192 r = XSaveContext(a0, a1, a2, a3);
193 wine_tsx11_unlock();
194 return r;
197 int TSXSetClassHint(Display* a0, Window a1, XClassHint* a2)
199 int r;
200 wine_tsx11_lock();
201 r = XSetClassHint(a0, a1, a2);
202 wine_tsx11_unlock();
203 return r;
206 int TSXSetWMHints(Display* a0, Window a1, XWMHints* a2)
208 int r;
209 wine_tsx11_lock();
210 r = XSetWMHints(a0, a1, a2);
211 wine_tsx11_unlock();
212 return r;
215 void TSXSetWMProperties(Display* a0, Window a1, XTextProperty* a2, XTextProperty* a3, char** a4, int a5, XSizeHints* a6, XWMHints* a7, XClassHint* a8)
217 wine_tsx11_lock();
218 XSetWMProperties(a0, a1, a2, a3, a4, a5, a6, a7, a8);
219 wine_tsx11_unlock();
222 void TSXSetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, Atom a3)
224 wine_tsx11_lock();
225 XSetWMSizeHints(a0, a1, a2, a3);
226 wine_tsx11_unlock();
229 int TSXSetRegion(Display* a0, GC a1, Region a2)
231 int r;
232 wine_tsx11_lock();
233 r = XSetRegion(a0, a1, a2);
234 wine_tsx11_unlock();
235 return r;
238 int TSXShrinkRegion(Region a0, int a1, int a2)
240 int r;
241 wine_tsx11_lock();
242 r = XShrinkRegion(a0, a1, a2);
243 wine_tsx11_unlock();
244 return r;
247 int TSXStringListToTextProperty(char** a0, int a1, XTextProperty* a2)
249 int r;
250 wine_tsx11_lock();
251 r = XStringListToTextProperty(a0, a1, a2);
252 wine_tsx11_unlock();
253 return r;
256 int TSXSubtractRegion(Region a0, Region a1, Region a2)
258 int r;
259 wine_tsx11_lock();
260 r = XSubtractRegion(a0, a1, a2);
261 wine_tsx11_unlock();
262 return r;
265 int TSXUnionRectWithRegion(XRectangle* a0, Region a1, Region a2)
267 int r;
268 wine_tsx11_lock();
269 r = XUnionRectWithRegion(a0, a1, a2);
270 wine_tsx11_unlock();
271 return r;
274 int TSXUnionRegion(Region a0, Region a1, Region a2)
276 int r;
277 wine_tsx11_lock();
278 r = XUnionRegion(a0, a1, a2);
279 wine_tsx11_unlock();
280 return r;
283 int TSXXorRegion(Region a0, Region a1, Region a2)
285 int r;
286 wine_tsx11_lock();
287 r = XXorRegion(a0, a1, a2);
288 wine_tsx11_unlock();
289 return r;
292 int TSXDestroyImage(struct _XImage *a0)
294 int r;
295 wine_tsx11_lock();
296 r = XDestroyImage(a0);
297 wine_tsx11_unlock();
298 return r;
301 struct _XImage * TSXSubImage(struct _XImage *a0, int a1, int a2, unsigned int a3, unsigned int a4)
303 struct _XImage * r;
304 wine_tsx11_lock();
305 r = XSubImage(a0, a1, a2, a3, a4);
306 wine_tsx11_unlock();
307 return r;
310 int TSXAddPixel(struct _XImage *a0, long a1)
312 int r;
313 wine_tsx11_lock();
314 r = XAddPixel(a0, a1);
315 wine_tsx11_unlock();
316 return r;
319 XContext TSXUniqueContext(void)
321 XContext r;
322 wine_tsx11_lock();
323 r = XUniqueContext();
324 wine_tsx11_unlock();
325 return r;