comparison src/video/x11/SDL_x11sym.h @ 1662:782fd950bd46 SDL-1.3

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