Fixed compilation.
[wine/multimedia.git] / include / ts_xshm.h
blobb382c7c15984459b65ebe56991887d8abe7fa5fb
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
6 * Copyright 1998 Kristian Nielsen
7 */
9 #ifndef __WINE_TSXSHM_H
10 #define __WINE_TSXSHM_H
12 #include "config.h"
14 #ifndef X_DISPLAY_MISSING
16 #ifdef HAVE_LIBXXSHM
18 #include <X11/Xlib.h>
19 #include <X11/extensions/XShm.h>
21 extern Bool TSXShmQueryExtension(Display *);
22 extern Bool TSXShmQueryVersion(Display *, int *, int *, Bool *);
23 extern int TSXShmPixmapFormat(Display *);
24 extern Status TSXShmAttach(Display *, XShmSegmentInfo *);
25 extern Status TSXShmDetach(Display *, XShmSegmentInfo *);
26 extern Status TSXShmPutImage(Display *, Drawable, GC, XImage *, int, int, int, int, unsigned int, unsigned int, Bool);
27 extern Status TSXShmGetImage(Display *, Drawable, XImage *, int, int, unsigned long);
28 extern XImage * TSXShmCreateImage(Display *, Visual *, unsigned int, int, char *, XShmSegmentInfo *, unsigned int, unsigned int);
29 extern Pixmap TSXShmCreatePixmap(Display *, Drawable, char *, XShmSegmentInfo *, unsigned int, unsigned int, unsigned int);
31 #endif /* defined(HAVE_LIBXXSHM) */
33 #endif /* !defined(X_DISPLAY_MISSING) */
35 #endif /* __WINE_TSXSHM_H */