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>
16 #include "debugtools.h"
20 DEFAULT_DEBUG_CHANNEL(x11
)
22 Bool
TSXShmQueryExtension(Display
*a0
)
25 TRACE("Call XShmQueryExtension\n");
26 EnterCriticalSection( &X11DRV_CritSection
);
27 r
= XShmQueryExtension(a0
);
28 LeaveCriticalSection( &X11DRV_CritSection
);
29 TRACE("Ret XShmQueryExtension\n");
33 Bool
TSXShmQueryVersion(Display
*a0
, int *a1
, int *a2
, Bool
*a3
)
36 TRACE("Call XShmQueryVersion\n");
37 EnterCriticalSection( &X11DRV_CritSection
);
38 r
= XShmQueryVersion(a0
, a1
, a2
, a3
);
39 LeaveCriticalSection( &X11DRV_CritSection
);
40 TRACE("Ret XShmQueryVersion\n");
44 int TSXShmPixmapFormat(Display
*a0
)
47 TRACE("Call XShmPixmapFormat\n");
48 EnterCriticalSection( &X11DRV_CritSection
);
49 r
= XShmPixmapFormat(a0
);
50 LeaveCriticalSection( &X11DRV_CritSection
);
51 TRACE("Ret XShmPixmapFormat\n");
55 Status
TSXShmAttach(Display
*a0
, XShmSegmentInfo
*a1
)
58 TRACE("Call XShmAttach\n");
59 EnterCriticalSection( &X11DRV_CritSection
);
60 r
= XShmAttach(a0
, a1
);
61 LeaveCriticalSection( &X11DRV_CritSection
);
62 TRACE("Ret XShmAttach\n");
66 Status
TSXShmDetach(Display
*a0
, XShmSegmentInfo
*a1
)
69 TRACE("Call XShmDetach\n");
70 EnterCriticalSection( &X11DRV_CritSection
);
71 r
= XShmDetach(a0
, a1
);
72 LeaveCriticalSection( &X11DRV_CritSection
);
73 TRACE("Ret XShmDetach\n");
77 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
)
80 TRACE("Call XShmPutImage\n");
81 EnterCriticalSection( &X11DRV_CritSection
);
82 r
= XShmPutImage(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
, a9
, a10
);
83 LeaveCriticalSection( &X11DRV_CritSection
);
84 TRACE("Ret XShmPutImage\n");
88 Status
TSXShmGetImage(Display
*a0
, Drawable a1
, XImage
*a2
, int a3
, int a4
, unsigned long a5
)
91 TRACE("Call XShmGetImage\n");
92 EnterCriticalSection( &X11DRV_CritSection
);
93 r
= XShmGetImage(a0
, a1
, a2
, a3
, a4
, a5
);
94 LeaveCriticalSection( &X11DRV_CritSection
);
95 TRACE("Ret XShmGetImage\n");
99 XImage
* TSXShmCreateImage(Display
*a0
, Visual
*a1
, unsigned int a2
, int a3
, char *a4
, XShmSegmentInfo
*a5
, unsigned int a6
, unsigned int a7
)
102 TRACE("Call XShmCreateImage\n");
103 EnterCriticalSection( &X11DRV_CritSection
);
104 r
= XShmCreateImage(a0
, a1
, a2
, a3
, a4
, a5
, a6
, a7
);
105 LeaveCriticalSection( &X11DRV_CritSection
);
106 TRACE("Ret XShmCreateImage\n");
110 Pixmap
TSXShmCreatePixmap(Display
*a0
, Drawable a1
, char *a2
, XShmSegmentInfo
*a3
, unsigned int a4
, unsigned int a5
, unsigned int a6
)
113 TRACE("Call XShmCreatePixmap\n");
114 EnterCriticalSection( &X11DRV_CritSection
);
115 r
= XShmCreatePixmap(a0
, a1
, a2
, a3
, a4
, a5
, a6
);
116 LeaveCriticalSection( &X11DRV_CritSection
);
117 TRACE("Ret XShmCreatePixmap\n");
121 #endif /* defined(HAVE_LIBXXSHM) */
123 #endif /* !defined(X_DISPLAY_MISSING) */