ts_xlib.c 22.9 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3
/*
 * Thread safe wrappers around Xlib calls.
 * This file was generated automatically by tools/make_X11wrappers
Alexandre Julliard's avatar
Alexandre Julliard committed
4
 * DO NOT EDIT!
Alexandre Julliard's avatar
Alexandre Julliard committed
5 6
 */

7 8 9
#include "config.h"


Alexandre Julliard's avatar
Alexandre Julliard committed
10
#include <X11/Xlib.h>
11 12

#include "ts_xlib.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
13

14

Alexandre Julliard's avatar
Alexandre Julliard committed
15 16 17
XFontStruct * TSXLoadQueryFont(Display* a0, const  char* a1)
{
  XFontStruct * r;
18
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
19
  r = XLoadQueryFont(a0, a1);
20
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
21 22 23 24 25 26
  return r;
}

XModifierKeymap	* TSXGetModifierMapping(Display* a0)
{
  XModifierKeymap	* r;
27
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
28
  r = XGetModifierMapping(a0);
29
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
30 31 32 33 34 35
  return r;
}

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)
{
  XImage * r;
36
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
37
  r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
38
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
39 40 41 42 43 44
  return r;
}

XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
{
  XImage * r;
45
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
46
  r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
47
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
48 49 50
  return r;
}

