Fixed DEBUG_ONLY_THIS_PROCESS again (thanks to Ulrich Weigand).
[wine/multimedia.git] / tsx11 / ts_xf86vmode.c
blob035404aee7e50b5552cc0d1ac30b19c1c9a6821e
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 #ifndef X_DISPLAY_MISSING
11 #include "windef.h"
12 #ifdef HAVE_LIBXXF86VM
13 #define XMD_H
14 #include "basetsd.h"
16 #include <X11/Xlib.h>
17 #include <X11/extensions/xf86vmode.h>
19 #include "debugtools.h"
20 #include "ts_xf86vmode.h"
21 #include "x11drv.h"
23 DEFAULT_DEBUG_CHANNEL(x11)
25 Bool TSXF86VidModeQueryVersion(Display*a0,int*a1,int*a2)
27 Bool r;
28 TRACE("Call XF86VidModeQueryVersion\n");
29 EnterCriticalSection( &X11DRV_CritSection );
30 r = XF86VidModeQueryVersion(a0,a1,a2);
31 LeaveCriticalSection( &X11DRV_CritSection );
32 TRACE("Ret XF86VidModeQueryVersion\n");
33 return r;
36 Bool TSXF86VidModeQueryExtension(Display*a0,int*a1,int*a2)
38 Bool r;
39 TRACE("Call XF86VidModeQueryExtension\n");
40 EnterCriticalSection( &X11DRV_CritSection );
41 r = XF86VidModeQueryExtension(a0,a2,a2);
42 LeaveCriticalSection( &X11DRV_CritSection );
43 TRACE("Ret XF86VidModeQueryExtension\n");
44 return r;
47 Bool TSXF86VidModeGetModeLine(Display*a0,int a1,int*a2,XF86VidModeModeLine*a3)
49 Bool r;
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");
55 return r;
58 Bool TSXF86VidModeGetAllModeLines(Display*a0,int a1,int*a2,XF86VidModeModeInfo***a3)
60 Bool r;
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");
66 return r;
69 Bool TSXF86VidModeAddModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2,XF86VidModeModeInfo*a3)
71 Bool r;
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");
77 return r;
80 Bool TSXF86VidModeDeleteModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
82 Bool r;
83 TRACE("Call XF86VidModeDeleteModeLine\n");
84 EnterCriticalSection( &X11DRV_CritSection );
85 r = XF86VidModeDeleteModeLine(a0,a1,a2);
86 LeaveCriticalSection( &X11DRV_CritSection );
87 TRACE("Ret XF86VidModeDeleteModeLine\n");
88 return r;
91 Bool TSXF86VidModeModModeLine(Display*a0,int a1,XF86VidModeModeLine*a2)
93 Bool r;
94 TRACE("Call XF86VidModeModModeLine\n");
95 EnterCriticalSection( &X11DRV_CritSection );
96 r = XF86VidModeModModeLine(a0,a1,a2);
97 LeaveCriticalSection( &X11DRV_CritSection );
98 TRACE("Ret XF86VidModeModModeLine\n");
99 return r;
102 Status TSXF86VidModeValidateModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
104 Status r;
105 TRACE("Call XF86VidModeValidateModeLine\n");
106 EnterCriticalSection( &X11DRV_CritSection );
107 r = XF86VidModeValidateModeLine(a0,a1,a2);
108 LeaveCriticalSection( &X11DRV_CritSection );
109 TRACE("Ret XF86VidModeValidateModeLine\n");
110 return r;
113 Bool TSXF86VidModeSwitchMode(Display*a0,int a1,int a2)
115 Bool r;
116 TRACE("Call XF86VidModeSwitchMode\n");
117 EnterCriticalSection( &X11DRV_CritSection );
118 r = XF86VidModeSwitchMode(a0,a1,a2);
119 LeaveCriticalSection( &X11DRV_CritSection );
120 TRACE("Ret XF86VidModeSwitchMode\n");
121 return r;
124 Bool TSXF86VidModeSwitchToMode(Display*a0,int a1,XF86VidModeModeInfo*a2)
126 Bool r;
127 TRACE("Call XF86VidModeSwitchToMode\n");
128 EnterCriticalSection( &X11DRV_CritSection );
129 r = XF86VidModeSwitchToMode(a0,a1,a2);
130 LeaveCriticalSection( &X11DRV_CritSection );
131 TRACE("Ret XF86VidModeSwitchToMode\n");
132 return r;
135 Bool TSXF86VidModeLockModeSwitch(Display*a0,int a1,int a2)
137 Bool r;
138 TRACE("Call XF86VidModeLockModeSwitch\n");
139 EnterCriticalSection( &X11DRV_CritSection );
140 r = XF86VidModeLockModeSwitch(a0,a1,a2);
141 LeaveCriticalSection( &X11DRV_CritSection );
142 TRACE("Ret XF86VidModeLockModeSwitch\n");
143 return r;
146 Bool TSXF86VidModeGetMonitor(Display*a0,int a1,XF86VidModeMonitor*a2)
148 Bool r;
149 TRACE("Call XF86VidModeGetMonitor\n");
150 EnterCriticalSection( &X11DRV_CritSection );
151 r = XF86VidModeGetMonitor(a0,a1,a2);
152 LeaveCriticalSection( &X11DRV_CritSection );
153 TRACE("Ret XF86VidModeGetMonitor\n");
154 return r;
157 Bool TSXF86VidModeGetViewPort(Display*a0,int a1,int*a2,int*a3)
159 Bool r;
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");
165 return r;
168 Bool TSXF86VidModeSetViewPort(Display*a0,int a1,int a2,int a3)
170 Bool r;
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");
176 return r;
179 #endif /* defined(HAVE_LIBXXF86VM) */
181 #endif /* !defined(X_DISPLAY_MISSING) */