2 * Thread safe wrappers around XShm calls.
3 * This file was generated automatically by tools/make_X11wrappers
9 #ifndef X_DISPLAY_MISSING
14 #include <X11/extensions/XShm.h>
18 Bool
TSXShmQueryExtension(Display
*a0
)
21 TRACE(x11
, "Call XShmQueryExtension\n");
22 EnterCriticalSection( &X11DRV_CritSection
);
23 r
= XShmQueryExtension(a0
);
24 LeaveCriticalSection( &X11DRV_CritSection
);
25 TRACE(x11
, "Ret XShmQueryExtension\n");
29 Bool
TSXShmQueryVersion(Display
*a0
, int *a1
, int *a2
, Bool
*a3
)
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");
40 int TSXShmPixmapFormat(Display
*a0
)
43 TRACE(x11
, "Call XShmPixmapFormat\n");
44 EnterCriticalSection( &X11DRV_CritSection
);
45 r
= XShmPixmapFormat(a0
);
46 LeaveCriticalSection( &X11DRV_CritSection
);
47 TRACE(x11
, "Ret XShmPixmapFormat\n");
51 Status
TSXShmAttach(Display
*a0
, XShmSegmentInfo
*a1
)
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");
62 Status
TSXShmDetach(Display
*a0
, XShmSegmentInfo
*a1
)
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");
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
)
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");
84 Status
TSXShmGetImage(Display
*a0
, Drawable a1
, XImage
*a2
, int a3
, int a4
, unsigned long a5
)
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");
95 XImage
* TSXShmCreateImage(Display
*a0
, Visual
*a1
, unsigned int a2
, int a3
, char *a4
, XShmSegmentInfo
*a5
, unsigned int a6
, unsigned int a7
)
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");
106 Pixmap
TSXShmCreatePixmap(Display
*a0
, Drawable a1
, char *a2
, XShmSegmentInfo
*a3
, unsigned int a4
, unsigned int a5
, unsigned int a6
)
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");
117 #endif /* defined(HAVE_LIBXXSHM) */
119 #endif /* !defined(X_DISPLAY_MISSING) */