Started the implementation of IMAGEHLP.DLL.
[wine.git] / tsx11 / ts_xutil.c
blob0f17ea3d749cef941aa8206a71f89bc09fd4b67c
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 <X11/Xlib.h>
8 #include <X11/Xresource.h>
9 #include <X11/Xutil.h>
10 #include "x11drv.h"
11 #include "debug.h"
13 XClassHint * TSXAllocClassHint(void)
15 XClassHint * r;
16 TRACE(x11, "Call XAllocClassHint\n");
17 EnterCriticalSection( &X11DRV_CritSection );
18 r = XAllocClassHint();
19 LeaveCriticalSection( &X11DRV_CritSection );
20 TRACE(x11, "Ret XAllocClassHint\n");
21 return r;
24 XSizeHints * TSXAllocSizeHints(void)
26 XSizeHints * r;
27 TRACE(x11, "Call XAllocSizeHints\n");
28 EnterCriticalSection( &X11DRV_CritSection );
29 r = XAllocSizeHints();
30 LeaveCriticalSection( &X11DRV_CritSection );
31 TRACE(x11, "Ret XAllocSizeHints\n");
32 return r;
35 XWMHints * TSXAllocWMHints(void)
37 XWMHints * r;
38 TRACE(x11, "Call XAllocWMHints\n");
39 EnterCriticalSection( &X11DRV_CritSection );
40 r = XAllocWMHints();
41 LeaveCriticalSection( &X11DRV_CritSection );
42 TRACE(x11, "Ret XAllocWMHints\n");
43 return r;
46 int TSXClipBox(Region a0, XRectangle* a1)
48 int r;
49 TRACE(x11, "Call XClipBox\n");
50 EnterCriticalSection( &X11DRV_CritSection );
51 r = XClipBox(a0, a1);
52 LeaveCriticalSection( &X11DRV_CritSection );
53 TRACE(x11, "Ret XClipBox\n");
54 return r;
57 Region TSXCreateRegion(void)
59 Region r;
60 TRACE(x11, "Call XCreateRegion\n");
61 EnterCriticalSection( &X11DRV_CritSection );
62 r = XCreateRegion();
63 LeaveCriticalSection( &X11DRV_CritSection );
64 TRACE(x11, "Ret XCreateRegion\n");
65 return r;
68 int TSXDeleteContext(Display* a0, XID a1, XContext a2)
70 int r;
71 TRACE(x11, "Call XDeleteContext\n");
72 EnterCriticalSection( &X11DRV_CritSection );
73 r = XDeleteContext(a0, a1, a2);
74 LeaveCriticalSection( &X11DRV_CritSection );
75 TRACE(x11, "Ret XDeleteContext\n");
76 return r;
79 int TSXDestroyRegion(Region a0)
81 int r;
82 TRACE(x11, "Call XDestroyRegion\n");
83 EnterCriticalSection( &X11DRV_CritSection );
84 r = XDestroyRegion(a0);
85 LeaveCriticalSection( &X11DRV_CritSection );
86 TRACE(x11, "Ret XDestroyRegion\n");
87 return r;
90 int TSXEmptyRegion(Region a0)
92 int r;
93 TRACE(x11, "Call XEmptyRegion\n");
94 EnterCriticalSection( &X11DRV_CritSection );
95 r = XEmptyRegion(a0);
96 LeaveCriticalSection( &X11DRV_CritSection );
97 TRACE(x11, "Ret XEmptyRegion\n");
98 return r;
101 int TSXEqualRegion(Region a0, Region a1)
103 int r;
104 TRACE(x11, "Call XEqualRegion\n");
105 EnterCriticalSection( &X11DRV_CritSection );
106 r = XEqualRegion(a0, a1);
107 LeaveCriticalSection( &X11DRV_CritSection );
108 TRACE(x11, "Ret XEqualRegion\n");
109 return r;
112 int TSXFindContext(Display* a0, XID a1, XContext a2, XPointer* a3)
114 int r;
115 TRACE(x11, "Call XFindContext\n");
116 EnterCriticalSection( &X11DRV_CritSection );
117 r = XFindContext(a0, a1, a2, a3);
118 LeaveCriticalSection( &X11DRV_CritSection );
119 TRACE(x11, "Ret XFindContext\n");
120 return r;
123 XVisualInfo * TSXGetVisualInfo(Display* a0, long a1, XVisualInfo* a2, int* a3)
125 XVisualInfo * r;
126 TRACE(x11, "Call XGetVisualInfo\n");
127 EnterCriticalSection( &X11DRV_CritSection );
128 r = XGetVisualInfo(a0, a1, a2, a3);
129 LeaveCriticalSection( &X11DRV_CritSection );
130 TRACE(x11, "Ret XGetVisualInfo\n");
131 return r;
134 int TSXGetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, long* a3, Atom a4)
136 int r;
137 TRACE(x11, "Call XGetWMSizeHints\n");
138 EnterCriticalSection( &X11DRV_CritSection );
139 r = XGetWMSizeHints(a0, a1, a2, a3, a4);
140 LeaveCriticalSection( &X11DRV_CritSection );
141 TRACE(x11, "Ret XGetWMSizeHints\n");
142 return r;
145 int TSXIntersectRegion(Region a0, Region a1, Region a2)
147 int r;
148 TRACE(x11, "Call XIntersectRegion\n");
149 EnterCriticalSection( &X11DRV_CritSection );
150 r = XIntersectRegion(a0, a1, a2);
151 LeaveCriticalSection( &X11DRV_CritSection );
152 TRACE(x11, "Ret XIntersectRegion\n");
153 return r;
156 int TSXLookupString(XKeyEvent* a0, char* a1, int a2, KeySym* a3, XComposeStatus* a4)
158 int r;
159 TRACE(x11, "Call XLookupString\n");
160 EnterCriticalSection( &X11DRV_CritSection );
161 r = XLookupString(a0, a1, a2, a3, a4);
162 LeaveCriticalSection( &X11DRV_CritSection );
163 TRACE(x11, "Ret XLookupString\n");
164 return r;
167 int TSXOffsetRegion(Region a0, int a1, int a2)
169 int r;
170 TRACE(x11, "Call XOffsetRegion\n");
171 EnterCriticalSection( &X11DRV_CritSection );
172 r = XOffsetRegion(a0, a1, a2);
173 LeaveCriticalSection( &X11DRV_CritSection );
174 TRACE(x11, "Ret XOffsetRegion\n");
175 return r;
178 int TSXPointInRegion(Region a0, int a1, int a2)
180 int r;
181 TRACE(x11, "Call XPointInRegion\n");
182 EnterCriticalSection( &X11DRV_CritSection );
183 r = XPointInRegion(a0, a1, a2);
184 LeaveCriticalSection( &X11DRV_CritSection );
185 TRACE(x11, "Ret XPointInRegion\n");
186 return r;
189 Region TSXPolygonRegion(XPoint* a0, int a1, int a2)
191 Region r;
192 TRACE(x11, "Call XPolygonRegion\n");
193 EnterCriticalSection( &X11DRV_CritSection );
194 r = XPolygonRegion(a0, a1, a2);
195 LeaveCriticalSection( &X11DRV_CritSection );
196 TRACE(x11, "Ret XPolygonRegion\n");
197 return r;
200 int TSXRectInRegion(Region a0, int a1, int a2, unsigned int a3, unsigned int a4)
202 int r;
203 TRACE(x11, "Call XRectInRegion\n");
204 EnterCriticalSection( &X11DRV_CritSection );
205 r = XRectInRegion(a0, a1, a2, a3, a4);
206 LeaveCriticalSection( &X11DRV_CritSection );
207 TRACE(x11, "Ret XRectInRegion\n");
208 return r;
211 int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
213 int r;
214 TRACE(x11, "Call XSaveContext\n");
215 EnterCriticalSection( &X11DRV_CritSection );
216 r = XSaveContext(a0, a1, a2, a3);
217 LeaveCriticalSection( &X11DRV_CritSection );
218 TRACE(x11, "Ret XSaveContext\n");
219 return r;
222 void TSXSetWMProperties(Display* a0, Window a1, XTextProperty* a2, XTextProperty* a3, char** a4, int a5, XSizeHints* a6, XWMHints* a7, XClassHint* a8)
224 TRACE(x11, "Call XSetWMProperties\n");
225 EnterCriticalSection( &X11DRV_CritSection );
226 XSetWMProperties(a0, a1, a2, a3, a4, a5, a6, a7, a8);
227 LeaveCriticalSection( &X11DRV_CritSection );
228 TRACE(x11, "Ret XSetWMProperties\n");
231 void TSXSetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, Atom a3)
233 TRACE(x11, "Call XSetWMSizeHints\n");
234 EnterCriticalSection( &X11DRV_CritSection );
235 XSetWMSizeHints(a0, a1, a2, a3);
236 LeaveCriticalSection( &X11DRV_CritSection );
237 TRACE(x11, "Ret XSetWMSizeHints\n");
240 int TSXSetRegion(Display* a0, GC a1, Region a2)
242 int r;
243 TRACE(x11, "Call XSetRegion\n");
244 EnterCriticalSection( &X11DRV_CritSection );
245 r = XSetRegion(a0, a1, a2);
246 LeaveCriticalSection( &X11DRV_CritSection );
247 TRACE(x11, "Ret XSetRegion\n");
248 return r;
251 int TSXShrinkRegion(Region a0, int a1, int a2)
253 int r;
254 TRACE(x11, "Call XShrinkRegion\n");
255 EnterCriticalSection( &X11DRV_CritSection );
256 r = XShrinkRegion(a0, a1, a2);
257 LeaveCriticalSection( &X11DRV_CritSection );
258 TRACE(x11, "Ret XShrinkRegion\n");
259 return r;
262 int TSXStringListToTextProperty(char** a0, int a1, XTextProperty* a2)
264 int r;
265 TRACE(x11, "Call XStringListToTextProperty\n");
266 EnterCriticalSection( &X11DRV_CritSection );
267 r = XStringListToTextProperty(a0, a1, a2);
268 LeaveCriticalSection( &X11DRV_CritSection );
269 TRACE(x11, "Ret XStringListToTextProperty\n");
270 return r;
273 int TSXSubtractRegion(Region a0, Region a1, Region a2)
275 int r;
276 TRACE(x11, "Call XSubtractRegion\n");
277 EnterCriticalSection( &X11DRV_CritSection );
278 r = XSubtractRegion(a0, a1, a2);
279 LeaveCriticalSection( &X11DRV_CritSection );
280 TRACE(x11, "Ret XSubtractRegion\n");
281 return r;
284 int TSXUnionRectWithRegion(XRectangle* a0, Region a1, Region a2)
286 int r;
287 TRACE(x11, "Call XUnionRectWithRegion\n");
288 EnterCriticalSection( &X11DRV_CritSection );
289 r = XUnionRectWithRegion(a0, a1, a2);
290 LeaveCriticalSection( &X11DRV_CritSection );
291 TRACE(x11, "Ret XUnionRectWithRegion\n");
292 return r;
295 int TSXUnionRegion(Region a0, Region a1, Region a2)
297 int r;
298 TRACE(x11, "Call XUnionRegion\n");
299 EnterCriticalSection( &X11DRV_CritSection );
300 r = XUnionRegion(a0, a1, a2);
301 LeaveCriticalSection( &X11DRV_CritSection );
302 TRACE(x11, "Ret XUnionRegion\n");
303 return r;
306 int TSXXorRegion(Region a0, Region a1, Region a2)
308 int r;
309 TRACE(x11, "Call XXorRegion\n");
310 EnterCriticalSection( &X11DRV_CritSection );
311 r = XXorRegion(a0, a1, a2);
312 LeaveCriticalSection( &X11DRV_CritSection );
313 TRACE(x11, "Ret XXorRegion\n");
314 return r;
317 int TSXDestroyImage(struct _XImage *a0)
319 int r;
320 TRACE(x11, "Call XDestroyImage\n");
321 EnterCriticalSection( &X11DRV_CritSection );
322 r = XDestroyImage(a0);
323 LeaveCriticalSection( &X11DRV_CritSection );
324 TRACE(x11, "Ret XDestroyImage\n");
325 return r;
328 struct _XImage * TSXSubImage(struct _XImage *a0, int a1, int a2, unsigned int a3, unsigned int a4)
330 struct _XImage * r;
331 TRACE(x11, "Call XSubImage\n");
332 EnterCriticalSection( &X11DRV_CritSection );
333 r = XSubImage(a0, a1, a2, a3, a4);
334 LeaveCriticalSection( &X11DRV_CritSection );
335 TRACE(x11, "Ret XSubImage\n");
336 return r;
339 int TSXAddPixel(struct _XImage *a0, long a1)
341 int r;
342 TRACE(x11, "Call XAddPixel\n");
343 EnterCriticalSection( &X11DRV_CritSection );
344 r = XAddPixel(a0, a1);
345 LeaveCriticalSection( &X11DRV_CritSection );
346 TRACE(x11, "Ret XAddPixel\n");
347 return r;
350 XContext TSXUniqueContext(void)
352 XContext r;
353 TRACE(x11, "Call XUniqueContext\n");
354 EnterCriticalSection( &X11DRV_CritSection );
355 r = XUniqueContext();
356 LeaveCriticalSection( &X11DRV_CritSection );
357 TRACE(x11, "Ret XUniqueContext\n");
358 return r;