Made X11DRV_DIB_GetImageBits_16 aware of 565 DIBs.
[wine.git] / tsx11 / ts_xutil.c
blob0eb2a372c510861b51d3cd4e012af041c4a016b9
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 "debugtools.h"
15 #include "ts_xutil.h"
16 #include "x11drv.h"
18 DEFAULT_DEBUG_CHANNEL(x11)
20 XClassHint * TSXAllocClassHint(void)
22 XClassHint * r;
23 TRACE("Call XAllocClassHint\n");
24 EnterCriticalSection( &X11DRV_CritSection );
25 r = XAllocClassHint();
26 LeaveCriticalSection( &X11DRV_CritSection );
27 TRACE("Ret XAllocClassHint\n");
28 return r;
31 XSizeHints * TSXAllocSizeHints(void)
33 XSizeHints * r;
34 TRACE("Call XAllocSizeHints\n");
35 EnterCriticalSection( &X11DRV_CritSection );
36 r = XAllocSizeHints();
37 LeaveCriticalSection( &X11DRV_CritSection );
38 TRACE("Ret XAllocSizeHints\n");
39 return r;
42 XWMHints * TSXAllocWMHints(void)
44 XWMHints * r;
45 TRACE("Call XAllocWMHints\n");
46 EnterCriticalSection( &X11DRV_CritSection );
47 r = XAllocWMHints();
48 LeaveCriticalSection( &X11DRV_CritSection );
49 TRACE("Ret XAllocWMHints\n");
50 return r;
53 int TSXClipBox(Region a0, XRectangle* a1)
55 int r;
56 TRACE("Call XClipBox\n");
57 EnterCriticalSection( &X11DRV_CritSection );
58 r = XClipBox(a0, a1);
59 LeaveCriticalSection( &X11DRV_CritSection );
60 TRACE("Ret XClipBox\n");
61 return r;
64 Region TSXCreateRegion(void)
66 Region r;
67 TRACE("Call XCreateRegion\n");
68 EnterCriticalSection( &X11DRV_CritSection );
69 r = XCreateRegion();
70 LeaveCriticalSection( &X11DRV_CritSection );
71 TRACE("Ret XCreateRegion\n");
72 return r;
75 int TSXDeleteContext(Display* a0, XID a1, XContext a2)
77 int r;
78 TRACE("Call XDeleteContext\n");
79 EnterCriticalSection( &X11DRV_CritSection );
80 r = XDeleteContext(a0, a1, a2);
81 LeaveCriticalSection( &X11DRV_CritSection );
82 TRACE("Ret XDeleteContext\n");
83 return r;
86 int TSXDestroyRegion(Region a0)
88 int r;
89 TRACE("Call XDestroyRegion\n");
90 EnterCriticalSection( &X11DRV_CritSection );
91 r = XDestroyRegion(a0);
92 LeaveCriticalSection( &X11DRV_CritSection );
93 TRACE("Ret XDestroyRegion\n");
94 return r;
97 int TSXEmptyRegion(Region a0)
99 int r;
100 TRACE("Call XEmptyRegion\n");
101 EnterCriticalSection( &X11DRV_CritSection );
102 r = XEmptyRegion(a0);
103 LeaveCriticalSection( &X11DRV_CritSection );
104 TRACE("Ret XEmptyRegion\n");
105 return r;
108 int TSXEqualRegion(Region a0, Region a1)
110 int r;
111 TRACE("Call XEqualRegion\n");
112 EnterCriticalSection( &X11DRV_CritSection );
113 r = XEqualRegion(a0, a1);
114 LeaveCriticalSection( &X11DRV_CritSection );
115 TRACE("Ret XEqualRegion\n");
116 return r;
119 int TSXFindContext(Display* a0, XID a1, XContext a2, XPointer* a3)
121 int r;
122 TRACE("Call XFindContext\n");
123 EnterCriticalSection( &X11DRV_CritSection );
124 r = XFindContext(a0, a1, a2, a3);
125 LeaveCriticalSection( &X11DRV_CritSection );
126 TRACE("Ret XFindContext\n");
127 return r;
130 XVisualInfo * TSXGetVisualInfo(Display* a0, long a1, XVisualInfo* a2, int* a3)
132 XVisualInfo * r;
133 TRACE("Call XGetVisualInfo\n");
134 EnterCriticalSection( &X11DRV_CritSection );
135 r = XGetVisualInfo(a0, a1, a2, a3);
136 LeaveCriticalSection( &X11DRV_CritSection );
137 TRACE("Ret XGetVisualInfo\n");
138 return r;
141 XWMHints * TSXGetWMHints(Display* a0, Window a1)
143 XWMHints * r;
144 TRACE("Call XGetWMHints\n");
145 EnterCriticalSection( &X11DRV_CritSection );
146 r = XGetWMHints(a0, a1);
147 LeaveCriticalSection( &X11DRV_CritSection );
148 TRACE("Ret XGetWMHints\n");
149 return r;
152 int TSXGetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, long* a3, Atom a4)
154 int r;
155 TRACE("Call XGetWMSizeHints\n");
156 EnterCriticalSection( &X11DRV_CritSection );
157 r = XGetWMSizeHints(a0, a1, a2, a3, a4);
158 LeaveCriticalSection( &X11DRV_CritSection );
159 TRACE("Ret XGetWMSizeHints\n");
160 return r;
163 int TSXIntersectRegion(Region a0, Region a1, Region a2)
165 int r;
166 TRACE("Call XIntersectRegion\n");
167 EnterCriticalSection( &X11DRV_CritSection );
168 r = XIntersectRegion(a0, a1, a2);
169 LeaveCriticalSection( &X11DRV_CritSection );
170 TRACE("Ret XIntersectRegion\n");
171 return r;
174 int TSXLookupString(XKeyEvent* a0, char* a1, int a2, KeySym* a3, XComposeStatus* a4)
176 int r;
177 TRACE("Call XLookupString\n");
178 EnterCriticalSection( &X11DRV_CritSection );
179 r = XLookupString(a0, a1, a2, a3, a4);
180 LeaveCriticalSection( &X11DRV_CritSection );
181 TRACE("Ret XLookupString\n");
182 return r;
185 int TSXOffsetRegion(Region a0, int a1, int a2)
187 int r;
188 TRACE("Call XOffsetRegion\n");
189 EnterCriticalSection( &X11DRV_CritSection );
190 r = XOffsetRegion(a0, a1, a2);
191 LeaveCriticalSection( &X11DRV_CritSection );
192 TRACE("Ret XOffsetRegion\n");
193 return r;
196 int TSXPointInRegion(Region a0, int a1, int a2)
198 int r;
199 TRACE("Call XPointInRegion\n");
200 EnterCriticalSection( &X11DRV_CritSection );
201 r = XPointInRegion(a0, a1, a2);
202 LeaveCriticalSection( &X11DRV_CritSection );
203 TRACE("Ret XPointInRegion\n");
204 return r;
207 Region TSXPolygonRegion(XPoint* a0, int a1, int a2)
209 Region r;
210 TRACE("Call XPolygonRegion\n");
211 EnterCriticalSection( &X11DRV_CritSection );
212 r = XPolygonRegion(a0, a1, a2);
213 LeaveCriticalSection( &X11DRV_CritSection );
214 TRACE("Ret XPolygonRegion\n");
215 return r;
218 int TSXRectInRegion(Region a0, int a1, int a2, unsigned int a3, unsigned int a4)
220 int r;
221 TRACE("Call XRectInRegion\n");
222 EnterCriticalSection( &X11DRV_CritSection );
223 r = XRectInRegion(a0, a1, a2, a3, a4);
224 LeaveCriticalSection( &X11DRV_CritSection );
225 TRACE("Ret XRectInRegion\n");
226 return r;
229 int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
231 int r;
232 TRACE("Call XSaveContext\n");
233 EnterCriticalSection( &X11DRV_CritSection );
234 r = XSaveContext(a0, a1, a2, a3);
235 LeaveCriticalSection( &X11DRV_CritSection );
236 TRACE("Ret XSaveContext\n");
237 return r;
240 int TSXSetClassHint(Display* a0, Window a1, XClassHint* a2)
242 int r;
243 TRACE("Call XSetClassHint\n");
244 EnterCriticalSection( &X11DRV_CritSection );
245 r = XSetClassHint(a0, a1, a2);
246 LeaveCriticalSection( &X11DRV_CritSection );
247 TRACE("Ret XSetClassHint\n");
248 return r;
251 int TSXSetWMHints(Display* a0, Window a1, XWMHints* a2)
253 int r;
254 TRACE("Call XSetWMHints\n");
255 EnterCriticalSection( &X11DRV_CritSection );
256 r = XSetWMHints(a0, a1, a2);
257 LeaveCriticalSection( &X11DRV_CritSection );
258 TRACE("Ret XSetWMHints\n");
259 return r;
262 void TSXSetWMProperties(Display* a0, Window a1, XTextProperty* a2, XTextProperty* a3, char** a4, int a5, XSizeHints* a6, XWMHints* a7, XClassHint* a8)
264 TRACE("Call XSetWMProperties\n");
265 EnterCriticalSection( &X11DRV_CritSection );
266 XSetWMProperties(a0, a1, a2, a3, a4, a5, a6, a7, a8);
267 LeaveCriticalSection( &X11DRV_CritSection );
268 TRACE("Ret XSetWMProperties\n");
271 void TSXSetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, Atom a3)
273 TRACE("Call XSetWMSizeHints\n");
274 EnterCriticalSection( &X11DRV_CritSection );
275 XSetWMSizeHints(a0, a1, a2, a3);
276 LeaveCriticalSection( &X11DRV_CritSection );
277 TRACE("Ret XSetWMSizeHints\n");
280 int TSXSetRegion(Display* a0, GC a1, Region a2)
282 int r;
283 TRACE("Call XSetRegion\n");
284 EnterCriticalSection( &X11DRV_CritSection );
285 r = XSetRegion(a0, a1, a2);
286 LeaveCriticalSection( &X11DRV_CritSection );
287 TRACE("Ret XSetRegion\n");
288 return r;
291 int TSXShrinkRegion(Region a0, int a1, int a2)
293 int r;
294 TRACE("Call XShrinkRegion\n");
295 EnterCriticalSection( &X11DRV_CritSection );
296 r = XShrinkRegion(a0, a1, a2);
297 LeaveCriticalSection( &X11DRV_CritSection );
298 TRACE("Ret XShrinkRegion\n");
299 return r;
302 int TSXStringListToTextProperty(char** a0, int a1, XTextProperty* a2)
304 int r;
305 TRACE("Call XStringListToTextProperty\n");
306 EnterCriticalSection( &X11DRV_CritSection );
307 r = XStringListToTextProperty(a0, a1, a2);
308 LeaveCriticalSection( &X11DRV_CritSection );
309 TRACE("Ret XStringListToTextProperty\n");
310 return r;
313 int TSXSubtractRegion(Region a0, Region a1, Region a2)
315 int r;
316 TRACE("Call XSubtractRegion\n");
317 EnterCriticalSection( &X11DRV_CritSection );
318 r = XSubtractRegion(a0, a1, a2);
319 LeaveCriticalSection( &X11DRV_CritSection );
320 TRACE("Ret XSubtractRegion\n");
321 return r;
324 int TSXUnionRectWithRegion(XRectangle* a0, Region a1, Region a2)
326 int r;
327 TRACE("Call XUnionRectWithRegion\n");
328 EnterCriticalSection( &X11DRV_CritSection );
329 r = XUnionRectWithRegion(a0, a1, a2);
330 LeaveCriticalSection( &X11DRV_CritSection );
331 TRACE("Ret XUnionRectWithRegion\n");
332 return r;
335 int TSXUnionRegion(Region a0, Region a1, Region a2)
337 int r;
338 TRACE("Call XUnionRegion\n");
339 EnterCriticalSection( &X11DRV_CritSection );
340 r = XUnionRegion(a0, a1, a2);
341 LeaveCriticalSection( &X11DRV_CritSection );
342 TRACE("Ret XUnionRegion\n");
343 return r;
346 int TSXXorRegion(Region a0, Region a1, Region a2)
348 int r;
349 TRACE("Call XXorRegion\n");
350 EnterCriticalSection( &X11DRV_CritSection );
351 r = XXorRegion(a0, a1, a2);
352 LeaveCriticalSection( &X11DRV_CritSection );
353 TRACE("Ret XXorRegion\n");
354 return r;
357 int TSXDestroyImage(struct _XImage *a0)
359 int r;
360 TRACE("Call XDestroyImage\n");
361 EnterCriticalSection( &X11DRV_CritSection );
362 r = XDestroyImage(a0);
363 LeaveCriticalSection( &X11DRV_CritSection );
364 TRACE("Ret XDestroyImage\n");
365 return r;
368 struct _XImage * TSXSubImage(struct _XImage *a0, int a1, int a2, unsigned int a3, unsigned int a4)
370 struct _XImage * r;
371 TRACE("Call XSubImage\n");
372 EnterCriticalSection( &X11DRV_CritSection );
373 r = XSubImage(a0, a1, a2, a3, a4);
374 LeaveCriticalSection( &X11DRV_CritSection );
375 TRACE("Ret XSubImage\n");
376 return r;
379 int TSXAddPixel(struct _XImage *a0, long a1)
381 int r;
382 TRACE("Call XAddPixel\n");
383 EnterCriticalSection( &X11DRV_CritSection );
384 r = XAddPixel(a0, a1);
385 LeaveCriticalSection( &X11DRV_CritSection );
386 TRACE("Ret XAddPixel\n");
387 return r;
390 XContext TSXUniqueContext(void)
392 XContext r;
393 TRACE("Call XUniqueContext\n");
394 EnterCriticalSection( &X11DRV_CritSection );
395 r = XUniqueContext();
396 LeaveCriticalSection( &X11DRV_CritSection );
397 TRACE("Ret XUniqueContext\n");
398 return r;