Encapsulated Wine internal data into an ifdef __WINE__.
[wine.git] / tsx11 / ts_xlib.c
blob6912f058736b4e80fc2fb53c778ad8a36be444d2
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>
14 #include "debugtools.h"
15 #include "ts_xlib.h"
16 #include "x11drv.h"
18 DEFAULT_DEBUG_CHANNEL(x11)
20 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
22 XFontStruct * r;
23 TRACE("Call XLoadQueryFont\n");
24 EnterCriticalSection( &X11DRV_CritSection );
25 r = XLoadQueryFont(a0, a1);
26 LeaveCriticalSection( &X11DRV_CritSection );
27 TRACE("Ret XLoadQueryFont\n");
28 return r;
31 XModifierKeymap * TSXGetModifierMapping(Display* a0)
33 XModifierKeymap * r;
34 TRACE("Call XGetModifierMapping\n");
35 EnterCriticalSection( &X11DRV_CritSection );
36 r = XGetModifierMapping(a0);
37 LeaveCriticalSection( &X11DRV_CritSection );
38 TRACE("Ret XGetModifierMapping\n");
39 return r;
42 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)
44 XImage * r;
45 TRACE("Call XCreateImage\n");
46 EnterCriticalSection( &X11DRV_CritSection );
47 r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
48 LeaveCriticalSection( &X11DRV_CritSection );
49 TRACE("Ret XCreateImage\n");
50 return r;
53 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
55 XImage * r;
56 TRACE("Call XGetImage\n");
57 EnterCriticalSection( &X11DRV_CritSection );
58 r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
59 LeaveCriticalSection( &X11DRV_CritSection );
60 TRACE("Ret XGetImage\n");
61 return r;
64 Display * TSXOpenDisplay(const char* a0)
66 Display * r;
67 TRACE("Call XOpenDisplay\n");
68 EnterCriticalSection( &X11DRV_CritSection );
69 r = XOpenDisplay(a0);
70 LeaveCriticalSection( &X11DRV_CritSection );
71 TRACE("Ret XOpenDisplay\n");
72 return r;
75 void TSXrmInitialize(void)
77 TRACE("Call XrmInitialize\n");
78 EnterCriticalSection( &X11DRV_CritSection );
79 XrmInitialize();
80 LeaveCriticalSection( &X11DRV_CritSection );
81 TRACE("Ret XrmInitialize\n");
84 char * TSXGetAtomName(Display* a0, Atom a1)
86 char * r;
87 TRACE("Call XGetAtomName\n");
88 EnterCriticalSection( &X11DRV_CritSection );
89 r = XGetAtomName(a0, a1);
90 LeaveCriticalSection( &X11DRV_CritSection );
91 TRACE("Ret XGetAtomName\n");
92 return r;
95 char * TSXKeysymToString(KeySym a0)
97 char * r;
98 TRACE("Call XKeysymToString\n");
99 EnterCriticalSection( &X11DRV_CritSection );
100 r = XKeysymToString(a0);
101 LeaveCriticalSection( &X11DRV_CritSection );
102 TRACE("Ret XKeysymToString\n");
103 return r;
106 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
108 Atom r;
109 TRACE("Call XInternAtom\n");
110 EnterCriticalSection( &X11DRV_CritSection );
111 r = XInternAtom(a0, a1, a2);
112 LeaveCriticalSection( &X11DRV_CritSection );
113 TRACE("Ret XInternAtom\n");
114 return r;
117 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
119 Colormap r;
120 TRACE("Call XCopyColormapAndFree\n");
121 EnterCriticalSection( &X11DRV_CritSection );
122 r = XCopyColormapAndFree(a0, a1);
123 LeaveCriticalSection( &X11DRV_CritSection );
124 TRACE("Ret XCopyColormapAndFree\n");
125 return r;
128 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
130 Colormap r;
131 TRACE("Call XCreateColormap\n");
132 EnterCriticalSection( &X11DRV_CritSection );
133 r = XCreateColormap(a0, a1, a2, a3);
134 LeaveCriticalSection( &X11DRV_CritSection );
135 TRACE("Ret XCreateColormap\n");
136 return r;
139 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
141 Cursor r;
142 TRACE("Call XCreatePixmapCursor\n");
143 EnterCriticalSection( &X11DRV_CritSection );
144 r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
145 LeaveCriticalSection( &X11DRV_CritSection );
146 TRACE("Ret XCreatePixmapCursor\n");
147 return r;
150 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
152 Cursor r;
153 TRACE("Call XCreateFontCursor\n");
154 EnterCriticalSection( &X11DRV_CritSection );
155 r = XCreateFontCursor(a0, a1);
156 LeaveCriticalSection( &X11DRV_CritSection );
157 TRACE("Ret XCreateFontCursor\n");
158 return r;
161 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
163 GC r;
164 TRACE("Call XCreateGC\n");
165 EnterCriticalSection( &X11DRV_CritSection );
166 r = XCreateGC(a0, a1, a2, a3);
167 LeaveCriticalSection( &X11DRV_CritSection );
168 TRACE("Ret XCreateGC\n");
169 return r;
172 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
174 Pixmap r;
175 TRACE("Call XCreatePixmap\n");
176 EnterCriticalSection( &X11DRV_CritSection );
177 r = XCreatePixmap(a0, a1, a2, a3, a4);
178 LeaveCriticalSection( &X11DRV_CritSection );
179 TRACE("Ret XCreatePixmap\n");
180 return r;
183 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
185 Pixmap r;
186 TRACE("Call XCreateBitmapFromData\n");
187 EnterCriticalSection( &X11DRV_CritSection );
188 r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
189 LeaveCriticalSection( &X11DRV_CritSection );
190 TRACE("Ret XCreateBitmapFromData\n");
191 return r;
194 Window TSXGetSelectionOwner(Display* a0, Atom a1)
196 Window r;
197 TRACE("Call XGetSelectionOwner\n");
198 EnterCriticalSection( &X11DRV_CritSection );
199 r = XGetSelectionOwner(a0, a1);
200 LeaveCriticalSection( &X11DRV_CritSection );
201 TRACE("Ret XGetSelectionOwner\n");
202 return r;
205 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)
207 Window r;
208 TRACE("Call XCreateWindow\n");
209 EnterCriticalSection( &X11DRV_CritSection );
210 r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
211 LeaveCriticalSection( &X11DRV_CritSection );
212 TRACE("Ret XCreateWindow\n");
213 return r;
216 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
218 char ** r;
219 TRACE("Call XListFonts\n");
220 EnterCriticalSection( &X11DRV_CritSection );
221 r = XListFonts(a0, a1, a2, a3);
222 LeaveCriticalSection( &X11DRV_CritSection );
223 TRACE("Ret XListFonts\n");
224 return r;
227 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
229 KeySym r;
230 TRACE("Call XKeycodeToKeysym\n");
231 EnterCriticalSection( &X11DRV_CritSection );
232 r = XKeycodeToKeysym(a0, a1, a2);
233 LeaveCriticalSection( &X11DRV_CritSection );
234 TRACE("Ret XKeycodeToKeysym\n");
235 return r;
238 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
240 KeySym r;
241 TRACE("Call XLookupKeysym\n");
242 EnterCriticalSection( &X11DRV_CritSection );
243 r = XLookupKeysym(a0, a1);
244 LeaveCriticalSection( &X11DRV_CritSection );
245 TRACE("Ret XLookupKeysym\n");
246 return r;
249 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
251 KeySym * r;
252 TRACE("Call XGetKeyboardMapping\n");
253 EnterCriticalSection( &X11DRV_CritSection );
254 r = XGetKeyboardMapping(a0, a1, a2, a3);
255 LeaveCriticalSection( &X11DRV_CritSection );
256 TRACE("Ret XGetKeyboardMapping\n");
257 return r;
260 char * TSXResourceManagerString(Display* a0)
262 char * r;
263 TRACE("Call XResourceManagerString\n");
264 EnterCriticalSection( &X11DRV_CritSection );
265 r = XResourceManagerString(a0);
266 LeaveCriticalSection( &X11DRV_CritSection );
267 TRACE("Ret XResourceManagerString\n");
268 return r;
271 int TSXInitThreads(void)
273 int r;
274 TRACE("Call XInitThreads\n");
275 EnterCriticalSection( &X11DRV_CritSection );
276 r = XInitThreads();
277 LeaveCriticalSection( &X11DRV_CritSection );
278 TRACE("Ret XInitThreads\n");
279 return r;
282 int * TSXListDepths(Display* a0, int a1, int* a2)
284 int * r;
285 TRACE("Call XListDepths\n");
286 EnterCriticalSection( &X11DRV_CritSection );
287 r = XListDepths(a0, a1, a2);
288 LeaveCriticalSection( &X11DRV_CritSection );
289 TRACE("Ret XListDepths\n");
290 return r;
293 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
295 int r;
296 TRACE("Call XReconfigureWMWindow\n");
297 EnterCriticalSection( &X11DRV_CritSection );
298 r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
299 LeaveCriticalSection( &X11DRV_CritSection );
300 TRACE("Ret XReconfigureWMWindow\n");
301 return r;
304 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
306 int r;
307 TRACE("Call XSetWMProtocols\n");
308 EnterCriticalSection( &X11DRV_CritSection );
309 r = XSetWMProtocols(a0, a1, a2, a3);
310 LeaveCriticalSection( &X11DRV_CritSection );
311 TRACE("Ret XSetWMProtocols\n");
312 return r;
315 int TSXIconifyWindow(Display* a0, Window a1, int a2)
317 int r;
318 TRACE("Call XIconifyWindow\n");
319 EnterCriticalSection( &X11DRV_CritSection );
320 r = XIconifyWindow(a0, a1, a2);
321 LeaveCriticalSection( &X11DRV_CritSection );
322 TRACE("Ret XIconifyWindow\n");
323 return r;
326 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
328 int r;
329 TRACE("Call XSetTransientForHint\n");
330 EnterCriticalSection( &X11DRV_CritSection );
331 r = XSetTransientForHint(a0, a1, a2);
332 LeaveCriticalSection( &X11DRV_CritSection );
333 TRACE("Ret XSetTransientForHint\n");
334 return r;
337 int TSXActivateScreenSaver(Display* a0)
339 int r;
340 TRACE("Call XActivateScreenSaver\n");
341 EnterCriticalSection( &X11DRV_CritSection );
342 r = XActivateScreenSaver(a0);
343 LeaveCriticalSection( &X11DRV_CritSection );
344 TRACE("Ret XActivateScreenSaver\n");
345 return r;
348 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
350 int r;
351 TRACE("Call XAllocColor\n");
352 EnterCriticalSection( &X11DRV_CritSection );
353 r = XAllocColor(a0, a1, a2);
354 LeaveCriticalSection( &X11DRV_CritSection );
355 TRACE("Ret XAllocColor\n");
356 return r;
359 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
361 int r;
362 TRACE("Call XAllocColorCells\n");
363 EnterCriticalSection( &X11DRV_CritSection );
364 r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
365 LeaveCriticalSection( &X11DRV_CritSection );
366 TRACE("Ret XAllocColorCells\n");
367 return r;
370 int TSXBell(Display* a0, int a1)
372 int r;
373 TRACE("Call XBell\n");
374 EnterCriticalSection( &X11DRV_CritSection );
375 r = XBell(a0, a1);
376 LeaveCriticalSection( &X11DRV_CritSection );
377 TRACE("Ret XBell\n");
378 return r;
381 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
383 int r;
384 TRACE("Call XChangeGC\n");
385 EnterCriticalSection( &X11DRV_CritSection );
386 r = XChangeGC(a0, a1, a2, a3);
387 LeaveCriticalSection( &X11DRV_CritSection );
388 TRACE("Ret XChangeGC\n");
389 return r;
392 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
394 int r;
395 TRACE("Call XChangeKeyboardControl\n");
396 EnterCriticalSection( &X11DRV_CritSection );
397 r = XChangeKeyboardControl(a0, a1, a2);
398 LeaveCriticalSection( &X11DRV_CritSection );
399 TRACE("Ret XChangeKeyboardControl\n");
400 return r;
403 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
405 int r;
406 TRACE("Call XChangeProperty\n");
407 EnterCriticalSection( &X11DRV_CritSection );
408 r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
409 LeaveCriticalSection( &X11DRV_CritSection );
410 TRACE("Ret XChangeProperty\n");
411 return r;
414 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
416 int r;
417 TRACE("Call XChangeWindowAttributes\n");
418 EnterCriticalSection( &X11DRV_CritSection );
419 r = XChangeWindowAttributes(a0, a1, a2, a3);
420 LeaveCriticalSection( &X11DRV_CritSection );
421 TRACE("Ret XChangeWindowAttributes\n");
422 return r;
425 int TSXCheckTypedEvent(Display* a0, int a1, XEvent* a2)
427 int r;
428 TRACE("Call XCheckTypedEvent\n");
429 EnterCriticalSection( &X11DRV_CritSection );
430 r = XCheckTypedEvent(a0, a1, a2);
431 LeaveCriticalSection( &X11DRV_CritSection );
432 TRACE("Ret XCheckTypedEvent\n");
433 return r;
436 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
438 int r;
439 TRACE("Call XCheckTypedWindowEvent\n");
440 EnterCriticalSection( &X11DRV_CritSection );
441 r = XCheckTypedWindowEvent(a0, a1, a2, a3);
442 LeaveCriticalSection( &X11DRV_CritSection );
443 TRACE("Ret XCheckTypedWindowEvent\n");
444 return r;
447 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
449 int r;
450 TRACE("Call XCheckWindowEvent\n");
451 EnterCriticalSection( &X11DRV_CritSection );
452 r = XCheckWindowEvent(a0, a1, a2, a3);
453 LeaveCriticalSection( &X11DRV_CritSection );
454 TRACE("Ret XCheckWindowEvent\n");
455 return r;
458 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
460 int r;
461 TRACE("Call XConvertSelection\n");
462 EnterCriticalSection( &X11DRV_CritSection );
463 r = XConvertSelection(a0, a1, a2, a3, a4, a5);
464 LeaveCriticalSection( &X11DRV_CritSection );
465 TRACE("Ret XConvertSelection\n");
466 return r;
469 int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
471 int r;
472 TRACE("Call XCopyArea\n");
473 EnterCriticalSection( &X11DRV_CritSection );
474 r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
475 LeaveCriticalSection( &X11DRV_CritSection );
476 TRACE("Ret XCopyArea\n");
477 return r;
480 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)
482 int r;
483 TRACE("Call XCopyPlane\n");
484 EnterCriticalSection( &X11DRV_CritSection );
485 r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
486 LeaveCriticalSection( &X11DRV_CritSection );
487 TRACE("Ret XCopyPlane\n");
488 return r;
491 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
493 int r;
494 TRACE("Call XDefineCursor\n");
495 EnterCriticalSection( &X11DRV_CritSection );
496 r = XDefineCursor(a0, a1, a2);
497 LeaveCriticalSection( &X11DRV_CritSection );
498 TRACE("Ret XDefineCursor\n");
499 return r;
502 int TSXDeleteProperty(Display* a0, Window a1, Atom a2)
504 int r;
505 TRACE("Call XDeleteProperty\n");
506 EnterCriticalSection( &X11DRV_CritSection );
507 r = XDeleteProperty(a0, a1, a2);
508 LeaveCriticalSection( &X11DRV_CritSection );
509 TRACE("Ret XDeleteProperty\n");
510 return r;
513 int TSXDestroyWindow(Display* a0, Window a1)
515 int r;
516 TRACE("Call XDestroyWindow\n");
517 EnterCriticalSection( &X11DRV_CritSection );
518 r = XDestroyWindow(a0, a1);
519 LeaveCriticalSection( &X11DRV_CritSection );
520 TRACE("Ret XDestroyWindow\n");
521 return r;
524 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
526 int r;
527 TRACE("Call XDisplayKeycodes\n");
528 EnterCriticalSection( &X11DRV_CritSection );
529 r = XDisplayKeycodes(a0, a1, a2);
530 LeaveCriticalSection( &X11DRV_CritSection );
531 TRACE("Ret XDisplayKeycodes\n");
532 return r;
535 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
537 int r;
538 TRACE("Call XDrawArc\n");
539 EnterCriticalSection( &X11DRV_CritSection );
540 r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
541 LeaveCriticalSection( &X11DRV_CritSection );
542 TRACE("Ret XDrawArc\n");
543 return r;
546 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
548 int r;
549 TRACE("Call XDrawLine\n");
550 EnterCriticalSection( &X11DRV_CritSection );
551 r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
552 LeaveCriticalSection( &X11DRV_CritSection );
553 TRACE("Ret XDrawLine\n");
554 return r;
557 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
559 int r;
560 TRACE("Call XDrawLines\n");
561 EnterCriticalSection( &X11DRV_CritSection );
562 r = XDrawLines(a0, a1, a2, a3, a4, a5);
563 LeaveCriticalSection( &X11DRV_CritSection );
564 TRACE("Ret XDrawLines\n");
565 return r;
568 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
570 int r;
571 TRACE("Call XDrawPoint\n");
572 EnterCriticalSection( &X11DRV_CritSection );
573 r = XDrawPoint(a0, a1, a2, a3, a4);
574 LeaveCriticalSection( &X11DRV_CritSection );
575 TRACE("Ret XDrawPoint\n");
576 return r;
579 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
581 int r;
582 TRACE("Call XDrawRectangle\n");
583 EnterCriticalSection( &X11DRV_CritSection );
584 r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
585 LeaveCriticalSection( &X11DRV_CritSection );
586 TRACE("Ret XDrawRectangle\n");
587 return r;
590 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
592 int r;
593 TRACE("Call XDrawSegments\n");
594 EnterCriticalSection( &X11DRV_CritSection );
595 r = XDrawSegments(a0, a1, a2, a3, a4);
596 LeaveCriticalSection( &X11DRV_CritSection );
597 TRACE("Ret XDrawSegments\n");
598 return r;
601 int TSXDrawString16(Display* a0, Drawable a1, GC a2, int a3, int a4, const XChar2b* a5, int a6)
603 int r;
604 TRACE("Call XDrawString16\n");
605 EnterCriticalSection( &X11DRV_CritSection );
606 r = XDrawString16(a0, a1, a2, a3, a4, a5, a6);
607 LeaveCriticalSection( &X11DRV_CritSection );
608 TRACE("Ret XDrawString16\n");
609 return r;
612 int TSXDrawText16(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem16* a5, int a6)
614 int r;
615 TRACE("Call XDrawText16\n");
616 EnterCriticalSection( &X11DRV_CritSection );
617 r = XDrawText16(a0, a1, a2, a3, a4, a5, a6);
618 LeaveCriticalSection( &X11DRV_CritSection );
619 TRACE("Ret XDrawText16\n");
620 return r;
623 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
625 int r;
626 TRACE("Call XFillArc\n");
627 EnterCriticalSection( &X11DRV_CritSection );
628 r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
629 LeaveCriticalSection( &X11DRV_CritSection );
630 TRACE("Ret XFillArc\n");
631 return r;
634 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
636 int r;
637 TRACE("Call XFillPolygon\n");
638 EnterCriticalSection( &X11DRV_CritSection );
639 r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
640 LeaveCriticalSection( &X11DRV_CritSection );
641 TRACE("Ret XFillPolygon\n");
642 return r;
645 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
647 int r;
648 TRACE("Call XFillRectangle\n");
649 EnterCriticalSection( &X11DRV_CritSection );
650 r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
651 LeaveCriticalSection( &X11DRV_CritSection );
652 TRACE("Ret XFillRectangle\n");
653 return r;
656 int TSXFlush(Display* a0)
658 int r;
659 TRACE("Call XFlush\n");
660 EnterCriticalSection( &X11DRV_CritSection );
661 r = XFlush(a0);
662 LeaveCriticalSection( &X11DRV_CritSection );
663 TRACE("Ret XFlush\n");
664 return r;
667 int TSXFree(void* a0)
669 int r;
670 TRACE("Call XFree\n");
671 EnterCriticalSection( &X11DRV_CritSection );
672 r = XFree(a0);
673 LeaveCriticalSection( &X11DRV_CritSection );
674 TRACE("Ret XFree\n");
675 return r;
678 int TSXFreeColormap(Display* a0, Colormap a1)
680 int r;
681 TRACE("Call XFreeColormap\n");
682 EnterCriticalSection( &X11DRV_CritSection );
683 r = XFreeColormap(a0, a1);
684 LeaveCriticalSection( &X11DRV_CritSection );
685 TRACE("Ret XFreeColormap\n");
686 return r;
689 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
691 int r;
692 TRACE("Call XFreeColors\n");
693 EnterCriticalSection( &X11DRV_CritSection );
694 r = XFreeColors(a0, a1, a2, a3, a4);
695 LeaveCriticalSection( &X11DRV_CritSection );
696 TRACE("Ret XFreeColors\n");
697 return r;
700 int TSXFreeCursor(Display* a0, Cursor a1)
702 int r;
703 TRACE("Call XFreeCursor\n");
704 EnterCriticalSection( &X11DRV_CritSection );
705 r = XFreeCursor(a0, a1);
706 LeaveCriticalSection( &X11DRV_CritSection );
707 TRACE("Ret XFreeCursor\n");
708 return r;
711 int TSXFreeFont(Display* a0, XFontStruct* a1)
713 int r;
714 TRACE("Call XFreeFont\n");
715 EnterCriticalSection( &X11DRV_CritSection );
716 r = XFreeFont(a0, a1);
717 LeaveCriticalSection( &X11DRV_CritSection );
718 TRACE("Ret XFreeFont\n");
719 return r;
722 int TSXFreeFontNames(char** a0)
724 int r;
725 TRACE("Call XFreeFontNames\n");
726 EnterCriticalSection( &X11DRV_CritSection );
727 r = XFreeFontNames(a0);
728 LeaveCriticalSection( &X11DRV_CritSection );
729 TRACE("Ret XFreeFontNames\n");
730 return r;
733 int TSXFreeGC(Display* a0, GC a1)
735 int r;
736 TRACE("Call XFreeGC\n");
737 EnterCriticalSection( &X11DRV_CritSection );
738 r = XFreeGC(a0, a1);
739 LeaveCriticalSection( &X11DRV_CritSection );
740 TRACE("Ret XFreeGC\n");
741 return r;
744 int TSXFreeModifiermap(XModifierKeymap* a0)
746 int r;
747 TRACE("Call XFreeModifiermap\n");
748 EnterCriticalSection( &X11DRV_CritSection );
749 r = XFreeModifiermap(a0);
750 LeaveCriticalSection( &X11DRV_CritSection );
751 TRACE("Ret XFreeModifiermap\n");
752 return r;
755 int TSXFreePixmap(Display* a0, Pixmap a1)
757 int r;
758 TRACE("Call XFreePixmap\n");
759 EnterCriticalSection( &X11DRV_CritSection );
760 r = XFreePixmap(a0, a1);
761 LeaveCriticalSection( &X11DRV_CritSection );
762 TRACE("Ret XFreePixmap\n");
763 return r;
766 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
768 int r;
769 TRACE("Call XGetFontProperty\n");
770 EnterCriticalSection( &X11DRV_CritSection );
771 r = XGetFontProperty(a0, a1, a2);
772 LeaveCriticalSection( &X11DRV_CritSection );
773 TRACE("Ret XGetFontProperty\n");
774 return r;
777 int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
779 int r;
780 TRACE("Call XGetGeometry\n");
781 EnterCriticalSection( &X11DRV_CritSection );
782 r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
783 LeaveCriticalSection( &X11DRV_CritSection );
784 TRACE("Ret XGetGeometry\n");
785 return r;
788 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
790 int r;
791 TRACE("Call XGetInputFocus\n");
792 EnterCriticalSection( &X11DRV_CritSection );
793 r = XGetInputFocus(a0, a1, a2);
794 LeaveCriticalSection( &X11DRV_CritSection );
795 TRACE("Ret XGetInputFocus\n");
796 return r;
799 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
801 int r;
802 TRACE("Call XGetKeyboardControl\n");
803 EnterCriticalSection( &X11DRV_CritSection );
804 r = XGetKeyboardControl(a0, a1);
805 LeaveCriticalSection( &X11DRV_CritSection );
806 TRACE("Ret XGetKeyboardControl\n");
807 return r;
810 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
812 int r;
813 TRACE("Call XGetScreenSaver\n");
814 EnterCriticalSection( &X11DRV_CritSection );
815 r = XGetScreenSaver(a0, a1, a2, a3, a4);
816 LeaveCriticalSection( &X11DRV_CritSection );
817 TRACE("Ret XGetScreenSaver\n");
818 return r;
821 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)
823 int r;
824 TRACE("Call XGetWindowProperty\n");
825 EnterCriticalSection( &X11DRV_CritSection );
826 r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
827 LeaveCriticalSection( &X11DRV_CritSection );
828 TRACE("Ret XGetWindowProperty\n");
829 return r;
832 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
834 int r;
835 TRACE("Call XGetWindowAttributes\n");
836 EnterCriticalSection( &X11DRV_CritSection );
837 r = XGetWindowAttributes(a0, a1, a2);
838 LeaveCriticalSection( &X11DRV_CritSection );
839 TRACE("Ret XGetWindowAttributes\n");
840 return r;
843 int TSXGrabKeyboard(Display* a0, Window a1, int a2, int a3, int a4, Time a5)
845 int r;
846 TRACE("Call XGrabKeyboard\n");
847 EnterCriticalSection( &X11DRV_CritSection );
848 r = XGrabKeyboard(a0, a1, a2, a3, a4, a5);
849 LeaveCriticalSection( &X11DRV_CritSection );
850 TRACE("Ret XGrabKeyboard\n");
851 return r;
854 int TSXGrabPointer(Display* a0, Window a1, int a2, unsigned int a3, int a4, int a5, Window a6, Cursor a7, Time a8)
856 int r;
857 TRACE("Call XGrabPointer\n");
858 EnterCriticalSection( &X11DRV_CritSection );
859 r = XGrabPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
860 LeaveCriticalSection( &X11DRV_CritSection );
861 TRACE("Ret XGrabPointer\n");
862 return r;
865 int TSXGrabServer(Display* a0)
867 int r;
868 TRACE("Call XGrabServer\n");
869 EnterCriticalSection( &X11DRV_CritSection );
870 r = XGrabServer(a0);
871 LeaveCriticalSection( &X11DRV_CritSection );
872 TRACE("Ret XGrabServer\n");
873 return r;
876 int TSXInstallColormap(Display* a0, Colormap a1)
878 int r;
879 TRACE("Call XInstallColormap\n");
880 EnterCriticalSection( &X11DRV_CritSection );
881 r = XInstallColormap(a0, a1);
882 LeaveCriticalSection( &X11DRV_CritSection );
883 TRACE("Ret XInstallColormap\n");
884 return r;
887 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
889 KeyCode r;
890 TRACE("Call XKeysymToKeycode\n");
891 EnterCriticalSection( &X11DRV_CritSection );
892 r = XKeysymToKeycode(a0, a1);
893 LeaveCriticalSection( &X11DRV_CritSection );
894 TRACE("Ret XKeysymToKeycode\n");
895 return r;
898 int TSXMapWindow(Display* a0, Window a1)
900 int r;
901 TRACE("Call XMapWindow\n");
902 EnterCriticalSection( &X11DRV_CritSection );
903 r = XMapWindow(a0, a1);
904 LeaveCriticalSection( &X11DRV_CritSection );
905 TRACE("Ret XMapWindow\n");
906 return r;
909 int TSXNextEvent(Display* a0, XEvent* a1)
911 int r;
912 TRACE("Call XNextEvent\n");
913 EnterCriticalSection( &X11DRV_CritSection );
914 r = XNextEvent(a0, a1);
915 LeaveCriticalSection( &X11DRV_CritSection );
916 TRACE("Ret XNextEvent\n");
917 return r;
920 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
922 int r;
923 TRACE("Call XParseGeometry\n");
924 EnterCriticalSection( &X11DRV_CritSection );
925 r = XParseGeometry(a0, a1, a2, a3, a4);
926 LeaveCriticalSection( &X11DRV_CritSection );
927 TRACE("Ret XParseGeometry\n");
928 return r;
931 int TSXPending(Display* a0)
933 int r;
934 TRACE("Call XPending\n");
935 EnterCriticalSection( &X11DRV_CritSection );
936 r = XPending(a0);
937 LeaveCriticalSection( &X11DRV_CritSection );
938 TRACE("Ret XPending\n");
939 return r;
942 int TSXPutBackEvent(Display* a0, XEvent* a1)
944 int r;
945 TRACE("Call XPutBackEvent\n");
946 EnterCriticalSection( &X11DRV_CritSection );
947 r = XPutBackEvent(a0, a1);
948 LeaveCriticalSection( &X11DRV_CritSection );
949 TRACE("Ret XPutBackEvent\n");
950 return r;
953 int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
955 int r;
956 TRACE("Call XPutImage\n");
957 EnterCriticalSection( &X11DRV_CritSection );
958 r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
959 LeaveCriticalSection( &X11DRV_CritSection );
960 TRACE("Ret XPutImage\n");
961 return r;
964 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
966 int r;
967 TRACE("Call XQueryColor\n");
968 EnterCriticalSection( &X11DRV_CritSection );
969 r = XQueryColor(a0, a1, a2);
970 LeaveCriticalSection( &X11DRV_CritSection );
971 TRACE("Ret XQueryColor\n");
972 return r;
975 int TSXQueryKeymap(Display* a0, char* a1)
977 int r;
978 TRACE("Call XQueryKeymap\n");
979 EnterCriticalSection( &X11DRV_CritSection );
980 r = XQueryKeymap(a0, a1);
981 LeaveCriticalSection( &X11DRV_CritSection );
982 TRACE("Ret XQueryKeymap\n");
983 return r;
986 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
988 int r;
989 TRACE("Call XQueryPointer\n");
990 EnterCriticalSection( &X11DRV_CritSection );
991 r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
992 LeaveCriticalSection( &X11DRV_CritSection );
993 TRACE("Ret XQueryPointer\n");
994 return r;
997 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
999 int r;
1000 TRACE("Call XQueryTree\n");
1001 EnterCriticalSection( &X11DRV_CritSection );
1002 r = XQueryTree(a0, a1, a2, a3, a4, a5);
1003 LeaveCriticalSection( &X11DRV_CritSection );
1004 TRACE("Ret XQueryTree\n");
1005 return r;
1008 int TSXResetScreenSaver(Display* a0)
1010 int r;
1011 TRACE("Call XResetScreenSaver\n");
1012 EnterCriticalSection( &X11DRV_CritSection );
1013 r = XResetScreenSaver(a0);
1014 LeaveCriticalSection( &X11DRV_CritSection );
1015 TRACE("Ret XResetScreenSaver\n");
1016 return r;
1019 int TSXRestackWindows(Display* a0, Window* a1, int a2)
1021 int r;
1022 TRACE("Call XRestackWindows\n");
1023 EnterCriticalSection( &X11DRV_CritSection );
1024 r = XRestackWindows(a0, a1, a2);
1025 LeaveCriticalSection( &X11DRV_CritSection );
1026 TRACE("Ret XRestackWindows\n");
1027 return r;
1030 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
1032 int r;
1033 TRACE("Call XSendEvent\n");
1034 EnterCriticalSection( &X11DRV_CritSection );
1035 r = XSendEvent(a0, a1, a2, a3, a4);
1036 LeaveCriticalSection( &X11DRV_CritSection );
1037 TRACE("Ret XSendEvent\n");
1038 return r;
1041 int TSXSetArcMode(Display* a0, GC a1, int a2)
1043 int r;
1044 TRACE("Call XSetArcMode\n");
1045 EnterCriticalSection( &X11DRV_CritSection );
1046 r = XSetArcMode(a0, a1, a2);
1047 LeaveCriticalSection( &X11DRV_CritSection );
1048 TRACE("Ret XSetArcMode\n");
1049 return r;
1052 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
1054 int r;
1055 TRACE("Call XSetBackground\n");
1056 EnterCriticalSection( &X11DRV_CritSection );
1057 r = XSetBackground(a0, a1, a2);
1058 LeaveCriticalSection( &X11DRV_CritSection );
1059 TRACE("Ret XSetBackground\n");
1060 return r;
1063 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
1065 int r;
1066 TRACE("Call XSetClipMask\n");
1067 EnterCriticalSection( &X11DRV_CritSection );
1068 r = XSetClipMask(a0, a1, a2);
1069 LeaveCriticalSection( &X11DRV_CritSection );
1070 TRACE("Ret XSetClipMask\n");
1071 return r;
1074 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
1076 int r;
1077 TRACE("Call XSetClipOrigin\n");
1078 EnterCriticalSection( &X11DRV_CritSection );
1079 r = XSetClipOrigin(a0, a1, a2, a3);
1080 LeaveCriticalSection( &X11DRV_CritSection );
1081 TRACE("Ret XSetClipOrigin\n");
1082 return r;
1085 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
1087 int r;
1088 TRACE("Call XSetClipRectangles\n");
1089 EnterCriticalSection( &X11DRV_CritSection );
1090 r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
1091 LeaveCriticalSection( &X11DRV_CritSection );
1092 TRACE("Ret XSetClipRectangles\n");
1093 return r;
1096 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
1098 int r;
1099 TRACE("Call XSetDashes\n");
1100 EnterCriticalSection( &X11DRV_CritSection );
1101 r = XSetDashes(a0, a1, a2, a3, a4);
1102 LeaveCriticalSection( &X11DRV_CritSection );
1103 TRACE("Ret XSetDashes\n");
1104 return r;
1107 int TSXSetFillStyle(Display* a0, GC a1, int a2)
1109 int r;
1110 TRACE("Call XSetFillStyle\n");
1111 EnterCriticalSection( &X11DRV_CritSection );
1112 r = XSetFillStyle(a0, a1, a2);
1113 LeaveCriticalSection( &X11DRV_CritSection );
1114 TRACE("Ret XSetFillStyle\n");
1115 return r;
1118 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
1120 int r;
1121 TRACE("Call XSetForeground\n");
1122 EnterCriticalSection( &X11DRV_CritSection );
1123 r = XSetForeground(a0, a1, a2);
1124 LeaveCriticalSection( &X11DRV_CritSection );
1125 TRACE("Ret XSetForeground\n");
1126 return r;
1129 int TSXSetFunction(Display* a0, GC a1, int a2)
1131 int r;
1132 TRACE("Call XSetFunction\n");
1133 EnterCriticalSection( &X11DRV_CritSection );
1134 r = XSetFunction(a0, a1, a2);
1135 LeaveCriticalSection( &X11DRV_CritSection );
1136 TRACE("Ret XSetFunction\n");
1137 return r;
1140 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
1142 int r;
1143 TRACE("Call XSetGraphicsExposures\n");
1144 EnterCriticalSection( &X11DRV_CritSection );
1145 r = XSetGraphicsExposures(a0, a1, a2);
1146 LeaveCriticalSection( &X11DRV_CritSection );
1147 TRACE("Ret XSetGraphicsExposures\n");
1148 return r;
1151 int TSXSetIconName(Display* a0, Window a1, const char* a2)
1153 int r;
1154 TRACE("Call XSetIconName\n");
1155 EnterCriticalSection( &X11DRV_CritSection );
1156 r = XSetIconName(a0, a1, a2);
1157 LeaveCriticalSection( &X11DRV_CritSection );
1158 TRACE("Ret XSetIconName\n");
1159 return r;
1162 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
1164 int r;
1165 TRACE("Call XSetInputFocus\n");
1166 EnterCriticalSection( &X11DRV_CritSection );
1167 r = XSetInputFocus(a0, a1, a2, a3);
1168 LeaveCriticalSection( &X11DRV_CritSection );
1169 TRACE("Ret XSetInputFocus\n");
1170 return r;
1173 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1175 int r;
1176 TRACE("Call XSetLineAttributes\n");
1177 EnterCriticalSection( &X11DRV_CritSection );
1178 r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1179 LeaveCriticalSection( &X11DRV_CritSection );
1180 TRACE("Ret XSetLineAttributes\n");
1181 return r;
1184 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1186 int r;
1187 TRACE("Call XSetScreenSaver\n");
1188 EnterCriticalSection( &X11DRV_CritSection );
1189 r = XSetScreenSaver(a0, a1, a2, a3, a4);
1190 LeaveCriticalSection( &X11DRV_CritSection );
1191 TRACE("Ret XSetScreenSaver\n");
1192 return r;
1195 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1197 int r;
1198 TRACE("Call XSetSelectionOwner\n");
1199 EnterCriticalSection( &X11DRV_CritSection );
1200 r = XSetSelectionOwner(a0, a1, a2, a3);
1201 LeaveCriticalSection( &X11DRV_CritSection );
1202 TRACE("Ret XSetSelectionOwner\n");
1203 return r;
1206 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1208 int r;
1209 TRACE("Call XSetSubwindowMode\n");
1210 EnterCriticalSection( &X11DRV_CritSection );
1211 r = XSetSubwindowMode(a0, a1, a2);
1212 LeaveCriticalSection( &X11DRV_CritSection );
1213 TRACE("Ret XSetSubwindowMode\n");
1214 return r;
1217 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1219 int r;
1220 TRACE("Call XSetWindowColormap\n");
1221 EnterCriticalSection( &X11DRV_CritSection );
1222 r = XSetWindowColormap(a0, a1, a2);
1223 LeaveCriticalSection( &X11DRV_CritSection );
1224 TRACE("Ret XSetWindowColormap\n");
1225 return r;
1228 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1230 int r;
1231 TRACE("Call XStoreColor\n");
1232 EnterCriticalSection( &X11DRV_CritSection );
1233 r = XStoreColor(a0, a1, a2);
1234 LeaveCriticalSection( &X11DRV_CritSection );
1235 TRACE("Ret XStoreColor\n");
1236 return r;
1239 int TSXStoreName(Display* a0, Window a1, const char* a2)
1241 int r;
1242 TRACE("Call XStoreName\n");
1243 EnterCriticalSection( &X11DRV_CritSection );
1244 r = XStoreName(a0, a1, a2);
1245 LeaveCriticalSection( &X11DRV_CritSection );
1246 TRACE("Ret XStoreName\n");
1247 return r;
1250 int TSXSync(Display* a0, int a1)
1252 int r;
1253 TRACE("Call XSync\n");
1254 EnterCriticalSection( &X11DRV_CritSection );
1255 r = XSync(a0, a1);
1256 LeaveCriticalSection( &X11DRV_CritSection );
1257 TRACE("Ret XSync\n");
1258 return r;
1261 int TSXTextExtents16(XFontStruct* a0, const XChar2b* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1263 int r;
1264 TRACE("Call XTextExtents16\n");
1265 EnterCriticalSection( &X11DRV_CritSection );
1266 r = XTextExtents16(a0, a1, a2, a3, a4, a5, a6);
1267 LeaveCriticalSection( &X11DRV_CritSection );
1268 TRACE("Ret XTextExtents16\n");
1269 return r;
1272 int TSXTextWidth16(XFontStruct* a0, const XChar2b* a1, int a2)
1274 int r;
1275 TRACE("Call XTextWidth16\n");
1276 EnterCriticalSection( &X11DRV_CritSection );
1277 r = XTextWidth16(a0, a1, a2);
1278 LeaveCriticalSection( &X11DRV_CritSection );
1279 TRACE("Ret XTextWidth16\n");
1280 return r;
1283 int TSXUngrabKeyboard(Display* a0, Time a1)
1285 int r;
1286 TRACE("Call XUngrabKeyboard\n");
1287 EnterCriticalSection( &X11DRV_CritSection );
1288 r = XUngrabKeyboard(a0, a1);
1289 LeaveCriticalSection( &X11DRV_CritSection );
1290 TRACE("Ret XUngrabKeyboard\n");
1291 return r;
1294 int TSXUngrabPointer(Display* a0, Time a1)
1296 int r;
1297 TRACE("Call XUngrabPointer\n");
1298 EnterCriticalSection( &X11DRV_CritSection );
1299 r = XUngrabPointer(a0, a1);
1300 LeaveCriticalSection( &X11DRV_CritSection );
1301 TRACE("Ret XUngrabPointer\n");
1302 return r;
1305 int TSXUngrabServer(Display* a0)
1307 int r;
1308 TRACE("Call XUngrabServer\n");
1309 EnterCriticalSection( &X11DRV_CritSection );
1310 r = XUngrabServer(a0);
1311 LeaveCriticalSection( &X11DRV_CritSection );
1312 TRACE("Ret XUngrabServer\n");
1313 return r;
1316 int TSXUninstallColormap(Display* a0, Colormap a1)
1318 int r;
1319 TRACE("Call XUninstallColormap\n");
1320 EnterCriticalSection( &X11DRV_CritSection );
1321 r = XUninstallColormap(a0, a1);
1322 LeaveCriticalSection( &X11DRV_CritSection );
1323 TRACE("Ret XUninstallColormap\n");
1324 return r;
1327 int TSXUnmapWindow(Display* a0, Window a1)
1329 int r;
1330 TRACE("Call XUnmapWindow\n");
1331 EnterCriticalSection( &X11DRV_CritSection );
1332 r = XUnmapWindow(a0, a1);
1333 LeaveCriticalSection( &X11DRV_CritSection );
1334 TRACE("Ret XUnmapWindow\n");
1335 return r;
1338 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1340 int r;
1341 TRACE("Call XWarpPointer\n");
1342 EnterCriticalSection( &X11DRV_CritSection );
1343 r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1344 LeaveCriticalSection( &X11DRV_CritSection );
1345 TRACE("Ret XWarpPointer\n");
1346 return r;
1349 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1351 XIM r;
1352 TRACE("Call XOpenIM\n");
1353 EnterCriticalSection( &X11DRV_CritSection );
1354 r = XOpenIM(a0, a1, a2, a3);
1355 LeaveCriticalSection( &X11DRV_CritSection );
1356 TRACE("Ret XOpenIM\n");
1357 return r;
1360 int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
1362 int (*r)(Display *);
1363 TRACE("Call XSynchronize\n");
1364 EnterCriticalSection( &X11DRV_CritSection );
1365 r = XSynchronize(a0, a1);
1366 LeaveCriticalSection( &X11DRV_CritSection );
1367 TRACE("Ret XSynchronize\n");
1368 return r;
1371 extern void _XInitImageFuncPtrs(XImage *);
1373 void TS_XInitImageFuncPtrs(XImage *a0)
1375 TRACE("Call _XInitImageFuncPtrs\n");
1376 EnterCriticalSection( &X11DRV_CritSection );
1377 _XInitImageFuncPtrs(a0);
1378 LeaveCriticalSection( &X11DRV_CritSection );
1379 TRACE("Ret _XInitImageFuncPtrs\n");
1383 #endif /* !defined(X_DISPLAY_MISSING) */