Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11sym.h @ 1952:420716272158
Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Jul 2006 08:43:17 +0000 |
parents | a344e42bce3b |
children | 2032348afed1 |
comparison
equal
deleted
inserted
replaced
1951:7177581dc9fa | 1952:420716272158 |
---|---|
18 | 18 |
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 | 22 |
23 /* *INDENT-OFF* */ | |
24 | |
23 SDL_X11_MODULE(BASEXLIB) | 25 SDL_X11_MODULE(BASEXLIB) |
24 SDL_X11_SYM(XClassHint *, XAllocClassHint, (void), (), return) | 26 SDL_X11_SYM(XClassHint*,XAllocClassHint,(void),(),return) |
25 SDL_X11_SYM(Status, XAllocColor, (Display * a, Colormap b, XColor * c), | 27 SDL_X11_SYM(Status,XAllocColor,(Display* a,Colormap b,XColor* c),(a,b,c),return) |
26 (a, b, c), return) SDL_X11_SYM(XSizeHints *, XAllocSizeHints, | 28 SDL_X11_SYM(XSizeHints*,XAllocSizeHints,(void),(),return) |
27 (void), (), | 29 SDL_X11_SYM(XWMHints*,XAllocWMHints,(void),(),return) |
28 return) SDL_X11_SYM(XWMHints *, | 30 SDL_X11_SYM(int,XChangePointerControl,(Display* a,Bool b,Bool c,int d,int e,int f),(a,b,c,d,e,f),return) |
29 XAllocWMHints, | 31 SDL_X11_SYM(int,XChangeProperty,(Display* a,Window b,Atom c,Atom d,int e,int f,_Xconst unsigned char* g,int h),(a,b,c,d,e,f,g,h),return) |
30 (void), (), | 32 SDL_X11_SYM(int,XChangeWindowAttributes,(Display* a,Window b,unsigned long c,XSetWindowAttributes* d),(a,b,c,d),return) |
31 return) | 33 SDL_X11_SYM(Bool,XCheckWindowEvent,(Display* a,Window b,long c,XEvent* d),(a,b,c,d),return) |
32 SDL_X11_SYM(int, XChangePointerControl, | 34 SDL_X11_SYM(int,XClearWindow,(Display* a,Window b),(a,b),return) |
33 (Display * a, Bool b, Bool c, int d, int e, int f), (a, b, c, d, | 35 SDL_X11_SYM(int,XCloseDisplay,(Display* a),(a),return) |
34 e, f), | 36 SDL_X11_SYM(Colormap,XCreateColormap,(Display* a,Window b,Visual* c,int d),(a,b,c,d),return) |
35 return) SDL_X11_SYM(int, XChangeProperty, (Display * a, | 37 SDL_X11_SYM(Cursor,XCreatePixmapCursor,(Display* a,Pixmap b,Pixmap c,XColor* d,XColor* e,unsigned int f,unsigned int g),(a,b,c,d,e,f,g),return) |
36 Window b, Atom c, | 38 SDL_X11_SYM(GC,XCreateGC,(Display* a,Drawable b,unsigned long c,XGCValues* d),(a,b,c,d),return) |
37 Atom d, int e, int f, | 39 SDL_X11_SYM(XImage*,XCreateImage,(Display* a,Visual* b,unsigned int c,int d,int e,char* f,unsigned int g,unsigned int h,int i,int j),(a,b,c,d,e,f,g,h,i,j),return) |
38 _Xconst unsigned char | 40 SDL_X11_SYM(Pixmap,XCreatePixmap,(Display* a,Drawable b,unsigned int c,unsigned int d,unsigned int e),(a,b,c,d,e),return) |
39 *g, int h), (a, b, c, | 41 SDL_X11_SYM(Pixmap,XCreatePixmapFromBitmapData,(Display* a,Drawable b,char* c,unsigned int d,unsigned int e,unsigned long f,unsigned long g,unsigned int h),(a,b,c,d,e,f,g,h),return) |
40 d, e, f, | 42 SDL_X11_SYM(Window,XCreateSimpleWindow,(Display* a,Window b,int c,int d,unsigned int e,unsigned int f,unsigned int g,unsigned long h,unsigned long i),(a,b,c,d,e,f,g,h,i),return) |
41 g, h), | 43 SDL_X11_SYM(Window,XCreateWindow,(Display* a,Window b,int c,int d,unsigned int e,unsigned int f,unsigned int g,int h,unsigned int i,Visual* j,unsigned long k,XSetWindowAttributes* l),(a,b,c,d,e,f,g,h,i,j,k,l),return) |
42 return) SDL_X11_SYM(int, | 44 SDL_X11_SYM(int,XDefineCursor,(Display* a,Window b,Cursor c),(a,b,c),return) |
43 XChangeWindowAttributes, | 45 SDL_X11_SYM(int,XDeleteProperty,(Display* a,Window b,Atom c),(a,b,c),return) |
44 (Display * a, Window b, | 46 SDL_X11_SYM(int,XDestroyWindow,(Display* a,Window b),(a,b),return) |
45 unsigned long c, | 47 SDL_X11_SYM(char*,XDisplayName,(_Xconst char* a),(a),return) |
46 XSetWindowAttributes * | 48 SDL_X11_SYM(int,XEventsQueued,(Display* a,int b),(a,b),return) |
47 d), (a, b, c, d), return) | 49 SDL_X11_SYM(Bool,XFilterEvent,(XEvent *event, Window w),(event,w),return) |
48 SDL_X11_SYM(Bool, XCheckTypedEvent, (Display * a, int b, XEvent * c), | 50 SDL_X11_SYM(int,XFlush,(Display* a),(a),return) |
49 (a, b, c), return) SDL_X11_SYM(int, XClearWindow, (Display * a, | 51 SDL_X11_SYM(int,XFree,(void*a),(a),return) |
50 Window b), | 52 SDL_X11_SYM(int,XFreeColormap,(Display* a,Colormap b),(a,b),return) |
51 (a, b), return) SDL_X11_SYM(int, | 53 SDL_X11_SYM(int,XFreeColors,(Display* a,Colormap b,unsigned long* c,int d,unsigned long e),(a,b,c,d,e),return) |
52 XCloseDisplay, | 54 SDL_X11_SYM(int,XFreeCursor,(Display* a,Cursor b),(a,b),return) |
53 (Display | 55 SDL_X11_SYM(int,XFreeGC,(Display* a,GC b),(a,b),return) |
54 * | 56 SDL_X11_SYM(int,XFreeModifiermap,(XModifierKeymap* a),(a),return) |
55 a), | 57 SDL_X11_SYM(int,XFreePixmap,(Display* a,Pixmap b),(a,b),return) |
56 (a), | 58 SDL_X11_SYM(int,XGetErrorDatabaseText,(Display* a,_Xconst char* b,_Xconst char* c,_Xconst char* d,char* e,int f),(a,b,c,d,e,f),return) |
57 return) | 59 SDL_X11_SYM(XModifierKeymap*,XGetModifierMapping,(Display* a),(a),return) |
58 SDL_X11_SYM(Colormap, XCreateColormap, | 60 SDL_X11_SYM(int,XGetPointerControl,(Display* a,int* b,int* c,int* d),(a,b,c,d),return) |
59 (Display * a, Window b, Visual * c, int d), (a, b, c, d), | 61 SDL_X11_SYM(int,XGetScreenSaver,(Display* a,int* b,int* c,int* d, int* e),(a,b,c,d,e),return) |
60 return) SDL_X11_SYM(Cursor, XCreatePixmapCursor, (Display * a, | 62 SDL_X11_SYM(XVisualInfo*,XGetVisualInfo,(Display* a,long b,XVisualInfo* c,int* d),(a,b,c,d),return) |
61 Pixmap b, | 63 SDL_X11_SYM(XWMHints*,XGetWMHints,(Display* a,Window b),(a,b),return) |
62 Pixmap c, | 64 SDL_X11_SYM(Status,XGetWindowAttributes,(Display* a,Window b,XWindowAttributes* c),(a,b,c),return) |
63 XColor * d, | 65 SDL_X11_SYM(int,XGrabKeyboard,(Display* a,Window b,Bool c,int d,int e,Time f),(a,b,c,d,e,f),return) |
64 XColor * e, | 66 SDL_X11_SYM(int,XGrabPointer,(Display* a,Window b,Bool c,unsigned int d,int e,int f,Window g,Cursor h,Time i),(a,b,c,d,e,f,g,h,i),return) |
65 unsigned int | 67 SDL_X11_SYM(Status,XIconifyWindow,(Display* a,Window b,int c),(a,b,c),return) |
66 f, | 68 SDL_X11_SYM(int,XInstallColormap,(Display* a,Colormap b),(a,b),return) |
67 unsigned int | 69 SDL_X11_SYM(KeyCode,XKeysymToKeycode,(Display* a,KeySym b),(a,b),return) |
68 g), (a, b, c, | 70 SDL_X11_SYM(Atom,XInternAtom,(Display* a,_Xconst char* b,Bool c),(a,b,c),return) |
69 d, e, f, | 71 SDL_X11_SYM(XPixmapFormatValues*,XListPixmapFormats,(Display* a,int* b),(a,b),return) |
70 g), | 72 SDL_X11_SYM(int,XLookupString,(XKeyEvent* a,char* b,int c,KeySym* d,XComposeStatus* e),(a,b,c,d,e),return) |
71 return) SDL_X11_SYM(GC, XCreateGC, | 73 SDL_X11_SYM(int,XMapRaised,(Display* a,Window b),(a,b),return) |
72 (Display * a, | 74 SDL_X11_SYM(int,XMapWindow,(Display* a,Window b),(a,b),return) |
73 Drawable b, | 75 SDL_X11_SYM(int,XMaskEvent,(Display* a,long b,XEvent* c),(a,b,c),return) |
74 unsigned long c, | 76 SDL_X11_SYM(Status,XMatchVisualInfo,(Display* a,int b,int c,int d,XVisualInfo* e),(a,b,c,d,e),return) |
75 XGCValues * d), (a, b, | 77 SDL_X11_SYM(int,XMissingExtension,(Display* a,_Xconst char* b),(a,b),return) |
76 c, | 78 SDL_X11_SYM(int,XMoveResizeWindow,(Display* a,Window b,int c,int d,unsigned int e,unsigned int f),(a,b,c,d,e,f),return) |
77 d), | 79 SDL_X11_SYM(int,XMoveWindow,(Display* a,Window b,int c,int d),(a,b,c,d),return) |
78 return) | 80 SDL_X11_SYM(int,XNextEvent,(Display* a,XEvent* b),(a,b),return) |
79 SDL_X11_SYM(XImage *, XCreateImage, | 81 SDL_X11_SYM(Display*,XOpenDisplay,(_Xconst char* a),(a),return) |
80 (Display * a, Visual * b, unsigned int c, int d, int e, char *f, | 82 SDL_X11_SYM(int,XPeekEvent,(Display* a,XEvent* b),(a,b),return) |
81 unsigned int g, unsigned int h, int i, int j), (a, b, c, d, e, | 83 SDL_X11_SYM(int,XPending,(Display* a),(a),return) |
82 f, g, h, i, j), | 84 SDL_X11_SYM(int,XPutImage,(Display* a,Drawable b,GC c,XImage* d,int e,int f,int g,int h,unsigned int i,unsigned int j),(a,b,c,d,e,f,g,h,i,j),return) |
83 return) SDL_X11_SYM(Pixmap, XCreatePixmap, (Display * a, | 85 SDL_X11_SYM(int,XQueryColors,(Display* a,Colormap b,XColor* c,int d),(a,b,c,d),return) |
84 Drawable b, | 86 SDL_X11_SYM(int,XQueryKeymap,(Display* a,char *b),(a,b),return) |
85 unsigned int c, | 87 SDL_X11_SYM(Bool,XQueryPointer,(Display* a,Window b,Window* c,Window* d,int* e,int* f,int* g,int* h,unsigned int* i),(a,b,c,d,e,f,g,h,i),return) |
86 unsigned int d, | 88 SDL_X11_SYM(int,XRaiseWindow,(Display* a,Window b),(a,b),return) |
87 unsigned int e), (a, | 89 SDL_X11_SYM(int,XReparentWindow,(Display* a,Window b,Window c,int d,int e),(a,b,c,d,e),return) |
88 b, | 90 SDL_X11_SYM(int,XResizeWindow,(Display* a,Window b,unsigned int c,unsigned int d),(a,b,c,d),return) |
89 c, | 91 SDL_X11_SYM(int,XSelectInput,(Display* a,Window b,long c),(a,b,c),return) |
90 d, | 92 SDL_X11_SYM(Status,XSendEvent,(Display* a,Window b,Bool c,long d,XEvent* e),(a,b,c,d,e),return) |
91 e), | 93 SDL_X11_SYM(int,XSetClassHint,(Display* a,Window b,XClassHint* c),(a,b,c),return) |
92 return) SDL_X11_SYM(Pixmap, | 94 SDL_X11_SYM(XErrorHandler,XSetErrorHandler,(XErrorHandler a),(a),return) |
93 XCreatePixmapFromBitmapData, | 95 SDL_X11_SYM(XIOErrorHandler,XSetIOErrorHandler,(XIOErrorHandler a),(a),return) |
94 (Display * a, | 96 SDL_X11_SYM(int,XSetScreenSaver,(Display* a,int b,int c,int d,int e),(a,b,c,d,e),return) |
95 Drawable b, char *c, | 97 SDL_X11_SYM(int,XSetTransientForHint,(Display* a,Window b,Window c),(a,b,c),return) |
96 unsigned int d, | 98 SDL_X11_SYM(int,XSetWMHints,(Display* a,Window b,XWMHints* c),(a,b,c),return) |
97 unsigned int e, | 99 SDL_X11_SYM(void,XSetTextProperty,(Display* a,Window b,XTextProperty* c,Atom d),(a,b,c,d),) |
98 unsigned long f, unsigned long g, unsigned int h), (a, b, c, d, e, f, g, h), return) | 100 SDL_X11_SYM(void,XSetWMNormalHints,(Display* a,Window b,XSizeHints* c),(a,b,c),) |
99 SDL_X11_SYM(Window, XCreateSimpleWindow, | 101 SDL_X11_SYM(Status,XSetWMProtocols,(Display* a,Window b,Atom* c,int d),(a,b,c,d),return) |
100 (Display * a, Window b, int c, int d, unsigned int e, | 102 SDL_X11_SYM(int,XSetWindowBackground,(Display* a,Window b,unsigned long c),(a,b,c),return) |
101 unsigned int f, unsigned int g, unsigned long h, | 103 SDL_X11_SYM(int,XSetWindowBackgroundPixmap,(Display* a,Window b,Pixmap c),(a,b,c),return) |
102 unsigned long i), (a, b, c, d, e, f, g, h, i), | 104 SDL_X11_SYM(int,XSetWindowColormap,(Display* a,Window b,Colormap c),(a,b,c),return) |
103 return) SDL_X11_SYM(Window, XCreateWindow, (Display * a, | 105 SDL_X11_SYM(int,XStoreColors,(Display* a,Colormap b,XColor* c,int d),(a,b,c,d),return) |
104 Window b, int c, | 106 SDL_X11_SYM(Status,XStringListToTextProperty,(char** a,int b,XTextProperty* c),(a,b,c),return) |
105 int d, | 107 SDL_X11_SYM(int,XSync,(Display* a,Bool b),(a,b),return) |
106 unsigned int e, | 108 SDL_X11_SYM(int,XUngrabKeyboard,(Display* a,Time b),(a,b),return) |
107 unsigned int f, | 109 SDL_X11_SYM(int,XUngrabPointer,(Display* a,Time b),(a,b),return) |
108 unsigned int g, | 110 SDL_X11_SYM(int,XUnmapWindow,(Display* a,Window b),(a,b),return) |
109 int h, | 111 SDL_X11_SYM(int,XWarpPointer,(Display* a,Window b,Window c,int d,int e,unsigned int f,unsigned int g,int h, int i),(a,b,c,d,e,f,g,h,i),return) |
110 unsigned int i, | 112 SDL_X11_SYM(VisualID,XVisualIDFromVisual,(Visual* a),(a),return) |
111 Visual * j, | 113 SDL_X11_SYM(XExtDisplayInfo*,XextAddDisplay,(XExtensionInfo* a,Display* b,char* c,XExtensionHooks* d,int e,XPointer f),(a,b,c,d,e,f),return) |
112 unsigned long k, | 114 SDL_X11_SYM(XExtensionInfo*,XextCreateExtension,(void),(),return) |
113 XSetWindowAttributes | 115 SDL_X11_SYM(void,XextDestroyExtension,(XExtensionInfo* a),(a),) |
114 * l), (a, b, c, d, | 116 SDL_X11_SYM(XExtDisplayInfo*,XextFindDisplay,(XExtensionInfo* a,Display* b),(a,b),return) |
115 e, f, g, h, | 117 SDL_X11_SYM(int,XextRemoveDisplay,(XExtensionInfo* a,Display* b),(a,b),return) |
116 i, j, k, l), | 118 SDL_X11_SYM(Bool,XQueryExtension,(Display* a,_Xconst char* b,int* c,int* d,int* e),(a,b,c,d,e),return) |
117 return) SDL_X11_SYM(int, XDefineCursor, (Display * a, Window b, Cursor c), (a, b, c), return) | 119 SDL_X11_SYM(char *,XDisplayString,(Display* a),(a),return) |
118 SDL_X11_SYM(int, XDeleteProperty, (Display * a, Window b, Atom c), (a, b, c), | 120 SDL_X11_SYM(int,XGetErrorText,(Display* a,int b,char* c,int d),(a,b,c,d),return) |
119 return) SDL_X11_SYM(int, XDestroyWindow, (Display * a, | 121 SDL_X11_SYM(void,_XEatData,(Display* a,unsigned long b),(a,b),) |
120 Window b), (a, b), | 122 SDL_X11_SYM(void,_XFlush,(Display* a),(a),) |
121 return) SDL_X11_SYM(char *, XDisplayName, | 123 SDL_X11_SYM(void,_XFlushGCCache,(Display* a,GC b),(a,b),) |
122 (_Xconst char *a), (a), | 124 SDL_X11_SYM(int,_XRead,(Display* a,char* b,long c),(a,b,c),return) |
123 return) | 125 SDL_X11_SYM(void,_XReadPad,(Display* a,char* b,long c),(a,b,c),) |
124 SDL_X11_SYM(int, XEventsQueued, (Display * a, int b), (a, b), | 126 SDL_X11_SYM(void,_XSend,(Display* a,_Xconst char* b,long c),(a,b,c),) |
125 return) SDL_X11_SYM(Bool, XFilterEvent, (XEvent * event, | 127 SDL_X11_SYM(Status,_XReply,(Display* a,xReply* b,int c,Bool d),(a,b,c,d),return) |
126 Window w), (event, w), | 128 SDL_X11_SYM(unsigned long,_XSetLastRequestRead,(Display* a,xGenericReply* b),(a,b),return) |
127 return) SDL_X11_SYM(int, XFlush, | 129 SDL_X11_SYM(SDL_X11_XSynchronizeRetType,XSynchronize,(Display* a,Bool b),(a,b),return) |
128 (Display * a), (a), | 130 SDL_X11_SYM(SDL_X11_XESetWireToEventRetType,XESetWireToEvent,(Display* a,int b,SDL_X11_XESetWireToEventRetType c),(a,b,c),return) |
129 return) | 131 SDL_X11_SYM(SDL_X11_XESetEventToWireRetType,XESetEventToWire,(Display* a,int b,SDL_X11_XESetEventToWireRetType c),(a,b,c),return) |
130 SDL_X11_SYM(int, XFree, (void *a), (a), return) SDL_X11_SYM(int, | 132 SDL_X11_SYM(XExtensionErrorHandler,XSetExtensionErrorHandler,(XExtensionErrorHandler a),(a),return) |
131 XFreeColormap, | 133 |
132 (Display * | |
133 a, | |
134 Colormap | |
135 b), (a, b), | |
136 return) | |
137 SDL_X11_SYM(int, XFreeColors, | |
138 (Display * a, Colormap b, unsigned long *c, int d, unsigned long e), | |
139 (a, b, c, d, e), return) SDL_X11_SYM(int, XFreeCursor, | |
140 (Display * a, Cursor b), | |
141 (a, b), return) | |
142 SDL_X11_SYM(int, XFreeGC, (Display * a, GC b), (a, b), | |
143 return) SDL_X11_SYM(int, XFreeModifiermap, | |
144 (XModifierKeymap * a), (a), | |
145 return) SDL_X11_SYM(int, XFreePixmap, | |
146 (Display * a, | |
147 Pixmap b), (a, b), | |
148 return) | |
149 SDL_X11_SYM(int, XGetErrorDatabaseText, | |
150 (Display * a, _Xconst char *b, _Xconst char *c, _Xconst char *d, | |
151 char *e, int f), (a, b, c, d, e, f), | |
152 return) SDL_X11_SYM(XModifierKeymap *, XGetModifierMapping, (Display * a), (a), return) SDL_X11_SYM(int, XGetPointerControl, | |
153 (Display * a, int *b, int *c, | |
154 int *d), (a, b, c, d), return) | |
155 SDL_X11_SYM(int, XGetScreenSaver, | |
156 (Display * a, int *b, int *c, int *d, int *e), (a, b, c, d, e), | |
157 return) SDL_X11_SYM(XVisualInfo *, XGetVisualInfo, (Display * a, | |
158 long b, | |
159 XVisualInfo | |
160 * c, | |
161 int *d), (a, | |
162 b, | |
163 c, | |
164 d), | |
165 return) SDL_X11_SYM(XWMHints *, | |
166 XGetWMHints, | |
167 (Display * a, | |
168 Window b), (a, b), | |
169 return) | |
170 SDL_X11_SYM(Status, XGetWindowAttributes, | |
171 (Display * a, Window b, XWindowAttributes * c), (a, b, c), | |
172 return) SDL_X11_SYM(int, XGrabKeyboard, (Display * a, Window b, | |
173 Bool c, int d, int e, | |
174 Time f), (a, b, c, d, | |
175 e, f), | |
176 return) SDL_X11_SYM(int, XGrabPointer, | |
177 (Display * a, Window b, | |
178 Bool c, | |
179 unsigned int d, int e, | |
180 int f, Window g, | |
181 Cursor h, Time i), (a, | |
182 b, | |
183 c, | |
184 d, | |
185 e, | |
186 f, | |
187 g, | |
188 h, | |
189 i), | |
190 return) | |
191 SDL_X11_SYM(Status, XIconifyWindow, (Display * a, Window b, int c), | |
192 (a, b, c), return) SDL_X11_SYM(int, XInstallColormap, | |
193 (Display * a, Colormap b), (a, | |
194 b), | |
195 return) SDL_X11_SYM(KeyCode, | |
196 XKeysymToKeycode, | |
197 (Display * | |
198 a, | |
199 KeySym b), | |
200 (a, b), return) | |
201 SDL_X11_SYM(Atom, XInternAtom, (Display * a, _Xconst char *b, Bool c), | |
202 (a, b, c), return) SDL_X11_SYM(XPixmapFormatValues *, | |
203 XListPixmapFormats, (Display * a, | |
204 int *b), (a, | |
205 b), | |
206 return) SDL_X11_SYM(int, | |
207 XLookupString, | |
208 (XKeyEvent * | |
209 a, char *b, | |
210 int c, | |
211 KeySym * d, | |
212 XComposeStatus | |
213 * e), (a, | |
214 b, | |
215 c, | |
216 d, | |
217 e), | |
218 return) | |
219 SDL_X11_SYM(int, XMapRaised, (Display * a, Window b), (a, b), | |
220 return) SDL_X11_SYM(int, XMapWindow, (Display * a, Window b), | |
221 (a, b), return) SDL_X11_SYM(int, | |
222 XMaskEvent, | |
223 (Display * a, | |
224 long b, | |
225 XEvent * c), | |
226 (a, b, c), return) | |
227 SDL_X11_SYM(Status, XMatchVisualInfo, | |
228 (Display * a, int b, int c, int d, XVisualInfo * e), (a, b, c, d, e), | |
229 return) SDL_X11_SYM(int, XMissingExtension, (Display * a, | |
230 _Xconst char *b), | |
231 (a, b), return) SDL_X11_SYM(int, | |
232 XMoveResizeWindow, | |
233 (Display * a, | |
234 Window b, | |
235 int c, int d, | |
236 unsigned int | |
237 e, | |
238 unsigned int | |
239 f), (a, b, c, | |
240 d, e, f), | |
241 return) | |
242 SDL_X11_SYM(int, XMoveWindow, (Display * a, Window b, int c, int d), | |
243 (a, b, c, d), return) SDL_X11_SYM(int, XNextEvent, (Display * a, | |
244 XEvent * b), | |
245 (a, b), | |
246 return) SDL_X11_SYM(Display | |
247 *, | |
248 XOpenDisplay, | |
249 (_Xconst | |
250 char | |
251 *a), | |
252 (a), return) | |
253 SDL_X11_SYM(int, XPeekEvent, (Display * a, XEvent * b), (a, b), | |
254 return) SDL_X11_SYM(int, XPending, (Display * a), (a), | |
255 return) SDL_X11_SYM(int, XPutImage, | |
256 (Display * a, | |
257 Drawable b, GC c, | |
258 XImage * d, int e, | |
259 int f, int g, int h, | |
260 unsigned int i, | |
261 unsigned int j), (a, | |
262 b, | |
263 c, | |
264 d, | |
265 e, | |
266 f, | |
267 g, | |
268 h, | |
269 i, | |
270 j), | |
271 return) | |
272 SDL_X11_SYM(int, XQueryColors, (Display * a, Colormap b, XColor * c, int d), | |
273 (a, b, c, d), return) SDL_X11_SYM(int, XQueryKeymap, | |
274 (Display * a, char *b), (a, | |
275 b), | |
276 return) SDL_X11_SYM(Bool, | |
277 XQueryPointer, | |
278 (Display | |
279 * a, | |
280 Window | |
281 b, | |
282 Window * | |
283 c, | |
284 Window * | |
285 d, | |
286 int *e, | |
287 int *f, | |
288 int *g, | |
289 int *h, | |
290 unsigned | |
291 int *i), | |
292 (a, b, c, | |
293 d, e, f, | |
294 g, h, | |
295 i), return) | |
296 SDL_X11_SYM(int, XRaiseWindow, (Display * a, Window b), (a, b), | |
297 return) SDL_X11_SYM(int, XReparentWindow, (Display * a, | |
298 Window b, Window c, | |
299 int d, int e), (a, b, | |
300 c, d, | |
301 e), | |
302 return) SDL_X11_SYM(int, XResizeWindow, | |
303 (Display * a, Window b, | |
304 unsigned int c, | |
305 unsigned int d), (a, | |
306 b, | |
307 c, | |
308 d), | |
309 return) | |
310 SDL_X11_SYM(int, XSelectInput, (Display * a, Window b, long c), (a, b, c), | |
311 return) SDL_X11_SYM(Status, XSendEvent, (Display * a, Window b, | |
312 Bool c, long d, | |
313 XEvent * e), (a, b, c, | |
314 d, e), | |
315 return) SDL_X11_SYM(int, XSetClassHint, | |
316 (Display * a, Window b, | |
317 XClassHint * c), (a, | |
318 b, | |
319 c), | |
320 return) | |
321 SDL_X11_SYM(XErrorHandler, XSetErrorHandler, (XErrorHandler a), (a), | |
322 return) SDL_X11_SYM(XIOErrorHandler, XSetIOErrorHandler, | |
323 (XIOErrorHandler a), (a), | |
324 return) SDL_X11_SYM(int, XSetScreenSaver, | |
325 (Display * a, int b, | |
326 int c, int d, int e), | |
327 (a, b, c, d, e), return) | |
328 SDL_X11_SYM(int, XSetTransientForHint, (Display * a, Window b, Window c), | |
329 (a, b, c), return) SDL_X11_SYM(int, XSetWMHints, (Display * a, | |
330 Window b, | |
331 XWMHints * c), | |
332 (a, b, c), | |
333 return) SDL_X11_SYM(void, | |
334 XSetTextProperty, | |
335 (Display * | |
336 a, | |
337 Window b, | |
338 XTextProperty | |
339 * c, | |
340 Atom d), | |
341 (a, b, c, d),) | |
342 SDL_X11_SYM(void, XSetWMNormalHints, (Display * a, Window b, XSizeHints * c), | |
343 (a, b, c),) | |
344 SDL_X11_SYM(Status, XSetWMProtocols, | |
345 (Display * a, Window b, Atom * c, int d), (a, b, c, d), return) | |
346 SDL_X11_SYM(int, XSetWindowBackground, | |
347 (Display * a, Window b, unsigned long c), (a, b, c), return) | |
348 SDL_X11_SYM(int, XSetWindowBackgroundPixmap, | |
349 (Display * a, Window b, Pixmap c), (a, b, c), return) | |
350 SDL_X11_SYM(int, XSetWindowColormap, (Display * a, Window b, Colormap c), | |
351 (a, b, c), return) | |
352 SDL_X11_SYM(int, XStoreColors, (Display * a, Colormap b, XColor * c, int d), | |
353 (a, b, c, d), return) | |
354 SDL_X11_SYM(Status, XStringListToTextProperty, | |
355 (char **a, int b, XTextProperty * c), (a, b, c), return) | |
356 SDL_X11_SYM(int, XSync, (Display * a, Bool b), (a, b), return) | |
357 SDL_X11_SYM(int, XUngrabKeyboard, (Display * a, Time b), (a, b), return) | |
358 SDL_X11_SYM(int, XUngrabPointer, (Display * a, Time b), (a, b), return) | |
359 SDL_X11_SYM(int, XUnmapWindow, (Display * a, Window b), (a, b), return) | |
360 SDL_X11_SYM(int, XWarpPointer, | |
361 (Display * a, Window b, Window c, int d, int e, unsigned int f, | |
362 unsigned int g, int h, int i), (a, b, c, d, e, f, g, h, i), | |
363 return) | |
364 SDL_X11_SYM(VisualID, XVisualIDFromVisual, (Visual * a), (a), return) | |
365 SDL_X11_SYM(XExtDisplayInfo *, XextAddDisplay, | |
366 (XExtensionInfo * a, Display * b, char *c, XExtensionHooks * d, | |
367 int e, XPointer f), (a, b, c, d, e, f), return) | |
368 SDL_X11_SYM(XExtensionInfo *, XextCreateExtension, (void), (), return) | |
369 SDL_X11_SYM(void, XextDestroyExtension, (XExtensionInfo * a), (a),) | |
370 SDL_X11_SYM(XExtDisplayInfo *, XextFindDisplay, | |
371 (XExtensionInfo * a, Display * b), (a, b), return) | |
372 SDL_X11_SYM(int, XextRemoveDisplay, (XExtensionInfo * a, Display * b), | |
373 (a, b), return) | |
374 SDL_X11_SYM(Bool, XQueryExtension, | |
375 (Display * a, _Xconst char *b, int *c, int *d, int *e), (a, b, c, | |
376 d, e), | |
377 return) | |
378 SDL_X11_SYM(char *, XDisplayString, (Display * a), (a), return) | |
379 SDL_X11_SYM(int, XGetErrorText, (Display * a, int b, char *c, int d), | |
380 (a, b, c, d), return) | |
381 SDL_X11_SYM(void, _XEatData, (Display * a, unsigned long b), (a, b),) | |
382 SDL_X11_SYM(void, _XFlush, (Display * a), (a),) | |
383 SDL_X11_SYM(void, _XFlushGCCache, (Display * a, GC b), (a, b),) | |
384 SDL_X11_SYM(int, _XRead, (Display * a, char *b, long c), (a, b, c), return) | |
385 SDL_X11_SYM(void, _XReadPad, (Display * a, char *b, long c), (a, b, c),) | |
386 SDL_X11_SYM(void, _XSend, (Display * a, _Xconst char *b, long c), (a, b, c),) | |
387 SDL_X11_SYM(Status, _XReply, (Display * a, xReply * b, int c, Bool d), | |
388 (a, b, c, d), return) | |
389 SDL_X11_SYM(unsigned long, _XSetLastRequestRead, | |
390 (Display * a, xGenericReply * b), (a, b), return) | |
391 SDL_X11_SYM(SDL_X11_XSynchronizeRetType, XSynchronize, (Display * a, Bool b), | |
392 (a, b), return) | |
393 SDL_X11_SYM(SDL_X11_XESetWireToEventRetType, XESetWireToEvent, | |
394 (Display * a, int b, SDL_X11_XESetWireToEventRetType c), (a, b, | |
395 c), | |
396 return) | |
397 SDL_X11_SYM(SDL_X11_XESetEventToWireRetType, XESetEventToWire, | |
398 (Display * a, int b, SDL_X11_XESetEventToWireRetType c), (a, b, | |
399 c), | |
400 return) | |
401 SDL_X11_SYM(XExtensionErrorHandler, XSetExtensionErrorHandler, | |
402 (XExtensionErrorHandler a), (a), return) | |
403 #if NeedWidePrototypes | 134 #if NeedWidePrototypes |
404 SDL_X11_SYM(KeySym, XKeycodeToKeysym, (Display * a, unsigned int b, int c), | 135 SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display* a,unsigned int b,int c),(a,b,c),return) |
405 (a, b, c), return) | |
406 #else | 136 #else |
407 SDL_X11_SYM(KeySym, XKeycodeToKeysym, (Display * a, KeyCode b, int c), | 137 SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display* a,KeyCode b,int c),(a,b,c),return) |
408 (a, b, c), return) | 138 #endif |
409 #endif | 139 |
410 #ifdef X_HAVE_UTF8_STRING | 140 #ifdef X_HAVE_UTF8_STRING |
411 SDL_X11_MODULE(UTF8) | 141 SDL_X11_MODULE(UTF8) |
412 SDL_X11_SYM(int, Xutf8TextListToTextProperty, | 142 SDL_X11_SYM(int,Xutf8TextListToTextProperty,(Display* a,char** b,int c,XICCEncodingStyle d,XTextProperty* e),(a,b,c,d,e),return) |
413 (Display * a, char **b, int c, XICCEncodingStyle d, | 143 SDL_X11_SYM(int,Xutf8LookupString,(XIC a,XKeyPressedEvent* b,char* c,int d,KeySym* e,Status* f),(a,b,c,d,e,f),return) |
414 XTextProperty * e), (a, b, c, d, e), return) | |
415 SDL_X11_SYM(int, Xutf8LookupString, | |
416 (XIC a, XKeyPressedEvent * b, char *c, int d, KeySym * e, | |
417 Status * f), (a, b, c, d, e, f), return) | |
418 /*SDL_X11_SYM(XIC,XCreateIC,(XIM, ...),return) !!! ARGH! */ | 144 /*SDL_X11_SYM(XIC,XCreateIC,(XIM, ...),return) !!! ARGH! */ |
419 SDL_X11_SYM(void, XDestroyIC, (XIC a), (a),) | 145 SDL_X11_SYM(void,XDestroyIC,(XIC a),(a),) |
420 SDL_X11_SYM(void, XSetICFocus, (XIC a), (a),) | 146 SDL_X11_SYM(void,XSetICFocus,(XIC a),(a),) |
421 SDL_X11_SYM(void, XUnsetICFocus, (XIC a), (a),) | 147 SDL_X11_SYM(void,XUnsetICFocus,(XIC a),(a),) |
422 SDL_X11_SYM(XIM, XOpenIM, | 148 SDL_X11_SYM(XIM,XOpenIM,(Display* a,struct _XrmHashBucketRec* b,char* c,char* d),(a,b,c,d),return) |
423 (Display * a, struct _XrmHashBucketRec * b, char *c, char *d), | 149 SDL_X11_SYM(Status,XCloseIM,(XIM a),(a),return) |
424 (a, b, c, d), return) | 150 #endif |
425 SDL_X11_SYM(Status, XCloseIM, (XIM a), (a), return) | 151 |
426 #endif | |
427 #ifndef NO_SHARED_MEMORY | 152 #ifndef NO_SHARED_MEMORY |
428 SDL_X11_MODULE(SHM) | 153 SDL_X11_MODULE(SHM) |
429 SDL_X11_SYM(Status, XShmAttach, (Display * a, XShmSegmentInfo * b), (a, b), | 154 SDL_X11_SYM(Status,XShmAttach,(Display* a,XShmSegmentInfo* b),(a,b),return) |
430 return) | 155 SDL_X11_SYM(Status,XShmDetach,(Display* a,XShmSegmentInfo* b),(a,b),return) |
431 SDL_X11_SYM(Status, XShmDetach, (Display * a, XShmSegmentInfo * b), (a, b), | 156 SDL_X11_SYM(Status,XShmPutImage,(Display* a,Drawable b,GC c,XImage* d,int e,int f,int g,int h,unsigned int i,unsigned int j,Bool k),(a,b,c,d,e,f,g,h,i,j,k),return) |
432 return) | 157 SDL_X11_SYM(XImage*,XShmCreateImage,(Display* a,Visual* b,unsigned int c,int d,char* e,XShmSegmentInfo* f,unsigned int g,unsigned int h),(a,b,c,d,e,f,g,h),return) |
433 SDL_X11_SYM(Status, XShmPutImage, | 158 SDL_X11_SYM(Bool,XShmQueryExtension,(Display* a),(a),return) |
434 (Display * a, Drawable b, GC c, XImage * d, int e, int f, int g, | 159 #endif |
435 int h, unsigned int i, unsigned int j, Bool k), (a, b, c, d, e, | 160 |
436 f, g, h, i, j, | |
437 k), return) | |
438 SDL_X11_SYM(XImage *, XShmCreateImage, | |
439 (Display * a, Visual * b, unsigned int c, int d, char *e, | |
440 XShmSegmentInfo * f, unsigned int g, unsigned int h), (a, b, c, | |
441 d, e, f, | |
442 g, h), | |
443 return) | |
444 SDL_X11_SYM(Bool, XShmQueryExtension, (Display * a), (a), return) | |
445 #endif | |
446 /* | 161 /* |
447 * Not required...these only exist in code in headers on some 64-bit platforms, | 162 * Not required...these only exist in code in headers on some 64-bit platforms, |
448 * and are removed via macros elsewhere, so it's safe for them to be missing. | 163 * and are removed via macros elsewhere, so it's safe for them to be missing. |
449 */ | 164 */ |
450 #ifdef LONG64 | 165 #ifdef LONG64 |
451 SDL_X11_MODULE(IO_32BIT) | 166 SDL_X11_MODULE(IO_32BIT) |
452 SDL_X11_SYM(int, _XData32, | 167 SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) |
453 (Display * dpy, register long *data, unsigned len), (dpy, data, | 168 SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),) |
454 len), return) | 169 #endif |
455 SDL_X11_SYM(void, _XRead32, (Display * dpy, register long *data, long len), | 170 |
456 (dpy, data, len),) | |
457 #endif | |
458 /* | 171 /* |
459 * These only show up on some variants of Unix. | 172 * These only show up on some variants of Unix. |
460 */ | 173 */ |
461 #if defined(__osf__) | 174 #if defined(__osf__) |
462 SDL_X11_MODULE(OSF_ENTRY_POINTS) | 175 SDL_X11_MODULE(OSF_ENTRY_POINTS) |
463 SDL_X11_SYM(void, _SmtBufferOverflow, | 176 SDL_X11_SYM(void,_SmtBufferOverflow,(Display *dpy,register smtDisplayPtr p),(dpy,p),) |
464 (Display * dpy, register smtDisplayPtr p), (dpy, p),) | 177 SDL_X11_SYM(void,_SmtIpError,(Display *dpy,register smtDisplayPtr p, int i),(dpy,p,i),) |
465 SDL_X11_SYM(void, _SmtIpError, | 178 SDL_X11_SYM(int,ipAllocateData,(ChannelPtr a, IPCard b, IPDataPtr * c),(a,b,c),return) |
466 (Display * dpy, register smtDisplayPtr p, int i), (dpy, p, i),) | 179 SDL_X11_SYM(int,ipUnallocateAndSendData,(ChannelPtr a, IPCard b),(a,b),return) |
467 SDL_X11_SYM(int, ipAllocateData, (ChannelPtr a, IPCard b, IPDataPtr * c), | 180 #endif |
468 (a, b, c), return) | 181 |
469 SDL_X11_SYM(int, ipUnallocateAndSendData, (ChannelPtr a, IPCard b), (a, b), | |
470 return) | |
471 #endif | |
472 /* Xrandr support. */ | 182 /* Xrandr support. */ |
473 #if SDL_VIDEO_DRIVER_X11_XRANDR | 183 #if SDL_VIDEO_DRIVER_X11_XRANDR |
474 SDL_X11_MODULE(XRANDR) | 184 SDL_X11_MODULE(XRANDR) |
475 SDL_X11_SYM(Status, XRRQueryVersion, | 185 SDL_X11_SYM(Status,XRRQueryVersion,(Display *dpy,int *major_versionp,int *minor_versionp),(dpy,major_versionp,minor_versionp),return) |
476 (Display * dpy, int *major_versionp, int *minor_versionp), (dpy, | 186 SDL_X11_SYM(XRRScreenConfiguration *,XRRGetScreenInfo,(Display *dpy,Drawable draw),(dpy,draw),return) |
477 major_versionp, | 187 SDL_X11_SYM(SizeID,XRRConfigCurrentConfiguration,(XRRScreenConfiguration *config,Rotation *rotation),(config,rotation),return) |
478 minor_versionp), | 188 SDL_X11_SYM(XRRScreenSize *,XRRConfigSizes,(XRRScreenConfiguration *config, int *nsizes),(config,nsizes),return) |
479 return) | 189 SDL_X11_SYM(Status,XRRSetScreenConfig,(Display *dpy, XRRScreenConfiguration *config, Drawable draw, int size_index, Rotation rotation, Time timestamp),(dpy,config,draw,size_index,rotation,timestamp),return) |
480 SDL_X11_SYM(XRRScreenConfiguration *, XRRGetScreenInfo, | 190 SDL_X11_SYM(void,XRRFreeScreenConfigInfo,(XRRScreenConfiguration *config),(config),) |
481 (Display * dpy, Drawable draw), (dpy, draw), return) | 191 #endif |
482 SDL_X11_SYM(SizeID, XRRConfigCurrentConfiguration, | 192 |
483 (XRRScreenConfiguration * config, Rotation * rotation), (config, | |
484 rotation), | |
485 return) | |
486 SDL_X11_SYM(XRRScreenSize *, XRRConfigSizes, | |
487 (XRRScreenConfiguration * config, int *nsizes), (config, nsizes), | |
488 return) | |
489 SDL_X11_SYM(short *, XRRConfigRates, | |
490 (XRRScreenConfiguration * config, int sizeID, int *nrates), | |
491 (config, sizeID, nrates), return) | |
492 SDL_X11_SYM(Status, XRRSetScreenConfig, | |
493 (Display * dpy, XRRScreenConfiguration * config, Drawable draw, | |
494 int size_index, Rotation rotation, Time timestamp), (dpy, | |
495 config, | |
496 draw, | |
497 size_index, | |
498 rotation, | |
499 timestamp), | |
500 return) | |
501 SDL_X11_SYM(void, XRRFreeScreenConfigInfo, (XRRScreenConfiguration * config), | |
502 (config),) | |
503 #endif | |
504 /* DPMS support */ | 193 /* DPMS support */ |
505 #if SDL_VIDEO_DRIVER_X11_DPMS | 194 #if SDL_VIDEO_DRIVER_X11_DPMS |
506 SDL_X11_MODULE(DPMS) | 195 SDL_X11_MODULE(DPMS) |
507 SDL_X11_SYM(Status, DPMSQueryExtension, | 196 SDL_X11_SYM(Status,DPMSQueryExtension,(Display *dpy,int *major_versionp,int *minor_versionp),(dpy,major_versionp,minor_versionp),return) |
508 (Display * dpy, int *major_versionp, int *minor_versionp), (dpy, | 197 SDL_X11_SYM(Status,DPMSInfo,(Display *dpy,CARD16 *state,BOOL *onoff),(dpy,state,onoff),return) |
509 major_versionp, | 198 SDL_X11_SYM(Status,DPMSEnable,(Display *dpy),(dpy),return) |
510 minor_versionp), | 199 SDL_X11_SYM(Status,DPMSDisable,(Display *dpy),(dpy),return) |
511 return) | 200 #endif |
512 SDL_X11_SYM(Status, DPMSInfo, (Display * dpy, CARD16 * state, BOOL * onoff), | 201 |
513 (dpy, state, onoff), return) | 202 /* *INDENT-ON* */ |
514 SDL_X11_SYM(Status, DPMSEnable, (Display * dpy), (dpy), return) | 203 |
515 SDL_X11_SYM(Status, DPMSDisable, (Display * dpy), (dpy), return) | |
516 #endif | |
517 /* end of SDL_x11sym.h ... */ | |
518 /* vi: set ts=4 sw=4 expandtab: */ | 204 /* vi: set ts=4 sw=4 expandtab: */ |