2 * Thread safe wrappers around xf86vmode calls.
3 * This file was generated automatically by tools/make_X11wrappers
10 #ifdef HAVE_LIBXXF86VM
15 #include <X11/extensions/xf86vmode.h>
17 #include "debugtools.h"
18 #include "ts_xf86vmode.h"
21 DEFAULT_DEBUG_CHANNEL(x11)
23 Bool TSXF86VidModeQueryVersion(Display*a0,int*a1,int*a2)
26 TRACE("Call XF86VidModeQueryVersion\n");
27 EnterCriticalSection( &X11DRV_CritSection );
28 r = XF86VidModeQueryVersion(a0,a1,a2);
29 LeaveCriticalSection( &X11DRV_CritSection );
30 TRACE("Ret XF86VidModeQueryVersion\n");
34 Bool TSXF86VidModeQueryExtension(Display*a0,int*a1,int*a2)
37 TRACE("Call XF86VidModeQueryExtension\n");
38 EnterCriticalSection( &X11DRV_CritSection );
39 r = XF86VidModeQueryExtension(a0,a2,a2);
40 LeaveCriticalSection( &X11DRV_CritSection );
41 TRACE("Ret XF86VidModeQueryExtension\n");
45 Bool TSXF86VidModeGetModeLine(Display*a0,int a1,int*a2,XF86VidModeModeLine*a3)
48 TRACE("Call XF86VidModeGetModeLine\n");
49 EnterCriticalSection( &X11DRV_CritSection );
50 r = XF86VidModeGetModeLine(a0,a1,a2,a3);
51 LeaveCriticalSection( &X11DRV_CritSection );
52 TRACE("Ret XF86VidModeGetModeLine\n");
56 Bool TSXF86VidModeGetAllModeLines(Display*a0,int a1,int*a2,XF86VidModeModeInfo***a3)
59 TRACE("Call XF86VidModeGetAllModeLines\n");
60 EnterCriticalSection( &X11DRV_CritSection );
61 r = XF86VidModeGetAllModeLines(a0,a1,a2,a3);
62 LeaveCriticalSection( &X11DRV_CritSection );
63 TRACE("Ret XF86VidModeGetAllModeLines\n");
67 Bool TSXF86VidModeAddModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2,XF86VidModeModeInfo*a3)
70 TRACE("Call XF86VidModeAddModeLine\n");
71 EnterCriticalSection( &X11DRV_CritSection );
72 r = XF86VidModeAddModeLine(a0,a1,a2,a3);
73 LeaveCriticalSection( &X11DRV_CritSection );
74 TRACE("Ret XF86VidModeAddModeLine\n");
78 Bool TSXF86VidModeDeleteModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
81 TRACE("Call XF86VidModeDeleteModeLine\n");
82 EnterCriticalSection( &X11DRV_CritSection );
83 r = XF86VidModeDeleteModeLine(a0,a1,a2);
84 LeaveCriticalSection( &X11DRV_CritSection );
85 TRACE("Ret XF86VidModeDeleteModeLine\n");
89 Bool TSXF86VidModeModModeLine(Display*a0,int a1,XF86VidModeModeLine*a2)
92 TRACE("Call XF86VidModeModModeLine\n");
93 EnterCriticalSection( &X11DRV_CritSection );
94 r = XF86VidModeModModeLine(a0,a1,a2);
95 LeaveCriticalSection( &X11DRV_CritSection );
96 TRACE("Ret XF86VidModeModModeLine\n");
100 Status TSXF86VidModeValidateModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
103 TRACE("Call XF86VidModeValidateModeLine\n");
104 EnterCriticalSection( &X11DRV_CritSection );
105 r = XF86VidModeValidateModeLine(a0,a1,a2);
106 LeaveCriticalSection( &X11DRV_CritSection );
107 TRACE("Ret XF86VidModeValidateModeLine\n");
111 Bool TSXF86VidModeSwitchMode(Display*a0,int a1,int a2)
114 TRACE("Call XF86VidModeSwitchMode\n");
115 EnterCriticalSection( &X11DRV_CritSection );
116 r = XF86VidModeSwitchMode(a0,a1,a2);
117 LeaveCriticalSection( &X11DRV_CritSection );
118 TRACE("Ret XF86VidModeSwitchMode\n");
122 Bool TSXF86VidModeSwitchToMode(Display*a0,int a1,XF86VidModeModeInfo*a2)
125 TRACE("Call XF86VidModeSwitchToMode\n");
126 EnterCriticalSection( &X11DRV_CritSection );
127 r = XF86VidModeSwitchToMode(a0,a1,a2);
128 LeaveCriticalSection( &X11DRV_CritSection );
129 TRACE("Ret XF86VidModeSwitchToMode\n");
133 Bool TSXF86VidModeLockModeSwitch(Display*a0,int a1,int a2)
136 TRACE("Call XF86VidModeLockModeSwitch\n");
137 EnterCriticalSection( &X11DRV_CritSection );
138 r = XF86VidModeLockModeSwitch(a0,a1,a2);
139 LeaveCriticalSection( &X11DRV_CritSection );
140 TRACE("Ret XF86VidModeLockModeSwitch\n");
144 Bool TSXF86VidModeGetMonitor(Display*a0,int a1,XF86VidModeMonitor*a2)
147 TRACE("Call XF86VidModeGetMonitor\n");
148 EnterCriticalSection( &X11DRV_CritSection );
149 r = XF86VidModeGetMonitor(a0,a1,a2);
150 LeaveCriticalSection( &X11DRV_CritSection );
151 TRACE("Ret XF86VidModeGetMonitor\n");
155 Bool TSXF86VidModeGetViewPort(Display*a0,int a1,int*a2,int*a3)
158 TRACE("Call XF86VidModeGetViewPort\n");
159 EnterCriticalSection( &X11DRV_CritSection );
160 r = XF86VidModeGetViewPort(a0,a1,a2,a3);
161 LeaveCriticalSection( &X11DRV_CritSection );
162 TRACE("Ret XF86VidModeGetViewPort\n");
166 Bool TSXF86VidModeSetViewPort(Display*a0,int a1,int a2,int a3)
169 TRACE("Call XF86VidModeSetViewPort\n");
170 EnterCriticalSection( &X11DRV_CritSection );
171 r = XF86VidModeSetViewPort(a0,a1,a2,a3);
172 LeaveCriticalSection( &X11DRV_CritSection );
173 TRACE("Ret XF86VidModeSetViewPort\n");
177 #endif /* defined(HAVE_LIBXXF86VM) */