Release 990226.
[wine/gsoc-2012-control.git] / tsx11 / ts_xresource.c
blobba5c5429d69873ec92c0b0919f6ded67ac791966
1 /*
2 * Thread safe wrappers around Xresource calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #ifndef X_DISPLAY_MISSING
12 #include <X11/Xlib.h>
13 #include <X11/Xresource.h>
14 #include "debug.h"
15 #include "x11drv.h"
17 XrmQuark TSXrmUniqueQuark(void)
19 XrmQuark r;
20 TRACE(x11, "Call XrmUniqueQuark\n");
21 EnterCriticalSection( &X11DRV_CritSection );
22 r = XrmUniqueQuark();
23 LeaveCriticalSection( &X11DRV_CritSection );
24 TRACE(x11, "Ret XrmUniqueQuark\n");
25 return r;
28 int TSXrmGetResource(XrmDatabase a0, const char* a1, const char* a2, char** a3, XrmValue* a4)
30 int r;
31 TRACE(x11, "Call XrmGetResource\n");
32 EnterCriticalSection( &X11DRV_CritSection );
33 r = XrmGetResource(a0, a1, a2, a3, a4);
34 LeaveCriticalSection( &X11DRV_CritSection );
35 TRACE(x11, "Ret XrmGetResource\n");
36 return r;
39 XrmDatabase TSXrmGetFileDatabase(const char* a0)
41 XrmDatabase r;
42 TRACE(x11, "Call XrmGetFileDatabase\n");
43 EnterCriticalSection( &X11DRV_CritSection );
44 r = XrmGetFileDatabase(a0);
45 LeaveCriticalSection( &X11DRV_CritSection );
46 TRACE(x11, "Ret XrmGetFileDatabase\n");
47 return r;
50 XrmDatabase TSXrmGetStringDatabase(const char* a0)
52 XrmDatabase r;
53 TRACE(x11, "Call XrmGetStringDatabase\n");
54 EnterCriticalSection( &X11DRV_CritSection );
55 r = XrmGetStringDatabase(a0);
56 LeaveCriticalSection( &X11DRV_CritSection );
57 TRACE(x11, "Ret XrmGetStringDatabase\n");
58 return r;
61 void TSXrmMergeDatabases(XrmDatabase a0, XrmDatabase* a1)
63 TRACE(x11, "Call XrmMergeDatabases\n");
64 EnterCriticalSection( &X11DRV_CritSection );
65 XrmMergeDatabases(a0, a1);
66 LeaveCriticalSection( &X11DRV_CritSection );
67 TRACE(x11, "Ret XrmMergeDatabases\n");
70 void TSXrmParseCommand(XrmDatabase* a0, XrmOptionDescList a1, int a2, const char* a3, int* a4, char** a5)
72 TRACE(x11, "Call XrmParseCommand\n");
73 EnterCriticalSection( &X11DRV_CritSection );
74 XrmParseCommand(a0, a1, a2, a3, a4, a5);
75 LeaveCriticalSection( &X11DRV_CritSection );
76 TRACE(x11, "Ret XrmParseCommand\n");
80 #endif /* !defined(X_DISPLAY_MISSING) */