51 52 53
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)
{
  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 58 59
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
60 61 62
Display * TSXOpenDisplay(const  char* a0)
{
  Display * r;
63
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
64
  r = XOpenDisplay(a0);
65
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
66 67 68 69 70
  return r;
}

void  TSXrmInitialize(void)
{
71
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
72
  XrmInitialize();
73
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
74 75 76 77 78
}

char * TSXGetAtomName(Display* a0, Atom a1)
{
  char * r;
79
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
80
  r = XGetAtomName(a0, a1);
81
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
82 83 84 85 86 87
  return r;
}

char * TSXKeysymToString(KeySym a0)
{
  char * r;
88
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
89
  r = XKeysymToString(a0);
90
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
91 92 93 94 95 96
  return r;
}

Atom  TSXInternAtom(Display* a0, const  char* a1, int a2)
{
  Atom  r;
97
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
98
  r = XInternAtom(a0, a1, a2);
99
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
100 101 102
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
103 104 105
Colormap  TSXCopyColormapAndFree(Display* a0, Colormap a1)
{
  Colormap  r;
106
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
107
  r = XCopyColormapAndFree(a0, a1);
108
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
109 110 111
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
112 113 114
Colormap  TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
{
  Colormap  r;
115
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
116
  r = XCreateColormap(a0, a1, a2, a3);
117
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
118 119 120 121 122 123
  return r;
}

Cursor  TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
{
  Cursor  r;
124
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
125
  r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
126
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
127 128 129 130 131 132
  return r;
}

Cursor  TSXCreateFontCursor(Display* a0, unsigned int a1)
{
  Cursor  r;
133
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
134
  r = XCreateFontCursor(a0, a1);
135
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
136 137 138 139 140 141
  return r;
}

GC  TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
{
  GC  r;
142
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
143
  r = XCreateGC(a0, a1, a2, a3);
144
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
145 146 147 148 149 150
  return r;
}

Pixmap  TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
{
  Pixmap  r;
151
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
152
  r = XCreatePixmap(a0, a1, a2, a3, a4);
153
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
154 155 156 157 158 159
  return r;
}

Pixmap  TSXCreateBitmapFromData(Display* a0, Drawable a1, const  char* a2, unsigned int a3, unsigned int a4)
{
  Pixmap  r;
160
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
161
  r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
162
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
163 164 165 166 167 168
  return r;
}

Window  TSXGetSelectionOwner(Display* a0, Atom a1)
{
  Window  r;
169
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
170
  r = XGetSelectionOwner(a0, a1);
171
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
172 173 174 175 176 177
  return r;
}

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)
{
  Window  r;
178
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
179
  r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
180
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
181 182 183 184 185 186
  return r;
}

char ** TSXListFonts(Display* a0, const  char* a1, int a2, int* a3)
{
  char ** r;
187
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
188
  r = XListFonts(a0, a1, a2, a3);
189
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
190 191 192 193 194 195
  return r;
}

KeySym  TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
{
  KeySym  r;
196
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
197
  r = XKeycodeToKeysym(a0, a1, a2);
198
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
199 200 201 202 203 204
  return r;
}

KeySym  TSXLookupKeysym(XKeyEvent* a0, int a1)
{
  KeySym  r;
205
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
206
  r = XLookupKeysym(a0, a1);
207
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
208 209 210 211 212 213
  return r;
}

KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
{
  KeySym * r;
214
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
215
  r = XGetKeyboardMapping(a0, a1, a2, a3);
216
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
217 218 219 220 221 222
  return r;
}

char * TSXResourceManagerString(Display* a0)
{
  char * r;
223
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
224
  r = XResourceManagerString(a0);
225
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
226 227 228 229 230 231
  return r;
}

int   TSXInitThreads(void)
{
  int   r;
232
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
233
  r = XInitThreads();
234
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
235 236 237
  return r;
}

238 239 240
XPixmapFormatValues * TSXListPixmapFormats(Display* a0, int* a1)
{
  XPixmapFormatValues * r;
241
  wine_tsx11_lock();
242
  r = XListPixmapFormats(a0, a1);
243
  wine_tsx11_unlock();
244 245 246
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
247 248 249
int * TSXListDepths(Display* a0, int a1, int* a2)
{
  int * r;
250
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
251
  r = XListDepths(a0, a1, a2);
252
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
253 254 255 256 257 258
  return r;
}

int   TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
{
  int   r;
259
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
260
  r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
261
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
262 263 264 265 266 267
  return r;
}

int   TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
{
  int   r;
268
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
269
  r = XSetWMProtocols(a0, a1, a2, a3);
270
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
271 272 273
  return r;
}

274 275 276
int   TSXIconifyWindow(Display* a0, Window a1, int a2)
{
  int   r;
277
  wine_tsx11_lock();
278
  r = XIconifyWindow(a0, a1, a2);
279
  wine_tsx11_unlock();
280 281 282
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
283 284 285
int  TSXSetTransientForHint(Display* a0, Window a1, Window a2)
{
  int  r;
286
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
287
  r = XSetTransientForHint(a0, a1, a2);
288
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
289 290 291 292 293 294
  return r;
}

int  TSXActivateScreenSaver(Display* a0)
{
  int  r;
295
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
296
  r = XActivateScreenSaver(a0);
297
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
298 299 300 301 302 303
  return r;
}

int   TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
{
  int   r;
304
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
305
  r = XAllocColor(a0, a1, a2);
306
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
307 308 309 310 311 312
  return r;
}

int   TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
{
  int   r;
313
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
314
  r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
315
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
316 317 318 319 320 321
  return r;
}

int  TSXBell(Display* a0, int a1)
{
  int  r;
322
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
323
  r = XBell(a0, a1);
324
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
325 326 327 328 329 330
  return r;
}

int  TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
{
  int  r;
331
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
332
  r = XChangeGC(a0, a1, a2, a3);
333
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
334 335 336 337 338 339
  return r;
}

int  TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
{
  int  r;
340
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
341
  r = XChangeKeyboardControl(a0, a1, a2);
342
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
343 344 345 346 347 348
  return r;
}

int  TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const  unsigned char* a6, int a7)
{
  int  r;
349
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
350
  r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
351
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
352 353 354 355 356 357
  return r;
}

int  TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
{
  int  r;
358
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
359
  r = XChangeWindowAttributes(a0, a1, a2, a3);
360
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
361 362 363
  return r;
}

364 365 366
int   TSXCheckTypedEvent(Display* a0, int a1, XEvent* a2)
{
  int   r;
367
  wine_tsx11_lock();
368
  r = XCheckTypedEvent(a0, a1, a2);
369
  wine_tsx11_unlock();
370 371 372
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
373 374 375
int   TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
{
  int   r;
376
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
377
  r = XCheckTypedWindowEvent(a0, a1, a2, a3);
378
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
379 380 381 382 383 384
  return r;
}

int   TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
{
  int   r;
385
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
386
  r = XCheckWindowEvent(a0, a1, a2, a3);
387
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
388 389 390 391 392 393
  return r;
}

int  TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
{
  int  r;
394
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
395
  r = XConvertSelection(a0, a1, a2, a3, a4, a5);
396
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
397 398 399 400 401 402
  return r;
}

int  TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
{
  int  r;
403
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
404
  r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
405
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
406 407 408 409 410 411
  return r;
}

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)
{
  int  r;
412
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
413
  r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
414
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
415 416 417 418 419 420
  return r;
}

int  TSXDefineCursor(Display* a0, Window a1, Cursor a2)
{
  int  r;
421
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
422
  r = XDefineCursor(a0, a1, a2);
423
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
424 425 426
  return r;
}

427 428 429
int  TSXDeleteProperty(Display* a0, Window a1, Atom a2)
{
  int  r;
430
  wine_tsx11_lock();
431
  r = XDeleteProperty(a0, a1, a2);
432
  wine_tsx11_unlock();
433 434 435
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
436 437 438
int  TSXDestroyWindow(Display* a0, Window a1)
{
  int  r;
439
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
440
  r = XDestroyWindow(a0, a1);
441
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
442 443 444 445 446 447
  return r;
}

int  TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
{
  int  r;
448
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
449
  r = XDisplayKeycodes(a0, a1, a2);
450
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
451 452 453 454 455 456
  return r;
}

int  TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
{
  int  r;
457
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
458
  r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
459
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
460 461 462 463 464 465
  return r;
}

int  TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
{
  int  r;
466
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
467
  r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
468
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
469 470 471 472 473 474
  return r;
}

int  TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
{
  int  r;
475
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
476
  r = XDrawLines(a0, a1, a2, a3, a4, a5);
477
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
478 479 480 481 482 483
  return r;
}

int  TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
{
  int  r;
484
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
485
  r = XDrawPoint(a0, a1, a2, a3, a4);
486
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
487 488 489 490 491 492
  return r;
}

int  TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
{
  int  r;
493
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
494
  r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
495
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
496 497 498 499 500 501
  return r;
}

int  TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
{
  int  r;
502
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
503
  r = XDrawSegments(a0, a1, a2, a3, a4);
504
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
505 506 507
  return r;
}

508
int  TSXDrawString16(Display* a0, Drawable a1, GC a2, int a3, int a4, const  XChar2b* a5, int a6)
Alexandre Julliard's avatar
Alexandre Julliard committed
509 510
{
  int  r;
511
  wine_tsx11_lock();
512
  r = XDrawString16(a0, a1, a2, a3, a4, a5, a6);
513
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
514 515 516
  return r;
}

517
int  TSXDrawText16(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem16* a5, int a6)
Alexandre Julliard's avatar
Alexandre Julliard committed
518 519
{
  int  r;
520
  wine_tsx11_lock();
521
  r = XDrawText16(a0, a1, a2, a3, a4, a5, a6);
522
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
523 524 525 526 527 528
  return r;
}

int  TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
{
  int  r;
529
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
530
  r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
531
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
532 533 534 535 536 537
  return r;
}

int  TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
{
  int  r;
538
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
539
  r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
540
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
541 542 543 544 545 546
  return r;
}

int  TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
{
  int  r;
547
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
548
  r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
549
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
550 551 552 553 554 555
  return r;
}

int  TSXFlush(Display* a0)
{
  int  r;
556
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
557
  r = XFlush(a0);
558
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
559 560 561 562 563 564
  return r;
}

int  TSXFree(void* a0)
{
  int  r;
565
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
566
  r = XFree(a0);
567
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
568 569 570
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
571 572 573
int  TSXFreeColormap(Display* a0, Colormap a1)
{
  int  r;
574
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
575
  r = XFreeColormap(a0, a1);
576
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
577 578 579
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
580 581 582
int  TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
{
  int  r;
583
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
584
  r = XFreeColors(a0, a1, a2, a3, a4);
585
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
586 587 588 589 590 591
  return r;
}

int  TSXFreeCursor(Display* a0, Cursor a1)
{
  int  r;
592
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
593
  r = XFreeCursor(a0, a1);
594
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
595 596 597 598 599 600
  return r;
}

int  TSXFreeFont(Display* a0, XFontStruct* a1)
{
  int  r;
601
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
602
  r = XFreeFont(a0, a1);
603
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
604 605 606 607 608 609
  return r;
}

int  TSXFreeFontNames(char** a0)
{
  int  r;
610
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
611
  r = XFreeFontNames(a0);
612
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
613 614 615 616 617 618
  return r;
}

int  TSXFreeGC(Display* a0, GC a1)
{
  int  r;
619
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
620
  r = XFreeGC(a0, a1);
621
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
622 623 624 625 626 627
  return r;
}

int  TSXFreeModifiermap(XModifierKeymap* a0)
{
  int  r;
628
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
629
  r = XFreeModifiermap(a0);
630
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
631 632 633 634 635 636
  return r;
}

int  TSXFreePixmap(Display* a0, Pixmap a1)
{
  int  r;
637
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
638
  r = XFreePixmap(a0, a1);
639
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
640 641 642 643 644 645
  return r;
}

int   TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
{
  int   r;
646
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
647
  r = XGetFontProperty(a0, a1, a2);
648
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
649 650 651 652 653 654
  return r;
}

int   TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
{
  int   r;
655
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
656
  r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
657
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
658 659 660 661 662 663
  return r;
}

int  TSXGetInputFocus(Display* a0, Window* a1, int* a2)
{
  int  r;
664
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
665
  r = XGetInputFocus(a0, a1, a2);
666
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
667 668 669 670 671 672
  return r;
}

int  TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
{
  int  r;
673
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
674
  r = XGetKeyboardControl(a0, a1);
675
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
676 677 678 679 680 681
  return r;
}

int  TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
{
  int  r;
682
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
683
  r = XGetScreenSaver(a0, a1, a2, a3, a4);
684
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
685 686 687 688 689 690
  return r;
}

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)
{
  int  r;
691
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
692
  r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
693
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
694 695 696 697 698 699
  return r;
}

int   TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
{
  int   r;
700
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
701
  r = XGetWindowAttributes(a0, a1, a2);
702
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
703 704 705
  return r;
}

706 707 708
int  TSXGrabKeyboard(Display* a0, Window a1, int a2, int a3, int a4, Time a5)
{
  int  r;
709
  wine_tsx11_lock();
710
  r = XGrabKeyboard(a0, a1, a2, a3, a4, a5);
711
  wine_tsx11_unlock();
712 713 714 715 716 717
  return r;
}

int  TSXGrabPointer(Display* a0, Window a1, int a2, unsigned int a3, int a4, int a5, Window a6, Cursor a7, Time a8)
{
  int  r;
718
  wine_tsx11_lock();
719
  r = XGrabPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
720
  wine_tsx11_unlock();
721 722 723
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
724 725 726
int  TSXGrabServer(Display* a0)
{
  int  r;
727
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
728
  r = XGrabServer(a0);
729
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
730 731 732 733 734 735
  return r;
}

int  TSXInstallColormap(Display* a0, Colormap a1)
{
  int  r;
736
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
737
  r = XInstallColormap(a0, a1);
738
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
739 740 741 742 743 744
  return r;
}

KeyCode  TSXKeysymToKeycode(Display* a0, KeySym a1)
{
  KeyCode  r;
745
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
746
  r = XKeysymToKeycode(a0, a1);
747
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
748 749 750 751 752 753
  return r;
}

int  TSXMapWindow(Display* a0, Window a1)
{
  int  r;
754
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
755
  r = XMapWindow(a0, a1);
756
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
757 758 759 760 761 762
  return r;
}

int  TSXNextEvent(Display* a0, XEvent* a1)
{
  int  r;
763
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
764
  r = XNextEvent(a0, a1);
765
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
766 767 768 769 770 771
  return r;
}

int  TSXParseGeometry(const  char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
{
  int  r;
772
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
773
  r = XParseGeometry(a0, a1, a2, a3, a4);
774
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
775 776 777 778 779 780
  return r;
}

int  TSXPending(Display* a0)
{
  int  r;
781
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
782
  r = XPending(a0);
783
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
784 785 786 787 788 789
  return r;
}

int  TSXPutBackEvent(Display* a0, XEvent* a1)
{
  int  r;
790
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
791
  r = XPutBackEvent(a0, a1);
792
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
793 794 795 796 797 798
  return r;
}

int  TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
{
  int  r;
799
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
800
  r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
801
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
802 803 804 805 806 807
  return r;
}

int  TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
{
  int  r;
808
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
809
  r = XQueryColor(a0, a1, a2);
810
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
811 812 813
  return r;
}

814 815 816 817 818 819 820 821 822
int  TSXQueryColors(Display* a0, Colormap a1, XColor* a2, int a3)
{
  int  r;
  wine_tsx11_lock();
  r = XQueryColors(a0, a1, a2, a3);
  wine_tsx11_unlock();
  return r;
}

823 824 825
int  TSXQueryKeymap(Display* a0, char* a1)
{
  int  r;
826
  wine_tsx11_lock();
827
  r = XQueryKeymap(a0, a1);
828
  wine_tsx11_unlock();
829 830 831
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
832 833 834
int   TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
{
  int   r;
835
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
836
  r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
837
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
838 839 840 841 842 843
  return r;
}

int   TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
{
  int   r;
844
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
845
  r = XQueryTree(a0, a1, a2, a3, a4, a5);
846
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
847 848 849
  return r;
}

850 851 852
int  TSXRefreshKeyboardMapping(XMappingEvent* a0)
{
  int  r;
853
  wine_tsx11_lock();
854
  r = XRefreshKeyboardMapping(a0);
855
  wine_tsx11_unlock();
856 857 858
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
859 860 861
int  TSXResetScreenSaver(Display* a0)
{
  int  r;
862
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
863
  r = XResetScreenSaver(a0);
864
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
865 866 867 868 869 870
  return r;
}

int  TSXRestackWindows(Display* a0, Window* a1, int a2)
{
  int  r;
871
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
872
  r = XRestackWindows(a0, a1, a2);
873
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
874 875 876 877 878 879
  return r;
}

int   TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
{
  int   r;
880
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
881
  r = XSendEvent(a0, a1, a2, a3, a4);
882
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
883 884 885 886 887 888
  return r;
}

int  TSXSetArcMode(Display* a0, GC a1, int a2)
{
  int  r;
889
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
890
  r = XSetArcMode(a0, a1, a2);
891
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
892 893 894 895 896 897
  return r;
}

int  TSXSetBackground(Display* a0, GC a1, unsigned long a2)
{
  int  r;
898
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
899
  r = XSetBackground(a0, a1, a2);
900
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
901 902 903 904 905 906
  return r;
}

int  TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
{
  int  r;
907
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
908
  r = XSetClipMask(a0, a1, a2);
909
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
910 911 912 913 914 915
  return r;
}

int  TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
{
  int  r;
916
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
917
  r = XSetClipOrigin(a0, a1, a2, a3);
918
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
919 920 921 922 923 924
  return r;
}

int  TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
{
  int  r;
925
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
926
  r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
927
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
928 929 930 931 932 933
  return r;
}

int  TSXSetDashes(Display* a0, GC a1, int a2, const  char* a3, int a4)
{
  int  r;
934
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
935
  r = XSetDashes(a0, a1, a2, a3, a4);
936
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
937 938 939 940 941 942
  return r;
}

int  TSXSetFillStyle(Display* a0, GC a1, int a2)
{
  int  r;
943
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
944
  r = XSetFillStyle(a0, a1, a2);
945
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
946 947 948
  return r;
}

949 950 951
int  TSXSetFont(Display* a0, GC a1, Font a2)
{
  int  r;
952
  wine_tsx11_lock();
953
  r = XSetFont(a0, a1, a2);
954
  wine_tsx11_unlock();
955 956 957
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
958 959 960
int  TSXSetForeground(Display* a0, GC a1, unsigned long a2)
{
  int  r;
961
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
962
  r = XSetForeground(a0, a1, a2);
963
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
964 965 966 967 968 969
  return r;
}

int  TSXSetFunction(Display* a0, GC a1, int a2)
{
  int  r;
970
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
971
  r = XSetFunction(a0, a1, a2);
972
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
973 974 975 976 977 978
  return r;
}

int  TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
{
  int  r;
979
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
980
  r = XSetGraphicsExposures(a0, a1, a2);
981
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
982 983 984 985 986 987
  return r;
}

int  TSXSetIconName(Display* a0, Window a1, const  char* a2)
{
  int  r;
988
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
989
  r = XSetIconName(a0, a1, a2);
990
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
991 992 993 994 995 996
  return r;
}

int  TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
{
  int  r;
997
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
998
  r = XSetInputFocus(a0, a1, a2, a3);
999
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1000 1001 1002 1003 1004 1005
  return r;
}

int  TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
{
  int  r;
1006
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1007
  r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1008
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1009 1010 1011 1012 1013 1014
  return r;
}

int  TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
{
  int  r;
1015
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1016
  r = XSetScreenSaver(a0, a1, a2, a3, a4);
1017
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1018 1019 1020 1021 1022 1023
  return r;
}

int  TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
{
  int  r;
1024
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1025
  r = XSetSelectionOwner(a0, a1, a2, a3);
1026
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1027 1028 1029 1030 1031 1032
  return r;
}

int  TSXSetSubwindowMode(Display* a0, GC a1, int a2)
{
  int  r;
1033
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1034
  r = XSetSubwindowMode(a0, a1, a2);
1035
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1036 1037 1038
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
1039 1040 1041
int  TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
{
  int  r;
1042
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1043
  r = XSetWindowColormap(a0, a1, a2);
1044
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1045 1046 1047
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
1048 1049 1050
int  TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
{
  int  r;
1051
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1052
  r = XStoreColor(a0, a1, a2);
1053
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1054 1055 1056 1057 1058 1059
  return r;
}

int  TSXStoreName(Display* a0, Window a1, const  char* a2)
{
  int  r;
1060
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1061
  r = XStoreName(a0, a1, a2);
1062
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1063 1064 1065 1066 1067 1068
  return r;
}

int  TSXSync(Display* a0, int a1)
{
  int  r;
1069
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1070
  r = XSync(a0, a1);
1071
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1072 1073 1074
  return r;
}

1075
int  TSXTextExtents16(XFontStruct* a0, const  XChar2b* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
Alexandre Julliard's avatar
Alexandre Julliard committed
1076 1077
{
  int  r;
1078
  wine_tsx11_lock();
1079
  r = XTextExtents16(a0, a1, a2, a3, a4, a5, a6);
1080
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1081 1082 1083
  return r;
}

1084
int  TSXTextWidth16(XFontStruct* a0, const  XChar2b* a1, int a2)
Alexandre Julliard's avatar
Alexandre Julliard committed
1085 1086
{
  int  r;
1087
  wine_tsx11_lock();
1088
  r = XTextWidth16(a0, a1, a2);
1089
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1090
  return r;
1091 1092 1093 1094 1095
}

int  TSXUngrabKeyboard(Display* a0, Time a1)
{
  int  r;
1096
  wine_tsx11_lock();
1097
  r = XUngrabKeyboard(a0, a1);
1098
  wine_tsx11_unlock();
1099 1100 1101 1102 1103 1104
  return r;
}

int  TSXUngrabPointer(Display* a0, Time a1)
{
  int  r;
1105
  wine_tsx11_lock();
1106
  r = XUngrabPointer(a0, a1);
1107
  wine_tsx11_unlock();
1108
  return r;
Alexandre Julliard's avatar
Alexandre Julliard committed
1109 1110 1111 1112 1113
}

int  TSXUngrabServer(Display* a0)
{
  int  r;
1114
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1115
  r = XUngrabServer(a0);
1116
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1117 1118 1119 1120 1121 1122
  return r;
}

int  TSXUninstallColormap(Display* a0, Colormap a1)
{
  int  r;
1123
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1124
  r = XUninstallColormap(a0, a1);
1125
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1126 1127 1128 1129 1130 1131
  return r;
}

int  TSXUnmapWindow(Display* a0, Window a1)
{
  int  r;
1132
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1133
  r = XUnmapWindow(a0, a1);
1134
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1135 1136 1137 1138 1139 1140
  return r;
}

int  TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
{
  int  r;
1141
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1142
  r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1143
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1144 1145 1146
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
1147 1148 1149
XIM  TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
{
  XIM  r;
1150
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1151
  r = XOpenIM(a0, a1, a2, a3);
1152
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1153 1154 1155
  return r;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
1156 1157 1158
int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
{
  int (*r)(Display *);
1159
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1160
  r = XSynchronize(a0, a1);
1161
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1162 1163 1164 1165 1166 1167 1168
  return r;
}

extern void _XInitImageFuncPtrs(XImage *);

void TS_XInitImageFuncPtrs(XImage *a0)
{
1169
  wine_tsx11_lock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1170
  _XInitImageFuncPtrs(a0);
1171
  wine_tsx11_unlock();
Alexandre Julliard's avatar
Alexandre Julliard committed
1172
}
Alexandre Julliard's avatar
Alexandre Julliard committed
1173

1174