Optimized include/*.h: (recursively) include all headers needed by
[wine/testsucceed.git] / tsx11 / ts_xlib.c
blob6f3a9f04fe92ba1d86bc594e460ba821d330391c
1 /*
2 * Thread safe wrappers around Xlib calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #ifndef X_DISPLAY_MISSING
12 #include <X11/Xlib.h>
13 #include "debug.h"
14 #include "x11drv.h"
16 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
18 XFontStruct * r;
19 TRACE(x11, "Call XLoadQueryFont\n");
20 EnterCriticalSection( &X11DRV_CritSection );
21 r = XLoadQueryFont(a0, a1);
22 LeaveCriticalSection( &X11DRV_CritSection );
23 TRACE(x11, "Ret XLoadQueryFont\n");
24 return r;
27 XModifierKeymap * TSXGetModifierMapping(Display* a0)
29 XModifierKeymap * r;
30 TRACE(x11, "Call XGetModifierMapping\n");
31 EnterCriticalSection( &X11DRV_CritSection );
32 r = XGetModifierMapping(a0);
33 LeaveCriticalSection( &X11DRV_CritSection );
34 TRACE(x11, "Ret XGetModifierMapping\n");
35 return r;
38 XImage * TSXCreateImage(Display* a0, Visual* a1, unsigned int a2, int a3, int a4, char* a5, unsigned int a6, unsigned int a7, int a8, int a9)
40 XImage * r;
41 TRACE(x11, "Call XCreateImage\n");
42 EnterCriticalSection( &X11DRV_CritSection );
43 r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
44 LeaveCriticalSection( &X11DRV_CritSection );
45 TRACE(x11, "Ret XCreateImage\n");
46 return r;
49 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
51 XImage * r;
52 TRACE(x11, "Call XGetImage\n");
53 EnterCriticalSection( &X11DRV_CritSection );
54 r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
55 LeaveCriticalSection( &X11DRV_CritSection );
56 TRACE(x11, "Ret XGetImage\n");
57 return r;
60 Display * TSXOpenDisplay(const char* a0)
62 Display * r;
63 TRACE(x11, "Call XOpenDisplay\n");
64 EnterCriticalSection( &X11DRV_CritSection );
65 r = XOpenDisplay(a0);
66 LeaveCriticalSection( &X11DRV_CritSection );
67 TRACE(x11, "Ret XOpenDisplay\n");
68 return r;
71 void TSXrmInitialize(void)
73 TRACE(x11, "Call XrmInitialize\n");
74 EnterCriticalSection( &X11DRV_CritSection );
75 XrmInitialize();
76 LeaveCriticalSection( &X11DRV_CritSection );
77 TRACE(x11, "Ret XrmInitialize\n");
80 char * TSXGetAtomName(Display* a0, Atom a1)
82 char * r;
83 TRACE(x11, "Call XGetAtomName\n");
84 EnterCriticalSection( &X11DRV_CritSection );
85 r = XGetAtomName(a0, a1);
86 LeaveCriticalSection( &X11DRV_CritSection );
87 TRACE(x11, "Ret XGetAtomName\n");
88 return r;
91 char * TSXKeysymToString(KeySym a0)
93 char * r;
94 TRACE(x11, "Call XKeysymToString\n");
95 EnterCriticalSection( &X11DRV_CritSection );
96 r = XKeysymToString(a0);
97 LeaveCriticalSection( &X11DRV_CritSection );
98 TRACE(x11, "Ret XKeysymToString\n");
99 return r;
102 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
104 Atom r;
105 TRACE(x11, "Call XInternAtom\n");
106 EnterCriticalSection( &X11DRV_CritSection );
107 r = XInternAtom(a0, a1, a2);
108 LeaveCriticalSection( &X11DRV_CritSection );
109 TRACE(x11, "Ret XInternAtom\n");
110 return r;
113 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
115 Colormap r;
116 TRACE(x11, "Call XCopyColormapAndFree\n");
117 EnterCriticalSection( &X11DRV_CritSection );
118 r = XCopyColormapAndFree(a0, a1);
119 LeaveCriticalSection( &X11DRV_CritSection );
120 TRACE(x11, "Ret XCopyColormapAndFree\n");
121 return r;
124 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
126 Colormap r;
127 TRACE(x11, "Call XCreateColormap\n");
128 EnterCriticalSection( &X11DRV_CritSection );
129 r = XCreateColormap(a0, a1, a2, a3);
130 LeaveCriticalSection( &X11DRV_CritSection );
131 TRACE(x11, "Ret XCreateColormap\n");
132 return r;
135 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
137 Cursor r;
138 TRACE(x11, "Call XCreatePixmapCursor\n");
139 EnterCriticalSection( &X11DRV_CritSection );
140 r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
141 LeaveCriticalSection( &X11DRV_CritSection );
142 TRACE(x11, "Ret XCreatePixmapCursor\n");
143 return r;
146 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
148 Cursor r;
149 TRACE(x11, "Call XCreateFontCursor\n");
150 EnterCriticalSection( &X11DRV_CritSection );
151 r = XCreateFontCursor(a0, a1);
152 LeaveCriticalSection( &X11DRV_CritSection );
153 TRACE(x11, "Ret XCreateFontCursor\n");
154 return r;
157 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
159 GC r;
160 TRACE(x11, "Call XCreateGC\n");
161 EnterCriticalSection( &X11DRV_CritSection );
162 r = XCreateGC(a0, a1, a2, a3);
163 LeaveCriticalSection( &X11DRV_CritSection );
164 TRACE(x11, "Ret XCreateGC\n");
165 return r;
168 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
170 Pixmap r;
171 TRACE(x11, "Call XCreatePixmap\n");
172 EnterCriticalSection( &X11DRV_CritSection );
173 r = XCreatePixmap(a0, a1, a2, a3, a4);
174 LeaveCriticalSection( &X11DRV_CritSection );
175 TRACE(x11, "Ret XCreatePixmap\n");
176 return r;
179 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
181 Pixmap r;
182 TRACE(x11, "Call XCreateBitmapFromData\n");
183 EnterCriticalSection( &X11DRV_CritSection );
184 r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
185 LeaveCriticalSection( &X11DRV_CritSection );
186 TRACE(x11, "Ret XCreateBitmapFromData\n");
187 return r;
190 Window TSXGetSelectionOwner(Display* a0, Atom a1)
192 Window r;
193 TRACE(x11, "Call XGetSelectionOwner\n");
194 EnterCriticalSection( &X11DRV_CritSection );
195 r = XGetSelectionOwner(a0, a1);
196 LeaveCriticalSection( &X11DRV_CritSection );
197 TRACE(x11, "Ret XGetSelectionOwner\n");
198 return r;
201 Window TSXCreateWindow(Display* a0, Window a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned int a6, int a7, unsigned int a8, Visual* a9, unsigned long a10, XSetWindowAttributes* a11)
203 Window r;
204 TRACE(x11, "Call XCreateWindow\n");
205 EnterCriticalSection( &X11DRV_CritSection );
206 r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
207 LeaveCriticalSection( &X11DRV_CritSection );
208 TRACE(x11, "Ret XCreateWindow\n");
209 return r;
212 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
214 char ** r;
215 TRACE(x11, "Call XListFonts\n");
216 EnterCriticalSection( &X11DRV_CritSection );
217 r = XListFonts(a0, a1, a2, a3);
218 LeaveCriticalSection( &X11DRV_CritSection );
219 TRACE(x11, "Ret XListFonts\n");
220 return r;
223 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
225 KeySym r;
226 TRACE(x11, "Call XKeycodeToKeysym\n");
227 EnterCriticalSection( &X11DRV_CritSection );
228 r = XKeycodeToKeysym(a0, a1, a2);
229 LeaveCriticalSection( &X11DRV_CritSection );
230 TRACE(x11, "Ret XKeycodeToKeysym\n");
231 return r;
234 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
236 KeySym r;
237 TRACE(x11, "Call XLookupKeysym\n");
238 EnterCriticalSection( &X11DRV_CritSection );
239 r = XLookupKeysym(a0, a1);
240 LeaveCriticalSection( &X11DRV_CritSection );
241 TRACE(x11, "Ret XLookupKeysym\n");
242 return r;
245 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
247 KeySym * r;
248 TRACE(x11, "Call XGetKeyboardMapping\n");
249 EnterCriticalSection( &X11DRV_CritSection );
250 r = XGetKeyboardMapping(a0, a1, a2, a3);
251 LeaveCriticalSection( &X11DRV_CritSection );
252 TRACE(x11, "Ret XGetKeyboardMapping\n");
253 return r;
256 char * TSXResourceManagerString(Display* a0)
258 char * r;
259 TRACE(x11, "Call XResourceManagerString\n");
260 EnterCriticalSection( &X11DRV_CritSection );
261 r = XResourceManagerString(a0);
262 LeaveCriticalSection( &X11DRV_CritSection );
263 TRACE(x11, "Ret XResourceManagerString\n");
264 return r;
267 int TSXInitThreads(void)
269 int r;
270 TRACE(x11, "Call XInitThreads\n");
271 EnterCriticalSection( &X11DRV_CritSection );
272 r = XInitThreads();
273 LeaveCriticalSection( &X11DRV_CritSection );
274 TRACE(x11, "Ret XInitThreads\n");
275 return r;
278 int * TSXListDepths(Display* a0, int a1, int* a2)
280 int * r;
281 TRACE(x11, "Call XListDepths\n");
282 EnterCriticalSection( &X11DRV_CritSection );
283 r = XListDepths(a0, a1, a2);
284 LeaveCriticalSection( &X11DRV_CritSection );
285 TRACE(x11, "Ret XListDepths\n");
286 return r;
289 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
291 int r;
292 TRACE(x11, "Call XReconfigureWMWindow\n");
293 EnterCriticalSection( &X11DRV_CritSection );
294 r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
295 LeaveCriticalSection( &X11DRV_CritSection );
296 TRACE(x11, "Ret XReconfigureWMWindow\n");
297 return r;
300 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
302 int r;
303 TRACE(x11, "Call XSetWMProtocols\n");
304 EnterCriticalSection( &X11DRV_CritSection );
305 r = XSetWMProtocols(a0, a1, a2, a3);
306 LeaveCriticalSection( &X11DRV_CritSection );
307 TRACE(x11, "Ret XSetWMProtocols\n");
308 return r;
311 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
313 int r;
314 TRACE(x11, "Call XSetTransientForHint\n");
315 EnterCriticalSection( &X11DRV_CritSection );
316 r = XSetTransientForHint(a0, a1, a2);
317 LeaveCriticalSection( &X11DRV_CritSection );
318 TRACE(x11, "Ret XSetTransientForHint\n");
319 return r;
322 int TSXActivateScreenSaver(Display* a0)
324 int r;
325 TRACE(x11, "Call XActivateScreenSaver\n");
326 EnterCriticalSection( &X11DRV_CritSection );
327 r = XActivateScreenSaver(a0);
328 LeaveCriticalSection( &X11DRV_CritSection );
329 TRACE(x11, "Ret XActivateScreenSaver\n");
330 return r;
333 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
335 int r;
336 TRACE(x11, "Call XAllocColor\n");
337 EnterCriticalSection( &X11DRV_CritSection );
338 r = XAllocColor(a0, a1, a2);
339 LeaveCriticalSection( &X11DRV_CritSection );
340 TRACE(x11, "Ret XAllocColor\n");
341 return r;
344 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
346 int r;
347 TRACE(x11, "Call XAllocColorCells\n");
348 EnterCriticalSection( &X11DRV_CritSection );
349 r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
350 LeaveCriticalSection( &X11DRV_CritSection );
351 TRACE(x11, "Ret XAllocColorCells\n");
352 return r;
355 int TSXBell(Display* a0, int a1)
357 int r;
358 TRACE(x11, "Call XBell\n");
359 EnterCriticalSection( &X11DRV_CritSection );
360 r = XBell(a0, a1);
361 LeaveCriticalSection( &X11DRV_CritSection );
362 TRACE(x11, "Ret XBell\n");
363 return r;
366 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
368 int r;
369 TRACE(x11, "Call XChangeGC\n");
370 EnterCriticalSection( &X11DRV_CritSection );
371 r = XChangeGC(a0, a1, a2, a3);
372 LeaveCriticalSection( &X11DRV_CritSection );
373 TRACE(x11, "Ret XChangeGC\n");
374 return r;
377 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
379 int r;
380 TRACE(x11, "Call XChangeKeyboardControl\n");
381 EnterCriticalSection( &X11DRV_CritSection );
382 r = XChangeKeyboardControl(a0, a1, a2);
383 LeaveCriticalSection( &X11DRV_CritSection );
384 TRACE(x11, "Ret XChangeKeyboardControl\n");
385 return r;
388 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
390 int r;
391 TRACE(x11, "Call XChangeProperty\n");
392 EnterCriticalSection( &X11DRV_CritSection );
393 r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
394 LeaveCriticalSection( &X11DRV_CritSection );
395 TRACE(x11, "Ret XChangeProperty\n");
396 return r;
399 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
401 int r;
402 TRACE(x11, "Call XChangeWindowAttributes\n");
403 EnterCriticalSection( &X11DRV_CritSection );
404 r = XChangeWindowAttributes(a0, a1, a2, a3);
405 LeaveCriticalSection( &X11DRV_CritSection );
406 TRACE(x11, "Ret XChangeWindowAttributes\n");
407 return r;
410 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
412 int r;
413 TRACE(x11, "Call XCheckTypedWindowEvent\n");
414 EnterCriticalSection( &X11DRV_CritSection );
415 r = XCheckTypedWindowEvent(a0, a1, a2, a3);
416 LeaveCriticalSection( &X11DRV_CritSection );
417 TRACE(x11, "Ret XCheckTypedWindowEvent\n");
418 return r;
421 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
423 int r;
424 TRACE(x11, "Call XCheckWindowEvent\n");
425 EnterCriticalSection( &X11DRV_CritSection );
426 r = XCheckWindowEvent(a0, a1, a2, a3);
427 LeaveCriticalSection( &X11DRV_CritSection );
428 TRACE(x11, "Ret XCheckWindowEvent\n");
429 return r;
432 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
434 int r;
435 TRACE(x11, "Call XConvertSelection\n");
436 EnterCriticalSection( &X11DRV_CritSection );
437 r = XConvertSelection(a0, a1, a2, a3, a4, a5);
438 LeaveCriticalSection( &X11DRV_CritSection );
439 TRACE(x11, "Ret XConvertSelection\n");
440 return r;
443 int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
445 int r;
446 TRACE(x11, "Call XCopyArea\n");
447 EnterCriticalSection( &X11DRV_CritSection );
448 r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
449 LeaveCriticalSection( &X11DRV_CritSection );
450 TRACE(x11, "Ret XCopyArea\n");
451 return r;
454 int TSXCopyPlane(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9, unsigned long a10)
456 int r;
457 TRACE(x11, "Call XCopyPlane\n");
458 EnterCriticalSection( &X11DRV_CritSection );
459 r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
460 LeaveCriticalSection( &X11DRV_CritSection );
461 TRACE(x11, "Ret XCopyPlane\n");
462 return r;
465 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
467 int r;
468 TRACE(x11, "Call XDefineCursor\n");
469 EnterCriticalSection( &X11DRV_CritSection );
470 r = XDefineCursor(a0, a1, a2);
471 LeaveCriticalSection( &X11DRV_CritSection );
472 TRACE(x11, "Ret XDefineCursor\n");
473 return r;
476 int TSXDestroyWindow(Display* a0, Window a1)
478 int r;
479 TRACE(x11, "Call XDestroyWindow\n");
480 EnterCriticalSection( &X11DRV_CritSection );
481 r = XDestroyWindow(a0, a1);
482 LeaveCriticalSection( &X11DRV_CritSection );
483 TRACE(x11, "Ret XDestroyWindow\n");
484 return r;
487 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
489 int r;
490 TRACE(x11, "Call XDisplayKeycodes\n");
491 EnterCriticalSection( &X11DRV_CritSection );
492 r = XDisplayKeycodes(a0, a1, a2);
493 LeaveCriticalSection( &X11DRV_CritSection );
494 TRACE(x11, "Ret XDisplayKeycodes\n");
495 return r;
498 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
500 int r;
501 TRACE(x11, "Call XDrawArc\n");
502 EnterCriticalSection( &X11DRV_CritSection );
503 r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
504 LeaveCriticalSection( &X11DRV_CritSection );
505 TRACE(x11, "Ret XDrawArc\n");
506 return r;
509 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
511 int r;
512 TRACE(x11, "Call XDrawLine\n");
513 EnterCriticalSection( &X11DRV_CritSection );
514 r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
515 LeaveCriticalSection( &X11DRV_CritSection );
516 TRACE(x11, "Ret XDrawLine\n");
517 return r;
520 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
522 int r;
523 TRACE(x11, "Call XDrawLines\n");
524 EnterCriticalSection( &X11DRV_CritSection );
525 r = XDrawLines(a0, a1, a2, a3, a4, a5);
526 LeaveCriticalSection( &X11DRV_CritSection );
527 TRACE(x11, "Ret XDrawLines\n");
528 return r;
531 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
533 int r;
534 TRACE(x11, "Call XDrawPoint\n");
535 EnterCriticalSection( &X11DRV_CritSection );
536 r = XDrawPoint(a0, a1, a2, a3, a4);
537 LeaveCriticalSection( &X11DRV_CritSection );
538 TRACE(x11, "Ret XDrawPoint\n");
539 return r;
542 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
544 int r;
545 TRACE(x11, "Call XDrawRectangle\n");
546 EnterCriticalSection( &X11DRV_CritSection );
547 r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
548 LeaveCriticalSection( &X11DRV_CritSection );
549 TRACE(x11, "Ret XDrawRectangle\n");
550 return r;
553 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
555 int r;
556 TRACE(x11, "Call XDrawSegments\n");
557 EnterCriticalSection( &X11DRV_CritSection );
558 r = XDrawSegments(a0, a1, a2, a3, a4);
559 LeaveCriticalSection( &X11DRV_CritSection );
560 TRACE(x11, "Ret XDrawSegments\n");
561 return r;
564 int TSXDrawString(Display* a0, Drawable a1, GC a2, int a3, int a4, const char* a5, int a6)
566 int r;
567 TRACE(x11, "Call XDrawString\n");
568 EnterCriticalSection( &X11DRV_CritSection );
569 r = XDrawString(a0, a1, a2, a3, a4, a5, a6);
570 LeaveCriticalSection( &X11DRV_CritSection );
571 TRACE(x11, "Ret XDrawString\n");
572 return r;
575 int TSXDrawText(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem* a5, int a6)
577 int r;
578 TRACE(x11, "Call XDrawText\n");
579 EnterCriticalSection( &X11DRV_CritSection );
580 r = XDrawText(a0, a1, a2, a3, a4, a5, a6);
581 LeaveCriticalSection( &X11DRV_CritSection );
582 TRACE(x11, "Ret XDrawText\n");
583 return r;
586 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
588 int r;
589 TRACE(x11, "Call XFillArc\n");
590 EnterCriticalSection( &X11DRV_CritSection );
591 r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
592 LeaveCriticalSection( &X11DRV_CritSection );
593 TRACE(x11, "Ret XFillArc\n");
594 return r;
597 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
599 int r;
600 TRACE(x11, "Call XFillPolygon\n");
601 EnterCriticalSection( &X11DRV_CritSection );
602 r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
603 LeaveCriticalSection( &X11DRV_CritSection );
604 TRACE(x11, "Ret XFillPolygon\n");
605 return r;
608 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
610 int r;
611 TRACE(x11, "Call XFillRectangle\n");
612 EnterCriticalSection( &X11DRV_CritSection );
613 r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
614 LeaveCriticalSection( &X11DRV_CritSection );
615 TRACE(x11, "Ret XFillRectangle\n");
616 return r;
619 int TSXFlush(Display* a0)
621 int r;
622 TRACE(x11, "Call XFlush\n");
623 EnterCriticalSection( &X11DRV_CritSection );
624 r = XFlush(a0);
625 LeaveCriticalSection( &X11DRV_CritSection );
626 TRACE(x11, "Ret XFlush\n");
627 return r;
630 int TSXFree(void* a0)
632 int r;
633 TRACE(x11, "Call XFree\n");
634 EnterCriticalSection( &X11DRV_CritSection );
635 r = XFree(a0);
636 LeaveCriticalSection( &X11DRV_CritSection );
637 TRACE(x11, "Ret XFree\n");
638 return r;
641 int TSXFreeColormap(Display* a0, Colormap a1)
643 int r;
644 TRACE(x11, "Call XFreeColormap\n");
645 EnterCriticalSection( &X11DRV_CritSection );
646 r = XFreeColormap(a0, a1);
647 LeaveCriticalSection( &X11DRV_CritSection );
648 TRACE(x11, "Ret XFreeColormap\n");
649 return r;
652 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
654 int r;
655 TRACE(x11, "Call XFreeColors\n");
656 EnterCriticalSection( &X11DRV_CritSection );
657 r = XFreeColors(a0, a1, a2, a3, a4);
658 LeaveCriticalSection( &X11DRV_CritSection );
659 TRACE(x11, "Ret XFreeColors\n");
660 return r;
663 int TSXFreeCursor(Display* a0, Cursor a1)
665 int r;
666 TRACE(x11, "Call XFreeCursor\n");
667 EnterCriticalSection( &X11DRV_CritSection );
668 r = XFreeCursor(a0, a1);
669 LeaveCriticalSection( &X11DRV_CritSection );
670 TRACE(x11, "Ret XFreeCursor\n");
671 return r;
674 int TSXFreeFont(Display* a0, XFontStruct* a1)
676 int r;
677 TRACE(x11, "Call XFreeFont\n");
678 EnterCriticalSection( &X11DRV_CritSection );
679 r = XFreeFont(a0, a1);
680 LeaveCriticalSection( &X11DRV_CritSection );
681 TRACE(x11, "Ret XFreeFont\n");
682 return r;
685 int TSXFreeFontNames(char** a0)
687 int r;
688 TRACE(x11, "Call XFreeFontNames\n");
689 EnterCriticalSection( &X11DRV_CritSection );
690 r = XFreeFontNames(a0);
691 LeaveCriticalSection( &X11DRV_CritSection );
692 TRACE(x11, "Ret XFreeFontNames\n");
693 return r;
696 int TSXFreeGC(Display* a0, GC a1)
698 int r;
699 TRACE(x11, "Call XFreeGC\n");
700 EnterCriticalSection( &X11DRV_CritSection );
701 r = XFreeGC(a0, a1);
702 LeaveCriticalSection( &X11DRV_CritSection );
703 TRACE(x11, "Ret XFreeGC\n");
704 return r;
707 int TSXFreeModifiermap(XModifierKeymap* a0)
709 int r;
710 TRACE(x11, "Call XFreeModifiermap\n");
711 EnterCriticalSection( &X11DRV_CritSection );
712 r = XFreeModifiermap(a0);
713 LeaveCriticalSection( &X11DRV_CritSection );
714 TRACE(x11, "Ret XFreeModifiermap\n");
715 return r;
718 int TSXFreePixmap(Display* a0, Pixmap a1)
720 int r;
721 TRACE(x11, "Call XFreePixmap\n");
722 EnterCriticalSection( &X11DRV_CritSection );
723 r = XFreePixmap(a0, a1);
724 LeaveCriticalSection( &X11DRV_CritSection );
725 TRACE(x11, "Ret XFreePixmap\n");
726 return r;
729 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
731 int r;
732 TRACE(x11, "Call XGetFontProperty\n");
733 EnterCriticalSection( &X11DRV_CritSection );
734 r = XGetFontProperty(a0, a1, a2);
735 LeaveCriticalSection( &X11DRV_CritSection );
736 TRACE(x11, "Ret XGetFontProperty\n");
737 return r;
740 int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
742 int r;
743 TRACE(x11, "Call XGetGeometry\n");
744 EnterCriticalSection( &X11DRV_CritSection );
745 r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
746 LeaveCriticalSection( &X11DRV_CritSection );
747 TRACE(x11, "Ret XGetGeometry\n");
748 return r;
751 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
753 int r;
754 TRACE(x11, "Call XGetInputFocus\n");
755 EnterCriticalSection( &X11DRV_CritSection );
756 r = XGetInputFocus(a0, a1, a2);
757 LeaveCriticalSection( &X11DRV_CritSection );
758 TRACE(x11, "Ret XGetInputFocus\n");
759 return r;
762 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
764 int r;
765 TRACE(x11, "Call XGetKeyboardControl\n");
766 EnterCriticalSection( &X11DRV_CritSection );
767 r = XGetKeyboardControl(a0, a1);
768 LeaveCriticalSection( &X11DRV_CritSection );
769 TRACE(x11, "Ret XGetKeyboardControl\n");
770 return r;
773 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
775 int r;
776 TRACE(x11, "Call XGetScreenSaver\n");
777 EnterCriticalSection( &X11DRV_CritSection );
778 r = XGetScreenSaver(a0, a1, a2, a3, a4);
779 LeaveCriticalSection( &X11DRV_CritSection );
780 TRACE(x11, "Ret XGetScreenSaver\n");
781 return r;
784 int TSXGetWindowProperty(Display* a0, Window a1, Atom a2, long a3, long a4, int a5, Atom a6, Atom* a7, int* a8, unsigned long* a9, unsigned long* a10, unsigned char** a11)
786 int r;
787 TRACE(x11, "Call XGetWindowProperty\n");
788 EnterCriticalSection( &X11DRV_CritSection );
789 r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
790 LeaveCriticalSection( &X11DRV_CritSection );
791 TRACE(x11, "Ret XGetWindowProperty\n");
792 return r;
795 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
797 int r;
798 TRACE(x11, "Call XGetWindowAttributes\n");
799 EnterCriticalSection( &X11DRV_CritSection );
800 r = XGetWindowAttributes(a0, a1, a2);
801 LeaveCriticalSection( &X11DRV_CritSection );
802 TRACE(x11, "Ret XGetWindowAttributes\n");
803 return r;
806 int TSXGrabServer(Display* a0)
808 int r;
809 TRACE(x11, "Call XGrabServer\n");
810 EnterCriticalSection( &X11DRV_CritSection );
811 r = XGrabServer(a0);
812 LeaveCriticalSection( &X11DRV_CritSection );
813 TRACE(x11, "Ret XGrabServer\n");
814 return r;
817 int TSXInstallColormap(Display* a0, Colormap a1)
819 int r;
820 TRACE(x11, "Call XInstallColormap\n");
821 EnterCriticalSection( &X11DRV_CritSection );
822 r = XInstallColormap(a0, a1);
823 LeaveCriticalSection( &X11DRV_CritSection );
824 TRACE(x11, "Ret XInstallColormap\n");
825 return r;
828 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
830 KeyCode r;
831 TRACE(x11, "Call XKeysymToKeycode\n");
832 EnterCriticalSection( &X11DRV_CritSection );
833 r = XKeysymToKeycode(a0, a1);
834 LeaveCriticalSection( &X11DRV_CritSection );
835 TRACE(x11, "Ret XKeysymToKeycode\n");
836 return r;
839 int TSXMapWindow(Display* a0, Window a1)
841 int r;
842 TRACE(x11, "Call XMapWindow\n");
843 EnterCriticalSection( &X11DRV_CritSection );
844 r = XMapWindow(a0, a1);
845 LeaveCriticalSection( &X11DRV_CritSection );
846 TRACE(x11, "Ret XMapWindow\n");
847 return r;
850 int TSXNextEvent(Display* a0, XEvent* a1)
852 int r;
853 TRACE(x11, "Call XNextEvent\n");
854 EnterCriticalSection( &X11DRV_CritSection );
855 r = XNextEvent(a0, a1);
856 LeaveCriticalSection( &X11DRV_CritSection );
857 TRACE(x11, "Ret XNextEvent\n");
858 return r;
861 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
863 int r;
864 TRACE(x11, "Call XParseGeometry\n");
865 EnterCriticalSection( &X11DRV_CritSection );
866 r = XParseGeometry(a0, a1, a2, a3, a4);
867 LeaveCriticalSection( &X11DRV_CritSection );
868 TRACE(x11, "Ret XParseGeometry\n");
869 return r;
872 int TSXPending(Display* a0)
874 int r;
875 TRACE(x11, "Call XPending\n");
876 EnterCriticalSection( &X11DRV_CritSection );
877 r = XPending(a0);
878 LeaveCriticalSection( &X11DRV_CritSection );
879 TRACE(x11, "Ret XPending\n");
880 return r;
883 int TSXPutBackEvent(Display* a0, XEvent* a1)
885 int r;
886 TRACE(x11, "Call XPutBackEvent\n");
887 EnterCriticalSection( &X11DRV_CritSection );
888 r = XPutBackEvent(a0, a1);
889 LeaveCriticalSection( &X11DRV_CritSection );
890 TRACE(x11, "Ret XPutBackEvent\n");
891 return r;
894 int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
896 int r;
897 TRACE(x11, "Call XPutImage\n");
898 EnterCriticalSection( &X11DRV_CritSection );
899 r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
900 LeaveCriticalSection( &X11DRV_CritSection );
901 TRACE(x11, "Ret XPutImage\n");
902 return r;
905 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
907 int r;
908 TRACE(x11, "Call XQueryColor\n");
909 EnterCriticalSection( &X11DRV_CritSection );
910 r = XQueryColor(a0, a1, a2);
911 LeaveCriticalSection( &X11DRV_CritSection );
912 TRACE(x11, "Ret XQueryColor\n");
913 return r;
916 int TSXQueryKeymap(Display* a0, char* a1)
918 int r;
919 TRACE(x11, "Call XQueryKeymap\n");
920 EnterCriticalSection( &X11DRV_CritSection );
921 r = XQueryKeymap(a0, a1);
922 LeaveCriticalSection( &X11DRV_CritSection );
923 TRACE(x11, "Ret XQueryKeymap\n");
924 return r;
927 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
929 int r;
930 TRACE(x11, "Call XQueryPointer\n");
931 EnterCriticalSection( &X11DRV_CritSection );
932 r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
933 LeaveCriticalSection( &X11DRV_CritSection );
934 TRACE(x11, "Ret XQueryPointer\n");
935 return r;
938 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
940 int r;
941 TRACE(x11, "Call XQueryTree\n");
942 EnterCriticalSection( &X11DRV_CritSection );
943 r = XQueryTree(a0, a1, a2, a3, a4, a5);
944 LeaveCriticalSection( &X11DRV_CritSection );
945 TRACE(x11, "Ret XQueryTree\n");
946 return r;
949 int TSXResetScreenSaver(Display* a0)
951 int r;
952 TRACE(x11, "Call XResetScreenSaver\n");
953 EnterCriticalSection( &X11DRV_CritSection );
954 r = XResetScreenSaver(a0);
955 LeaveCriticalSection( &X11DRV_CritSection );
956 TRACE(x11, "Ret XResetScreenSaver\n");
957 return r;
960 int TSXRestackWindows(Display* a0, Window* a1, int a2)
962 int r;
963 TRACE(x11, "Call XRestackWindows\n");
964 EnterCriticalSection( &X11DRV_CritSection );
965 r = XRestackWindows(a0, a1, a2);
966 LeaveCriticalSection( &X11DRV_CritSection );
967 TRACE(x11, "Ret XRestackWindows\n");
968 return r;
971 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
973 int r;
974 TRACE(x11, "Call XSendEvent\n");
975 EnterCriticalSection( &X11DRV_CritSection );
976 r = XSendEvent(a0, a1, a2, a3, a4);
977 LeaveCriticalSection( &X11DRV_CritSection );
978 TRACE(x11, "Ret XSendEvent\n");
979 return r;
982 int TSXSetArcMode(Display* a0, GC a1, int a2)
984 int r;
985 TRACE(x11, "Call XSetArcMode\n");
986 EnterCriticalSection( &X11DRV_CritSection );
987 r = XSetArcMode(a0, a1, a2);
988 LeaveCriticalSection( &X11DRV_CritSection );
989 TRACE(x11, "Ret XSetArcMode\n");
990 return r;
993 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
995 int r;
996 TRACE(x11, "Call XSetBackground\n");
997 EnterCriticalSection( &X11DRV_CritSection );
998 r = XSetBackground(a0, a1, a2);
999 LeaveCriticalSection( &X11DRV_CritSection );
1000 TRACE(x11, "Ret XSetBackground\n");
1001 return r;
1004 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
1006 int r;
1007 TRACE(x11, "Call XSetClipMask\n");
1008 EnterCriticalSection( &X11DRV_CritSection );
1009 r = XSetClipMask(a0, a1, a2);
1010 LeaveCriticalSection( &X11DRV_CritSection );
1011 TRACE(x11, "Ret XSetClipMask\n");
1012 return r;
1015 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
1017 int r;
1018 TRACE(x11, "Call XSetClipOrigin\n");
1019 EnterCriticalSection( &X11DRV_CritSection );
1020 r = XSetClipOrigin(a0, a1, a2, a3);
1021 LeaveCriticalSection( &X11DRV_CritSection );
1022 TRACE(x11, "Ret XSetClipOrigin\n");
1023 return r;
1026 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
1028 int r;
1029 TRACE(x11, "Call XSetClipRectangles\n");
1030 EnterCriticalSection( &X11DRV_CritSection );
1031 r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
1032 LeaveCriticalSection( &X11DRV_CritSection );
1033 TRACE(x11, "Ret XSetClipRectangles\n");
1034 return r;
1037 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
1039 int r;
1040 TRACE(x11, "Call XSetDashes\n");
1041 EnterCriticalSection( &X11DRV_CritSection );
1042 r = XSetDashes(a0, a1, a2, a3, a4);
1043 LeaveCriticalSection( &X11DRV_CritSection );
1044 TRACE(x11, "Ret XSetDashes\n");
1045 return r;
1048 int TSXSetFillStyle(Display* a0, GC a1, int a2)
1050 int r;
1051 TRACE(x11, "Call XSetFillStyle\n");
1052 EnterCriticalSection( &X11DRV_CritSection );
1053 r = XSetFillStyle(a0, a1, a2);
1054 LeaveCriticalSection( &X11DRV_CritSection );
1055 TRACE(x11, "Ret XSetFillStyle\n");
1056 return r;
1059 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
1061 int r;
1062 TRACE(x11, "Call XSetForeground\n");
1063 EnterCriticalSection( &X11DRV_CritSection );
1064 r = XSetForeground(a0, a1, a2);
1065 LeaveCriticalSection( &X11DRV_CritSection );
1066 TRACE(x11, "Ret XSetForeground\n");
1067 return r;
1070 int TSXSetFunction(Display* a0, GC a1, int a2)
1072 int r;
1073 TRACE(x11, "Call XSetFunction\n");
1074 EnterCriticalSection( &X11DRV_CritSection );
1075 r = XSetFunction(a0, a1, a2);
1076 LeaveCriticalSection( &X11DRV_CritSection );
1077 TRACE(x11, "Ret XSetFunction\n");
1078 return r;
1081 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
1083 int r;
1084 TRACE(x11, "Call XSetGraphicsExposures\n");
1085 EnterCriticalSection( &X11DRV_CritSection );
1086 r = XSetGraphicsExposures(a0, a1, a2);
1087 LeaveCriticalSection( &X11DRV_CritSection );
1088 TRACE(x11, "Ret XSetGraphicsExposures\n");
1089 return r;
1092 int TSXSetIconName(Display* a0, Window a1, const char* a2)
1094 int r;
1095 TRACE(x11, "Call XSetIconName\n");
1096 EnterCriticalSection( &X11DRV_CritSection );
1097 r = XSetIconName(a0, a1, a2);
1098 LeaveCriticalSection( &X11DRV_CritSection );
1099 TRACE(x11, "Ret XSetIconName\n");
1100 return r;
1103 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
1105 int r;
1106 TRACE(x11, "Call XSetInputFocus\n");
1107 EnterCriticalSection( &X11DRV_CritSection );
1108 r = XSetInputFocus(a0, a1, a2, a3);
1109 LeaveCriticalSection( &X11DRV_CritSection );
1110 TRACE(x11, "Ret XSetInputFocus\n");
1111 return r;
1114 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1116 int r;
1117 TRACE(x11, "Call XSetLineAttributes\n");
1118 EnterCriticalSection( &X11DRV_CritSection );
1119 r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1120 LeaveCriticalSection( &X11DRV_CritSection );
1121 TRACE(x11, "Ret XSetLineAttributes\n");
1122 return r;
1125 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1127 int r;
1128 TRACE(x11, "Call XSetScreenSaver\n");
1129 EnterCriticalSection( &X11DRV_CritSection );
1130 r = XSetScreenSaver(a0, a1, a2, a3, a4);
1131 LeaveCriticalSection( &X11DRV_CritSection );
1132 TRACE(x11, "Ret XSetScreenSaver\n");
1133 return r;
1136 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1138 int r;
1139 TRACE(x11, "Call XSetSelectionOwner\n");
1140 EnterCriticalSection( &X11DRV_CritSection );
1141 r = XSetSelectionOwner(a0, a1, a2, a3);
1142 LeaveCriticalSection( &X11DRV_CritSection );
1143 TRACE(x11, "Ret XSetSelectionOwner\n");
1144 return r;
1147 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1149 int r;
1150 TRACE(x11, "Call XSetSubwindowMode\n");
1151 EnterCriticalSection( &X11DRV_CritSection );
1152 r = XSetSubwindowMode(a0, a1, a2);
1153 LeaveCriticalSection( &X11DRV_CritSection );
1154 TRACE(x11, "Ret XSetSubwindowMode\n");
1155 return r;
1158 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1160 int r;
1161 TRACE(x11, "Call XSetWindowColormap\n");
1162 EnterCriticalSection( &X11DRV_CritSection );
1163 r = XSetWindowColormap(a0, a1, a2);
1164 LeaveCriticalSection( &X11DRV_CritSection );
1165 TRACE(x11, "Ret XSetWindowColormap\n");
1166 return r;
1169 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1171 int r;
1172 TRACE(x11, "Call XStoreColor\n");
1173 EnterCriticalSection( &X11DRV_CritSection );
1174 r = XStoreColor(a0, a1, a2);
1175 LeaveCriticalSection( &X11DRV_CritSection );
1176 TRACE(x11, "Ret XStoreColor\n");
1177 return r;
1180 int TSXStoreName(Display* a0, Window a1, const char* a2)
1182 int r;
1183 TRACE(x11, "Call XStoreName\n");
1184 EnterCriticalSection( &X11DRV_CritSection );
1185 r = XStoreName(a0, a1, a2);
1186 LeaveCriticalSection( &X11DRV_CritSection );
1187 TRACE(x11, "Ret XStoreName\n");
1188 return r;
1191 int TSXSync(Display* a0, int a1)
1193 int r;
1194 TRACE(x11, "Call XSync\n");
1195 EnterCriticalSection( &X11DRV_CritSection );
1196 r = XSync(a0, a1);
1197 LeaveCriticalSection( &X11DRV_CritSection );
1198 TRACE(x11, "Ret XSync\n");
1199 return r;
1202 int TSXTextExtents(XFontStruct* a0, const char* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1204 int r;
1205 TRACE(x11, "Call XTextExtents\n");
1206 EnterCriticalSection( &X11DRV_CritSection );
1207 r = XTextExtents(a0, a1, a2, a3, a4, a5, a6);
1208 LeaveCriticalSection( &X11DRV_CritSection );
1209 TRACE(x11, "Ret XTextExtents\n");
1210 return r;
1213 int TSXTextWidth(XFontStruct* a0, const char* a1, int a2)
1215 int r;
1216 TRACE(x11, "Call XTextWidth\n");
1217 EnterCriticalSection( &X11DRV_CritSection );
1218 r = XTextWidth(a0, a1, a2);
1219 LeaveCriticalSection( &X11DRV_CritSection );
1220 TRACE(x11, "Ret XTextWidth\n");
1221 return r;
1224 int TSXUngrabServer(Display* a0)
1226 int r;
1227 TRACE(x11, "Call XUngrabServer\n");
1228 EnterCriticalSection( &X11DRV_CritSection );
1229 r = XUngrabServer(a0);
1230 LeaveCriticalSection( &X11DRV_CritSection );
1231 TRACE(x11, "Ret XUngrabServer\n");
1232 return r;
1235 int TSXUninstallColormap(Display* a0, Colormap a1)
1237 int r;
1238 TRACE(x11, "Call XUninstallColormap\n");
1239 EnterCriticalSection( &X11DRV_CritSection );
1240 r = XUninstallColormap(a0, a1);
1241 LeaveCriticalSection( &X11DRV_CritSection );
1242 TRACE(x11, "Ret XUninstallColormap\n");
1243 return r;
1246 int TSXUnmapWindow(Display* a0, Window a1)
1248 int r;
1249 TRACE(x11, "Call XUnmapWindow\n");
1250 EnterCriticalSection( &X11DRV_CritSection );
1251 r = XUnmapWindow(a0, a1);
1252 LeaveCriticalSection( &X11DRV_CritSection );
1253 TRACE(x11, "Ret XUnmapWindow\n");
1254 return r;
1257 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1259 int r;
1260 TRACE(x11, "Call XWarpPointer\n");
1261 EnterCriticalSection( &X11DRV_CritSection );
1262 r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1263 LeaveCriticalSection( &X11DRV_CritSection );
1264 TRACE(x11, "Ret XWarpPointer\n");
1265 return r;
1268 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1270 XIM r;
1271 TRACE(x11, "Call XOpenIM\n");
1272 EnterCriticalSection( &X11DRV_CritSection );
1273 r = XOpenIM(a0, a1, a2, a3);
1274 LeaveCriticalSection( &X11DRV_CritSection );
1275 TRACE(x11, "Ret XOpenIM\n");
1276 return r;
1279 int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
1281 int (*r)(Display *);
1282 TRACE(x11, "Call XSynchronize\n");
1283 EnterCriticalSection( &X11DRV_CritSection );
1284 r = XSynchronize(a0, a1);
1285 LeaveCriticalSection( &X11DRV_CritSection );
1286 TRACE(x11, "Ret XSynchronize\n");
1287 return r;
1290 extern void _XInitImageFuncPtrs(XImage *);
1292 void TS_XInitImageFuncPtrs(XImage *a0)
1294 TRACE(x11, "Call _XInitImageFuncPtrs\n");
1295 EnterCriticalSection( &X11DRV_CritSection );
1296 _XInitImageFuncPtrs(a0);
1297 LeaveCriticalSection( &X11DRV_CritSection );
1298 TRACE(x11, "Ret _XInitImageFuncPtrs\n");
1302 #endif /* !defined(X_DISPLAY_MISSING) */