Added correct implementation of GetCaps, changed Play and Stop handling
[wine/multimedia.git] / tsx11 / ts_xshm.c
blobb6705aba699205978de24b9260930e296f011d29
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 <X11/Xlib.h>
8 #include <X11/extensions/XShm.h>
9 #include "x11drv.h"
10 #include "debug.h"
12 Bool TSXShmQueryExtension(Display *a0)
14 Bool r;
15 TRACE(x11, "Call XShmQueryExtension\n");
16 EnterCriticalSection( &X11DRV_CritSection );
17 r = XShmQueryExtension(a0);
18 LeaveCriticalSection( &X11DRV_CritSection );
19 TRACE(x11, "Ret XShmQueryExtension\n");
20 return r;
23 int TSXShmPixmapFormat(Display *a0)
25 int r;
26 TRACE(x11, "Call XShmPixmapFormat\n");
27 EnterCriticalSection( &X11DRV_CritSection );
28 r = XShmPixmapFormat(a0);
29 LeaveCriticalSection( &X11DRV_CritSection );
30 TRACE(x11, "Ret XShmPixmapFormat\n");
31 return r;
34 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
36 Status r;
37 TRACE(x11, "Call XShmDetach\n");
38 EnterCriticalSection( &X11DRV_CritSection );
39 r = XShmDetach(a0, a1);
40 LeaveCriticalSection( &X11DRV_CritSection );
41 TRACE(x11, "Ret XShmDetach\n");
42 return r;
45 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
47 Status r;
48 TRACE(x11, "Call XShmAttach\n");
49 EnterCriticalSection( &X11DRV_CritSection );
50 r = XShmAttach(a0, a1);
51 LeaveCriticalSection( &X11DRV_CritSection );
52 TRACE(x11, "Ret XShmAttach\n");
53 return r;
56 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)
58 Status r;
59 TRACE(x11, "Call XShmPutImage\n");
60 EnterCriticalSection( &X11DRV_CritSection );
61 r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
62 LeaveCriticalSection( &X11DRV_CritSection );
63 TRACE(x11, "Ret XShmPutImage\n");
64 return r;