2 * Thread safe wrappers around Xutil calls.
3 * This file was generated automatically by tools/make_X11wrappers
9 #ifndef X_DISPLAY_MISSING
13 #include <X11/Xresource.h>
14 #include <X11/Xutil.h>
18 XClassHint
* TSXAllocClassHint(void)
21 TRACE(x11
, "Call XAllocClassHint\n");
22 EnterCriticalSection( &X11DRV_CritSection
);
23 r
= XAllocClassHint();
24 LeaveCriticalSection( &X11DRV_CritSection
);
25 TRACE(x11
, "Ret XAllocClassHint\n");
29 XSizeHints
* TSXAllocSizeHints(void)
32 TRACE(x11
, "Call XAllocSizeHints\n");
33 EnterCriticalSection( &X11DRV_CritSection
);
34 r
= XAllocSizeHints();
35 LeaveCriticalSection( &X11DRV_CritSection
);
36 TRACE(x11
, "Ret XAllocSizeHints\n");
40 XWMHints
* TSXAllocWMHints(void)
43 TRACE(x11
, "Call XAllocWMHints\n");
44 EnterCriticalSection( &X11DRV_CritSection
);
46 LeaveCriticalSection( &X11DRV_CritSection
);
47 TRACE(x11
, "Ret XAllocWMHints\n");
51 int TSXClipBox(Region a0
, XRectangle
* a1
)
54 TRACE(x11
, "Call XClipBox\n");
55 EnterCriticalSection( &X11DRV_CritSection
);
57 LeaveCriticalSection( &X11DRV_CritSection
);
58 TRACE(x11
, "Ret XClipBox\n");
62 Region
TSXCreateRegion(void)
65 TRACE(x11
, "Call XCreateRegion\n");
66 EnterCriticalSection( &X11DRV_CritSection
);
68 LeaveCriticalSection( &X11DRV_CritSection
);
69 TRACE(x11
, "Ret XCreateRegion\n");
73 int TSXDeleteContext(Display
* a0
, XID a1
, XContext a2
)
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");
84 int TSXDestroyRegion(Region a0
)
87 TRACE(x11
, "Call XDestroyRegion\n");
88 EnterCriticalSection( &X11DRV_CritSection
);
89 r
= XDestroyRegion(a0
);
90 LeaveCriticalSection( &X11DRV_CritSection
);
91 TRACE(x11
, "Ret XDestroyRegion\n");
95 int TSXEmptyRegion(Region a0
)
98 TRACE(x11
, "Call XEmptyRegion\n");
99 EnterCriticalSection( &X11DRV_CritSection
);
100 r
= XEmptyRegion(a0
);
101 LeaveCriticalSection( &X11DRV_CritSection
);
102 TRACE(x11
, "Ret XEmptyRegion\n");
106 int TSXEqualRegion(Region a0
, Region a1
)
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");
117 int TSXFindContext(Display
* a0
, XID a1
, XContext a2
, XPointer
* a3
)
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");
128 XVisualInfo
* TSXGetVisualInfo(Display
* a0
, long a1
, XVisualInfo
* a2
, int* a3
)
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");
139 int TSXGetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, long* a3
, Atom a4
)
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");
150 int TSXIntersectRegion(Region a0
, Region a1
, Region a2
)
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");
161 int TSXLookupString(XKeyEvent
* a0
, char* a1
, int a2
, KeySym
* a3
, XComposeStatus
* a4
)
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");
172 int TSXOffsetRegion(Region a0
, int a1
, int a2
)
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");
183 int TSXPointInRegion(Region a0
, int a1
, int a2
)
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");
194 Region
TSXPolygonRegion(XPoint
* a0
, int a1
, int a2
)
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");
205 int TSXRectInRegion(Region a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
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");
216 int TSXSaveContext(Display
* a0
, XID a1
, XContext a2
, const char* a3
)
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");
227 int TSXSetClassHint(Display
* a0
, Window a1
, XClassHint
* a2
)
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");
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
)
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");
267 int TSXShrinkRegion(Region a0
, int a1
, int a2
)
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");
278 int TSXStringListToTextProperty(char** a0
, int a1
, XTextProperty
* a2
)
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");
289 int TSXSubtractRegion(Region a0
, Region a1
, Region a2
)
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");
300 int TSXUnionRectWithRegion(XRectangle
* a0
, Region a1
, Region a2
)
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");
311 int TSXUnionRegion(Region a0
, Region a1
, Region a2
)
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");
322 int TSXXorRegion(Region a0
, Region a1
, Region a2
)
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");
333 int TSXDestroyImage(struct _XImage
*a0
)
336 TRACE(x11
, "Call XDestroyImage\n");
337 EnterCriticalSection( &X11DRV_CritSection
);
338 r
= XDestroyImage(a0
);
339 LeaveCriticalSection( &X11DRV_CritSection
);
340 TRACE(x11
, "Ret XDestroyImage\n");
344 struct _XImage
* TSXSubImage(struct _XImage
*a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
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");
355 int TSXAddPixel(struct _XImage
*a0
, long a1
)
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");
366 XContext
TSXUniqueContext(void)
369 TRACE(x11
, "Call XUniqueContext\n");
370 EnterCriticalSection( &X11DRV_CritSection
);
371 r
= XUniqueContext();
372 LeaveCriticalSection( &X11DRV_CritSection
);
373 TRACE(x11
, "Ret XUniqueContext\n");
378 #endif /* !defined(X_DISPLAY_MISSING) */