2 * Thread safe wrappers around Xresource calls.
3 * This file was generated automatically by tools/make_X11wrappers
11 #include <X11/Xresource.h>
13 #include "debugtools.h"
14 #include "ts_xresource.h"
17 DEFAULT_DEBUG_CHANNEL(x11
)
19 XrmQuark
TSXrmUniqueQuark(void)
22 TRACE("Call XrmUniqueQuark\n");
23 EnterCriticalSection( &X11DRV_CritSection
);
25 LeaveCriticalSection( &X11DRV_CritSection
);
26 TRACE("Ret XrmUniqueQuark\n");
30 int TSXrmGetResource(XrmDatabase a0
, const char* a1
, const char* a2
, char** a3
, XrmValue
* a4
)
33 TRACE("Call XrmGetResource\n");
34 EnterCriticalSection( &X11DRV_CritSection
);
35 r
= XrmGetResource(a0
, a1
, a2
, a3
, a4
);
36 LeaveCriticalSection( &X11DRV_CritSection
);
37 TRACE("Ret XrmGetResource\n");
41 XrmDatabase
TSXrmGetFileDatabase(const char* a0
)
44 TRACE("Call XrmGetFileDatabase\n");
45 EnterCriticalSection( &X11DRV_CritSection
);
46 r
= XrmGetFileDatabase(a0
);
47 LeaveCriticalSection( &X11DRV_CritSection
);
48 TRACE("Ret XrmGetFileDatabase\n");
52 XrmDatabase
TSXrmGetStringDatabase(const char* a0
)
55 TRACE("Call XrmGetStringDatabase\n");
56 EnterCriticalSection( &X11DRV_CritSection
);
57 r
= XrmGetStringDatabase(a0
);
58 LeaveCriticalSection( &X11DRV_CritSection
);
59 TRACE("Ret XrmGetStringDatabase\n");
63 void TSXrmMergeDatabases(XrmDatabase a0
, XrmDatabase
* a1
)
65 TRACE("Call XrmMergeDatabases\n");
66 EnterCriticalSection( &X11DRV_CritSection
);
67 XrmMergeDatabases(a0
, a1
);
68 LeaveCriticalSection( &X11DRV_CritSection
);
69 TRACE("Ret XrmMergeDatabases\n");
72 void TSXrmParseCommand(XrmDatabase
* a0
, XrmOptionDescList a1
, int a2
, const char* a3
, int* a4
, char** a5
)
74 TRACE("Call XrmParseCommand\n");
75 EnterCriticalSection( &X11DRV_CritSection
);
76 XrmParseCommand(a0
, a1
, a2
, a3
, a4
, a5
);
77 LeaveCriticalSection( &X11DRV_CritSection
);
78 TRACE("Ret XrmParseCommand\n");