2 * Thread safe wrappers around Xlib calls.
3 * This file was generated automatically by tools/make_X11wrappers
12 #include "debugtools.h"
16 DEFAULT_DEBUG_CHANNEL(x11)
18 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
21 TRACE("Call XLoadQueryFont\n");
22 EnterCriticalSection( &X11DRV_CritSection );
23 r = XLoadQueryFont(a0, a1);
24 LeaveCriticalSection( &X11DRV_CritSection );
25 TRACE("Ret XLoadQueryFont\n");
29 XModifierKeymap * TSXGetModifierMapping(Display* a0)
32 TRACE("Call XGetModifierMapping\n");
33 EnterCriticalSection( &X11DRV_CritSection );
34 r = XGetModifierMapping(a0);
35 LeaveCriticalSection( &X11DRV_CritSection );
36 TRACE("Ret XGetModifierMapping\n");
40 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)
43 TRACE("Call XCreateImage\n");
44 EnterCriticalSection( &X11DRV_CritSection );
45 r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
46 LeaveCriticalSection( &X11DRV_CritSection );
47 TRACE("Ret XCreateImage\n");
51 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
54 TRACE("Call XGetImage\n");
55 EnterCriticalSection( &X11DRV_CritSection );
56 r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
57 LeaveCriticalSection( &X11DRV_CritSection );
58 TRACE("Ret XGetImage\n");
62 Display * TSXOpenDisplay(const char* a0)
65 TRACE("Call XOpenDisplay\n");
66 EnterCriticalSection( &X11DRV_CritSection );
68 LeaveCriticalSection( &X11DRV_CritSection );
69 TRACE("Ret XOpenDisplay\n");
73 void TSXrmInitialize(void)
75 TRACE("Call XrmInitialize\n");
76 EnterCriticalSection( &X11DRV_CritSection );
78 LeaveCriticalSection( &X11DRV_CritSection );
79 TRACE("Ret XrmInitialize\n");
82 char * TSXGetAtomName(Display* a0, Atom a1)
85 TRACE("Call XGetAtomName\n");
86 EnterCriticalSection( &X11DRV_CritSection );
87 r = XGetAtomName(a0, a1);
88 LeaveCriticalSection( &X11DRV_CritSection );
89 TRACE("Ret XGetAtomName\n");
93 char * TSXKeysymToString(KeySym a0)
96 TRACE("Call XKeysymToString\n");
97 EnterCriticalSection( &X11DRV_CritSection );
98 r = XKeysymToString(a0);
99 LeaveCriticalSection( &X11DRV_CritSection );
100 TRACE("Ret XKeysymToString\n");
104 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
107 TRACE("Call XInternAtom\n");
108 EnterCriticalSection( &X11DRV_CritSection );
109 r = XInternAtom(a0, a1, a2);
110 LeaveCriticalSection( &X11DRV_CritSection );
111 TRACE("Ret XInternAtom\n");
115 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
118 TRACE("Call XCopyColormapAndFree\n");
119 EnterCriticalSection( &X11DRV_CritSection );
120 r = XCopyColormapAndFree(a0, a1);
121 LeaveCriticalSection( &X11DRV_CritSection );
122 TRACE("Ret XCopyColormapAndFree\n");
126 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
129 TRACE("Call XCreateColormap\n");
130 EnterCriticalSection( &X11DRV_CritSection );
131 r = XCreateColormap(a0, a1, a2, a3);
132 LeaveCriticalSection( &X11DRV_CritSection );
133 TRACE("Ret XCreateColormap\n");
137 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
140 TRACE("Call XCreatePixmapCursor\n");
141 EnterCriticalSection( &X11DRV_CritSection );
142 r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
143 LeaveCriticalSection( &X11DRV_CritSection );
144 TRACE("Ret XCreatePixmapCursor\n");
148 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
151 TRACE("Call XCreateFontCursor\n");
152 EnterCriticalSection( &X11DRV_CritSection );
153 r = XCreateFontCursor(a0, a1);
154 LeaveCriticalSection( &X11DRV_CritSection );
155 TRACE("Ret XCreateFontCursor\n");
159 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
162 TRACE("Call XCreateGC\n");
163 EnterCriticalSection( &X11DRV_CritSection );
164 r = XCreateGC(a0, a1, a2, a3);
165 LeaveCriticalSection( &X11DRV_CritSection );
166 TRACE("Ret XCreateGC\n");
170 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
173 TRACE("Call XCreatePixmap\n");
174 EnterCriticalSection( &X11DRV_CritSection );
175 r = XCreatePixmap(a0, a1, a2, a3, a4);
176 LeaveCriticalSection( &X11DRV_CritSection );
177 TRACE("Ret XCreatePixmap\n");
181 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
184 TRACE("Call XCreateBitmapFromData\n");
185 EnterCriticalSection( &X11DRV_CritSection );
186 r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
187 LeaveCriticalSection( &X11DRV_CritSection );
188 TRACE("Ret XCreateBitmapFromData\n");
192 Window TSXGetSelectionOwner(Display* a0, Atom a1)
195 TRACE("Call XGetSelectionOwner\n");
196 EnterCriticalSection( &X11DRV_CritSection );
197 r = XGetSelectionOwner(a0, a1);
198 LeaveCriticalSection( &X11DRV_CritSection );
199 TRACE("Ret XGetSelectionOwner\n");
203 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)
206 TRACE("Call XCreateWindow\n");
207 EnterCriticalSection( &X11DRV_CritSection );
208 r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
209 LeaveCriticalSection( &X11DRV_CritSection );
210 TRACE("Ret XCreateWindow\n");
214 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
217 TRACE("Call XListFonts\n");
218 EnterCriticalSection( &X11DRV_CritSection );
219 r = XListFonts(a0, a1, a2, a3);
220 LeaveCriticalSection( &X11DRV_CritSection );
221 TRACE("Ret XListFonts\n");
225 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
228 TRACE("Call XKeycodeToKeysym\n");
229 EnterCriticalSection( &X11DRV_CritSection );
230 r = XKeycodeToKeysym(a0, a1, a2);
231 LeaveCriticalSection( &X11DRV_CritSection );
232 TRACE("Ret XKeycodeToKeysym\n");
236 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
239 TRACE("Call XLookupKeysym\n");
240 EnterCriticalSection( &X11DRV_CritSection );
241 r = XLookupKeysym(a0, a1);
242 LeaveCriticalSection( &X11DRV_CritSection );
243 TRACE("Ret XLookupKeysym\n");
247 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
250 TRACE("Call XGetKeyboardMapping\n");
251 EnterCriticalSection( &X11DRV_CritSection );
252 r = XGetKeyboardMapping(a0, a1, a2, a3);
253 LeaveCriticalSection( &X11DRV_CritSection );
254 TRACE("Ret XGetKeyboardMapping\n");
258 char * TSXResourceManagerString(Display* a0)
261 TRACE("Call XResourceManagerString\n");
262 EnterCriticalSection( &X11DRV_CritSection );
263 r = XResourceManagerString(a0);
264 LeaveCriticalSection( &X11DRV_CritSection );
265 TRACE("Ret XResourceManagerString\n");
269 int TSXInitThreads(void)
272 TRACE("Call XInitThreads\n");
273 EnterCriticalSection( &X11DRV_CritSection );
275 LeaveCriticalSection( &X11DRV_CritSection );
276 TRACE("Ret XInitThreads\n");
280 XPixmapFormatValues * TSXListPixmapFormats(Display* a0, int* a1)
282 XPixmapFormatValues * r;
283 TRACE("Call XListPixmapFormats\n");
284 EnterCriticalSection( &X11DRV_CritSection );
285 r = XListPixmapFormats(a0, a1);
286 LeaveCriticalSection( &X11DRV_CritSection );
287 TRACE("Ret XListPixmapFormats\n");
291 int * TSXListDepths(Display* a0, int a1, int* a2)
294 TRACE("Call XListDepths\n");
295 EnterCriticalSection( &X11DRV_CritSection );
296 r = XListDepths(a0, a1, a2);
297 LeaveCriticalSection( &X11DRV_CritSection );
298 TRACE("Ret XListDepths\n");
302 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
305 TRACE("Call XReconfigureWMWindow\n");
306 EnterCriticalSection( &X11DRV_CritSection );
307 r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
308 LeaveCriticalSection( &X11DRV_CritSection );
309 TRACE("Ret XReconfigureWMWindow\n");
313 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
316 TRACE("Call XSetWMProtocols\n");
317 EnterCriticalSection( &X11DRV_CritSection );
318 r = XSetWMProtocols(a0, a1, a2, a3);
319 LeaveCriticalSection( &X11DRV_CritSection );
320 TRACE("Ret XSetWMProtocols\n");
324 int TSXIconifyWindow(Display* a0, Window a1, int a2)
327 TRACE("Call XIconifyWindow\n");
328 EnterCriticalSection( &X11DRV_CritSection );
329 r = XIconifyWindow(a0, a1, a2);
330 LeaveCriticalSection( &X11DRV_CritSection );
331 TRACE("Ret XIconifyWindow\n");
335 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
338 TRACE("Call XSetTransientForHint\n");
339 EnterCriticalSection( &X11DRV_CritSection );
340 r = XSetTransientForHint(a0, a1, a2);
341 LeaveCriticalSection( &X11DRV_CritSection );
342 TRACE("Ret XSetTransientForHint\n");
346 int TSXActivateScreenSaver(Display* a0)
349 TRACE("Call XActivateScreenSaver\n");
350 EnterCriticalSection( &X11DRV_CritSection );
351 r = XActivateScreenSaver(a0);
352 LeaveCriticalSection( &X11DRV_CritSection );
353 TRACE("Ret XActivateScreenSaver\n");
357 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
360 TRACE("Call XAllocColor\n");
361 EnterCriticalSection( &X11DRV_CritSection );
362 r = XAllocColor(a0, a1, a2);
363 LeaveCriticalSection( &X11DRV_CritSection );
364 TRACE("Ret XAllocColor\n");
368 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
371 TRACE("Call XAllocColorCells\n");
372 EnterCriticalSection( &X11DRV_CritSection );
373 r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
374 LeaveCriticalSection( &X11DRV_CritSection );
375 TRACE("Ret XAllocColorCells\n");
379 int TSXBell(Display* a0, int a1)
382 TRACE("Call XBell\n");
383 EnterCriticalSection( &X11DRV_CritSection );
385 LeaveCriticalSection( &X11DRV_CritSection );
386 TRACE("Ret XBell\n");
390 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
393 TRACE("Call XChangeGC\n");
394 EnterCriticalSection( &X11DRV_CritSection );
395 r = XChangeGC(a0, a1, a2, a3);
396 LeaveCriticalSection( &X11DRV_CritSection );
397 TRACE("Ret XChangeGC\n");
401 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
404 TRACE("Call XChangeKeyboardControl\n");
405 EnterCriticalSection( &X11DRV_CritSection );
406 r = XChangeKeyboardControl(a0, a1, a2);
407 LeaveCriticalSection( &X11DRV_CritSection );
408 TRACE("Ret XChangeKeyboardControl\n");
412 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
415 TRACE("Call XChangeProperty\n");
416 EnterCriticalSection( &X11DRV_CritSection );
417 r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
418 LeaveCriticalSection( &X11DRV_CritSection );
419 TRACE("Ret XChangeProperty\n");
423 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
426 TRACE("Call XChangeWindowAttributes\n");
427 EnterCriticalSection( &X11DRV_CritSection );
428 r = XChangeWindowAttributes(a0, a1, a2, a3);
429 LeaveCriticalSection( &X11DRV_CritSection );
430 TRACE("Ret XChangeWindowAttributes\n");
434 int TSXCheckTypedEvent(Display* a0, int a1, XEvent* a2)
437 TRACE("Call XCheckTypedEvent\n");
438 EnterCriticalSection( &X11DRV_CritSection );
439 r = XCheckTypedEvent(a0, a1, a2);
440 LeaveCriticalSection( &X11DRV_CritSection );
441 TRACE("Ret XCheckTypedEvent\n");
445 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
448 TRACE("Call XCheckTypedWindowEvent\n");
449 EnterCriticalSection( &X11DRV_CritSection );
450 r = XCheckTypedWindowEvent(a0, a1, a2, a3);
451 LeaveCriticalSection( &X11DRV_CritSection );
452 TRACE("Ret XCheckTypedWindowEvent\n");
456 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
459 TRACE("Call XCheckWindowEvent\n");
460 EnterCriticalSection( &X11DRV_CritSection );
461 r = XCheckWindowEvent(a0, a1, a2, a3);
462 LeaveCriticalSection( &X11DRV_CritSection );
463 TRACE("Ret XCheckWindowEvent\n");
467 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
470 TRACE("Call XConvertSelection\n");
471 EnterCriticalSection( &X11DRV_CritSection );
472 r = XConvertSelection(a0, a1, a2, a3, a4, a5);
473 LeaveCriticalSection( &X11DRV_CritSection );
474 TRACE("Ret XConvertSelection\n");
478 int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
481 TRACE("Call XCopyArea\n");
482 EnterCriticalSection( &X11DRV_CritSection );
483 r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
484 LeaveCriticalSection( &X11DRV_CritSection );
485 TRACE("Ret XCopyArea\n");
489 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)
492 TRACE("Call XCopyPlane\n");
493 EnterCriticalSection( &X11DRV_CritSection );
494 r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
495 LeaveCriticalSection( &X11DRV_CritSection );
496 TRACE("Ret XCopyPlane\n");
500 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
503 TRACE("Call XDefineCursor\n");
504 EnterCriticalSection( &X11DRV_CritSection );
505 r = XDefineCursor(a0, a1, a2);
506 LeaveCriticalSection( &X11DRV_CritSection );
507 TRACE("Ret XDefineCursor\n");
511 int TSXDeleteProperty(Display* a0, Window a1, Atom a2)
514 TRACE("Call XDeleteProperty\n");
515 EnterCriticalSection( &X11DRV_CritSection );
516 r = XDeleteProperty(a0, a1, a2);
517 LeaveCriticalSection( &X11DRV_CritSection );
518 TRACE("Ret XDeleteProperty\n");
522 int TSXDestroyWindow(Display* a0, Window a1)
525 TRACE("Call XDestroyWindow\n");
526 EnterCriticalSection( &X11DRV_CritSection );
527 r = XDestroyWindow(a0, a1);
528 LeaveCriticalSection( &X11DRV_CritSection );
529 TRACE("Ret XDestroyWindow\n");
533 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
536 TRACE("Call XDisplayKeycodes\n");
537 EnterCriticalSection( &X11DRV_CritSection );
538 r = XDisplayKeycodes(a0, a1, a2);
539 LeaveCriticalSection( &X11DRV_CritSection );
540 TRACE("Ret XDisplayKeycodes\n");
544 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
547 TRACE("Call XDrawArc\n");
548 EnterCriticalSection( &X11DRV_CritSection );
549 r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
550 LeaveCriticalSection( &X11DRV_CritSection );
551 TRACE("Ret XDrawArc\n");
555 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
558 TRACE("Call XDrawLine\n");
559 EnterCriticalSection( &X11DRV_CritSection );
560 r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
561 LeaveCriticalSection( &X11DRV_CritSection );
562 TRACE("Ret XDrawLine\n");
566 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
569 TRACE("Call XDrawLines\n");
570 EnterCriticalSection( &X11DRV_CritSection );
571 r = XDrawLines(a0, a1, a2, a3, a4, a5);
572 LeaveCriticalSection( &X11DRV_CritSection );
573 TRACE("Ret XDrawLines\n");
577 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
580 TRACE("Call XDrawPoint\n");
581 EnterCriticalSection( &X11DRV_CritSection );
582 r = XDrawPoint(a0, a1, a2, a3, a4);
583 LeaveCriticalSection( &X11DRV_CritSection );
584 TRACE("Ret XDrawPoint\n");
588 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
591 TRACE("Call XDrawRectangle\n");
592 EnterCriticalSection( &X11DRV_CritSection );
593 r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
594 LeaveCriticalSection( &X11DRV_CritSection );
595 TRACE("Ret XDrawRectangle\n");
599 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
602 TRACE("Call XDrawSegments\n");
603 EnterCriticalSection( &X11DRV_CritSection );
604 r = XDrawSegments(a0, a1, a2, a3, a4);
605 LeaveCriticalSection( &X11DRV_CritSection );
606 TRACE("Ret XDrawSegments\n");
610 int TSXDrawString16(Display* a0, Drawable a1, GC a2, int a3, int a4, const XChar2b* a5, int a6)
613 TRACE("Call XDrawString16\n");
614 EnterCriticalSection( &X11DRV_CritSection );
615 r = XDrawString16(a0, a1, a2, a3, a4, a5, a6);
616 LeaveCriticalSection( &X11DRV_CritSection );
617 TRACE("Ret XDrawString16\n");
621 int TSXDrawText16(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem16* a5, int a6)
624 TRACE("Call XDrawText16\n");
625 EnterCriticalSection( &X11DRV_CritSection );
626 r = XDrawText16(a0, a1, a2, a3, a4, a5, a6);
627 LeaveCriticalSection( &X11DRV_CritSection );
628 TRACE("Ret XDrawText16\n");
632 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
635 TRACE("Call XFillArc\n");
636 EnterCriticalSection( &X11DRV_CritSection );
637 r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
638 LeaveCriticalSection( &X11DRV_CritSection );
639 TRACE("Ret XFillArc\n");
643 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
646 TRACE("Call XFillPolygon\n");
647 EnterCriticalSection( &X11DRV_CritSection );
648 r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
649 LeaveCriticalSection( &X11DRV_CritSection );
650 TRACE("Ret XFillPolygon\n");
654 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
657 TRACE("Call XFillRectangle\n");
658 EnterCriticalSection( &X11DRV_CritSection );
659 r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
660 LeaveCriticalSection( &X11DRV_CritSection );
661 TRACE("Ret XFillRectangle\n");
665 int TSXFlush(Display* a0)
668 TRACE("Call XFlush\n");
669 EnterCriticalSection( &X11DRV_CritSection );
671 LeaveCriticalSection( &X11DRV_CritSection );
672 TRACE("Ret XFlush\n");
676 int TSXFree(void* a0)
679 TRACE("Call XFree\n");
680 EnterCriticalSection( &X11DRV_CritSection );
682 LeaveCriticalSection( &X11DRV_CritSection );
683 TRACE("Ret XFree\n");
687 int TSXFreeColormap(Display* a0, Colormap a1)
690 TRACE("Call XFreeColormap\n");
691 EnterCriticalSection( &X11DRV_CritSection );
692 r = XFreeColormap(a0, a1);
693 LeaveCriticalSection( &X11DRV_CritSection );
694 TRACE("Ret XFreeColormap\n");
698 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
701 TRACE("Call XFreeColors\n");
702 EnterCriticalSection( &X11DRV_CritSection );
703 r = XFreeColors(a0, a1, a2, a3, a4);
704 LeaveCriticalSection( &X11DRV_CritSection );
705 TRACE("Ret XFreeColors\n");
709 int TSXFreeCursor(Display* a0, Cursor a1)
712 TRACE("Call XFreeCursor\n");
713 EnterCriticalSection( &X11DRV_CritSection );
714 r = XFreeCursor(a0, a1);
715 LeaveCriticalSection( &X11DRV_CritSection );
716 TRACE("Ret XFreeCursor\n");
720 int TSXFreeFont(Display* a0, XFontStruct* a1)
723 TRACE("Call XFreeFont\n");
724 EnterCriticalSection( &X11DRV_CritSection );
725 r = XFreeFont(a0, a1);
726 LeaveCriticalSection( &X11DRV_CritSection );
727 TRACE("Ret XFreeFont\n");
731 int TSXFreeFontNames(char** a0)
734 TRACE("Call XFreeFontNames\n");
735 EnterCriticalSection( &X11DRV_CritSection );
736 r = XFreeFontNames(a0);
737 LeaveCriticalSection( &X11DRV_CritSection );
738 TRACE("Ret XFreeFontNames\n");
742 int TSXFreeGC(Display* a0, GC a1)
745 TRACE("Call XFreeGC\n");
746 EnterCriticalSection( &X11DRV_CritSection );
748 LeaveCriticalSection( &X11DRV_CritSection );
749 TRACE("Ret XFreeGC\n");
753 int TSXFreeModifiermap(XModifierKeymap* a0)
756 TRACE("Call XFreeModifiermap\n");
757 EnterCriticalSection( &X11DRV_CritSection );
758 r = XFreeModifiermap(a0);
759 LeaveCriticalSection( &X11DRV_CritSection );
760 TRACE("Ret XFreeModifiermap\n");
764 int TSXFreePixmap(Display* a0, Pixmap a1)
767 TRACE("Call XFreePixmap\n");
768 EnterCriticalSection( &X11DRV_CritSection );
769 r = XFreePixmap(a0, a1);
770 LeaveCriticalSection( &X11DRV_CritSection );
771 TRACE("Ret XFreePixmap\n");
775 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
778 TRACE("Call XGetFontProperty\n");
779 EnterCriticalSection( &X11DRV_CritSection );
780 r = XGetFontProperty(a0, a1, a2);
781 LeaveCriticalSection( &X11DRV_CritSection );
782 TRACE("Ret XGetFontProperty\n");
786 int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
789 TRACE("Call XGetGeometry\n");
790 EnterCriticalSection( &X11DRV_CritSection );
791 r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
792 LeaveCriticalSection( &X11DRV_CritSection );
793 TRACE("Ret XGetGeometry\n");
797 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
800 TRACE("Call XGetInputFocus\n");
801 EnterCriticalSection( &X11DRV_CritSection );
802 r = XGetInputFocus(a0, a1, a2);
803 LeaveCriticalSection( &X11DRV_CritSection );
804 TRACE("Ret XGetInputFocus\n");
808 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
811 TRACE("Call XGetKeyboardControl\n");
812 EnterCriticalSection( &X11DRV_CritSection );
813 r = XGetKeyboardControl(a0, a1);
814 LeaveCriticalSection( &X11DRV_CritSection );
815 TRACE("Ret XGetKeyboardControl\n");
819 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
822 TRACE("Call XGetScreenSaver\n");
823 EnterCriticalSection( &X11DRV_CritSection );
824 r = XGetScreenSaver(a0, a1, a2, a3, a4);
825 LeaveCriticalSection( &X11DRV_CritSection );
826 TRACE("Ret XGetScreenSaver\n");
830 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)
833 TRACE("Call XGetWindowProperty\n");
834 EnterCriticalSection( &X11DRV_CritSection );
835 r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
836 LeaveCriticalSection( &X11DRV_CritSection );
837 TRACE("Ret XGetWindowProperty\n");
841 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
844 TRACE("Call XGetWindowAttributes\n");
845 EnterCriticalSection( &X11DRV_CritSection );
846 r = XGetWindowAttributes(a0, a1, a2);
847 LeaveCriticalSection( &X11DRV_CritSection );
848 TRACE("Ret XGetWindowAttributes\n");
852 int TSXGrabKeyboard(Display* a0, Window a1, int a2, int a3, int a4, Time a5)
855 TRACE("Call XGrabKeyboard\n");
856 EnterCriticalSection( &X11DRV_CritSection );
857 r = XGrabKeyboard(a0, a1, a2, a3, a4, a5);
858 LeaveCriticalSection( &X11DRV_CritSection );
859 TRACE("Ret XGrabKeyboard\n");
863 int TSXGrabPointer(Display* a0, Window a1, int a2, unsigned int a3, int a4, int a5, Window a6, Cursor a7, Time a8)
866 TRACE("Call XGrabPointer\n");
867 EnterCriticalSection( &X11DRV_CritSection );
868 r = XGrabPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
869 LeaveCriticalSection( &X11DRV_CritSection );
870 TRACE("Ret XGrabPointer\n");
874 int TSXGrabServer(Display* a0)
877 TRACE("Call XGrabServer\n");
878 EnterCriticalSection( &X11DRV_CritSection );
880 LeaveCriticalSection( &X11DRV_CritSection );
881 TRACE("Ret XGrabServer\n");
885 int TSXInstallColormap(Display* a0, Colormap a1)
888 TRACE("Call XInstallColormap\n");
889 EnterCriticalSection( &X11DRV_CritSection );
890 r = XInstallColormap(a0, a1);
891 LeaveCriticalSection( &X11DRV_CritSection );
892 TRACE("Ret XInstallColormap\n");
896 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
899 TRACE("Call XKeysymToKeycode\n");
900 EnterCriticalSection( &X11DRV_CritSection );
901 r = XKeysymToKeycode(a0, a1);
902 LeaveCriticalSection( &X11DRV_CritSection );
903 TRACE("Ret XKeysymToKeycode\n");
907 int TSXMapWindow(Display* a0, Window a1)
910 TRACE("Call XMapWindow\n");
911 EnterCriticalSection( &X11DRV_CritSection );
912 r = XMapWindow(a0, a1);
913 LeaveCriticalSection( &X11DRV_CritSection );
914 TRACE("Ret XMapWindow\n");
918 int TSXNextEvent(Display* a0, XEvent* a1)
921 TRACE("Call XNextEvent\n");
922 EnterCriticalSection( &X11DRV_CritSection );
923 r = XNextEvent(a0, a1);
924 LeaveCriticalSection( &X11DRV_CritSection );
925 TRACE("Ret XNextEvent\n");
929 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
932 TRACE("Call XParseGeometry\n");
933 EnterCriticalSection( &X11DRV_CritSection );
934 r = XParseGeometry(a0, a1, a2, a3, a4);
935 LeaveCriticalSection( &X11DRV_CritSection );
936 TRACE("Ret XParseGeometry\n");
940 int TSXPending(Display* a0)
943 TRACE("Call XPending\n");
944 EnterCriticalSection( &X11DRV_CritSection );
946 LeaveCriticalSection( &X11DRV_CritSection );
947 TRACE("Ret XPending\n");
951 int TSXPutBackEvent(Display* a0, XEvent* a1)
954 TRACE("Call XPutBackEvent\n");
955 EnterCriticalSection( &X11DRV_CritSection );
956 r = XPutBackEvent(a0, a1);
957 LeaveCriticalSection( &X11DRV_CritSection );
958 TRACE("Ret XPutBackEvent\n");
962 int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
965 TRACE("Call XPutImage\n");
966 EnterCriticalSection( &X11DRV_CritSection );
967 r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
968 LeaveCriticalSection( &X11DRV_CritSection );
969 TRACE("Ret XPutImage\n");
973 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
976 TRACE("Call XQueryColor\n");
977 EnterCriticalSection( &X11DRV_CritSection );
978 r = XQueryColor(a0, a1, a2);
979 LeaveCriticalSection( &X11DRV_CritSection );
980 TRACE("Ret XQueryColor\n");
984 int TSXQueryKeymap(Display* a0, char* a1)
987 TRACE("Call XQueryKeymap\n");
988 EnterCriticalSection( &X11DRV_CritSection );
989 r = XQueryKeymap(a0, a1);
990 LeaveCriticalSection( &X11DRV_CritSection );
991 TRACE("Ret XQueryKeymap\n");
995 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
998 TRACE("Call XQueryPointer\n");
999 EnterCriticalSection( &X11DRV_CritSection );
1000 r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1001 LeaveCriticalSection( &X11DRV_CritSection );
1002 TRACE("Ret XQueryPointer\n");
1006 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
1009 TRACE("Call XQueryTree\n");
1010 EnterCriticalSection( &X11DRV_CritSection );
1011 r = XQueryTree(a0, a1, a2, a3, a4, a5);
1012 LeaveCriticalSection( &X11DRV_CritSection );
1013 TRACE("Ret XQueryTree\n");
1017 int TSXRefreshKeyboardMapping(XMappingEvent* a0)
1020 TRACE("Call XRefreshKeyboardMapping\n");
1021 EnterCriticalSection( &X11DRV_CritSection );
1022 r = XRefreshKeyboardMapping(a0);
1023 LeaveCriticalSection( &X11DRV_CritSection );
1024 TRACE("Ret XRefreshKeyboardMapping\n");
1028 int TSXResetScreenSaver(Display* a0)
1031 TRACE("Call XResetScreenSaver\n");
1032 EnterCriticalSection( &X11DRV_CritSection );
1033 r = XResetScreenSaver(a0);
1034 LeaveCriticalSection( &X11DRV_CritSection );
1035 TRACE("Ret XResetScreenSaver\n");
1039 int TSXRestackWindows(Display* a0, Window* a1, int a2)
1042 TRACE("Call XRestackWindows\n");
1043 EnterCriticalSection( &X11DRV_CritSection );
1044 r = XRestackWindows(a0, a1, a2);
1045 LeaveCriticalSection( &X11DRV_CritSection );
1046 TRACE("Ret XRestackWindows\n");
1050 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
1053 TRACE("Call XSendEvent\n");
1054 EnterCriticalSection( &X11DRV_CritSection );
1055 r = XSendEvent(a0, a1, a2, a3, a4);
1056 LeaveCriticalSection( &X11DRV_CritSection );
1057 TRACE("Ret XSendEvent\n");
1061 int TSXSetArcMode(Display* a0, GC a1, int a2)
1064 TRACE("Call XSetArcMode\n");
1065 EnterCriticalSection( &X11DRV_CritSection );
1066 r = XSetArcMode(a0, a1, a2);
1067 LeaveCriticalSection( &X11DRV_CritSection );
1068 TRACE("Ret XSetArcMode\n");
1072 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
1075 TRACE("Call XSetBackground\n");
1076 EnterCriticalSection( &X11DRV_CritSection );
1077 r = XSetBackground(a0, a1, a2);
1078 LeaveCriticalSection( &X11DRV_CritSection );
1079 TRACE("Ret XSetBackground\n");
1083 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
1086 TRACE("Call XSetClipMask\n");
1087 EnterCriticalSection( &X11DRV_CritSection );
1088 r = XSetClipMask(a0, a1, a2);
1089 LeaveCriticalSection( &X11DRV_CritSection );
1090 TRACE("Ret XSetClipMask\n");
1094 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
1097 TRACE("Call XSetClipOrigin\n");
1098 EnterCriticalSection( &X11DRV_CritSection );
1099 r = XSetClipOrigin(a0, a1, a2, a3);
1100 LeaveCriticalSection( &X11DRV_CritSection );
1101 TRACE("Ret XSetClipOrigin\n");
1105 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
1108 TRACE("Call XSetClipRectangles\n");
1109 EnterCriticalSection( &X11DRV_CritSection );
1110 r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
1111 LeaveCriticalSection( &X11DRV_CritSection );
1112 TRACE("Ret XSetClipRectangles\n");
1116 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
1119 TRACE("Call XSetDashes\n");
1120 EnterCriticalSection( &X11DRV_CritSection );
1121 r = XSetDashes(a0, a1, a2, a3, a4);
1122 LeaveCriticalSection( &X11DRV_CritSection );
1123 TRACE("Ret XSetDashes\n");
1127 int TSXSetFillStyle(Display* a0, GC a1, int a2)
1130 TRACE("Call XSetFillStyle\n");
1131 EnterCriticalSection( &X11DRV_CritSection );
1132 r = XSetFillStyle(a0, a1, a2);
1133 LeaveCriticalSection( &X11DRV_CritSection );
1134 TRACE("Ret XSetFillStyle\n");
1138 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
1141 TRACE("Call XSetForeground\n");
1142 EnterCriticalSection( &X11DRV_CritSection );
1143 r = XSetForeground(a0, a1, a2);
1144 LeaveCriticalSection( &X11DRV_CritSection );
1145 TRACE("Ret XSetForeground\n");
1149 int TSXSetFunction(Display* a0, GC a1, int a2)
1152 TRACE("Call XSetFunction\n");
1153 EnterCriticalSection( &X11DRV_CritSection );
1154 r = XSetFunction(a0, a1, a2);
1155 LeaveCriticalSection( &X11DRV_CritSection );
1156 TRACE("Ret XSetFunction\n");
1160 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
1163 TRACE("Call XSetGraphicsExposures\n");
1164 EnterCriticalSection( &X11DRV_CritSection );
1165 r = XSetGraphicsExposures(a0, a1, a2);
1166 LeaveCriticalSection( &X11DRV_CritSection );
1167 TRACE("Ret XSetGraphicsExposures\n");
1171 int TSXSetIconName(Display* a0, Window a1, const char* a2)
1174 TRACE("Call XSetIconName\n");
1175 EnterCriticalSection( &X11DRV_CritSection );
1176 r = XSetIconName(a0, a1, a2);
1177 LeaveCriticalSection( &X11DRV_CritSection );
1178 TRACE("Ret XSetIconName\n");
1182 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
1185 TRACE("Call XSetInputFocus\n");
1186 EnterCriticalSection( &X11DRV_CritSection );
1187 r = XSetInputFocus(a0, a1, a2, a3);
1188 LeaveCriticalSection( &X11DRV_CritSection );
1189 TRACE("Ret XSetInputFocus\n");
1193 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1196 TRACE("Call XSetLineAttributes\n");
1197 EnterCriticalSection( &X11DRV_CritSection );
1198 r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1199 LeaveCriticalSection( &X11DRV_CritSection );
1200 TRACE("Ret XSetLineAttributes\n");
1204 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1207 TRACE("Call XSetScreenSaver\n");
1208 EnterCriticalSection( &X11DRV_CritSection );
1209 r = XSetScreenSaver(a0, a1, a2, a3, a4);
1210 LeaveCriticalSection( &X11DRV_CritSection );
1211 TRACE("Ret XSetScreenSaver\n");
1215 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1218 TRACE("Call XSetSelectionOwner\n");
1219 EnterCriticalSection( &X11DRV_CritSection );
1220 r = XSetSelectionOwner(a0, a1, a2, a3);
1221 LeaveCriticalSection( &X11DRV_CritSection );
1222 TRACE("Ret XSetSelectionOwner\n");
1226 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1229 TRACE("Call XSetSubwindowMode\n");
1230 EnterCriticalSection( &X11DRV_CritSection );
1231 r = XSetSubwindowMode(a0, a1, a2);
1232 LeaveCriticalSection( &X11DRV_CritSection );
1233 TRACE("Ret XSetSubwindowMode\n");
1237 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1240 TRACE("Call XSetWindowColormap\n");
1241 EnterCriticalSection( &X11DRV_CritSection );
1242 r = XSetWindowColormap(a0, a1, a2);
1243 LeaveCriticalSection( &X11DRV_CritSection );
1244 TRACE("Ret XSetWindowColormap\n");
1248 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1251 TRACE("Call XStoreColor\n");
1252 EnterCriticalSection( &X11DRV_CritSection );
1253 r = XStoreColor(a0, a1, a2);
1254 LeaveCriticalSection( &X11DRV_CritSection );
1255 TRACE("Ret XStoreColor\n");
1259 int TSXStoreName(Display* a0, Window a1, const char* a2)
1262 TRACE("Call XStoreName\n");
1263 EnterCriticalSection( &X11DRV_CritSection );
1264 r = XStoreName(a0, a1, a2);
1265 LeaveCriticalSection( &X11DRV_CritSection );
1266 TRACE("Ret XStoreName\n");
1270 int TSXSync(Display* a0, int a1)
1273 TRACE("Call XSync\n");
1274 EnterCriticalSection( &X11DRV_CritSection );
1276 LeaveCriticalSection( &X11DRV_CritSection );
1277 TRACE("Ret XSync\n");
1281 int TSXTextExtents16(XFontStruct* a0, const XChar2b* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1284 TRACE("Call XTextExtents16\n");
1285 EnterCriticalSection( &X11DRV_CritSection );
1286 r = XTextExtents16(a0, a1, a2, a3, a4, a5, a6);
1287 LeaveCriticalSection( &X11DRV_CritSection );
1288 TRACE("Ret XTextExtents16\n");
1292 int TSXTextWidth16(XFontStruct* a0, const XChar2b* a1, int a2)
1295 TRACE("Call XTextWidth16\n");
1296 EnterCriticalSection( &X11DRV_CritSection );
1297 r = XTextWidth16(a0, a1, a2);
1298 LeaveCriticalSection( &X11DRV_CritSection );
1299 TRACE("Ret XTextWidth16\n");
1303 int TSXUngrabKeyboard(Display* a0, Time a1)
1306 TRACE("Call XUngrabKeyboard\n");
1307 EnterCriticalSection( &X11DRV_CritSection );
1308 r = XUngrabKeyboard(a0, a1);
1309 LeaveCriticalSection( &X11DRV_CritSection );
1310 TRACE("Ret XUngrabKeyboard\n");
1314 int TSXUngrabPointer(Display* a0, Time a1)
1317 TRACE("Call XUngrabPointer\n");
1318 EnterCriticalSection( &X11DRV_CritSection );
1319 r = XUngrabPointer(a0, a1);
1320 LeaveCriticalSection( &X11DRV_CritSection );
1321 TRACE("Ret XUngrabPointer\n");
1325 int TSXUngrabServer(Display* a0)
1328 TRACE("Call XUngrabServer\n");
1329 EnterCriticalSection( &X11DRV_CritSection );
1330 r = XUngrabServer(a0);
1331 LeaveCriticalSection( &X11DRV_CritSection );
1332 TRACE("Ret XUngrabServer\n");
1336 int TSXUninstallColormap(Display* a0, Colormap a1)
1339 TRACE("Call XUninstallColormap\n");
1340 EnterCriticalSection( &X11DRV_CritSection );
1341 r = XUninstallColormap(a0, a1);
1342 LeaveCriticalSection( &X11DRV_CritSection );
1343 TRACE("Ret XUninstallColormap\n");
1347 int TSXUnmapWindow(Display* a0, Window a1)
1350 TRACE("Call XUnmapWindow\n");
1351 EnterCriticalSection( &X11DRV_CritSection );
1352 r = XUnmapWindow(a0, a1);
1353 LeaveCriticalSection( &X11DRV_CritSection );
1354 TRACE("Ret XUnmapWindow\n");
1358 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1361 TRACE("Call XWarpPointer\n");
1362 EnterCriticalSection( &X11DRV_CritSection );
1363 r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1364 LeaveCriticalSection( &X11DRV_CritSection );
1365 TRACE("Ret XWarpPointer\n");
1369 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1372 TRACE("Call XOpenIM\n");
1373 EnterCriticalSection( &X11DRV_CritSection );
1374 r = XOpenIM(a0, a1, a2, a3);
1375 LeaveCriticalSection( &X11DRV_CritSection );
1376 TRACE("Ret XOpenIM\n");
1380 int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
1382 int (*r)(Display *);
1383 TRACE("Call XSynchronize\n");
1384 EnterCriticalSection( &X11DRV_CritSection );
1385 r = XSynchronize(a0, a1);
1386 LeaveCriticalSection( &X11DRV_CritSection );
1387 TRACE("Ret XSynchronize\n");
1391 extern void _XInitImageFuncPtrs(XImage *);
1393 void TS_XInitImageFuncPtrs(XImage *a0)
1395 TRACE("Call _XInitImageFuncPtrs\n");
1396 EnterCriticalSection( &X11DRV_CritSection );
1397 _XInitImageFuncPtrs(a0);
1398 LeaveCriticalSection( &X11DRV_CritSection );
1399 TRACE("Ret _XInitImageFuncPtrs\n");