Encapsulated Wine internal data into an ifdef __WINE__.
[wine.git] / tsx11 / ts_xresource.c
blobc5bbfa547dd9b119a3908c5c44cbfdac66d549f8
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>
15 #include "debugtools.h"
16 #include "ts_xresource.h"
17 #include "x11drv.h"
19 DEFAULT_DEBUG_CHANNEL(x11)
21 XrmQuark TSXrmUniqueQuark(void)
23 XrmQuark r;
24 TRACE("Call XrmUniqueQuark\n");
25 EnterCriticalSection( &X11DRV_CritSection );
26 r = XrmUniqueQuark();
27 LeaveCriticalSection( &X11DRV_CritSection );
28 TRACE("Ret XrmUniqueQuark\n");
29 return r;
32 int TSXrmGetResource(XrmDatabase a0, const char* a1, const char* a2, char** a3, XrmValue* a4)
34 int r;
35 TRACE("Call XrmGetResource\n");
36 EnterCriticalSection( &X11DRV_CritSection );
37 r = XrmGetResource(a0, a1, a2, a3, a4);
38 LeaveCriticalSection( &X11DRV_CritSection );
39 TRACE("Ret XrmGetResource\n");
40 return r;
43 XrmDatabase TSXrmGetFileDatabase(const char* a0)
45 XrmDatabase r;
46 TRACE("Call XrmGetFileDatabase\n");
47 EnterCriticalSection( &X11DRV_CritSection );
48 r = XrmGetFileDatabase(a0);
49 LeaveCriticalSection( &X11DRV_CritSection );
50 TRACE("Ret XrmGetFileDatabase\n");
51 return r;
54 XrmDatabase TSXrmGetStringDatabase(const char* a0)
56 XrmDatabase r;
57 TRACE("Call XrmGetStringDatabase\n");
58 EnterCriticalSection( &X11DRV_CritSection );
59 r = XrmGetStringDatabase(a0);
60 LeaveCriticalSection( &X11DRV_CritSection );
61 TRACE("Ret XrmGetStringDatabase\n");
62 return r;
65 void TSXrmMergeDatabases(XrmDatabase a0, XrmDatabase* a1)
67 TRACE("Call XrmMergeDatabases\n");
68 EnterCriticalSection( &X11DRV_CritSection );
69 XrmMergeDatabases(a0, a1);
70 LeaveCriticalSection( &X11DRV_CritSection );
71 TRACE("Ret XrmMergeDatabases\n");
74 void TSXrmParseCommand(XrmDatabase* a0, XrmOptionDescList a1, int a2, const char* a3, int* a4, char** a5)
76 TRACE("Call XrmParseCommand\n");
77 EnterCriticalSection( &X11DRV_CritSection );
78 XrmParseCommand(a0, a1, a2, a3, a4, a5);
79 LeaveCriticalSection( &X11DRV_CritSection );
80 TRACE("Ret XrmParseCommand\n");
84 #endif /* !defined(X_DISPLAY_MISSING) */