2 * Thread safe wrappers around Xlib calls.
3 * This file was generated automatically by tools/make_X11wrappers
11 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
14 TRACE(x11, "Call XLoadQueryFont\n");
15 EnterCriticalSection( &X11DRV_CritSection );
16 r = XLoadQueryFont(a0, a1);
17 LeaveCriticalSection( &X11DRV_CritSection );
18 TRACE(x11, "Ret XLoadQueryFont\n");
22 XModifierKeymap * TSXGetModifierMapping(Display* a0)
25 TRACE(x11, "Call XGetModifierMapping\n");
26 EnterCriticalSection( &X11DRV_CritSection );
27 r = XGetModifierMapping(a0);
28 LeaveCriticalSection( &X11DRV_CritSection );
29 TRACE(x11, "Ret XGetModifierMapping\n");
33 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)
36 TRACE(x11, "Call XCreateImage\n");
37 EnterCriticalSection( &X11DRV_CritSection );
38 r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
39 LeaveCriticalSection( &X11DRV_CritSection );
40 TRACE(x11, "Ret XCreateImage\n");
44 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
47 TRACE(x11, "Call XGetImage\n");
48 EnterCriticalSection( &X11DRV_CritSection );
49 r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
50 LeaveCriticalSection( &X11DRV_CritSection );
51 TRACE(x11, "Ret XGetImage\n");
55 Display * TSXOpenDisplay(const char* a0)
58 TRACE(x11, "Call XOpenDisplay\n");
59 EnterCriticalSection( &X11DRV_CritSection );
61 LeaveCriticalSection( &X11DRV_CritSection );
62 TRACE(x11, "Ret XOpenDisplay\n");
66 void TSXrmInitialize(void)
68 TRACE(x11, "Call XrmInitialize\n");
69 EnterCriticalSection( &X11DRV_CritSection );
71 LeaveCriticalSection( &X11DRV_CritSection );
72 TRACE(x11, "Ret XrmInitialize\n");
75 char * TSXGetAtomName(Display* a0, Atom a1)
78 TRACE(x11, "Call XGetAtomName\n");
79 EnterCriticalSection( &X11DRV_CritSection );
80 r = XGetAtomName(a0, a1);
81 LeaveCriticalSection( &X11DRV_CritSection );
82 TRACE(x11, "Ret XGetAtomName\n");
86 char * TSXKeysymToString(KeySym a0)
89 TRACE(x11, "Call XKeysymToString\n");
90 EnterCriticalSection( &X11DRV_CritSection );
91 r = XKeysymToString(a0);
92 LeaveCriticalSection( &X11DRV_CritSection );
93 TRACE(x11, "Ret XKeysymToString\n");
97 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
100 TRACE(x11, "Call XInternAtom\n");
101 EnterCriticalSection( &X11DRV_CritSection );
102 r = XInternAtom(a0, a1, a2);
103 LeaveCriticalSection( &X11DRV_CritSection );
104 TRACE(x11, "Ret XInternAtom\n");
108 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
111 TRACE(x11, "Call XCopyColormapAndFree\n");
112 EnterCriticalSection( &X11DRV_CritSection );
113 r = XCopyColormapAndFree(a0, a1);
114 LeaveCriticalSection( &X11DRV_CritSection );
115 TRACE(x11, "Ret XCopyColormapAndFree\n");
119 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
122 TRACE(x11, "Call XCreateColormap\n");
123 EnterCriticalSection( &X11DRV_CritSection );
124 r = XCreateColormap(a0, a1, a2, a3);
125 LeaveCriticalSection( &X11DRV_CritSection );
126 TRACE(x11, "Ret XCreateColormap\n");
130 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
133 TRACE(x11, "Call XCreatePixmapCursor\n");
134 EnterCriticalSection( &X11DRV_CritSection );
135 r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
136 LeaveCriticalSection( &X11DRV_CritSection );
137 TRACE(x11, "Ret XCreatePixmapCursor\n");
141 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
144 TRACE(x11, "Call XCreateFontCursor\n");
145 EnterCriticalSection( &X11DRV_CritSection );
146 r = XCreateFontCursor(a0, a1);
147 LeaveCriticalSection( &X11DRV_CritSection );
148 TRACE(x11, "Ret XCreateFontCursor\n");
152 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
155 TRACE(x11, "Call XCreateGC\n");
156 EnterCriticalSection( &X11DRV_CritSection );
157 r = XCreateGC(a0, a1, a2, a3);
158 LeaveCriticalSection( &X11DRV_CritSection );
159 TRACE(x11, "Ret XCreateGC\n");
163 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
166 TRACE(x11, "Call XCreatePixmap\n");
167 EnterCriticalSection( &X11DRV_CritSection );
168 r = XCreatePixmap(a0, a1, a2, a3, a4);
169 LeaveCriticalSection( &X11DRV_CritSection );
170 TRACE(x11, "Ret XCreatePixmap\n");
174 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
177 TRACE(x11, "Call XCreateBitmapFromData\n");
178 EnterCriticalSection( &X11DRV_CritSection );
179 r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
180 LeaveCriticalSection( &X11DRV_CritSection );
181 TRACE(x11, "Ret XCreateBitmapFromData\n");
185 Window TSXGetSelectionOwner(Display* a0, Atom a1)
188 TRACE(x11, "Call XGetSelectionOwner\n");
189 EnterCriticalSection( &X11DRV_CritSection );
190 r = XGetSelectionOwner(a0, a1);
191 LeaveCriticalSection( &X11DRV_CritSection );
192 TRACE(x11, "Ret XGetSelectionOwner\n");
196 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)
199 TRACE(x11, "Call XCreateWindow\n");
200 EnterCriticalSection( &X11DRV_CritSection );
201 r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
202 LeaveCriticalSection( &X11DRV_CritSection );
203 TRACE(x11, "Ret XCreateWindow\n");
207 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
210 TRACE(x11, "Call XListFonts\n");
211 EnterCriticalSection( &X11DRV_CritSection );
212 r = XListFonts(a0, a1, a2, a3);
213 LeaveCriticalSection( &X11DRV_CritSection );
214 TRACE(x11, "Ret XListFonts\n");
218 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
221 TRACE(x11, "Call XKeycodeToKeysym\n");
222 EnterCriticalSection( &X11DRV_CritSection );
223 r = XKeycodeToKeysym(a0, a1, a2);
224 LeaveCriticalSection( &X11DRV_CritSection );
225 TRACE(x11, "Ret XKeycodeToKeysym\n");
229 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
232 TRACE(x11, "Call XLookupKeysym\n");
233 EnterCriticalSection( &X11DRV_CritSection );
234 r = XLookupKeysym(a0, a1);
235 LeaveCriticalSection( &X11DRV_CritSection );
236 TRACE(x11, "Ret XLookupKeysym\n");
240 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
243 TRACE(x11, "Call XGetKeyboardMapping\n");
244 EnterCriticalSection( &X11DRV_CritSection );
245 r = XGetKeyboardMapping(a0, a1, a2, a3);
246 LeaveCriticalSection( &X11DRV_CritSection );
247 TRACE(x11, "Ret XGetKeyboardMapping\n");
251 char * TSXResourceManagerString(Display* a0)
254 TRACE(x11, "Call XResourceManagerString\n");
255 EnterCriticalSection( &X11DRV_CritSection );
256 r = XResourceManagerString(a0);
257 LeaveCriticalSection( &X11DRV_CritSection );
258 TRACE(x11, "Ret XResourceManagerString\n");
262 int TSXInitThreads(void)
265 TRACE(x11, "Call XInitThreads\n");
266 EnterCriticalSection( &X11DRV_CritSection );
268 LeaveCriticalSection( &X11DRV_CritSection );
269 TRACE(x11, "Ret XInitThreads\n");
273 int * TSXListDepths(Display* a0, int a1, int* a2)
276 TRACE(x11, "Call XListDepths\n");
277 EnterCriticalSection( &X11DRV_CritSection );
278 r = XListDepths(a0, a1, a2);
279 LeaveCriticalSection( &X11DRV_CritSection );
280 TRACE(x11, "Ret XListDepths\n");
284 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
287 TRACE(x11, "Call XReconfigureWMWindow\n");
288 EnterCriticalSection( &X11DRV_CritSection );
289 r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
290 LeaveCriticalSection( &X11DRV_CritSection );
291 TRACE(x11, "Ret XReconfigureWMWindow\n");
295 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
298 TRACE(x11, "Call XSetWMProtocols\n");
299 EnterCriticalSection( &X11DRV_CritSection );
300 r = XSetWMProtocols(a0, a1, a2, a3);
301 LeaveCriticalSection( &X11DRV_CritSection );
302 TRACE(x11, "Ret XSetWMProtocols\n");
306 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
309 TRACE(x11, "Call XSetTransientForHint\n");
310 EnterCriticalSection( &X11DRV_CritSection );
311 r = XSetTransientForHint(a0, a1, a2);
312 LeaveCriticalSection( &X11DRV_CritSection );
313 TRACE(x11, "Ret XSetTransientForHint\n");
317 int TSXActivateScreenSaver(Display* a0)
320 TRACE(x11, "Call XActivateScreenSaver\n");
321 EnterCriticalSection( &X11DRV_CritSection );
322 r = XActivateScreenSaver(a0);
323 LeaveCriticalSection( &X11DRV_CritSection );
324 TRACE(x11, "Ret XActivateScreenSaver\n");
328 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
331 TRACE(x11, "Call XAllocColor\n");
332 EnterCriticalSection( &X11DRV_CritSection );
333 r = XAllocColor(a0, a1, a2);
334 LeaveCriticalSection( &X11DRV_CritSection );
335 TRACE(x11, "Ret XAllocColor\n");
339 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
342 TRACE(x11, "Call XAllocColorCells\n");
343 EnterCriticalSection( &X11DRV_CritSection );
344 r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
345 LeaveCriticalSection( &X11DRV_CritSection );
346 TRACE(x11, "Ret XAllocColorCells\n");
350 int TSXBell(Display* a0, int a1)
353 TRACE(x11, "Call XBell\n");
354 EnterCriticalSection( &X11DRV_CritSection );
356 LeaveCriticalSection( &X11DRV_CritSection );
357 TRACE(x11, "Ret XBell\n");
361 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
364 TRACE(x11, "Call XChangeGC\n");
365 EnterCriticalSection( &X11DRV_CritSection );
366 r = XChangeGC(a0, a1, a2, a3);
367 LeaveCriticalSection( &X11DRV_CritSection );
368 TRACE(x11, "Ret XChangeGC\n");
372 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
375 TRACE(x11, "Call XChangeKeyboardControl\n");
376 EnterCriticalSection( &X11DRV_CritSection );
377 r = XChangeKeyboardControl(a0, a1, a2);
378 LeaveCriticalSection( &X11DRV_CritSection );
379 TRACE(x11, "Ret XChangeKeyboardControl\n");
383 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
386 TRACE(x11, "Call XChangeProperty\n");
387 EnterCriticalSection( &X11DRV_CritSection );
388 r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
389 LeaveCriticalSection( &X11DRV_CritSection );
390 TRACE(x11, "Ret XChangeProperty\n");
394 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
397 TRACE(x11, "Call XChangeWindowAttributes\n");
398 EnterCriticalSection( &X11DRV_CritSection );
399 r = XChangeWindowAttributes(a0, a1, a2, a3);
400 LeaveCriticalSection( &X11DRV_CritSection );
401 TRACE(x11, "Ret XChangeWindowAttributes\n");
405 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
408 TRACE(x11, "Call XCheckTypedWindowEvent\n");
409 EnterCriticalSection( &X11DRV_CritSection );
410 r = XCheckTypedWindowEvent(a0, a1, a2, a3);
411 LeaveCriticalSection( &X11DRV_CritSection );
412 TRACE(x11, "Ret XCheckTypedWindowEvent\n");
416 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
419 TRACE(x11, "Call XCheckWindowEvent\n");
420 EnterCriticalSection( &X11DRV_CritSection );
421 r = XCheckWindowEvent(a0, a1, a2, a3);
422 LeaveCriticalSection( &X11DRV_CritSection );
423 TRACE(x11, "Ret XCheckWindowEvent\n");
427 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
430 TRACE(x11, "Call XConvertSelection\n");
431 EnterCriticalSection( &X11DRV_CritSection );
432 r = XConvertSelection(a0, a1, a2, a3, a4, a5);
433 LeaveCriticalSection( &X11DRV_CritSection );
434 TRACE(x11, "Ret XConvertSelection\n");
438 int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
441 TRACE(x11, "Call XCopyArea\n");
442 EnterCriticalSection( &X11DRV_CritSection );
443 r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
444 LeaveCriticalSection( &X11DRV_CritSection );
445 TRACE(x11, "Ret XCopyArea\n");
449 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)
452 TRACE(x11, "Call XCopyPlane\n");
453 EnterCriticalSection( &X11DRV_CritSection );
454 r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
455 LeaveCriticalSection( &X11DRV_CritSection );
456 TRACE(x11, "Ret XCopyPlane\n");
460 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
463 TRACE(x11, "Call XDefineCursor\n");
464 EnterCriticalSection( &X11DRV_CritSection );
465 r = XDefineCursor(a0, a1, a2);
466 LeaveCriticalSection( &X11DRV_CritSection );
467 TRACE(x11, "Ret XDefineCursor\n");
471 int TSXDestroyWindow(Display* a0, Window a1)
474 TRACE(x11, "Call XDestroyWindow\n");
475 EnterCriticalSection( &X11DRV_CritSection );
476 r = XDestroyWindow(a0, a1);
477 LeaveCriticalSection( &X11DRV_CritSection );
478 TRACE(x11, "Ret XDestroyWindow\n");
482 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
485 TRACE(x11, "Call XDisplayKeycodes\n");
486 EnterCriticalSection( &X11DRV_CritSection );
487 r = XDisplayKeycodes(a0, a1, a2);
488 LeaveCriticalSection( &X11DRV_CritSection );
489 TRACE(x11, "Ret XDisplayKeycodes\n");
493 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
496 TRACE(x11, "Call XDrawArc\n");
497 EnterCriticalSection( &X11DRV_CritSection );
498 r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
499 LeaveCriticalSection( &X11DRV_CritSection );
500 TRACE(x11, "Ret XDrawArc\n");
504 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
507 TRACE(x11, "Call XDrawLine\n");
508 EnterCriticalSection( &X11DRV_CritSection );
509 r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
510 LeaveCriticalSection( &X11DRV_CritSection );
511 TRACE(x11, "Ret XDrawLine\n");
515 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
518 TRACE(x11, "Call XDrawLines\n");
519 EnterCriticalSection( &X11DRV_CritSection );
520 r = XDrawLines(a0, a1, a2, a3, a4, a5);
521 LeaveCriticalSection( &X11DRV_CritSection );
522 TRACE(x11, "Ret XDrawLines\n");
526 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
529 TRACE(x11, "Call XDrawPoint\n");
530 EnterCriticalSection( &X11DRV_CritSection );
531 r = XDrawPoint(a0, a1, a2, a3, a4);
532 LeaveCriticalSection( &X11DRV_CritSection );
533 TRACE(x11, "Ret XDrawPoint\n");
537 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
540 TRACE(x11, "Call XDrawRectangle\n");
541 EnterCriticalSection( &X11DRV_CritSection );
542 r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
543 LeaveCriticalSection( &X11DRV_CritSection );
544 TRACE(x11, "Ret XDrawRectangle\n");
548 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
551 TRACE(x11, "Call XDrawSegments\n");
552 EnterCriticalSection( &X11DRV_CritSection );
553 r = XDrawSegments(a0, a1, a2, a3, a4);
554 LeaveCriticalSection( &X11DRV_CritSection );
555 TRACE(x11, "Ret XDrawSegments\n");
559 int TSXDrawString(Display* a0, Drawable a1, GC a2, int a3, int a4, const char* a5, int a6)
562 TRACE(x11, "Call XDrawString\n");
563 EnterCriticalSection( &X11DRV_CritSection );
564 r = XDrawString(a0, a1, a2, a3, a4, a5, a6);
565 LeaveCriticalSection( &X11DRV_CritSection );
566 TRACE(x11, "Ret XDrawString\n");
570 int TSXDrawText(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem* a5, int a6)
573 TRACE(x11, "Call XDrawText\n");
574 EnterCriticalSection( &X11DRV_CritSection );
575 r = XDrawText(a0, a1, a2, a3, a4, a5, a6);
576 LeaveCriticalSection( &X11DRV_CritSection );
577 TRACE(x11, "Ret XDrawText\n");
581 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
584 TRACE(x11, "Call XFillArc\n");
585 EnterCriticalSection( &X11DRV_CritSection );
586 r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
587 LeaveCriticalSection( &X11DRV_CritSection );
588 TRACE(x11, "Ret XFillArc\n");
592 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
595 TRACE(x11, "Call XFillPolygon\n");
596 EnterCriticalSection( &X11DRV_CritSection );
597 r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
598 LeaveCriticalSection( &X11DRV_CritSection );
599 TRACE(x11, "Ret XFillPolygon\n");
603 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
606 TRACE(x11, "Call XFillRectangle\n");
607 EnterCriticalSection( &X11DRV_CritSection );
608 r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
609 LeaveCriticalSection( &X11DRV_CritSection );
610 TRACE(x11, "Ret XFillRectangle\n");
614 int TSXFlush(Display* a0)
617 TRACE(x11, "Call XFlush\n");
618 EnterCriticalSection( &X11DRV_CritSection );
620 LeaveCriticalSection( &X11DRV_CritSection );
621 TRACE(x11, "Ret XFlush\n");
625 int TSXFree(void* a0)
628 TRACE(x11, "Call XFree\n");
629 EnterCriticalSection( &X11DRV_CritSection );
631 LeaveCriticalSection( &X11DRV_CritSection );
632 TRACE(x11, "Ret XFree\n");
636 int TSXFreeColormap(Display* a0, Colormap a1)
639 TRACE(x11, "Call XFreeColormap\n");
640 EnterCriticalSection( &X11DRV_CritSection );
641 r = XFreeColormap(a0, a1);
642 LeaveCriticalSection( &X11DRV_CritSection );
643 TRACE(x11, "Ret XFreeColormap\n");
647 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
650 TRACE(x11, "Call XFreeColors\n");
651 EnterCriticalSection( &X11DRV_CritSection );
652 r = XFreeColors(a0, a1, a2, a3, a4);
653 LeaveCriticalSection( &X11DRV_CritSection );
654 TRACE(x11, "Ret XFreeColors\n");
658 int TSXFreeCursor(Display* a0, Cursor a1)
661 TRACE(x11, "Call XFreeCursor\n");
662 EnterCriticalSection( &X11DRV_CritSection );
663 r = XFreeCursor(a0, a1);
664 LeaveCriticalSection( &X11DRV_CritSection );
665 TRACE(x11, "Ret XFreeCursor\n");
669 int TSXFreeFont(Display* a0, XFontStruct* a1)
672 TRACE(x11, "Call XFreeFont\n");
673 EnterCriticalSection( &X11DRV_CritSection );
674 r = XFreeFont(a0, a1);
675 LeaveCriticalSection( &X11DRV_CritSection );
676 TRACE(x11, "Ret XFreeFont\n");
680 int TSXFreeFontNames(char** a0)
683 TRACE(x11, "Call XFreeFontNames\n");
684 EnterCriticalSection( &X11DRV_CritSection );
685 r = XFreeFontNames(a0);
686 LeaveCriticalSection( &X11DRV_CritSection );
687 TRACE(x11, "Ret XFreeFontNames\n");
691 int TSXFreeGC(Display* a0, GC a1)
694 TRACE(x11, "Call XFreeGC\n");
695 EnterCriticalSection( &X11DRV_CritSection );
697 LeaveCriticalSection( &X11DRV_CritSection );
698 TRACE(x11, "Ret XFreeGC\n");
702 int TSXFreeModifiermap(XModifierKeymap* a0)
705 TRACE(x11, "Call XFreeModifiermap\n");
706 EnterCriticalSection( &X11DRV_CritSection );
707 r = XFreeModifiermap(a0);
708 LeaveCriticalSection( &X11DRV_CritSection );
709 TRACE(x11, "Ret XFreeModifiermap\n");
713 int TSXFreePixmap(Display* a0, Pixmap a1)
716 TRACE(x11, "Call XFreePixmap\n");
717 EnterCriticalSection( &X11DRV_CritSection );
718 r = XFreePixmap(a0, a1);
719 LeaveCriticalSection( &X11DRV_CritSection );
720 TRACE(x11, "Ret XFreePixmap\n");
724 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
727 TRACE(x11, "Call XGetFontProperty\n");
728 EnterCriticalSection( &X11DRV_CritSection );
729 r = XGetFontProperty(a0, a1, a2);
730 LeaveCriticalSection( &X11DRV_CritSection );
731 TRACE(x11, "Ret XGetFontProperty\n");
735 int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
738 TRACE(x11, "Call XGetGeometry\n");
739 EnterCriticalSection( &X11DRV_CritSection );
740 r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
741 LeaveCriticalSection( &X11DRV_CritSection );
742 TRACE(x11, "Ret XGetGeometry\n");
746 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
749 TRACE(x11, "Call XGetInputFocus\n");
750 EnterCriticalSection( &X11DRV_CritSection );
751 r = XGetInputFocus(a0, a1, a2);
752 LeaveCriticalSection( &X11DRV_CritSection );
753 TRACE(x11, "Ret XGetInputFocus\n");
757 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
760 TRACE(x11, "Call XGetKeyboardControl\n");
761 EnterCriticalSection( &X11DRV_CritSection );
762 r = XGetKeyboardControl(a0, a1);
763 LeaveCriticalSection( &X11DRV_CritSection );
764 TRACE(x11, "Ret XGetKeyboardControl\n");
768 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
771 TRACE(x11, "Call XGetScreenSaver\n");
772 EnterCriticalSection( &X11DRV_CritSection );
773 r = XGetScreenSaver(a0, a1, a2, a3, a4);
774 LeaveCriticalSection( &X11DRV_CritSection );
775 TRACE(x11, "Ret XGetScreenSaver\n");
779 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)
782 TRACE(x11, "Call XGetWindowProperty\n");
783 EnterCriticalSection( &X11DRV_CritSection );
784 r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
785 LeaveCriticalSection( &X11DRV_CritSection );
786 TRACE(x11, "Ret XGetWindowProperty\n");
790 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
793 TRACE(x11, "Call XGetWindowAttributes\n");
794 EnterCriticalSection( &X11DRV_CritSection );
795 r = XGetWindowAttributes(a0, a1, a2);
796 LeaveCriticalSection( &X11DRV_CritSection );
797 TRACE(x11, "Ret XGetWindowAttributes\n");
801 int TSXGrabServer(Display* a0)
804 TRACE(x11, "Call XGrabServer\n");
805 EnterCriticalSection( &X11DRV_CritSection );
807 LeaveCriticalSection( &X11DRV_CritSection );
808 TRACE(x11, "Ret XGrabServer\n");
812 int TSXInstallColormap(Display* a0, Colormap a1)
815 TRACE(x11, "Call XInstallColormap\n");
816 EnterCriticalSection( &X11DRV_CritSection );
817 r = XInstallColormap(a0, a1);
818 LeaveCriticalSection( &X11DRV_CritSection );
819 TRACE(x11, "Ret XInstallColormap\n");
823 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
826 TRACE(x11, "Call XKeysymToKeycode\n");
827 EnterCriticalSection( &X11DRV_CritSection );
828 r = XKeysymToKeycode(a0, a1);
829 LeaveCriticalSection( &X11DRV_CritSection );
830 TRACE(x11, "Ret XKeysymToKeycode\n");
834 int TSXMapWindow(Display* a0, Window a1)
837 TRACE(x11, "Call XMapWindow\n");
838 EnterCriticalSection( &X11DRV_CritSection );
839 r = XMapWindow(a0, a1);
840 LeaveCriticalSection( &X11DRV_CritSection );
841 TRACE(x11, "Ret XMapWindow\n");
845 int TSXNextEvent(Display* a0, XEvent* a1)
848 TRACE(x11, "Call XNextEvent\n");
849 EnterCriticalSection( &X11DRV_CritSection );
850 r = XNextEvent(a0, a1);
851 LeaveCriticalSection( &X11DRV_CritSection );
852 TRACE(x11, "Ret XNextEvent\n");
856 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
859 TRACE(x11, "Call XParseGeometry\n");
860 EnterCriticalSection( &X11DRV_CritSection );
861 r = XParseGeometry(a0, a1, a2, a3, a4);
862 LeaveCriticalSection( &X11DRV_CritSection );
863 TRACE(x11, "Ret XParseGeometry\n");
867 int TSXPending(Display* a0)
870 TRACE(x11, "Call XPending\n");
871 EnterCriticalSection( &X11DRV_CritSection );
873 LeaveCriticalSection( &X11DRV_CritSection );
874 TRACE(x11, "Ret XPending\n");
878 int TSXPutBackEvent(Display* a0, XEvent* a1)
881 TRACE(x11, "Call XPutBackEvent\n");
882 EnterCriticalSection( &X11DRV_CritSection );
883 r = XPutBackEvent(a0, a1);
884 LeaveCriticalSection( &X11DRV_CritSection );
885 TRACE(x11, "Ret XPutBackEvent\n");
889 int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
892 TRACE(x11, "Call XPutImage\n");
893 EnterCriticalSection( &X11DRV_CritSection );
894 r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
895 LeaveCriticalSection( &X11DRV_CritSection );
896 TRACE(x11, "Ret XPutImage\n");
900 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
903 TRACE(x11, "Call XQueryColor\n");
904 EnterCriticalSection( &X11DRV_CritSection );
905 r = XQueryColor(a0, a1, a2);
906 LeaveCriticalSection( &X11DRV_CritSection );
907 TRACE(x11, "Ret XQueryColor\n");
911 int TSXQueryKeymap(Display* a0, char* a1)
914 TRACE(x11, "Call XQueryKeymap\n");
915 EnterCriticalSection( &X11DRV_CritSection );
916 r = XQueryKeymap(a0, a1);
917 LeaveCriticalSection( &X11DRV_CritSection );
918 TRACE(x11, "Ret XQueryKeymap\n");
922 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
925 TRACE(x11, "Call XQueryPointer\n");
926 EnterCriticalSection( &X11DRV_CritSection );
927 r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
928 LeaveCriticalSection( &X11DRV_CritSection );
929 TRACE(x11, "Ret XQueryPointer\n");
933 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
936 TRACE(x11, "Call XQueryTree\n");
937 EnterCriticalSection( &X11DRV_CritSection );
938 r = XQueryTree(a0, a1, a2, a3, a4, a5);
939 LeaveCriticalSection( &X11DRV_CritSection );
940 TRACE(x11, "Ret XQueryTree\n");
944 int TSXResetScreenSaver(Display* a0)
947 TRACE(x11, "Call XResetScreenSaver\n");
948 EnterCriticalSection( &X11DRV_CritSection );
949 r = XResetScreenSaver(a0);
950 LeaveCriticalSection( &X11DRV_CritSection );
951 TRACE(x11, "Ret XResetScreenSaver\n");
955 int TSXRestackWindows(Display* a0, Window* a1, int a2)
958 TRACE(x11, "Call XRestackWindows\n");
959 EnterCriticalSection( &X11DRV_CritSection );
960 r = XRestackWindows(a0, a1, a2);
961 LeaveCriticalSection( &X11DRV_CritSection );
962 TRACE(x11, "Ret XRestackWindows\n");
966 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
969 TRACE(x11, "Call XSendEvent\n");
970 EnterCriticalSection( &X11DRV_CritSection );
971 r = XSendEvent(a0, a1, a2, a3, a4);
972 LeaveCriticalSection( &X11DRV_CritSection );
973 TRACE(x11, "Ret XSendEvent\n");
977 int TSXSetArcMode(Display* a0, GC a1, int a2)
980 TRACE(x11, "Call XSetArcMode\n");
981 EnterCriticalSection( &X11DRV_CritSection );
982 r = XSetArcMode(a0, a1, a2);
983 LeaveCriticalSection( &X11DRV_CritSection );
984 TRACE(x11, "Ret XSetArcMode\n");
988 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
991 TRACE(x11, "Call XSetBackground\n");
992 EnterCriticalSection( &X11DRV_CritSection );
993 r = XSetBackground(a0, a1, a2);
994 LeaveCriticalSection( &X11DRV_CritSection );
995 TRACE(x11, "Ret XSetBackground\n");
999 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
1002 TRACE(x11, "Call XSetClipMask\n");
1003 EnterCriticalSection( &X11DRV_CritSection );
1004 r = XSetClipMask(a0, a1, a2);
1005 LeaveCriticalSection( &X11DRV_CritSection );
1006 TRACE(x11, "Ret XSetClipMask\n");
1010 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
1013 TRACE(x11, "Call XSetClipOrigin\n");
1014 EnterCriticalSection( &X11DRV_CritSection );
1015 r = XSetClipOrigin(a0, a1, a2, a3);
1016 LeaveCriticalSection( &X11DRV_CritSection );
1017 TRACE(x11, "Ret XSetClipOrigin\n");
1021 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
1024 TRACE(x11, "Call XSetClipRectangles\n");
1025 EnterCriticalSection( &X11DRV_CritSection );
1026 r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
1027 LeaveCriticalSection( &X11DRV_CritSection );
1028 TRACE(x11, "Ret XSetClipRectangles\n");
1032 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
1035 TRACE(x11, "Call XSetDashes\n");
1036 EnterCriticalSection( &X11DRV_CritSection );
1037 r = XSetDashes(a0, a1, a2, a3, a4);
1038 LeaveCriticalSection( &X11DRV_CritSection );
1039 TRACE(x11, "Ret XSetDashes\n");
1043 int TSXSetFillStyle(Display* a0, GC a1, int a2)
1046 TRACE(x11, "Call XSetFillStyle\n");
1047 EnterCriticalSection( &X11DRV_CritSection );
1048 r = XSetFillStyle(a0, a1, a2);
1049 LeaveCriticalSection( &X11DRV_CritSection );
1050 TRACE(x11, "Ret XSetFillStyle\n");
1054 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
1057 TRACE(x11, "Call XSetForeground\n");
1058 EnterCriticalSection( &X11DRV_CritSection );
1059 r = XSetForeground(a0, a1, a2);
1060 LeaveCriticalSection( &X11DRV_CritSection );
1061 TRACE(x11, "Ret XSetForeground\n");
1065 int TSXSetFunction(Display* a0, GC a1, int a2)
1068 TRACE(x11, "Call XSetFunction\n");
1069 EnterCriticalSection( &X11DRV_CritSection );
1070 r = XSetFunction(a0, a1, a2);
1071 LeaveCriticalSection( &X11DRV_CritSection );
1072 TRACE(x11, "Ret XSetFunction\n");
1076 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
1079 TRACE(x11, "Call XSetGraphicsExposures\n");
1080 EnterCriticalSection( &X11DRV_CritSection );
1081 r = XSetGraphicsExposures(a0, a1, a2);
1082 LeaveCriticalSection( &X11DRV_CritSection );
1083 TRACE(x11, "Ret XSetGraphicsExposures\n");
1087 int TSXSetIconName(Display* a0, Window a1, const char* a2)
1090 TRACE(x11, "Call XSetIconName\n");
1091 EnterCriticalSection( &X11DRV_CritSection );
1092 r = XSetIconName(a0, a1, a2);
1093 LeaveCriticalSection( &X11DRV_CritSection );
1094 TRACE(x11, "Ret XSetIconName\n");
1098 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
1101 TRACE(x11, "Call XSetInputFocus\n");
1102 EnterCriticalSection( &X11DRV_CritSection );
1103 r = XSetInputFocus(a0, a1, a2, a3);
1104 LeaveCriticalSection( &X11DRV_CritSection );
1105 TRACE(x11, "Ret XSetInputFocus\n");
1109 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1112 TRACE(x11, "Call XSetLineAttributes\n");
1113 EnterCriticalSection( &X11DRV_CritSection );
1114 r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1115 LeaveCriticalSection( &X11DRV_CritSection );
1116 TRACE(x11, "Ret XSetLineAttributes\n");
1120 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1123 TRACE(x11, "Call XSetScreenSaver\n");
1124 EnterCriticalSection( &X11DRV_CritSection );
1125 r = XSetScreenSaver(a0, a1, a2, a3, a4);
1126 LeaveCriticalSection( &X11DRV_CritSection );
1127 TRACE(x11, "Ret XSetScreenSaver\n");
1131 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1134 TRACE(x11, "Call XSetSelectionOwner\n");
1135 EnterCriticalSection( &X11DRV_CritSection );
1136 r = XSetSelectionOwner(a0, a1, a2, a3);
1137 LeaveCriticalSection( &X11DRV_CritSection );
1138 TRACE(x11, "Ret XSetSelectionOwner\n");
1142 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1145 TRACE(x11, "Call XSetSubwindowMode\n");
1146 EnterCriticalSection( &X11DRV_CritSection );
1147 r = XSetSubwindowMode(a0, a1, a2);
1148 LeaveCriticalSection( &X11DRV_CritSection );
1149 TRACE(x11, "Ret XSetSubwindowMode\n");
1153 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1156 TRACE(x11, "Call XSetWindowColormap\n");
1157 EnterCriticalSection( &X11DRV_CritSection );
1158 r = XSetWindowColormap(a0, a1, a2);
1159 LeaveCriticalSection( &X11DRV_CritSection );
1160 TRACE(x11, "Ret XSetWindowColormap\n");
1164 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1167 TRACE(x11, "Call XStoreColor\n");
1168 EnterCriticalSection( &X11DRV_CritSection );
1169 r = XStoreColor(a0, a1, a2);
1170 LeaveCriticalSection( &X11DRV_CritSection );
1171 TRACE(x11, "Ret XStoreColor\n");
1175 int TSXStoreName(Display* a0, Window a1, const char* a2)
1178 TRACE(x11, "Call XStoreName\n");
1179 EnterCriticalSection( &X11DRV_CritSection );
1180 r = XStoreName(a0, a1, a2);
1181 LeaveCriticalSection( &X11DRV_CritSection );
1182 TRACE(x11, "Ret XStoreName\n");
1186 int TSXSync(Display* a0, int a1)
1189 TRACE(x11, "Call XSync\n");
1190 EnterCriticalSection( &X11DRV_CritSection );
1192 LeaveCriticalSection( &X11DRV_CritSection );
1193 TRACE(x11, "Ret XSync\n");
1197 int TSXTextExtents(XFontStruct* a0, const char* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1200 TRACE(x11, "Call XTextExtents\n");
1201 EnterCriticalSection( &X11DRV_CritSection );
1202 r = XTextExtents(a0, a1, a2, a3, a4, a5, a6);
1203 LeaveCriticalSection( &X11DRV_CritSection );
1204 TRACE(x11, "Ret XTextExtents\n");
1208 int TSXTextWidth(XFontStruct* a0, const char* a1, int a2)
1211 TRACE(x11, "Call XTextWidth\n");
1212 EnterCriticalSection( &X11DRV_CritSection );
1213 r = XTextWidth(a0, a1, a2);
1214 LeaveCriticalSection( &X11DRV_CritSection );
1215 TRACE(x11, "Ret XTextWidth\n");
1219 int TSXUngrabServer(Display* a0)
1222 TRACE(x11, "Call XUngrabServer\n");
1223 EnterCriticalSection( &X11DRV_CritSection );
1224 r = XUngrabServer(a0);
1225 LeaveCriticalSection( &X11DRV_CritSection );
1226 TRACE(x11, "Ret XUngrabServer\n");
1230 int TSXUninstallColormap(Display* a0, Colormap a1)
1233 TRACE(x11, "Call XUninstallColormap\n");
1234 EnterCriticalSection( &X11DRV_CritSection );
1235 r = XUninstallColormap(a0, a1);
1236 LeaveCriticalSection( &X11DRV_CritSection );
1237 TRACE(x11, "Ret XUninstallColormap\n");
1241 int TSXUnmapWindow(Display* a0, Window a1)
1244 TRACE(x11, "Call XUnmapWindow\n");
1245 EnterCriticalSection( &X11DRV_CritSection );
1246 r = XUnmapWindow(a0, a1);
1247 LeaveCriticalSection( &X11DRV_CritSection );
1248 TRACE(x11, "Ret XUnmapWindow\n");
1252 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1255 TRACE(x11, "Call XWarpPointer\n");
1256 EnterCriticalSection( &X11DRV_CritSection );
1257 r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1258 LeaveCriticalSection( &X11DRV_CritSection );
1259 TRACE(x11, "Ret XWarpPointer\n");
1263 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1266 TRACE(x11, "Call XOpenIM\n");
1267 EnterCriticalSection( &X11DRV_CritSection );
1268 r = XOpenIM(a0, a1, a2, a3);
1269 LeaveCriticalSection( &X11DRV_CritSection );
1270 TRACE(x11, "Ret XOpenIM\n");
1274 int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
1276 int (*r)(Display *);
1277 TRACE(x11, "Call XSynchronize\n");
1278 EnterCriticalSection( &X11DRV_CritSection );
1279 r = XSynchronize(a0, a1);
1280 LeaveCriticalSection( &X11DRV_CritSection );
1281 TRACE(x11, "Ret XSynchronize\n");
1285 extern void _XInitImageFuncPtrs(XImage *);
1287 void TS_XInitImageFuncPtrs(XImage *a0)
1289 TRACE(x11, "Call _XInitImageFuncPtrs\n");
1290 EnterCriticalSection( &X11DRV_CritSection );
1291 _XInitImageFuncPtrs(a0);
1292 LeaveCriticalSection( &X11DRV_CritSection );
1293 TRACE(x11, "Ret _XInitImageFuncPtrs\n");