Message translation for WM_WININICHANGE.
[wine/multimedia.git] / tsx11 / ts_xshm.c
blobe2f7b39ec89a02a1e4355e184c5e4fe9f43c865b
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 #ifndef X_DISPLAY_MISSING
11 #ifdef HAVE_LIBXXSHM
13 #include <X11/Xlib.h>
14 #include <X11/extensions/XShm.h>
15 #include "debug.h"
16 #include "x11drv.h"
18 Bool TSXShmQueryExtension(Display *a0)
20 Bool r;
21 TRACE(x11, "Call XShmQueryExtension\n");
22 EnterCriticalSection( &X11DRV_CritSection );
23 r = XShmQueryExtension(a0);
24 LeaveCriticalSection( &X11DRV_CritSection );
25 TRACE(x11, "Ret XShmQueryExtension\n");
26 return r;
29 Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
31 Bool r;
32 TRACE(x11, "Call XShmQueryVersion\n");
33 EnterCriticalSection( &X11DRV_CritSection );
34 r = XShmQueryVersion(a0, a1, a2, a3);
35 LeaveCriticalSection( &X11DRV_CritSection );
36 TRACE(x11, "Ret XShmQueryVersion\n");
37 return r;
40 int TSXShmPixmapFormat(Display *a0)
42 int r;
43 TRACE(x11, "Call XShmPixmapFormat\n");
44 EnterCriticalSection( &X11DRV_CritSection );
45 r = XShmPixmapFormat(a0);
46 LeaveCriticalSection( &X11DRV_CritSection );
47 TRACE(x11, "Ret XShmPixmapFormat\n");
48 return r;
51 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
53 Status r;
54 TRACE(x11, "Call XShmAttach\n");
55 EnterCriticalSection( &X11DRV_CritSection );
56 r = XShmAttach(a0, a1);
57 LeaveCriticalSection( &X11DRV_CritSection );
58 TRACE(x11, "Ret XShmAttach\n");
59 return r;
62 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
64 Status r;
65 TRACE(x11, "Call XShmDetach\n");
66 EnterCriticalSection( &X11DRV_CritSection );
67 r = XShmDetach(a0, a1);
68 LeaveCriticalSection( &X11DRV_CritSection );
69 TRACE(x11, "Ret XShmDetach\n");
70 return r;
73 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)
75 Status r;
76 TRACE(x11, "Call XShmPutImage\n");
77 EnterCriticalSection( &X11DRV_CritSection );
78 r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
79 LeaveCriticalSection( &X11DRV_CritSection );
80 TRACE(x11, "Ret XShmPutImage\n");
81 return r;
84 Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
86 Status r;
87 TRACE(x11, "Call XShmGetImage\n");
88 EnterCriticalSection( &X11DRV_CritSection );
89 r = XShmGetImage(a0, a1, a2, a3, a4, a5);
90 LeaveCriticalSection( &X11DRV_CritSection );
91 TRACE(x11, "Ret XShmGetImage\n");
92 return r;
95 XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
97 XImage * r;
98 TRACE(x11, "Call XShmCreateImage\n");
99 EnterCriticalSection( &X11DRV_CritSection );
100 r = XShmCreateImage(a0, a1, a2, a3, a4, a5, a6, a7);
101 LeaveCriticalSection( &X11DRV_CritSection );
102 TRACE(x11, "Ret XShmCreateImage\n");
103 return r;
106 Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
108 Pixmap r;
109 TRACE(x11, "Call XShmCreatePixmap\n");
110 EnterCriticalSection( &X11DRV_CritSection );
111 r = XShmCreatePixmap(a0, a1, a2, a3, a4, a5, a6);
112 LeaveCriticalSection( &X11DRV_CritSection );
113 TRACE(x11, "Ret XShmCreatePixmap\n");
114 return r;
117 #endif /* defined(HAVE_LIBXXSHM) */
119 #endif /* !defined(X_DISPLAY_MISSING) */