- Do not modify pointers in the OPENFILENAME structure passed to
[wine/multimedia.git] / tsx11 / ts_xutil.c
blobcf663d4208f3a4f8bbf8db2b5d55b90acea5d7d7
1 /*
2 * Thread safe wrappers around Xutil calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #ifdef HAVE_X11_XLIB_H
11 #include <X11/Xlib.h>
12 #include <X11/Xresource.h>
13 #include <X11/Xutil.h>
15 #include "ts_xutil.h"
18 XClassHint * TSXAllocClassHint(void)
20 XClassHint * r;
21 wine_tsx11_lock();
22 r = XAllocClassHint();
23 wine_tsx11_unlock();
24 return r;
27 XSizeHints * TSXAllocSizeHints(void)
29 XSizeHints * r;
30 wine_tsx11_lock();
31 r = XAllocSizeHints();
32 wine_tsx11_unlock();
33 return r;
36 XWMHints * TSXAllocWMHints(void)
38 XWMHints * r;
39 wine_tsx11_lock();
40 r = XAllocWMHints();
41 wine_tsx11_unlock();
42 return r;
45 int TSXClipBox(Region a0, XRectangle* a1)
47 int r;
48 wine_tsx11_lock();
49 r = XClipBox(a0, a1);
50 wine_tsx11_unlock();
51 return r;
54 Region TSXCreateRegion(void)
56 Region r;
57 wine_tsx11_lock();
58 r = XCreateRegion();
59 wine_tsx11_unlock();
60 return r;
63 int TSXDestroyRegion(Region a0)
65 int r;
66 wine_tsx11_lock();
67 r = XDestroyRegion(a0);
68 wine_tsx11_unlock();
69 return r;
72 int TSXEmptyRegion(Region a0)
74 int r;
75 wine_tsx11_lock();
76 r = XEmptyRegion(a0);
77 wine_tsx11_unlock();
78 return r;
81 int TSXEqualRegion(Region a0, Region a1)
83 int r;
84 wine_tsx11_lock();
85 r = XEqualRegion(a0, a1);
86 wine_tsx11_unlock();
87 return r;
90 int TSXFindContext(Display* a0, XID a1, XContext a2, XPointer* a3)
92 int r;
93 wine_tsx11_lock();
94 r = XFindContext(a0, a1, a2, a3);
95 wine_tsx11_unlock();
96 return r;
99 XVisualInfo * TSXGetVisualInfo(Display* a0, long a1, XVisualInfo* a2, int* a3)
101 XVisualInfo * r;
102 wine_tsx11_lock();
103 r = XGetVisualInfo(a0, a1, a2, a3);
104 wine_tsx11_unlock();
105 return r;
108 XWMHints * TSXGetWMHints(Display* a0, Window a1)
110 XWMHints * r;
111 wine_tsx11_lock();
112 r = XGetWMHints(a0, a1);
113 wine_tsx11_unlock();
114 return r;
117 int TSXGetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, long* a3, Atom a4)
119 int r;
120 wine_tsx11_lock();
121 r = XGetWMSizeHints(a0, a1, a2, a3, a4);
122 wine_tsx11_unlock();
123 return r;
126 int TSXIntersectRegion(Region a0, Region a1, Region a2)
128 int r;
129 wine_tsx11_lock();
130 r = XIntersectRegion(a0, a1, a2);
131 wine_tsx11_unlock();
132 return r;
135 int TSXLookupString(XKeyEvent* a0, char* a1, int a2, KeySym* a3, XComposeStatus* a4)
137 int r;
138 wine_tsx11_lock();
139 r = XLookupString(a0, a1, a2, a3, a4);
140 wine_tsx11_unlock();
141 return r;
144 int TSXOffsetRegion(Region a0, int a1, int a2)
146 int r;
147 wine_tsx11_lock();
148 r = XOffsetRegion(a0, a1, a2);
149 wine_tsx11_unlock();
150 return r;
153 int TSXPointInRegion(Region a0, int a1, int a2)
155 int r;
156 wine_tsx11_lock();
157 r = XPointInRegion(a0, a1, a2);
158 wine_tsx11_unlock();
159 return r;
162 Region TSXPolygonRegion(XPoint* a0, int a1, int a2)
164 Region r;
165 wine_tsx11_lock();
166 r = XPolygonRegion(a0, a1, a2);
167 wine_tsx11_unlock();
168 return r;
171 int TSXRectInRegion(Region a0, int a1, int a2, unsigned int a3, unsigned int a4)
173 int r;
174 wine_tsx11_lock();
175 r = XRectInRegion(a0, a1, a2, a3, a4);
176 wine_tsx11_unlock();
177 return r;
180 int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
182 int r;
183 wine_tsx11_lock();
184 r = XSaveContext(a0, a1, a2, a3);
185 wine_tsx11_unlock();
186 return r;
189 int TSXSetClassHint(Display* a0, Window a1, XClassHint* a2)
191 int r;
192 wine_tsx11_lock();
193 r = XSetClassHint(a0, a1, a2);
194 wine_tsx11_unlock();
195 return r;
198 int TSXSetWMHints(Display* a0, Window a1, XWMHints* a2)
200 int r;
201 wine_tsx11_lock();
202 r = XSetWMHints(a0, a1, a2);
203 wine_tsx11_unlock();
204 return r;
207 void TSXSetWMProperties(Display* a0, Window a1, XTextProperty* a2, XTextProperty* a3, char** a4, int a5, XSizeHints* a6, XWMHints* a7, XClassHint* a8)
209 wine_tsx11_lock();
210 XSetWMProperties(a0, a1, a2, a3, a4, a5, a6, a7, a8);
211 wine_tsx11_unlock();
214 void TSXSetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, Atom a3)
216 wine_tsx11_lock();
217 XSetWMSizeHints(a0, a1, a2, a3);
218 wine_tsx11_unlock();
221 int TSXSetRegion(Display* a0, GC a1, Region a2)
223 int r;
224 wine_tsx11_lock();
225 r = XSetRegion(a0, a1, a2);
226 wine_tsx11_unlock();
227 return r;
230 int TSXShrinkRegion(Region a0, int a1, int a2)
232 int r;
233 wine_tsx11_lock();
234 r = XShrinkRegion(a0, a1, a2);
235 wine_tsx11_unlock();
236 return r;
239 int TSXStringListToTextProperty(char** a0, int a1, XTextProperty* a2)
241 int r;
242 wine_tsx11_lock();
243 r = XStringListToTextProperty(a0, a1, a2);
244 wine_tsx11_unlock();
245 return r;
248 int TSXSubtractRegion(Region a0, Region a1, Region a2)
250 int r;
251 wine_tsx11_lock();
252 r = XSubtractRegion(a0, a1, a2);
253 wine_tsx11_unlock();
254 return r;
257 int TSXUnionRectWithRegion(XRectangle* a0, Region a1, Region a2)
259 int r;
260 wine_tsx11_lock();
261 r = XUnionRectWithRegion(a0, a1, a2);
262 wine_tsx11_unlock();
263 return r;
266 int TSXUnionRegion(Region a0, Region a1, Region a2)
268 int r;
269 wine_tsx11_lock();
270 r = XUnionRegion(a0, a1, a2);
271 wine_tsx11_unlock();
272 return r;
275 int TSXXorRegion(Region a0, Region a1, Region a2)
277 int r;
278 wine_tsx11_lock();
279 r = XXorRegion(a0, a1, a2);
280 wine_tsx11_unlock();
281 return r;
284 int TSXDestroyImage(struct _XImage *a0)
286 int r;
287 wine_tsx11_lock();
288 r = XDestroyImage(a0);
289 wine_tsx11_unlock();
290 return r;
293 struct _XImage * TSXSubImage(struct _XImage *a0, int a1, int a2, unsigned int a3, unsigned int a4)
295 struct _XImage * r;
296 wine_tsx11_lock();
297 r = XSubImage(a0, a1, a2, a3, a4);
298 wine_tsx11_unlock();
299 return r;
302 int TSXAddPixel(struct _XImage *a0, long a1)
304 int r;
305 wine_tsx11_lock();
306 r = XAddPixel(a0, a1);
307 wine_tsx11_unlock();
308 return r;
311 XContext TSXUniqueContext(void)
313 XContext r;
314 wine_tsx11_lock();
315 r = XUniqueContext();
316 wine_tsx11_unlock();
317 return r;
320 int TSXDeleteContext(Display*a0,XID a1,XContext a2)
322 int r;
323 wine_tsx11_lock();
324 r = XDeleteContext(a0,a1,a2);
325 wine_tsx11_unlock();
326 return r;
329 #endif /* defined(HAVE_X11_XLIB_H) */