2 * Thread safe wrappers around Xutil calls.
3 * This file was generated automatically by tools/make_X11wrappers
11 #include <X11/Xresource.h>
12 #include <X11/Xutil.h>
14 #include "debugtools.h"
18 DEFAULT_DEBUG_CHANNEL(x11
)
20 XClassHint
* TSXAllocClassHint(void)
23 TRACE("Call XAllocClassHint\n");
24 EnterCriticalSection( &X11DRV_CritSection
);
25 r
= XAllocClassHint();
26 LeaveCriticalSection( &X11DRV_CritSection
);
27 TRACE("Ret XAllocClassHint\n");
31 XSizeHints
* TSXAllocSizeHints(void)
34 TRACE("Call XAllocSizeHints\n");
35 EnterCriticalSection( &X11DRV_CritSection
);
36 r
= XAllocSizeHints();
37 LeaveCriticalSection( &X11DRV_CritSection
);
38 TRACE("Ret XAllocSizeHints\n");
42 XWMHints
* TSXAllocWMHints(void)
45 TRACE("Call XAllocWMHints\n");
46 EnterCriticalSection( &X11DRV_CritSection
);
48 LeaveCriticalSection( &X11DRV_CritSection
);
49 TRACE("Ret XAllocWMHints\n");
53 int TSXClipBox(Region a0
, XRectangle
* a1
)
56 TRACE("Call XClipBox\n");
57 EnterCriticalSection( &X11DRV_CritSection
);
59 LeaveCriticalSection( &X11DRV_CritSection
);
60 TRACE("Ret XClipBox\n");
64 Region
TSXCreateRegion(void)
67 TRACE("Call XCreateRegion\n");
68 EnterCriticalSection( &X11DRV_CritSection
);
70 LeaveCriticalSection( &X11DRV_CritSection
);
71 TRACE("Ret XCreateRegion\n");
75 int TSXDeleteContext(Display
* a0
, XID a1
, XContext a2
)
78 TRACE("Call XDeleteContext\n");
79 EnterCriticalSection( &X11DRV_CritSection
);
80 r
= XDeleteContext(a0
, a1
, a2
);
81 LeaveCriticalSection( &X11DRV_CritSection
);
82 TRACE("Ret XDeleteContext\n");
86 int TSXDestroyRegion(Region a0
)
89 TRACE("Call XDestroyRegion\n");
90 EnterCriticalSection( &X11DRV_CritSection
);
91 r
= XDestroyRegion(a0
);
92 LeaveCriticalSection( &X11DRV_CritSection
);
93 TRACE("Ret XDestroyRegion\n");
97 int TSXEmptyRegion(Region a0
)
100 TRACE("Call XEmptyRegion\n");
101 EnterCriticalSection( &X11DRV_CritSection
);
102 r
= XEmptyRegion(a0
);
103 LeaveCriticalSection( &X11DRV_CritSection
);
104 TRACE("Ret XEmptyRegion\n");
108 int TSXEqualRegion(Region a0
, Region a1
)
111 TRACE("Call XEqualRegion\n");
112 EnterCriticalSection( &X11DRV_CritSection
);
113 r
= XEqualRegion(a0
, a1
);
114 LeaveCriticalSection( &X11DRV_CritSection
);
115 TRACE("Ret XEqualRegion\n");
119 int TSXFindContext(Display
* a0
, XID a1
, XContext a2
, XPointer
* a3
)
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");
130 XVisualInfo
* TSXGetVisualInfo(Display
* a0
, long a1
, XVisualInfo
* a2
, int* a3
)
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");
141 XWMHints
* TSXGetWMHints(Display
* a0
, Window a1
)
144 TRACE("Call XGetWMHints\n");
145 EnterCriticalSection( &X11DRV_CritSection
);
146 r
= XGetWMHints(a0
, a1
);
147 LeaveCriticalSection( &X11DRV_CritSection
);
148 TRACE("Ret XGetWMHints\n");
152 int TSXGetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, long* a3
, Atom a4
)
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");
163 int TSXIntersectRegion(Region a0
, Region a1
, Region a2
)
166 TRACE("Call XIntersectRegion\n");
167 EnterCriticalSection( &X11DRV_CritSection
);
168 r
= XIntersectRegion(a0
, a1
, a2
);
169 LeaveCriticalSection( &X11DRV_CritSection
);
170 TRACE("Ret XIntersectRegion\n");
174 int TSXLookupString(XKeyEvent
* a0
, char* a1
, int a2
, KeySym
* a3
, XComposeStatus
* a4
)
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");
185 int TSXOffsetRegion(Region a0
, int a1
, int a2
)
188 TRACE("Call XOffsetRegion\n");
189 EnterCriticalSection( &X11DRV_CritSection
);
190 r
= XOffsetRegion(a0
, a1
, a2
);
191 LeaveCriticalSection( &X11DRV_CritSection
);
192 TRACE("Ret XOffsetRegion\n");
196 int TSXPointInRegion(Region a0
, int a1
, int a2
)
199 TRACE("Call XPointInRegion\n");
200 EnterCriticalSection( &X11DRV_CritSection
);
201 r
= XPointInRegion(a0
, a1
, a2
);
202 LeaveCriticalSection( &X11DRV_CritSection
);
203 TRACE("Ret XPointInRegion\n");
207 Region
TSXPolygonRegion(XPoint
* a0
, int a1
, int a2
)
210 TRACE("Call XPolygonRegion\n");
211 EnterCriticalSection( &X11DRV_CritSection
);
212 r
= XPolygonRegion(a0
, a1
, a2
);
213 LeaveCriticalSection( &X11DRV_CritSection
);
214 TRACE("Ret XPolygonRegion\n");
218 int TSXRectInRegion(Region a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
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");
229 int TSXSaveContext(Display
* a0
, XID a1
, XContext a2
, const char* a3
)
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");
240 int TSXSetClassHint(Display
* a0
, Window a1
, XClassHint
* a2
)
243 TRACE("Call XSetClassHint\n");
244 EnterCriticalSection( &X11DRV_CritSection
);
245 r
= XSetClassHint(a0
, a1
, a2
);
246 LeaveCriticalSection( &X11DRV_CritSection
);
247 TRACE("Ret XSetClassHint\n");
251 int TSXSetWMHints(Display
* a0
, Window a1
, XWMHints
* a2
)
254 TRACE("Call XSetWMHints\n");
255 EnterCriticalSection( &X11DRV_CritSection
);
256 r
= XSetWMHints(a0
, a1
, a2
);
257 LeaveCriticalSection( &X11DRV_CritSection
);
258 TRACE("Ret XSetWMHints\n");
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
)
283 TRACE("Call XSetRegion\n");
284 EnterCriticalSection( &X11DRV_CritSection
);
285 r
= XSetRegion(a0
, a1
, a2
);
286 LeaveCriticalSection( &X11DRV_CritSection
);
287 TRACE("Ret XSetRegion\n");
291 int TSXShrinkRegion(Region a0
, int a1
, int a2
)
294 TRACE("Call XShrinkRegion\n");
295 EnterCriticalSection( &X11DRV_CritSection
);
296 r
= XShrinkRegion(a0
, a1
, a2
);
297 LeaveCriticalSection( &X11DRV_CritSection
);
298 TRACE("Ret XShrinkRegion\n");
302 int TSXStringListToTextProperty(char** a0
, int a1
, XTextProperty
* a2
)
305 TRACE("Call XStringListToTextProperty\n");
306 EnterCriticalSection( &X11DRV_CritSection
);
307 r
= XStringListToTextProperty(a0
, a1
, a2
);
308 LeaveCriticalSection( &X11DRV_CritSection
);
309 TRACE("Ret XStringListToTextProperty\n");
313 int TSXSubtractRegion(Region a0
, Region a1
, Region a2
)
316 TRACE("Call XSubtractRegion\n");
317 EnterCriticalSection( &X11DRV_CritSection
);
318 r
= XSubtractRegion(a0
, a1
, a2
);
319 LeaveCriticalSection( &X11DRV_CritSection
);
320 TRACE("Ret XSubtractRegion\n");
324 int TSXUnionRectWithRegion(XRectangle
* a0
, Region a1
, Region a2
)
327 TRACE("Call XUnionRectWithRegion\n");
328 EnterCriticalSection( &X11DRV_CritSection
);
329 r
= XUnionRectWithRegion(a0
, a1
, a2
);
330 LeaveCriticalSection( &X11DRV_CritSection
);
331 TRACE("Ret XUnionRectWithRegion\n");
335 int TSXUnionRegion(Region a0
, Region a1
, Region a2
)
338 TRACE("Call XUnionRegion\n");
339 EnterCriticalSection( &X11DRV_CritSection
);
340 r
= XUnionRegion(a0
, a1
, a2
);
341 LeaveCriticalSection( &X11DRV_CritSection
);
342 TRACE("Ret XUnionRegion\n");
346 int TSXXorRegion(Region a0
, Region a1
, Region a2
)
349 TRACE("Call XXorRegion\n");
350 EnterCriticalSection( &X11DRV_CritSection
);
351 r
= XXorRegion(a0
, a1
, a2
);
352 LeaveCriticalSection( &X11DRV_CritSection
);
353 TRACE("Ret XXorRegion\n");
357 int TSXDestroyImage(struct _XImage
*a0
)
360 TRACE("Call XDestroyImage\n");
361 EnterCriticalSection( &X11DRV_CritSection
);
362 r
= XDestroyImage(a0
);
363 LeaveCriticalSection( &X11DRV_CritSection
);
364 TRACE("Ret XDestroyImage\n");
368 struct _XImage
* TSXSubImage(struct _XImage
*a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
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");
379 int TSXAddPixel(struct _XImage
*a0
, long a1
)
382 TRACE("Call XAddPixel\n");
383 EnterCriticalSection( &X11DRV_CritSection
);
384 r
= XAddPixel(a0
, a1
);
385 LeaveCriticalSection( &X11DRV_CritSection
);
386 TRACE("Ret XAddPixel\n");
390 XContext
TSXUniqueContext(void)
393 TRACE("Call XUniqueContext\n");
394 EnterCriticalSection( &X11DRV_CritSection
);
395 r
= XUniqueContext();
396 LeaveCriticalSection( &X11DRV_CritSection
);
397 TRACE("Ret XUniqueContext\n");