Make sure to return an error if the file generation fails.
[wine.git] / dlls / x11drv / ts_xlib.h
blob056fa56717d0179e98fec4ba5205103f123bce04
1 /*
2 * Thread safe wrappers around Xlib calls.
3 * Always include this file instead of <X11/Xlib.h>.
4 * This file was generated automatically by tools/make_X11wrappers
5 * DO NOT EDIT!
6 */
8 #ifndef __WINE_TS_XLIB_H
9 #define __WINE_TS_XLIB_H
11 #ifndef __WINE_CONFIG_H
12 # error You must include config.h to use this header
13 #endif
15 #ifdef HAVE_X11_XLIB_H
17 #include <X11/Xlib.h>
19 extern void wine_tsx11_lock(void);
20 extern void wine_tsx11_unlock(void);
22 extern XFontStruct * TSXLoadQueryFont(Display*, const char*);
23 extern XImage * TSXGetImage(Display*, Drawable, int, int, unsigned int, unsigned int, unsigned long, int);
24 extern Display * TSXOpenDisplay(const char*);
25 extern char * TSXGetAtomName(Display*, Atom);
26 extern char * TSXKeysymToString(KeySym);
27 extern Atom TSXInternAtom(Display*, const char*, int);
28 extern Colormap TSXCreateColormap(Display*, Window, Visual*, int);
29 extern Pixmap TSXCreatePixmap(Display*, Drawable, unsigned int, unsigned int, unsigned int);
30 extern Pixmap TSXCreateBitmapFromData(Display*, Drawable, const char*, unsigned int, unsigned int);
31 extern Window TSXGetSelectionOwner(Display*, Atom);
32 extern char ** TSXListFonts(Display*, const char*, int, int*);
33 extern KeySym TSXKeycodeToKeysym(Display*, unsigned int, int);
34 extern int * TSXListDepths(Display*, int, int*);
35 extern int TSXReconfigureWMWindow(Display*, Window, int, unsigned int, XWindowChanges*);
36 extern int TSXAllocColor(Display*, Colormap, XColor*);
37 extern int TSXAllocColorCells(Display*, Colormap, int, unsigned long*, unsigned int, unsigned long*, unsigned int);
38 extern int TSXBell(Display*, int);
39 extern int TSXChangeGC(Display*, GC, unsigned long, XGCValues*);
40 extern int TSXChangeProperty(Display*, Window, Atom, Atom, int, int, const unsigned char*, int);
41 extern int TSXChangeWindowAttributes(Display*, Window, unsigned long, XSetWindowAttributes*);
42 extern int TSXCopyArea(Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
43 extern int TSXCopyPlane(Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned long);
44 extern int TSXDefineCursor(Display*, Window, Cursor);
45 extern int TSXDeleteProperty(Display*, Window, Atom);
46 extern int TSXDrawArc(Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
47 extern int TSXDrawLine(Display*, Drawable, GC, int, int, int, int);
48 extern int TSXDrawLines(Display*, Drawable, GC, XPoint*, int, int);
49 extern int TSXDrawRectangle(Display*, Drawable, GC, int, int, unsigned int, unsigned int);
50 extern int TSXDrawString16(Display*, Drawable, GC, int, int, const XChar2b*, int);
51 extern int TSXDrawText16(Display*, Drawable, GC, int, int, XTextItem16*, int);
52 extern int TSXFillArc(Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
53 extern int TSXFillPolygon(Display*, Drawable, GC, XPoint*, int, int, int);
54 extern int TSXFillRectangle(Display*, Drawable, GC, int, int, unsigned int, unsigned int);
55 extern int TSXFlush(Display*);
56 extern int TSXFree(void*);
57 extern int TSXFreeColormap(Display*, Colormap);
58 extern int TSXFreeColors(Display*, Colormap, unsigned long*, int, unsigned long);
59 extern int TSXFreeFont(Display*, XFontStruct*);
60 extern int TSXFreeFontNames(char**);
61 extern int TSXFreePixmap(Display*, Pixmap);
62 extern int TSXGetFontProperty(XFontStruct*, Atom, unsigned long*);
63 extern int TSXGetGeometry(Display*, Drawable, Window*, int*, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
64 extern int TSXGetScreenSaver(Display*, int*, int*, int*, int*);
65 extern int TSXGetWindowProperty(Display*, Window, Atom, long, long, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
66 extern int TSXGetWindowAttributes(Display*, Window, XWindowAttributes*);
67 extern int TSXGrabPointer(Display*, Window, int, unsigned int, int, int, Window, Cursor, Time);
68 extern int TSXGrabServer(Display*);
69 extern KeyCode TSXKeysymToKeycode(Display*, KeySym);
70 extern int TSXMapWindow(Display*, Window);
71 extern int TSXQueryColor(Display*, Colormap, XColor*);
72 extern int TSXQueryColors(Display*, Colormap, XColor*, int);
73 extern int TSXQueryPointer(Display*, Window, Window*, Window*, int*, int*, int*, int*, unsigned int*);
74 extern int TSXQueryTree(Display*, Window, Window*, Window*, Window**, unsigned int*);
75 extern int TSXRefreshKeyboardMapping(XMappingEvent*);
76 extern int TSXSendEvent(Display*, Window, int, long, XEvent*);
77 extern int TSXSetArcMode(Display*, GC, int);
78 extern int TSXSetClipRectangles(Display*, GC, int, int, XRectangle*, int, int);
79 extern int TSXSetDashes(Display*, GC, int, const char*, int);
80 extern int TSXSetForeground(Display*, GC, unsigned long);
81 extern int TSXSetFunction(Display*, GC, int);
82 extern int TSXSetGraphicsExposures(Display*, GC, int);
83 extern int TSXSetLineAttributes(Display*, GC, unsigned int, int, int, int);
84 extern int TSXSetScreenSaver(Display*, int, int, int, int);
85 extern int TSXSetSelectionOwner(Display*, Atom, Window, Time);
86 extern int TSXSetSubwindowMode(Display*, GC, int);
87 extern int TSXStoreColor(Display*, Colormap, XColor*);
88 extern int TSXSync(Display*, int);
89 extern int TSXTextExtents16(XFontStruct*, const XChar2b*, int, int*, int*, int*, XCharStruct*);
90 extern int TSXTextWidth16(XFontStruct*, const XChar2b*, int);
91 extern int TSXUngrabPointer(Display*, Time);
92 extern int TSXUngrabServer(Display*);
93 extern int TSXUninstallColormap(Display*, Colormap);
94 extern int TSXUnmapWindow(Display*, Window);
95 extern XIM TSXOpenIM(Display*, struct _XrmHashBucketRec*, char*, char*);
97 #endif /* defined(HAVE_X11_XLIB_H) */
99 #endif /* __WINE_TS_XLIB_H */