2 * Thread safe wrappers around Xutil calls.
3 * This file was generated automatically by tools/make_X11wrappers
8 #include <X11/Xresource.h>
13 XClassHint
* TSXAllocClassHint(void)
16 TRACE(x11
, "Call XAllocClassHint\n");
17 EnterCriticalSection( &X11DRV_CritSection
);
18 r
= XAllocClassHint();
19 LeaveCriticalSection( &X11DRV_CritSection
);
20 TRACE(x11
, "Ret XAllocClassHint\n");
24 XSizeHints
* TSXAllocSizeHints(void)
27 TRACE(x11
, "Call XAllocSizeHints\n");
28 EnterCriticalSection( &X11DRV_CritSection
);
29 r
= XAllocSizeHints();
30 LeaveCriticalSection( &X11DRV_CritSection
);
31 TRACE(x11
, "Ret XAllocSizeHints\n");
35 XWMHints
* TSXAllocWMHints(void)
38 TRACE(x11
, "Call XAllocWMHints\n");
39 EnterCriticalSection( &X11DRV_CritSection
);
41 LeaveCriticalSection( &X11DRV_CritSection
);
42 TRACE(x11
, "Ret XAllocWMHints\n");
46 int TSXClipBox(Region a0
, XRectangle
* a1
)
49 TRACE(x11
, "Call XClipBox\n");
50 EnterCriticalSection( &X11DRV_CritSection
);
52 LeaveCriticalSection( &X11DRV_CritSection
);
53 TRACE(x11
, "Ret XClipBox\n");
57 Region
TSXCreateRegion(void)
60 TRACE(x11
, "Call XCreateRegion\n");
61 EnterCriticalSection( &X11DRV_CritSection
);
63 LeaveCriticalSection( &X11DRV_CritSection
);
64 TRACE(x11
, "Ret XCreateRegion\n");
68 int TSXDeleteContext(Display
* a0
, XID a1
, XContext a2
)
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");
79 int TSXDestroyRegion(Region a0
)
82 TRACE(x11
, "Call XDestroyRegion\n");
83 EnterCriticalSection( &X11DRV_CritSection
);
84 r
= XDestroyRegion(a0
);
85 LeaveCriticalSection( &X11DRV_CritSection
);
86 TRACE(x11
, "Ret XDestroyRegion\n");
90 int TSXEmptyRegion(Region a0
)
93 TRACE(x11
, "Call XEmptyRegion\n");
94 EnterCriticalSection( &X11DRV_CritSection
);
96 LeaveCriticalSection( &X11DRV_CritSection
);
97 TRACE(x11
, "Ret XEmptyRegion\n");
101 int TSXEqualRegion(Region a0
, Region a1
)
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");
112 int TSXFindContext(Display
* a0
, XID a1
, XContext a2
, XPointer
* a3
)
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");
123 XVisualInfo
* TSXGetVisualInfo(Display
* a0
, long a1
, XVisualInfo
* a2
, int* a3
)
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");
134 int TSXGetWMSizeHints(Display
* a0
, Window a1
, XSizeHints
* a2
, long* a3
, Atom a4
)
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");
145 int TSXIntersectRegion(Region a0
, Region a1
, Region a2
)
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");
156 int TSXLookupString(XKeyEvent
* a0
, char* a1
, int a2
, KeySym
* a3
, XComposeStatus
* a4
)
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");
167 int TSXOffsetRegion(Region a0
, int a1
, int a2
)
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");
178 int TSXPointInRegion(Region a0
, int a1
, int a2
)
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");
189 Region
TSXPolygonRegion(XPoint
* a0
, int a1
, int a2
)
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");
200 int TSXRectInRegion(Region a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
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");
211 int TSXSaveContext(Display
* a0
, XID a1
, XContext a2
, const char* a3
)
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");
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
)
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");
251 int TSXShrinkRegion(Region a0
, int a1
, int a2
)
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");
262 int TSXStringListToTextProperty(char** a0
, int a1
, XTextProperty
* a2
)
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");
273 int TSXSubtractRegion(Region a0
, Region a1
, Region a2
)
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");
284 int TSXUnionRectWithRegion(XRectangle
* a0
, Region a1
, Region a2
)
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");
295 int TSXUnionRegion(Region a0
, Region a1
, Region a2
)
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");
306 int TSXXorRegion(Region a0
, Region a1
, Region a2
)
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");
317 int TSXDestroyImage(struct _XImage
*a0
)
320 TRACE(x11
, "Call XDestroyImage\n");
321 EnterCriticalSection( &X11DRV_CritSection
);
322 r
= XDestroyImage(a0
);
323 LeaveCriticalSection( &X11DRV_CritSection
);
324 TRACE(x11
, "Ret XDestroyImage\n");
328 struct _XImage
* TSXSubImage(struct _XImage
*a0
, int a1
, int a2
, unsigned int a3
, unsigned int a4
)
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");
339 int TSXAddPixel(struct _XImage
*a0
, long a1
)
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");
350 XContext
TSXUniqueContext(void)
353 TRACE(x11
, "Call XUniqueContext\n");
354 EnterCriticalSection( &X11DRV_CritSection
);
355 r
= XUniqueContext();
356 LeaveCriticalSection( &X11DRV_CritSection
);
357 TRACE(x11
, "Ret XUniqueContext\n");