2 * Thread safe wrappers around Xresource calls.
3 * This file was generated automatically by tools/make_X11wrappers
9 #ifndef X_DISPLAY_MISSING
13 #include <X11/Xresource.h>
15 #include "debugtools.h"
16 #include "ts_xresource.h"
19 DEFAULT_DEBUG_CHANNEL(x11)
21 XrmQuark TSXrmUniqueQuark(void)
24 TRACE("Call XrmUniqueQuark\n");
25 EnterCriticalSection( &X11DRV_CritSection );
27 LeaveCriticalSection( &X11DRV_CritSection );
28 TRACE("Ret XrmUniqueQuark\n");
32 int TSXrmGetResource(XrmDatabase a0, const char* a1, const char* a2, char** a3, XrmValue* a4)
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");
43 XrmDatabase TSXrmGetFileDatabase(const char* a0)
46 TRACE("Call XrmGetFileDatabase\n");
47 EnterCriticalSection( &X11DRV_CritSection );
48 r = XrmGetFileDatabase(a0);
49 LeaveCriticalSection( &X11DRV_CritSection );
50 TRACE("Ret XrmGetFileDatabase\n");
54 XrmDatabase TSXrmGetStringDatabase(const char* a0)
57 TRACE("Call XrmGetStringDatabase\n");
58 EnterCriticalSection( &X11DRV_CritSection );
59 r = XrmGetStringDatabase(a0);
60 LeaveCriticalSection( &X11DRV_CritSection );
61 TRACE("Ret XrmGetStringDatabase\n");
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) */