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 int TSXGetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, long* a3
, Atom a4
)
144 TRACE("Call XGetWMSizeHints\n");
145 EnterCriticalSection( &X11DRV_CritSection
);
146 r
= XGetWMSizeHints(a0
, a1
, a2
, a3
, a4
);
147 LeaveCriticalSection( &X11DRV_CritSection
);
148 TRACE("Ret XGetWMSizeHints\n");
152 int TSXIntersectRegion(Region a0
, Region a1
, Region a2
)
155 TRACE("Call XIntersectRegion\n");
156 EnterCriticalSection( &X11DRV_CritSection
);
157 r
= XIntersectRegion(a0
, a1
, a2
);
158 LeaveCriticalSection( &X11DRV_CritSection
);
159 TRACE("Ret XIntersectRegion\n");
163 int TSXLookupString(XKeyEvent
* a0
, char* a1
, int a2
, KeySym
* a3
, XComposeStatus
* a4
)
166 TRACE("Call XLookupString\n");
167 EnterCriticalSection( &X11DRV_CritSection
);
168 r
= XLookupString(a0
, a1
, a2
, a3
, a4
);
169 LeaveCriticalSection( &X11DRV_CritSection
);
170 TRACE("Ret XLookupString\n");
174 int TSXOffsetRegion(Region a0
, int a1
, int a2
)
177 TRACE("Call XOffsetRegion\n");
178 EnterCriticalSection( &X11DRV_CritSection
);
179 r
= XOffsetRegion(a0
, a1
, a2
);
180 LeaveCriticalSection( &X11DRV_CritSection
);
181 TRACE("Ret XOffsetRegion\n");
185 int TSXPointInRegion(Region a0
, int a1
, int a2
)
188 TRACE("Call XPointInRegion\n");
189 EnterCriticalSection( &X11DRV_CritSection
);
190 r
= XPointInRegion(a0
, a1
, a2
);
191 LeaveCriticalSection( &X11DRV_CritSection
);
192 TRACE("Ret XPointInRegion\n");
196 Region
TSXPolygonRegion(XPoint
* a0
, int a1
, int a2
)
199 TRACE("Call XPolygonRegion\n");
200 EnterCriticalSection( &X11DRV_CritSection
);
201 r
= XPolygonRegion(a0
, a1
, a2
);
202 LeaveCriticalSection( &X11DRV_CritSection
);
203 TRACE("Ret XPolygonRegion\n");
207 int TSXRectInRegion(Region a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
210 TRACE("Call XRectInRegion\n");
211 EnterCriticalSection( &X11DRV_CritSection
);
212 r
= XRectInRegion(a0
, a1
, a2
, a3
, a4
);
213 LeaveCriticalSection( &X11DRV_CritSection
);
214 TRACE("Ret XRectInRegion\n");
218 int TSXSaveContext(Display
* a0
, XID a1
, XContext a2
, const char* a3
)
221 TRACE("Call XSaveContext\n");
222 EnterCriticalSection( &X11DRV_CritSection
);
223 r
= XSaveContext(a0
, a1
, a2
, a3
);
224 LeaveCriticalSection( &X11DRV_CritSection
);
225 TRACE("Ret XSaveContext\n");
229 int TSXSetClassHint(Display
* a0
, Window a1
, XClassHint
* a2
)
232 TRACE("Call XSetClassHint\n");
233 EnterCriticalSection( &X11DRV_CritSection
);
234 r
= XSetClassHint(a0
, a1
, a2
);
235 LeaveCriticalSection( &X11DRV_CritSection
);
236 TRACE("Ret XSetClassHint\n");
240 int TSXSetWMHints(Display
* a0
, Window a1
, XWMHints
* a2
)
243 TRACE("Call XSetWMHints\n");
244 EnterCriticalSection( &X11DRV_CritSection
);
245 r
= XSetWMHints(a0
, a1
, a2
);
246 LeaveCriticalSection( &X11DRV_CritSection
);
247 TRACE("Ret XSetWMHints\n");
251 void TSXSetWMProperties(Display
* a0
, Window a1
, XTextProperty
* a2
, XTextProperty
* a3
, char** a4
, int a5
, XSizeHints
* a6
, XWMHints
* a7
, XClassHint
* a8
)
253 TRACE("Call XSetWMProperties\n");
254 EnterCriticalSection( &X11DRV_CritSection
);
255 XSetWMProperties(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
256 LeaveCriticalSection( &X11DRV_CritSection
);
257 TRACE("Ret XSetWMProperties\n");
260 void TSXSetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, Atom a3
)
262 TRACE("Call XSetWMSizeHints\n");
263 EnterCriticalSection( &X11DRV_CritSection
);
264 XSetWMSizeHints(a0
, a1
, a2
, a3
);
265 LeaveCriticalSection( &X11DRV_CritSection
);
266 TRACE("Ret XSetWMSizeHints\n");
269 int TSXSetRegion(Display
* a0
, GC a1
, Region a2
)
272 TRACE("Call XSetRegion\n");
273 EnterCriticalSection( &X11DRV_CritSection
);
274 r
= XSetRegion(a0
, a1
, a2
);
275 LeaveCriticalSection( &X11DRV_CritSection
);
276 TRACE("Ret XSetRegion\n");
280 int TSXShrinkRegion(Region a0
, int a1
, int a2
)
283 TRACE("Call XShrinkRegion\n");
284 EnterCriticalSection( &X11DRV_CritSection
);
285 r
= XShrinkRegion(a0
, a1
, a2
);
286 LeaveCriticalSection( &X11DRV_CritSection
);
287 TRACE("Ret XShrinkRegion\n");
291 int TSXStringListToTextProperty(char** a0
, int a1
, XTextProperty
* a2
)
294 TRACE("Call XStringListToTextProperty\n");
295 EnterCriticalSection( &X11DRV_CritSection
);
296 r
= XStringListToTextProperty(a0
, a1
, a2
);
297 LeaveCriticalSection( &X11DRV_CritSection
);
298 TRACE("Ret XStringListToTextProperty\n");
302 int TSXSubtractRegion(Region a0
, Region a1
, Region a2
)
305 TRACE("Call XSubtractRegion\n");
306 EnterCriticalSection( &X11DRV_CritSection
);
307 r
= XSubtractRegion(a0
, a1
, a2
);
308 LeaveCriticalSection( &X11DRV_CritSection
);
309 TRACE("Ret XSubtractRegion\n");
313 int TSXUnionRectWithRegion(XRectangle
* a0
, Region a1
, Region a2
)
316 TRACE("Call XUnionRectWithRegion\n");
317 EnterCriticalSection( &X11DRV_CritSection
);
318 r
= XUnionRectWithRegion(a0
, a1
, a2
);
319 LeaveCriticalSection( &X11DRV_CritSection
);
320 TRACE("Ret XUnionRectWithRegion\n");
324 int TSXUnionRegion(Region a0
, Region a1
, Region a2
)
327 TRACE("Call XUnionRegion\n");
328 EnterCriticalSection( &X11DRV_CritSection
);
329 r
= XUnionRegion(a0
, a1
, a2
);
330 LeaveCriticalSection( &X11DRV_CritSection
);
331 TRACE("Ret XUnionRegion\n");
335 int TSXXorRegion(Region a0
, Region a1
, Region a2
)
338 TRACE("Call XXorRegion\n");
339 EnterCriticalSection( &X11DRV_CritSection
);
340 r
= XXorRegion(a0
, a1
, a2
);
341 LeaveCriticalSection( &X11DRV_CritSection
);
342 TRACE("Ret XXorRegion\n");
346 int TSXDestroyImage(struct _XImage
*a0
)
349 TRACE("Call XDestroyImage\n");
350 EnterCriticalSection( &X11DRV_CritSection
);
351 r
= XDestroyImage(a0
);
352 LeaveCriticalSection( &X11DRV_CritSection
);
353 TRACE("Ret XDestroyImage\n");
357 struct _XImage
* TSXSubImage(struct _XImage
*a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
360 TRACE("Call XSubImage\n");
361 EnterCriticalSection( &X11DRV_CritSection
);
362 r
= XSubImage(a0
, a1
, a2
, a3
, a4
);
363 LeaveCriticalSection( &X11DRV_CritSection
);
364 TRACE("Ret XSubImage\n");
368 int TSXAddPixel(struct _XImage
*a0
, long a1
)
371 TRACE("Call XAddPixel\n");
372 EnterCriticalSection( &X11DRV_CritSection
);
373 r
= XAddPixel(a0
, a1
);
374 LeaveCriticalSection( &X11DRV_CritSection
);
375 TRACE("Ret XAddPixel\n");
379 XContext
TSXUniqueContext(void)
382 TRACE("Call XUniqueContext\n");
383 EnterCriticalSection( &X11DRV_CritSection
);
384 r
= XUniqueContext();
385 LeaveCriticalSection( &X11DRV_CritSection
);
386 TRACE("Ret XUniqueContext\n");