2 * Thread safe wrappers around xf86vmode calls.
3 * This file was generated automatically by tools/make_X11wrappers
9 #ifndef X_DISPLAY_MISSING
12 #ifdef HAVE_LIBXXF86VM
17 #include <X11/extensions/xf86vmode.h>
19 #include "debugtools.h"
20 #include "ts_xf86vmode.h"
23 DEFAULT_DEBUG_CHANNEL(x11
)
25 Bool
TSXF86VidModeQueryVersion(Display
*a0
,int*a1
,int*a2
)
28 TRACE("Call XF86VidModeQueryVersion\n");
29 EnterCriticalSection( &X11DRV_CritSection
);
30 r
= XF86VidModeQueryVersion(a0
,a1
,a2
);
31 LeaveCriticalSection( &X11DRV_CritSection
);
32 TRACE("Ret XF86VidModeQueryVersion\n");
36 Bool
TSXF86VidModeQueryExtension(Display
*a0
,int*a1
,int*a2
)
39 TRACE("Call XF86VidModeQueryExtension\n");
40 EnterCriticalSection( &X11DRV_CritSection
);
41 r
= XF86VidModeQueryExtension(a0
,a2
,a2
);
42 LeaveCriticalSection( &X11DRV_CritSection
);
43 TRACE("Ret XF86VidModeQueryExtension\n");
47 Bool
TSXF86VidModeGetModeLine(Display
*a0
,int a1
,int*a2
,XF86VidModeModeLine
*a3
)
50 TRACE("Call XF86VidModeGetModeLine\n");
51 EnterCriticalSection( &X11DRV_CritSection
);
52 r
= XF86VidModeGetModeLine(a0
,a1
,a2
,a3
);
53 LeaveCriticalSection( &X11DRV_CritSection
);
54 TRACE("Ret XF86VidModeGetModeLine\n");
58 Bool
TSXF86VidModeGetAllModeLines(Display
*a0
,int a1
,int*a2
,XF86VidModeModeInfo
***a3
)
61 TRACE("Call XF86VidModeGetAllModeLines\n");
62 EnterCriticalSection( &X11DRV_CritSection
);
63 r
= XF86VidModeGetAllModeLines(a0
,a1
,a2
,a3
);
64 LeaveCriticalSection( &X11DRV_CritSection
);
65 TRACE("Ret XF86VidModeGetAllModeLines\n");
69 Bool
TSXF86VidModeAddModeLine(Display
*a0
,int a1
,XF86VidModeModeInfo
*a2
,XF86VidModeModeInfo
*a3
)
72 TRACE("Call XF86VidModeAddModeLine\n");
73 EnterCriticalSection( &X11DRV_CritSection
);
74 r
= XF86VidModeAddModeLine(a0
,a1
,a2
,a3
);
75 LeaveCriticalSection( &X11DRV_CritSection
);
76 TRACE("Ret XF86VidModeAddModeLine\n");
80 Bool
TSXF86VidModeDeleteModeLine(Display
*a0
,int a1
,XF86VidModeModeInfo
*a2
)
83 TRACE("Call XF86VidModeDeleteModeLine\n");
84 EnterCriticalSection( &X11DRV_CritSection
);
85 r
= XF86VidModeDeleteModeLine(a0
,a1
,a2
);
86 LeaveCriticalSection( &X11DRV_CritSection
);
87 TRACE("Ret XF86VidModeDeleteModeLine\n");
91 Bool
TSXF86VidModeModModeLine(Display
*a0
,int a1
,XF86VidModeModeLine
*a2
)
94 TRACE("Call XF86VidModeModModeLine\n");
95 EnterCriticalSection( &X11DRV_CritSection
);
96 r
= XF86VidModeModModeLine(a0
,a1
,a2
);
97 LeaveCriticalSection( &X11DRV_CritSection
);
98 TRACE("Ret XF86VidModeModModeLine\n");
102 Status
TSXF86VidModeValidateModeLine(Display
*a0
,int a1
,XF86VidModeModeInfo
*a2
)
105 TRACE("Call XF86VidModeValidateModeLine\n");
106 EnterCriticalSection( &X11DRV_CritSection
);
107 r
= XF86VidModeValidateModeLine(a0
,a1
,a2
);
108 LeaveCriticalSection( &X11DRV_CritSection
);
109 TRACE("Ret XF86VidModeValidateModeLine\n");
113 Bool
TSXF86VidModeSwitchMode(Display
*a0
,int a1
,int a2
)
116 TRACE("Call XF86VidModeSwitchMode\n");
117 EnterCriticalSection( &X11DRV_CritSection
);
118 r
= XF86VidModeSwitchMode(a0
,a1
,a2
);
119 LeaveCriticalSection( &X11DRV_CritSection
);
120 TRACE("Ret XF86VidModeSwitchMode\n");
124 Bool
TSXF86VidModeSwitchToMode(Display
*a0
,int a1
,XF86VidModeModeInfo
*a2
)
127 TRACE("Call XF86VidModeSwitchToMode\n");
128 EnterCriticalSection( &X11DRV_CritSection
);
129 r
= XF86VidModeSwitchToMode(a0
,a1
,a2
);
130 LeaveCriticalSection( &X11DRV_CritSection
);
131 TRACE("Ret XF86VidModeSwitchToMode\n");
135 Bool
TSXF86VidModeLockModeSwitch(Display
*a0
,int a1
,int a2
)
138 TRACE("Call XF86VidModeLockModeSwitch\n");
139 EnterCriticalSection( &X11DRV_CritSection
);
140 r
= XF86VidModeLockModeSwitch(a0
,a1
,a2
);
141 LeaveCriticalSection( &X11DRV_CritSection
);
142 TRACE("Ret XF86VidModeLockModeSwitch\n");
146 Bool
TSXF86VidModeGetMonitor(Display
*a0
,int a1
,XF86VidModeMonitor
*a2
)
149 TRACE("Call XF86VidModeGetMonitor\n");
150 EnterCriticalSection( &X11DRV_CritSection
);
151 r
= XF86VidModeGetMonitor(a0
,a1
,a2
);
152 LeaveCriticalSection( &X11DRV_CritSection
);
153 TRACE("Ret XF86VidModeGetMonitor\n");
157 Bool
TSXF86VidModeGetViewPort(Display
*a0
,int a1
,int*a2
,int*a3
)
160 TRACE("Call XF86VidModeGetViewPort\n");
161 EnterCriticalSection( &X11DRV_CritSection
);
162 r
= XF86VidModeGetViewPort(a0
,a1
,a2
,a3
);
163 LeaveCriticalSection( &X11DRV_CritSection
);
164 TRACE("Ret XF86VidModeGetViewPort\n");
168 Bool
TSXF86VidModeSetViewPort(Display
*a0
,int a1
,int a2
,int a3
)
171 TRACE("Call XF86VidModeSetViewPort\n");
172 EnterCriticalSection( &X11DRV_CritSection
);
173 r
= XF86VidModeSetViewPort(a0
,a1
,a2
,a3
);
174 LeaveCriticalSection( &X11DRV_CritSection
);
175 TRACE("Ret XF86VidModeSetViewPort\n");
179 #endif /* defined(HAVE_LIBXXF86VM) */
181 #endif /* !defined(X_DISPLAY_MISSING) */