Cleaned up the code so it would be easier to parse with the new C
[wine] / include / ts_xshm.h
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  */
7
8 #ifndef __WINE_TS_XSHM_H
9 #define __WINE_TS_XSHM_H
10
11 #ifndef __WINE_CONFIG_H
12 # error You must include config.h to use this header
13 #endif
14
15 #ifdef HAVE_LIBXXSHM
16
17 #include <X11/Xlib.h>
18 #include <X11/extensions/XShm.h>
19
20 extern void (*wine_tsx11_lock)(void);
21 extern void (*wine_tsx11_unlock)(void);
22
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);
32
33 #endif /* defined(HAVE_LIBXXSHM) */
34
35 #endif /* __WINE_TS_XSHM_H */