When the commandID was being treated as the index, no check for index
[wine/multimedia.git] / tsx11 / ts_xshm.c
blob4baeed6c55ede924cb7c81527961ed7e7525899f
1 /*
2 * Thread safe wrappers around XShm calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #ifdef HAVE_LIBXXSHM
11 #include <X11/Xlib.h>
12 #include <X11/extensions/XShm.h>
14 #include "ts_xshm.h"
17 Bool TSXShmQueryExtension(Display *a0)
19 Bool r;
20 wine_tsx11_lock();
21 r = XShmQueryExtension(a0);
22 wine_tsx11_unlock();
23 return r;
26 Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
28 Bool r;
29 wine_tsx11_lock();
30 r = XShmQueryVersion(a0, a1, a2, a3);
31 wine_tsx11_unlock();
32 return r;
35 int TSXShmPixmapFormat(Display *a0)
37 int r;
38 wine_tsx11_lock();
39 r = XShmPixmapFormat(a0);
40 wine_tsx11_unlock();
41 return r;
44 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
46 Status r;
47 wine_tsx11_lock();
48 r = XShmAttach(a0, a1);
49 wine_tsx11_unlock();
50 return r;
53 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
55 Status r;
56 wine_tsx11_lock();
57 r = XShmDetach(a0, a1);
58 wine_tsx11_unlock();
59 return r;
62 Status TSXShmPutImage(Display *a0, Drawable a1, GC a2, XImage *a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9, Bool a10)
64 Status r;
65 wine_tsx11_lock();
66 r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
67 wine_tsx11_unlock();
68 return r;
71 Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
73 Status r;
74 wine_tsx11_lock();
75 r = XShmGetImage(a0, a1, a2, a3, a4, a5);
76 wine_tsx11_unlock();
77 return r;
80 XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
82 XImage * r;
83 wine_tsx11_lock();
84 r = XShmCreateImage(a0, a1, a2, a3, a4, a5, a6, a7);
85 wine_tsx11_unlock();
86 return r;
89 Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
91 Pixmap r;
92 wine_tsx11_lock();
93 r = XShmCreatePixmap(a0, a1, a2, a3, a4, a5, a6);
94 wine_tsx11_unlock();
95 return r;
98 #endif /* defined(HAVE_LIBXXSHM) */