When the commandID was being treated as the index, no check for index
[wine/multimedia.git] / tsx11 / ts_xlib.c
blob6fa8f3cb0b62bada2d24c491716384db6498f84f
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"
10 #include <X11/Xlib.h>
12 #include "ts_xlib.h"
15 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
17 XFontStruct * r;
18 wine_tsx11_lock();
19 r = XLoadQueryFont(a0, a1);
20 wine_tsx11_unlock();
21 return r;
24 XModifierKeymap * TSXGetModifierMapping(Display* a0)
26 XModifierKeymap * r;
27 wine_tsx11_lock();
28 r = XGetModifierMapping(a0);
29 wine_tsx11_unlock();
30 return r;
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)
35 XImage * r;
36 wine_tsx11_lock();
37 r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
38 wine_tsx11_unlock();
39 return r;
42 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
44 XImage * r;
45 wine_tsx11_lock();
46 r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
47 wine_tsx11_unlock();
48 return r;
51 XImage * TSXGetSubImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7, XImage* a8, int a9, int a10)
53 XImage * r;
54 wine_tsx11_lock();
55 r = XGetSubImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
56 wine_tsx11_unlock();
57 return r;
60 Display * TSXOpenDisplay(const char* a0)
62 Display * r;
63 wine_tsx11_lock();
64 r = XOpenDisplay(a0);
65 wine_tsx11_unlock();
66 return r;
69 void TSXrmInitialize(void)
71 wine_tsx11_lock();
72 XrmInitialize();
73 wine_tsx11_unlock();
76 char * TSXGetAtomName(Display* a0, Atom a1)
78 char * r;
79 wine_tsx11_lock();
80 r = XGetAtomName(a0, a1);
81 wine_tsx11_unlock();
82 return r;
85 char * TSXKeysymToString(KeySym a0)
87 char * r;
88 wine_tsx11_lock();
89 r = XKeysymToString(a0);
90 wine_tsx11_unlock();
91 return r;
94 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
96 Atom r;
97 wine_tsx11_lock();
98 r = XInternAtom(a0, a1, a2);
99 wine_tsx11_unlock();
100 return r;
103 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
105 Colormap r;
106 wine_tsx11_lock();
107 r = XCopyColormapAndFree(a0, a1);
108 wine_tsx11_unlock();
109 return r;
112 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
114 Colormap r;
115 wine_tsx11_lock();
116 r = XCreateColormap(a0, a1, a2, a3);
117 wine_tsx11_unlock();
118 return r;
121 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
123 Cursor r;
124 wine_tsx11_lock();
125 r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
126 wine_tsx11_unlock();
127 return r;
130 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
132 Cursor r;
133 wine_tsx11_lock();
134 r = XCreateFontCursor(a0, a1);
135 wine_tsx11_unlock();
136 return r;
139 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
141 GC r;
142 wine_tsx11_lock();
143 r = XCreateGC(a0, a1, a2, a3);
144 wine_tsx11_unlock();
145 return r;
148 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
150 Pixmap r;
151 wine_tsx11_lock();
152 r = XCreatePixmap(a0, a1, a2, a3, a4);
153 wine_tsx11_unlock();
154 return r;
157 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
159 Pixmap r;
160 wine_tsx11_lock();
161 r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
162 wine_tsx11_unlock();
163 return r;
166 Window TSXGetSelectionOwner(Display* a0, Atom a1)
168 Window r;
169 wine_tsx11_lock();
170 r = XGetSelectionOwner(a0, a1);
171 wine_tsx11_unlock();
172 return r;
175 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)
177 Window r;
178 wine_tsx11_lock();
179 r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
180 wine_tsx11_unlock();
181 return r;
184 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
186 char ** r;
187 wine_tsx11_lock();
188 r = XListFonts(a0, a1, a2, a3);
189 wine_tsx11_unlock();
190 return r;
193 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
195 KeySym r;
196 wine_tsx11_lock();
197 r = XKeycodeToKeysym(a0, a1, a2);
198 wine_tsx11_unlock();
199 return r;
202 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
204 KeySym r;
205 wine_tsx11_lock();
206 r = XLookupKeysym(a0, a1);
207 wine_tsx11_unlock();
208 return r;
211 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
213 KeySym * r;
214 wine_tsx11_lock();
215 r = XGetKeyboardMapping(a0, a1, a2, a3);
216 wine_tsx11_unlock();
217 return r;
220 char * TSXResourceManagerString(Display* a0)
222 char * r;
223 wine_tsx11_lock();
224 r = XResourceManagerString(a0);
225 wine_tsx11_unlock();
226 return r;
229 int TSXInitThreads(void)
231 int r;
232 wine_tsx11_lock();
233 r = XInitThreads();
234 wine_tsx11_unlock();
235 return r;
238 XPixmapFormatValues * TSXListPixmapFormats(Display* a0, int* a1)
240 XPixmapFormatValues * r;
241 wine_tsx11_lock();
242 r = XListPixmapFormats(a0, a1);
243 wine_tsx11_unlock();
244 return r;
247 int * TSXListDepths(Display* a0, int a1, int* a2)
249 int * r;
250 wine_tsx11_lock();
251 r = XListDepths(a0, a1, a2);
252 wine_tsx11_unlock();
253 return r;
256 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
258 int r;
259 wine_tsx11_lock();
260 r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
261 wine_tsx11_unlock();
262 return r;
265 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
267 int r;
268 wine_tsx11_lock();
269 r = XSetWMProtocols(a0, a1, a2, a3);
270 wine_tsx11_unlock();
271 return r;
274 int TSXIconifyWindow(Display* a0, Window a1, int a2)
276 int r;
277 wine_tsx11_lock();
278 r = XIconifyWindow(a0, a1, a2);
279 wine_tsx11_unlock();
280 return r;
283 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
285 int r;
286 wine_tsx11_lock();
287 r = XSetTransientForHint(a0, a1, a2);
288 wine_tsx11_unlock();
289 return r;
292 int TSXActivateScreenSaver(Display* a0)
294 int r;
295 wine_tsx11_lock();
296 r = XActivateScreenSaver(a0);
297 wine_tsx11_unlock();
298 return r;
301 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
303 int r;
304 wine_tsx11_lock();
305 r = XAllocColor(a0, a1, a2);
306 wine_tsx11_unlock();
307 return r;
310 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
312 int r;
313 wine_tsx11_lock();
314 r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
315 wine_tsx11_unlock();
316 return r;
319 int TSXBell(Display* a0, int a1)
321 int r;
322 wine_tsx11_lock();
323 r = XBell(a0, a1);
324 wine_tsx11_unlock();
325 return r;
328 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
330 int r;
331 wine_tsx11_lock();
332 r = XChangeGC(a0, a1, a2, a3);
333 wine_tsx11_unlock();
334 return r;
337 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
339 int r;
340 wine_tsx11_lock();
341 r = XChangeKeyboardControl(a0, a1, a2);
342 wine_tsx11_unlock();
343 return r;
346 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
348 int r;
349 wine_tsx11_lock();
350 r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
351 wine_tsx11_unlock();
352 return r;
355 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
357 int r;
358 wine_tsx11_lock();
359 r = XChangeWindowAttributes(a0, a1, a2, a3);
360 wine_tsx11_unlock();
361 return r;
364 int TSXCheckTypedEvent(Display* a0, int a1, XEvent* a2)
366 int r;
367 wine_tsx11_lock();
368 r = XCheckTypedEvent(a0, a1, a2);
369 wine_tsx11_unlock();
370 return r;
373 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
375 int r;
376 wine_tsx11_lock();
377 r = XCheckTypedWindowEvent(a0, a1, a2, a3);
378 wine_tsx11_unlock();
379 return r;
382 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
384 int r;
385 wine_tsx11_lock();
386 r = XCheckWindowEvent(a0, a1, a2, a3);
387 wine_tsx11_unlock();
388 return r;
391 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
393 int r;
394 wine_tsx11_lock();
395 r = XConvertSelection(a0, a1, a2, a3, a4, a5);
396 wine_tsx11_unlock();
397 return r;
400 int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
402 int r;
403 wine_tsx11_lock();
404 r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
405 wine_tsx11_unlock();
406 return r;
409 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)
411 int r;
412 wine_tsx11_lock();
413 r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
414 wine_tsx11_unlock();
415 return r;
418 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
420 int r;
421 wine_tsx11_lock();
422 r = XDefineCursor(a0, a1, a2);
423 wine_tsx11_unlock();
424 return r;
427 int TSXDeleteProperty(Display* a0, Window a1, Atom a2)
429 int r;
430 wine_tsx11_lock();
431 r = XDeleteProperty(a0, a1, a2);
432 wine_tsx11_unlock();
433 return r;
436 int TSXDestroyWindow(Display* a0, Window a1)
438 int r;
439 wine_tsx11_lock();
440 r = XDestroyWindow(a0, a1);
441 wine_tsx11_unlock();
442 return r;
445 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
447 int r;
448 wine_tsx11_lock();
449 r = XDisplayKeycodes(a0, a1, a2);
450 wine_tsx11_unlock();
451 return r;
454 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
456 int r;
457 wine_tsx11_lock();
458 r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
459 wine_tsx11_unlock();
460 return r;
463 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
465 int r;
466 wine_tsx11_lock();
467 r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
468 wine_tsx11_unlock();
469 return r;
472 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
474 int r;
475 wine_tsx11_lock();
476 r = XDrawLines(a0, a1, a2, a3, a4, a5);
477 wine_tsx11_unlock();
478 return r;
481 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
483 int r;
484 wine_tsx11_lock();
485 r = XDrawPoint(a0, a1, a2, a3, a4);
486 wine_tsx11_unlock();
487 return r;
490 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
492 int r;
493 wine_tsx11_lock();
494 r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
495 wine_tsx11_unlock();
496 return r;
499 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
501 int r;
502 wine_tsx11_lock();
503 r = XDrawSegments(a0, a1, a2, a3, a4);
504 wine_tsx11_unlock();
505 return r;
508 int TSXDrawString16(Display* a0, Drawable a1, GC a2, int a3, int a4, const XChar2b* a5, int a6)
510 int r;
511 wine_tsx11_lock();
512 r = XDrawString16(a0, a1, a2, a3, a4, a5, a6);
513 wine_tsx11_unlock();
514 return r;
517 int TSXDrawText16(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem16* a5, int a6)
519 int r;
520 wine_tsx11_lock();
521 r = XDrawText16(a0, a1, a2, a3, a4, a5, a6);
522 wine_tsx11_unlock();
523 return r;
526 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
528 int r;
529 wine_tsx11_lock();
530 r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
531 wine_tsx11_unlock();
532 return r;
535 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
537 int r;
538 wine_tsx11_lock();
539 r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
540 wine_tsx11_unlock();
541 return r;
544 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
546 int r;
547 wine_tsx11_lock();
548 r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
549 wine_tsx11_unlock();
550 return r;
553 int TSXFlush(Display* a0)
555 int r;
556 wine_tsx11_lock();
557 r = XFlush(a0);
558 wine_tsx11_unlock();
559 return r;
562 int TSXFree(void* a0)
564 int r;
565 wine_tsx11_lock();
566 r = XFree(a0);
567 wine_tsx11_unlock();
568 return r;
571 int TSXFreeColormap(Display* a0, Colormap a1)
573 int r;
574 wine_tsx11_lock();
575 r = XFreeColormap(a0, a1);
576 wine_tsx11_unlock();
577 return r;
580 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
582 int r;
583 wine_tsx11_lock();
584 r = XFreeColors(a0, a1, a2, a3, a4);
585 wine_tsx11_unlock();
586 return r;
589 int TSXFreeCursor(Display* a0, Cursor a1)
591 int r;
592 wine_tsx11_lock();
593 r = XFreeCursor(a0, a1);
594 wine_tsx11_unlock();
595 return r;
598 int TSXFreeFont(Display* a0, XFontStruct* a1)
600 int r;
601 wine_tsx11_lock();
602 r = XFreeFont(a0, a1);
603 wine_tsx11_unlock();
604 return r;
607 int TSXFreeFontNames(char** a0)
609 int r;
610 wine_tsx11_lock();
611 r = XFreeFontNames(a0);
612 wine_tsx11_unlock();
613 return r;
616 int TSXFreeGC(Display* a0, GC a1)
618 int r;
619 wine_tsx11_lock();
620 r = XFreeGC(a0, a1);
621 wine_tsx11_unlock();
622 return r;
625 int TSXFreeModifiermap(XModifierKeymap* a0)
627 int r;
628 wine_tsx11_lock();
629 r = XFreeModifiermap(a0);
630 wine_tsx11_unlock();
631 return r;
634 int TSXFreePixmap(Display* a0, Pixmap a1)
636 int r;
637 wine_tsx11_lock();
638 r = XFreePixmap(a0, a1);
639 wine_tsx11_unlock();
640 return r;
643 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
645 int r;
646 wine_tsx11_lock();
647 r = XGetFontProperty(a0, a1, a2);
648 wine_tsx11_unlock();
649 return r;
652 int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
654 int r;
655 wine_tsx11_lock();
656 r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
657 wine_tsx11_unlock();
658 return r;
661 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
663 int r;
664 wine_tsx11_lock();
665 r = XGetInputFocus(a0, a1, a2);
666 wine_tsx11_unlock();
667 return r;
670 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
672 int r;
673 wine_tsx11_lock();
674 r = XGetKeyboardControl(a0, a1);
675 wine_tsx11_unlock();
676 return r;
679 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
681 int r;
682 wine_tsx11_lock();
683 r = XGetScreenSaver(a0, a1, a2, a3, a4);
684 wine_tsx11_unlock();
685 return r;
688 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)
690 int r;
691 wine_tsx11_lock();
692 r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
693 wine_tsx11_unlock();
694 return r;
697 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
699 int r;
700 wine_tsx11_lock();
701 r = XGetWindowAttributes(a0, a1, a2);
702 wine_tsx11_unlock();
703 return r;
706 int TSXGrabKeyboard(Display* a0, Window a1, int a2, int a3, int a4, Time a5)
708 int r;
709 wine_tsx11_lock();
710 r = XGrabKeyboard(a0, a1, a2, a3, a4, a5);
711 wine_tsx11_unlock();
712 return r;
715 int TSXGrabPointer(Display* a0, Window a1, int a2, unsigned int a3, int a4, int a5, Window a6, Cursor a7, Time a8)
717 int r;
718 wine_tsx11_lock();
719 r = XGrabPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
720 wine_tsx11_unlock();
721 return r;
724 int TSXGrabServer(Display* a0)
726 int r;
727 wine_tsx11_lock();
728 r = XGrabServer(a0);
729 wine_tsx11_unlock();
730 return r;
733 int TSXInstallColormap(Display* a0, Colormap a1)
735 int r;
736 wine_tsx11_lock();
737 r = XInstallColormap(a0, a1);
738 wine_tsx11_unlock();
739 return r;
742 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
744 KeyCode r;
745 wine_tsx11_lock();
746 r = XKeysymToKeycode(a0, a1);
747 wine_tsx11_unlock();
748 return r;
751 int TSXMapWindow(Display* a0, Window a1)
753 int r;
754 wine_tsx11_lock();
755 r = XMapWindow(a0, a1);
756 wine_tsx11_unlock();
757 return r;
760 int TSXNextEvent(Display* a0, XEvent* a1)
762 int r;
763 wine_tsx11_lock();
764 r = XNextEvent(a0, a1);
765 wine_tsx11_unlock();
766 return r;
769 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
771 int r;
772 wine_tsx11_lock();
773 r = XParseGeometry(a0, a1, a2, a3, a4);
774 wine_tsx11_unlock();
775 return r;
778 int TSXPending(Display* a0)
780 int r;
781 wine_tsx11_lock();
782 r = XPending(a0);
783 wine_tsx11_unlock();
784 return r;
787 int TSXPutBackEvent(Display* a0, XEvent* a1)
789 int r;
790 wine_tsx11_lock();
791 r = XPutBackEvent(a0, a1);
792 wine_tsx11_unlock();
793 return r;
796 int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
798 int r;
799 wine_tsx11_lock();
800 r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
801 wine_tsx11_unlock();
802 return r;
805 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
807 int r;
808 wine_tsx11_lock();
809 r = XQueryColor(a0, a1, a2);
810 wine_tsx11_unlock();
811 return r;
814 int TSXQueryColors(Display* a0, Colormap a1, XColor* a2, int a3)
816 int r;
817 wine_tsx11_lock();
818 r = XQueryColors(a0, a1, a2, a3);
819 wine_tsx11_unlock();
820 return r;
823 int TSXQueryKeymap(Display* a0, char* a1)
825 int r;
826 wine_tsx11_lock();
827 r = XQueryKeymap(a0, a1);
828 wine_tsx11_unlock();
829 return r;
832 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
834 int r;
835 wine_tsx11_lock();
836 r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
837 wine_tsx11_unlock();
838 return r;
841 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
843 int r;
844 wine_tsx11_lock();
845 r = XQueryTree(a0, a1, a2, a3, a4, a5);
846 wine_tsx11_unlock();
847 return r;
850 int TSXRefreshKeyboardMapping(XMappingEvent* a0)
852 int r;
853 wine_tsx11_lock();
854 r = XRefreshKeyboardMapping(a0);
855 wine_tsx11_unlock();
856 return r;
859 int TSXResetScreenSaver(Display* a0)
861 int r;
862 wine_tsx11_lock();
863 r = XResetScreenSaver(a0);
864 wine_tsx11_unlock();
865 return r;
868 int TSXRestackWindows(Display* a0, Window* a1, int a2)
870 int r;
871 wine_tsx11_lock();
872 r = XRestackWindows(a0, a1, a2);
873 wine_tsx11_unlock();
874 return r;
877 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
879 int r;
880 wine_tsx11_lock();
881 r = XSendEvent(a0, a1, a2, a3, a4);
882 wine_tsx11_unlock();
883 return r;
886 int TSXSetArcMode(Display* a0, GC a1, int a2)
888 int r;
889 wine_tsx11_lock();
890 r = XSetArcMode(a0, a1, a2);
891 wine_tsx11_unlock();
892 return r;
895 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
897 int r;
898 wine_tsx11_lock();
899 r = XSetBackground(a0, a1, a2);
900 wine_tsx11_unlock();
901 return r;
904 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
906 int r;
907 wine_tsx11_lock();
908 r = XSetClipMask(a0, a1, a2);
909 wine_tsx11_unlock();
910 return r;
913 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
915 int r;
916 wine_tsx11_lock();
917 r = XSetClipOrigin(a0, a1, a2, a3);
918 wine_tsx11_unlock();
919 return r;
922 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
924 int r;
925 wine_tsx11_lock();
926 r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
927 wine_tsx11_unlock();
928 return r;
931 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
933 int r;
934 wine_tsx11_lock();
935 r = XSetDashes(a0, a1, a2, a3, a4);
936 wine_tsx11_unlock();
937 return r;
940 int TSXSetFillStyle(Display* a0, GC a1, int a2)
942 int r;
943 wine_tsx11_lock();
944 r = XSetFillStyle(a0, a1, a2);
945 wine_tsx11_unlock();
946 return r;
949 int TSXSetFont(Display* a0, GC a1, Font a2)
951 int r;
952 wine_tsx11_lock();
953 r = XSetFont(a0, a1, a2);
954 wine_tsx11_unlock();
955 return r;
958 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
960 int r;
961 wine_tsx11_lock();
962 r = XSetForeground(a0, a1, a2);
963 wine_tsx11_unlock();
964 return r;
967 int TSXSetFunction(Display* a0, GC a1, int a2)
969 int r;
970 wine_tsx11_lock();
971 r = XSetFunction(a0, a1, a2);
972 wine_tsx11_unlock();
973 return r;
976 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
978 int r;
979 wine_tsx11_lock();
980 r = XSetGraphicsExposures(a0, a1, a2);
981 wine_tsx11_unlock();
982 return r;
985 int TSXSetIconName(Display* a0, Window a1, const char* a2)
987 int r;
988 wine_tsx11_lock();
989 r = XSetIconName(a0, a1, a2);
990 wine_tsx11_unlock();
991 return r;
994 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
996 int r;
997 wine_tsx11_lock();
998 r = XSetInputFocus(a0, a1, a2, a3);
999 wine_tsx11_unlock();
1000 return r;
1003 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1005 int r;
1006 wine_tsx11_lock();
1007 r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1008 wine_tsx11_unlock();
1009 return r;
1012 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1014 int r;
1015 wine_tsx11_lock();
1016 r = XSetScreenSaver(a0, a1, a2, a3, a4);
1017 wine_tsx11_unlock();
1018 return r;
1021 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1023 int r;
1024 wine_tsx11_lock();
1025 r = XSetSelectionOwner(a0, a1, a2, a3);
1026 wine_tsx11_unlock();
1027 return r;
1030 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1032 int r;
1033 wine_tsx11_lock();
1034 r = XSetSubwindowMode(a0, a1, a2);
1035 wine_tsx11_unlock();
1036 return r;
1039 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1041 int r;
1042 wine_tsx11_lock();
1043 r = XSetWindowColormap(a0, a1, a2);
1044 wine_tsx11_unlock();
1045 return r;
1048 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1050 int r;
1051 wine_tsx11_lock();
1052 r = XStoreColor(a0, a1, a2);
1053 wine_tsx11_unlock();
1054 return r;
1057 int TSXStoreName(Display* a0, Window a1, const char* a2)
1059 int r;
1060 wine_tsx11_lock();
1061 r = XStoreName(a0, a1, a2);
1062 wine_tsx11_unlock();
1063 return r;
1066 int TSXSync(Display* a0, int a1)
1068 int r;
1069 wine_tsx11_lock();
1070 r = XSync(a0, a1);
1071 wine_tsx11_unlock();
1072 return r;
1075 int TSXTextExtents16(XFontStruct* a0, const XChar2b* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1077 int r;
1078 wine_tsx11_lock();
1079 r = XTextExtents16(a0, a1, a2, a3, a4, a5, a6);
1080 wine_tsx11_unlock();
1081 return r;
1084 int TSXTextWidth16(XFontStruct* a0, const XChar2b* a1, int a2)
1086 int r;
1087 wine_tsx11_lock();
1088 r = XTextWidth16(a0, a1, a2);
1089 wine_tsx11_unlock();
1090 return r;
1093 int TSXUngrabKeyboard(Display* a0, Time a1)
1095 int r;
1096 wine_tsx11_lock();
1097 r = XUngrabKeyboard(a0, a1);
1098 wine_tsx11_unlock();
1099 return r;
1102 int TSXUngrabPointer(Display* a0, Time a1)
1104 int r;
1105 wine_tsx11_lock();
1106 r = XUngrabPointer(a0, a1);
1107 wine_tsx11_unlock();
1108 return r;
1111 int TSXUngrabServer(Display* a0)
1113 int r;
1114 wine_tsx11_lock();
1115 r = XUngrabServer(a0);
1116 wine_tsx11_unlock();
1117 return r;
1120 int TSXUninstallColormap(Display* a0, Colormap a1)
1122 int r;
1123 wine_tsx11_lock();
1124 r = XUninstallColormap(a0, a1);
1125 wine_tsx11_unlock();
1126 return r;
1129 int TSXUnmapWindow(Display* a0, Window a1)
1131 int r;
1132 wine_tsx11_lock();
1133 r = XUnmapWindow(a0, a1);
1134 wine_tsx11_unlock();
1135 return r;
1138 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1140 int r;
1141 wine_tsx11_lock();
1142 r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1143 wine_tsx11_unlock();
1144 return r;
1147 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1149 XIM r;
1150 wine_tsx11_lock();
1151 r = XOpenIM(a0, a1, a2, a3);
1152 wine_tsx11_unlock();
1153 return r;
1156 int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
1158 int (*r)(Display *);
1159 wine_tsx11_lock();
1160 r = XSynchronize(a0, a1);
1161 wine_tsx11_unlock();
1162 return r;
1165 extern void _XInitImageFuncPtrs(XImage *);
1167 void TS_XInitImageFuncPtrs(XImage *a0)
1169 wine_tsx11_lock();
1170 _XInitImageFuncPtrs(a0);
1171 wine_tsx11_unlock();