A couple of optimizations.
[wine/multimedia.git] / tsx11 / ts_xf86vmode.c
blob7a3aa8950443bb3d883797268ed43fc37ae827a6
1 /*
2 * Thread safe wrappers around xf86vmode calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #include "windef.h"
10 #ifdef HAVE_LIBXXF86VM
11 #define XMD_H
12 #include "basetsd.h"
14 #include <X11/Xlib.h>
15 #include <X11/extensions/xf86vmode.h>
17 #include "ts_xf86vmode.h"
20 Bool TSXF86VidModeQueryVersion(Display*a0,int*a1,int*a2)
22 Bool r;
23 wine_tsx11_lock();
24 r = XF86VidModeQueryVersion(a0,a1,a2);
25 wine_tsx11_unlock();
26 return r;
29 Bool TSXF86VidModeQueryExtension(Display*a0,int*a1,int*a2)
31 Bool r;
32 wine_tsx11_lock();
33 r = XF86VidModeQueryExtension(a0,a2,a2);
34 wine_tsx11_unlock();
35 return r;
38 Bool TSXF86VidModeGetModeLine(Display*a0,int a1,int*a2,XF86VidModeModeLine*a3)
40 Bool r;
41 wine_tsx11_lock();
42 r = XF86VidModeGetModeLine(a0,a1,a2,a3);
43 wine_tsx11_unlock();
44 return r;
47 Bool TSXF86VidModeGetAllModeLines(Display*a0,int a1,int*a2,XF86VidModeModeInfo***a3)
49 Bool r;
50 wine_tsx11_lock();
51 r = XF86VidModeGetAllModeLines(a0,a1,a2,a3);
52 wine_tsx11_unlock();
53 return r;
56 Bool TSXF86VidModeAddModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2,XF86VidModeModeInfo*a3)
58 Bool r;
59 wine_tsx11_lock();
60 r = XF86VidModeAddModeLine(a0,a1,a2,a3);
61 wine_tsx11_unlock();
62 return r;
65 Bool TSXF86VidModeDeleteModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
67 Bool r;
68 wine_tsx11_lock();
69 r = XF86VidModeDeleteModeLine(a0,a1,a2);
70 wine_tsx11_unlock();
71 return r;
74 Bool TSXF86VidModeModModeLine(Display*a0,int a1,XF86VidModeModeLine*a2)
76 Bool r;
77 wine_tsx11_lock();
78 r = XF86VidModeModModeLine(a0,a1,a2);
79 wine_tsx11_unlock();
80 return r;
83 Status TSXF86VidModeValidateModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
85 Status r;
86 wine_tsx11_lock();
87 r = XF86VidModeValidateModeLine(a0,a1,a2);
88 wine_tsx11_unlock();
89 return r;
92 Bool TSXF86VidModeSwitchMode(Display*a0,int a1,int a2)
94 Bool r;
95 wine_tsx11_lock();
96 r = XF86VidModeSwitchMode(a0,a1,a2);
97 wine_tsx11_unlock();
98 return r;
101 Bool TSXF86VidModeSwitchToMode(Display*a0,int a1,XF86VidModeModeInfo*a2)
103 Bool r;
104 wine_tsx11_lock();
105 r = XF86VidModeSwitchToMode(a0,a1,a2);
106 wine_tsx11_unlock();
107 return r;
110 Bool TSXF86VidModeLockModeSwitch(Display*a0,int a1,int a2)
112 Bool r;
113 wine_tsx11_lock();
114 r = XF86VidModeLockModeSwitch(a0,a1,a2);
115 wine_tsx11_unlock();
116 return r;
119 Bool TSXF86VidModeGetMonitor(Display*a0,int a1,XF86VidModeMonitor*a2)
121 Bool r;
122 wine_tsx11_lock();
123 r = XF86VidModeGetMonitor(a0,a1,a2);
124 wine_tsx11_unlock();
125 return r;
128 Bool TSXF86VidModeGetViewPort(Display*a0,int a1,int*a2,int*a3)
130 Bool r;
131 wine_tsx11_lock();
132 r = XF86VidModeGetViewPort(a0,a1,a2,a3);
133 wine_tsx11_unlock();
134 return r;
137 Bool TSXF86VidModeSetViewPort(Display*a0,int a1,int a2,int a3)
139 Bool r;
140 wine_tsx11_lock();
141 r = XF86VidModeSetViewPort(a0,a1,a2,a3);
142 wine_tsx11_unlock();
143 return r;
146 #endif /* defined(HAVE_LIBXXF86VM) */