2 * Thread safe wrappers around XShm calls.
3 * This file was generated automatically by tools/make_X11wrappers
8 #include <X11/extensions/XShm.h>
12 Bool TSXShmQueryExtension(Display *a0)
15 TRACE(x11, "Call XShmQueryExtension\n");
16 EnterCriticalSection( &X11DRV_CritSection );
17 r = XShmQueryExtension(a0);
18 LeaveCriticalSection( &X11DRV_CritSection );
19 TRACE(x11, "Ret XShmQueryExtension\n");
23 Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
26 TRACE(x11, "Call XShmQueryVersion\n");
27 EnterCriticalSection( &X11DRV_CritSection );
28 r = XShmQueryVersion(a0, a1, a2, a3);
29 LeaveCriticalSection( &X11DRV_CritSection );
30 TRACE(x11, "Ret XShmQueryVersion\n");
34 int TSXShmPixmapFormat(Display *a0)
37 TRACE(x11, "Call XShmPixmapFormat\n");
38 EnterCriticalSection( &X11DRV_CritSection );
39 r = XShmPixmapFormat(a0);
40 LeaveCriticalSection( &X11DRV_CritSection );
41 TRACE(x11, "Ret XShmPixmapFormat\n");
45 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
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");
56 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
59 TRACE(x11, "Call XShmDetach\n");
60 EnterCriticalSection( &X11DRV_CritSection );
61 r = XShmDetach(a0, a1);
62 LeaveCriticalSection( &X11DRV_CritSection );
63 TRACE(x11, "Ret XShmDetach\n");
67 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)
70 TRACE(x11, "Call XShmPutImage\n");
71 EnterCriticalSection( &X11DRV_CritSection );
72 r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
73 LeaveCriticalSection( &X11DRV_CritSection );
74 TRACE(x11, "Ret XShmPutImage\n");
78 Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
81 TRACE(x11, "Call XShmGetImage\n");
82 EnterCriticalSection( &X11DRV_CritSection );
83 r = XShmGetImage(a0, a1, a2, a3, a4, a5);
84 LeaveCriticalSection( &X11DRV_CritSection );
85 TRACE(x11, "Ret XShmGetImage\n");
89 XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
92 TRACE(x11, "Call XShmCreateImage\n");
93 EnterCriticalSection( &X11DRV_CritSection );
94 r = XShmCreateImage(a0, a1, a2, a3, a4, a5, a6, a7);
95 LeaveCriticalSection( &X11DRV_CritSection );
96 TRACE(x11, "Ret XShmCreateImage\n");
100 Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
103 TRACE(x11, "Call XShmCreatePixmap\n");
104 EnterCriticalSection( &X11DRV_CritSection );
105 r = XShmCreatePixmap(a0, a1, a2, a3, a4, a5, a6);
106 LeaveCriticalSection( &X11DRV_CritSection );
107 TRACE(x11, "Ret XShmCreatePixmap\n");