Fixed some issues found by winapi_check.
[wine/multimedia.git] / include / ts_xshm.h
blobdb4459c3a0767123c825fa6c81f36c0ff808c1db
1 /*
2 * Thread safe wrappers around XShm calls.
3 * Always include this file instead of <X11/XShm.h>.
4 * This file was generated automatically by tools/make_X11wrappers
5 * DO NOT EDIT!
6 */
8 #ifndef __WINE_TS_XSHM_H
9 #define __WINE_TS_XSHM_H
11 #ifndef __WINE_CONFIG_H
12 # error You must include config.h to use this header
13 #endif
15 #ifdef HAVE_LIBXXSHM
17 #include <X11/Xlib.h>
18 #include <X11/extensions/XShm.h>
20 extern void (*wine_tsx11_lock)(void);
21 extern void (*wine_tsx11_unlock)(void);
23 extern Bool TSXShmQueryExtension(Display *);
24 extern Bool TSXShmQueryVersion(Display *, int *, int *, Bool *);
25 extern int TSXShmPixmapFormat(Display *);
26 extern Status TSXShmAttach(Display *, XShmSegmentInfo *);
27 extern Status TSXShmDetach(Display *, XShmSegmentInfo *);
28 extern Status TSXShmPutImage(Display *, Drawable, GC, XImage *, int, int, int, int, unsigned int, unsigned int, Bool);
29 extern Status TSXShmGetImage(Display *, Drawable, XImage *, int, int, unsigned long);
30 extern XImage * TSXShmCreateImage(Display *, Visual *, unsigned int, int, char *, XShmSegmentInfo *, unsigned int, unsigned int);
31 extern Pixmap TSXShmCreatePixmap(Display *, Drawable, char *, XShmSegmentInfo *, unsigned int, unsigned int, unsigned int);
33 #endif /* defined(HAVE_LIBXXSHM) */
35 #endif /* __WINE_TS_XSHM_H */