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 int TSXShmPixmapFormat(Display
*a0
)
26 TRACE(x11
, "Call XShmPixmapFormat\n");
27 EnterCriticalSection( &X11DRV_CritSection
);
28 r
= XShmPixmapFormat(a0
);
29 LeaveCriticalSection( &X11DRV_CritSection
);
30 TRACE(x11
, "Ret XShmPixmapFormat\n");
34 Status
TSXShmDetach(Display
*a0
, XShmSegmentInfo
*a1
)
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");
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
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
)
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");