Message translation for WM_WININICHANGE.
[wine/multimedia.git] / tsx11 / ts_xutil.c
blob0f6e29438c92a64c39bb0e356f5d09bfc0025ee6
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"
9 #ifndef X_DISPLAY_MISSING
12 #include <X11/Xlib.h>
13 #include <X11/Xresource.h>
14 #include <X11/Xutil.h>
15 #include "debug.h"
16 #include "x11drv.h"
18 XClassHint * TSXAllocClassHint(void)
20 XClassHint * r;
21 TRACE(x11, "Call XAllocClassHint\n");
22 EnterCriticalSection( &X11DRV_CritSection );
23 r = XAllocClassHint();
24 LeaveCriticalSection( &X11DRV_CritSection );
25 TRACE(x11, "Ret XAllocClassHint\n");
26 return r;
29 XSizeHints * TSXAllocSizeHints(void)
31 XSizeHints * r;
32 TRACE(x11, "Call XAllocSizeHints\n");
33 EnterCriticalSection( &X11DRV_CritSection );
34 r = XAllocSizeHints();
35 LeaveCriticalSection( &X11DRV_CritSection );
36 TRACE(x11, "Ret XAllocSizeHints\n");
37 return r;
40 XWMHints * TSXAllocWMHints(void)
42 XWMHints * r;
43 TRACE(x11, "Call XAllocWMHints\n");
44 EnterCriticalSection( &X11DRV_CritSection );
45 r = XAllocWMHints();
46 LeaveCriticalSection( &X11DRV_CritSection );
47 TRACE(x11, "Ret XAllocWMHints\n");
48 return r;
51 int TSXClipBox(Region a0, XRectangle* a1)
53 int r;
54 TRACE(x11, "Call XClipBox\n");
55 EnterCriticalSection( &X11DRV_CritSection );
56 r = XClipBox(a0, a1);
57 LeaveCriticalSection( &X11DRV_CritSection );
58 TRACE(x11, "Ret XClipBox\n");
59 return r;
62 Region TSXCreateRegion(void)
64 Region r;
65 TRACE(x11, "Call XCreateRegion\n");
66 EnterCriticalSection( &X11DRV_CritSection );
67 r = XCreateRegion();
68 LeaveCriticalSection( &X11DRV_CritSection );
69 TRACE(x11, "Ret XCreateRegion\n");
70 return r;
73 int TSXDeleteContext(Display* a0, XID a1, XContext a2)
75 int r;
76 TRACE(x11, "Call XDeleteContext\n");
77 EnterCriticalSection( &X11DRV_CritSection );
78 r = XDeleteContext(a0, a1, a2);
79 LeaveCriticalSection( &X11DRV_CritSection );
80 TRACE(x11, "Ret XDeleteContext\n");
81 return r;
84 int TSXDestroyRegion(Region a0)
86 int r;
87 TRACE(x11, "Call XDestroyRegion\n");
88 EnterCriticalSection( &X11DRV_CritSection );
89 r = XDestroyRegion(a0);
90 LeaveCriticalSection( &X11DRV_CritSection );
91 TRACE(x11, "Ret XDestroyRegion\n");
92 return r;
95 int TSXEmptyRegion(Region a0)
97 int r;
98 TRACE(x11, "Call XEmptyRegion\n");
99 EnterCriticalSection( &X11DRV_CritSection );
100 r = XEmptyRegion(a0);
101 LeaveCriticalSection( &X11DRV_CritSection );
102 TRACE(x11, "Ret XEmptyRegion\n");
103 return r;
106 int TSXEqualRegion(Region a0, Region a1)
108 int r;
109 TRACE(x11, "Call XEqualRegion\n");
110 EnterCriticalSection( &X11DRV_CritSection );
111 r = XEqualRegion(a0, a1);
112 LeaveCriticalSection( &X11DRV_CritSection );
113 TRACE(x11, "Ret XEqualRegion\n");
114 return r;
117 int TSXFindContext(Display* a0, XID a1, XContext a2, XPointer* a3)
119 int r;
120 TRACE(x11, "Call XFindContext\n");
121 EnterCriticalSection( &X11DRV_CritSection );
122 r = XFindContext(a0, a1, a2, a3);
123 LeaveCriticalSection( &X11DRV_CritSection );
124 TRACE(x11, "Ret XFindContext\n");
125 return r;
128 XVisualInfo * TSXGetVisualInfo(Display* a0, long a1, XVisualInfo* a2, int* a3)
130 XVisualInfo * r;
131 TRACE(x11, "Call XGetVisualInfo\n");
132 EnterCriticalSection( &X11DRV_CritSection );
133 r = XGetVisualInfo(a0, a1, a2, a3);
134 LeaveCriticalSection( &X11DRV_CritSection );
135 TRACE(x11, "Ret XGetVisualInfo\n");
136 return r;
139 int TSXGetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, long* a3, Atom a4)
141 int r;
142 TRACE(x11, "Call XGetWMSizeHints\n");
143 EnterCriticalSection( &X11DRV_CritSection );
144 r = XGetWMSizeHints(a0, a1, a2, a3, a4);
145 LeaveCriticalSection( &X11DRV_CritSection );
146 TRACE(x11, "Ret XGetWMSizeHints\n");
147 return r;
150 int TSXIntersectRegion(Region a0, Region a1, Region a2)
152 int r;
153 TRACE(x11, "Call XIntersectRegion\n");
154 EnterCriticalSection( &X11DRV_CritSection );
155 r = XIntersectRegion(a0, a1, a2);
156 LeaveCriticalSection( &X11DRV_CritSection );
157 TRACE(x11, "Ret XIntersectRegion\n");
158 return r;
161 int TSXLookupString(XKeyEvent* a0, char* a1, int a2, KeySym* a3, XComposeStatus* a4)
163 int r;
164 TRACE(x11, "Call XLookupString\n");
165 EnterCriticalSection( &X11DRV_CritSection );
166 r = XLookupString(a0, a1, a2, a3, a4);
167 LeaveCriticalSection( &X11DRV_CritSection );
168 TRACE(x11, "Ret XLookupString\n");
169 return r;
172 int TSXOffsetRegion(Region a0, int a1, int a2)
174 int r;
175 TRACE(x11, "Call XOffsetRegion\n");
176 EnterCriticalSection( &X11DRV_CritSection );
177 r = XOffsetRegion(a0, a1, a2);
178 LeaveCriticalSection( &X11DRV_CritSection );
179 TRACE(x11, "Ret XOffsetRegion\n");
180 return r;
183 int TSXPointInRegion(Region a0, int a1, int a2)
185 int r;
186 TRACE(x11, "Call XPointInRegion\n");
187 EnterCriticalSection( &X11DRV_CritSection );
188 r = XPointInRegion(a0, a1, a2);
189 LeaveCriticalSection( &X11DRV_CritSection );
190 TRACE(x11, "Ret XPointInRegion\n");
191 return r;
194 Region TSXPolygonRegion(XPoint* a0, int a1, int a2)
196 Region r;
197 TRACE(x11, "Call XPolygonRegion\n");
198 EnterCriticalSection( &X11DRV_CritSection );
199 r = XPolygonRegion(a0, a1, a2);
200 LeaveCriticalSection( &X11DRV_CritSection );
201 TRACE(x11, "Ret XPolygonRegion\n");
202 return r;
205 int TSXRectInRegion(Region a0, int a1, int a2, unsigned int a3, unsigned int a4)
207 int r;
208 TRACE(x11, "Call XRectInRegion\n");
209 EnterCriticalSection( &X11DRV_CritSection );
210 r = XRectInRegion(a0, a1, a2, a3, a4);
211 LeaveCriticalSection( &X11DRV_CritSection );
212 TRACE(x11, "Ret XRectInRegion\n");
213 return r;
216 int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
218 int r;
219 TRACE(x11, "Call XSaveContext\n");
220 EnterCriticalSection( &X11DRV_CritSection );
221 r = XSaveContext(a0, a1, a2, a3);
222 LeaveCriticalSection( &X11DRV_CritSection );
223 TRACE(x11, "Ret XSaveContext\n");
224 return r;
227 int TSXSetClassHint(Display* a0, Window a1, XClassHint* a2)
229 int r;
230 TRACE(x11, "Call XSetClassHint\n");
231 EnterCriticalSection( &X11DRV_CritSection );
232 r = XSetClassHint(a0, a1, a2);
233 LeaveCriticalSection( &X11DRV_CritSection );
234 TRACE(x11, "Ret XSetClassHint\n");
235 return r;
238 void TSXSetWMProperties(Display* a0, Window a1, XTextProperty* a2, XTextProperty* a3, char** a4, int a5, XSizeHints* a6, XWMHints* a7, XClassHint* a8)
240 TRACE(x11, "Call XSetWMProperties\n");
241 EnterCriticalSection( &X11DRV_CritSection );
242 XSetWMProperties(a0, a1, a2, a3, a4, a5, a6, a7, a8);
243 LeaveCriticalSection( &X11DRV_CritSection );
244 TRACE(x11, "Ret XSetWMProperties\n");
247 void TSXSetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, Atom a3)
249 TRACE(x11, "Call XSetWMSizeHints\n");
250 EnterCriticalSection( &X11DRV_CritSection );
251 XSetWMSizeHints(a0, a1, a2, a3);
252 LeaveCriticalSection( &X11DRV_CritSection );
253 TRACE(x11, "Ret XSetWMSizeHints\n");
256 int TSXSetRegion(Display* a0, GC a1, Region a2)
258 int r;
259 TRACE(x11, "Call XSetRegion\n");
260 EnterCriticalSection( &X11DRV_CritSection );
261 r = XSetRegion(a0, a1, a2);
262 LeaveCriticalSection( &X11DRV_CritSection );
263 TRACE(x11, "Ret XSetRegion\n");
264 return r;
267 int TSXShrinkRegion(Region a0, int a1, int a2)
269 int r;
270 TRACE(x11, "Call XShrinkRegion\n");
271 EnterCriticalSection( &X11DRV_CritSection );
272 r = XShrinkRegion(a0, a1, a2);
273 LeaveCriticalSection( &X11DRV_CritSection );
274 TRACE(x11, "Ret XShrinkRegion\n");
275 return r;
278 int TSXStringListToTextProperty(char** a0, int a1, XTextProperty* a2)
280 int r;
281 TRACE(x11, "Call XStringListToTextProperty\n");
282 EnterCriticalSection( &X11DRV_CritSection );
283 r = XStringListToTextProperty(a0, a1, a2);
284 LeaveCriticalSection( &X11DRV_CritSection );
285 TRACE(x11, "Ret XStringListToTextProperty\n");
286 return r;
289 int TSXSubtractRegion(Region a0, Region a1, Region a2)
291 int r;
292 TRACE(x11, "Call XSubtractRegion\n");
293 EnterCriticalSection( &X11DRV_CritSection );
294 r = XSubtractRegion(a0, a1, a2);
295 LeaveCriticalSection( &X11DRV_CritSection );
296 TRACE(x11, "Ret XSubtractRegion\n");
297 return r;
300 int TSXUnionRectWithRegion(XRectangle* a0, Region a1, Region a2)
302 int r;
303 TRACE(x11, "Call XUnionRectWithRegion\n");
304 EnterCriticalSection( &X11DRV_CritSection );
305 r = XUnionRectWithRegion(a0, a1, a2);
306 LeaveCriticalSection( &X11DRV_CritSection );
307 TRACE(x11, "Ret XUnionRectWithRegion\n");
308 return r;
311 int TSXUnionRegion(Region a0, Region a1, Region a2)
313 int r;
314 TRACE(x11, "Call XUnionRegion\n");
315 EnterCriticalSection( &X11DRV_CritSection );
316 r = XUnionRegion(a0, a1, a2);
317 LeaveCriticalSection( &X11DRV_CritSection );
318 TRACE(x11, "Ret XUnionRegion\n");
319 return r;
322 int TSXXorRegion(Region a0, Region a1, Region a2)
324 int r;
325 TRACE(x11, "Call XXorRegion\n");
326 EnterCriticalSection( &X11DRV_CritSection );
327 r = XXorRegion(a0, a1, a2);
328 LeaveCriticalSection( &X11DRV_CritSection );
329 TRACE(x11, "Ret XXorRegion\n");
330 return r;
333 int TSXDestroyImage(struct _XImage *a0)
335 int r;
336 TRACE(x11, "Call XDestroyImage\n");
337 EnterCriticalSection( &X11DRV_CritSection );
338 r = XDestroyImage(a0);
339 LeaveCriticalSection( &X11DRV_CritSection );
340 TRACE(x11, "Ret XDestroyImage\n");
341 return r;
344 struct _XImage * TSXSubImage(struct _XImage *a0, int a1, int a2, unsigned int a3, unsigned int a4)
346 struct _XImage * r;
347 TRACE(x11, "Call XSubImage\n");
348 EnterCriticalSection( &X11DRV_CritSection );
349 r = XSubImage(a0, a1, a2, a3, a4);
350 LeaveCriticalSection( &X11DRV_CritSection );
351 TRACE(x11, "Ret XSubImage\n");
352 return r;
355 int TSXAddPixel(struct _XImage *a0, long a1)
357 int r;
358 TRACE(x11, "Call XAddPixel\n");
359 EnterCriticalSection( &X11DRV_CritSection );
360 r = XAddPixel(a0, a1);
361 LeaveCriticalSection( &X11DRV_CritSection );
362 TRACE(x11, "Ret XAddPixel\n");
363 return r;
366 XContext TSXUniqueContext(void)
368 XContext r;
369 TRACE(x11, "Call XUniqueContext\n");
370 EnterCriticalSection( &X11DRV_CritSection );
371 r = XUniqueContext();
372 LeaveCriticalSection( &X11DRV_CritSection );
373 TRACE(x11, "Ret XUniqueContext\n");
374 return r;
378 #endif /* !defined(X_DISPLAY_MISSING) */