Release 981025.
[wine/gsoc-2012-control.git] / tsx11 / ts_xlib.c
blobf34546cbe22defe3052d2c05b23ec6de80cd75d9
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 <X11/Xlib.h>
8 #include "x11drv.h"
9 #include "debug.h"
11 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
13 XFontStruct * r;
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");
19 return r;
22 XModifierKeymap * TSXGetModifierMapping(Display* a0)
24 XModifierKeymap * r;
25 TRACE(x11, "Call XGetModifierMapping\n");
26 EnterCriticalSection( &X11DRV_CritSection );
27 r = XGetModifierMapping(a0);
28 LeaveCriticalSection( &X11DRV_CritSection );
29 TRACE(x11, "Ret XGetModifierMapping\n");
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 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");
41 return r;
44 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
46 XImage * r;
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");
52 return r;
55 Display * TSXOpenDisplay(const char* a0)
57 Display * r;
58 TRACE(x11, "Call XOpenDisplay\n");
59 EnterCriticalSection( &X11DRV_CritSection );
60 r = XOpenDisplay(a0);
61 LeaveCriticalSection( &X11DRV_CritSection );
62 TRACE(x11, "Ret XOpenDisplay\n");
63 return r;
66 void TSXrmInitialize(void)
68 TRACE(x11, "Call XrmInitialize\n");
69 EnterCriticalSection( &X11DRV_CritSection );
70 XrmInitialize();
71 LeaveCriticalSection( &X11DRV_CritSection );
72 TRACE(x11, "Ret XrmInitialize\n");
75 char * TSXGetAtomName(Display* a0, Atom a1)
77 char * r;
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");
83 return r;
86 char * TSXKeysymToString(KeySym a0)
88 char * r;
89 TRACE(x11, "Call XKeysymToString\n");
90 EnterCriticalSection( &X11DRV_CritSection );
91 r = XKeysymToString(a0);
92 LeaveCriticalSection( &X11DRV_CritSection );
93 TRACE(x11, "Ret XKeysymToString\n");
94 return r;
97 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
99 Atom r;
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");
105 return r;
108 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
110 Colormap r;
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");
116 return r;
119 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
121 Colormap r;
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");
127 return r;
130 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
132 Cursor r;
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");
138 return r;
141 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
143 Cursor r;
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");
149 return r;
152 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
154 GC r;
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");
160 return r;
163 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
165 Pixmap r;
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");
171 return r;
174 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
176 Pixmap r;
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");
182 return r;
185 Window TSXGetSelectionOwner(Display* a0, Atom a1)
187 Window r;
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");
193 return r;
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)
198 Window r;
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");
204 return r;
207 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
209 char ** r;
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");
215 return r;
218 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
220 KeySym r;
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");
226 return r;
229 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
231 KeySym r;
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");
237 return r;
240 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
242 KeySym * r;
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");
248 return r;
251 char * TSXResourceManagerString(Display* a0)
253 char * r;
254 TRACE(x11, "Call XResourceManagerString\n");
255 EnterCriticalSection( &X11DRV_CritSection );
256 r = XResourceManagerString(a0);
257 LeaveCriticalSection( &X11DRV_CritSection );
258 TRACE(x11, "Ret XResourceManagerString\n");
259 return r;
262 int TSXInitThreads(void)
264 int r;
265 TRACE(x11, "Call XInitThreads\n");
266 EnterCriticalSection( &X11DRV_CritSection );
267 r = XInitThreads();
268 LeaveCriticalSection( &X11DRV_CritSection );
269 TRACE(x11, "Ret XInitThreads\n");
270 return r;
273 int * TSXListDepths(Display* a0, int a1, int* a2)
275 int * r;
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");
281 return r;
284 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
286 int r;
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");
292 return r;
295 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
297 int r;
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");
303 return r;
306 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
308 int r;
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");
314 return r;
317 int TSXActivateScreenSaver(Display* a0)
319 int r;
320 TRACE(x11, "Call XActivateScreenSaver\n");
321 EnterCriticalSection( &X11DRV_CritSection );
322 r = XActivateScreenSaver(a0);
323 LeaveCriticalSection( &X11DRV_CritSection );
324 TRACE(x11, "Ret XActivateScreenSaver\n");
325 return r;
328 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
330 int r;
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");
336 return r;
339 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
341 int r;
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");
347 return r;
350 int TSXBell(Display* a0, int a1)
352 int r;
353 TRACE(x11, "Call XBell\n");
354 EnterCriticalSection( &X11DRV_CritSection );
355 r = XBell(a0, a1);
356 LeaveCriticalSection( &X11DRV_CritSection );
357 TRACE(x11, "Ret XBell\n");
358 return r;
361 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
363 int r;
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");
369 return r;
372 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
374 int r;
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");
380 return r;
383 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
385 int r;
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");
391 return r;
394 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
396 int r;
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");
402 return r;
405 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
407 int r;
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");
413 return r;
416 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
418 int r;
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");
424 return r;
427 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
429 int r;
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");
435 return r;
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)
440 int r;
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");
446 return r;
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)
451 int r;
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");
457 return r;
460 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
462 int r;
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");
468 return r;
471 int TSXDestroyWindow(Display* a0, Window a1)
473 int r;
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");
479 return r;
482 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
484 int r;
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");
490 return r;
493 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
495 int r;
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");
501 return r;
504 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
506 int r;
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");
512 return r;
515 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
517 int r;
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");
523 return r;
526 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
528 int r;
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");
534 return r;
537 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
539 int r;
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");
545 return r;
548 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
550 int r;
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");
556 return r;
559 int TSXDrawString(Display* a0, Drawable a1, GC a2, int a3, int a4, const char* a5, int a6)
561 int r;
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");
567 return r;
570 int TSXDrawText(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem* a5, int a6)
572 int r;
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");
578 return r;
581 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
583 int r;
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");
589 return r;
592 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
594 int r;
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");
600 return r;
603 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
605 int r;
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");
611 return r;
614 int TSXFlush(Display* a0)
616 int r;
617 TRACE(x11, "Call XFlush\n");
618 EnterCriticalSection( &X11DRV_CritSection );
619 r = XFlush(a0);
620 LeaveCriticalSection( &X11DRV_CritSection );
621 TRACE(x11, "Ret XFlush\n");
622 return r;
625 int TSXFree(void* a0)
627 int r;
628 TRACE(x11, "Call XFree\n");
629 EnterCriticalSection( &X11DRV_CritSection );
630 r = XFree(a0);
631 LeaveCriticalSection( &X11DRV_CritSection );
632 TRACE(x11, "Ret XFree\n");
633 return r;
636 int TSXFreeColormap(Display* a0, Colormap a1)
638 int r;
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");
644 return r;
647 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
649 int r;
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");
655 return r;
658 int TSXFreeCursor(Display* a0, Cursor a1)
660 int r;
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");
666 return r;
669 int TSXFreeFont(Display* a0, XFontStruct* a1)
671 int r;
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");
677 return r;
680 int TSXFreeFontNames(char** a0)
682 int r;
683 TRACE(x11, "Call XFreeFontNames\n");
684 EnterCriticalSection( &X11DRV_CritSection );
685 r = XFreeFontNames(a0);
686 LeaveCriticalSection( &X11DRV_CritSection );
687 TRACE(x11, "Ret XFreeFontNames\n");
688 return r;
691 int TSXFreeGC(Display* a0, GC a1)
693 int r;
694 TRACE(x11, "Call XFreeGC\n");
695 EnterCriticalSection( &X11DRV_CritSection );
696 r = XFreeGC(a0, a1);
697 LeaveCriticalSection( &X11DRV_CritSection );
698 TRACE(x11, "Ret XFreeGC\n");
699 return r;
702 int TSXFreeModifiermap(XModifierKeymap* a0)
704 int r;
705 TRACE(x11, "Call XFreeModifiermap\n");
706 EnterCriticalSection( &X11DRV_CritSection );
707 r = XFreeModifiermap(a0);
708 LeaveCriticalSection( &X11DRV_CritSection );
709 TRACE(x11, "Ret XFreeModifiermap\n");
710 return r;
713 int TSXFreePixmap(Display* a0, Pixmap a1)
715 int r;
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");
721 return r;
724 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
726 int r;
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");
732 return r;
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)
737 int r;
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");
743 return r;
746 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
748 int r;
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");
754 return r;
757 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
759 int r;
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");
765 return r;
768 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
770 int r;
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");
776 return r;
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)
781 int r;
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");
787 return r;
790 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
792 int r;
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");
798 return r;
801 int TSXGrabServer(Display* a0)
803 int r;
804 TRACE(x11, "Call XGrabServer\n");
805 EnterCriticalSection( &X11DRV_CritSection );
806 r = XGrabServer(a0);
807 LeaveCriticalSection( &X11DRV_CritSection );
808 TRACE(x11, "Ret XGrabServer\n");
809 return r;
812 int TSXInstallColormap(Display* a0, Colormap a1)
814 int r;
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");
820 return r;
823 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
825 KeyCode r;
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");
831 return r;
834 int TSXMapWindow(Display* a0, Window a1)
836 int r;
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");
842 return r;
845 int TSXNextEvent(Display* a0, XEvent* a1)
847 int r;
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");
853 return r;
856 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
858 int r;
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");
864 return r;
867 int TSXPending(Display* a0)
869 int r;
870 TRACE(x11, "Call XPending\n");
871 EnterCriticalSection( &X11DRV_CritSection );
872 r = XPending(a0);
873 LeaveCriticalSection( &X11DRV_CritSection );
874 TRACE(x11, "Ret XPending\n");
875 return r;
878 int TSXPutBackEvent(Display* a0, XEvent* a1)
880 int r;
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");
886 return r;
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)
891 int r;
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");
897 return r;
900 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
902 int r;
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");
908 return r;
911 int TSXQueryKeymap(Display* a0, char* a1)
913 int r;
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");
919 return r;
922 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
924 int r;
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");
930 return r;
933 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
935 int r;
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");
941 return r;
944 int TSXResetScreenSaver(Display* a0)
946 int r;
947 TRACE(x11, "Call XResetScreenSaver\n");
948 EnterCriticalSection( &X11DRV_CritSection );
949 r = XResetScreenSaver(a0);
950 LeaveCriticalSection( &X11DRV_CritSection );
951 TRACE(x11, "Ret XResetScreenSaver\n");
952 return r;
955 int TSXRestackWindows(Display* a0, Window* a1, int a2)
957 int r;
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");
963 return r;
966 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
968 int r;
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");
974 return r;
977 int TSXSetArcMode(Display* a0, GC a1, int a2)
979 int r;
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");
985 return r;
988 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
990 int r;
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");
996 return r;
999 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
1001 int r;
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");
1007 return r;
1010 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
1012 int r;
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");
1018 return r;
1021 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
1023 int r;
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");
1029 return r;
1032 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
1034 int r;
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");
1040 return r;
1043 int TSXSetFillStyle(Display* a0, GC a1, int a2)
1045 int r;
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");
1051 return r;
1054 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
1056 int r;
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");
1062 return r;
1065 int TSXSetFunction(Display* a0, GC a1, int a2)
1067 int r;
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");
1073 return r;
1076 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
1078 int r;
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");
1084 return r;
1087 int TSXSetIconName(Display* a0, Window a1, const char* a2)
1089 int r;
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");
1095 return r;
1098 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
1100 int r;
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");
1106 return r;
1109 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1111 int r;
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");
1117 return r;
1120 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1122 int r;
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");
1128 return r;
1131 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1133 int r;
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");
1139 return r;
1142 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1144 int r;
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");
1150 return r;
1153 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1155 int r;
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");
1161 return r;
1164 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1166 int r;
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");
1172 return r;
1175 int TSXStoreName(Display* a0, Window a1, const char* a2)
1177 int r;
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");
1183 return r;
1186 int TSXSync(Display* a0, int a1)
1188 int r;
1189 TRACE(x11, "Call XSync\n");
1190 EnterCriticalSection( &X11DRV_CritSection );
1191 r = XSync(a0, a1);
1192 LeaveCriticalSection( &X11DRV_CritSection );
1193 TRACE(x11, "Ret XSync\n");
1194 return r;
1197 int TSXTextExtents(XFontStruct* a0, const char* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1199 int r;
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");
1205 return r;
1208 int TSXTextWidth(XFontStruct* a0, const char* a1, int a2)
1210 int r;
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");
1216 return r;
1219 int TSXUngrabServer(Display* a0)
1221 int r;
1222 TRACE(x11, "Call XUngrabServer\n");
1223 EnterCriticalSection( &X11DRV_CritSection );
1224 r = XUngrabServer(a0);
1225 LeaveCriticalSection( &X11DRV_CritSection );
1226 TRACE(x11, "Ret XUngrabServer\n");
1227 return r;
1230 int TSXUninstallColormap(Display* a0, Colormap a1)
1232 int r;
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");
1238 return r;
1241 int TSXUnmapWindow(Display* a0, Window a1)
1243 int r;
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");
1249 return r;
1252 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1254 int r;
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");
1260 return r;
1263 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1265 XIM r;
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");
1271 return r;
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");
1282 return r;
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");