comparison src/video/x11/SDL_x11sym.h @ 1950:a344e42bce3b

Started work on the new X11 driver.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 26 Jul 2006 06:34:54 +0000
parents
children 420716272158
comparison
equal deleted inserted replaced
1949:44b6f09a07d8 1950:a344e42bce3b
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2004 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22
23 SDL_X11_MODULE(BASEXLIB)
24 SDL_X11_SYM(XClassHint *, XAllocClassHint, (void), (), return)
25 SDL_X11_SYM(Status, XAllocColor, (Display * a, Colormap b, XColor * c),
26 (a, b, c), return) SDL_X11_SYM(XSizeHints *, XAllocSizeHints,
27 (void), (),
28 return) SDL_X11_SYM(XWMHints *,
29 XAllocWMHints,
30 (void), (),
31 return)
32 SDL_X11_SYM(int, XChangePointerControl,
33 (Display * a, Bool b, Bool c, int d, int e, int f), (a, b, c, d,
34 e, f),
35 return) SDL_X11_SYM(int, XChangeProperty, (Display * a,
36 Window b, Atom c,
37 Atom d, int e, int f,
38 _Xconst unsigned char
39 *g, int h), (a, b, c,
40 d, e, f,
41 g, h),
42 return) SDL_X11_SYM(int,
43 XChangeWindowAttributes,
44 (Display * a, Window b,
45 unsigned long c,
46 XSetWindowAttributes *
47 d), (a, b, c, d), return)
48 SDL_X11_SYM(Bool, XCheckTypedEvent, (Display * a, int b, XEvent * c),
49 (a, b, c), return) SDL_X11_SYM(int, XClearWindow, (Display * a,
50 Window b),
51 (a, b), return) SDL_X11_SYM(int,
52 XCloseDisplay,
53 (Display
54 *
55 a),
56 (a),
57 return)
58 SDL_X11_SYM(Colormap, XCreateColormap,
59 (Display * a, Window b, Visual * c, int d), (a, b, c, d),
60 return) SDL_X11_SYM(Cursor, XCreatePixmapCursor, (Display * a,
61 Pixmap b,
62 Pixmap c,
63 XColor * d,
64 XColor * e,
65 unsigned int
66 f,
67 unsigned int
68 g), (a, b, c,
69 d, e, f,
70 g),
71 return) SDL_X11_SYM(GC, XCreateGC,
72 (Display * a,
73 Drawable b,
74 unsigned long c,
75 XGCValues * d), (a, b,
76 c,
77 d),
78 return)
79 SDL_X11_SYM(XImage *, XCreateImage,
80 (Display * a, Visual * b, unsigned int c, int d, int e, char *f,
81 unsigned int g, unsigned int h, int i, int j), (a, b, c, d, e,
82 f, g, h, i, j),
83 return) SDL_X11_SYM(Pixmap, XCreatePixmap, (Display * a,
84 Drawable b,
85 unsigned int c,
86 unsigned int d,
87 unsigned int e), (a,
88 b,
89 c,
90 d,
91 e),
92 return) SDL_X11_SYM(Pixmap,
93 XCreatePixmapFromBitmapData,
94 (Display * a,
95 Drawable b, char *c,
96 unsigned int d,
97 unsigned int e,
98 unsigned long f, unsigned long g, unsigned int h), (a, b, c, d, e, f, g, h), return)
99 SDL_X11_SYM(Window, XCreateSimpleWindow,
100 (Display * a, Window b, int c, int d, unsigned int e,
101 unsigned int f, unsigned int g, unsigned long h,
102 unsigned long i), (a, b, c, d, e, f, g, h, i),
103 return) SDL_X11_SYM(Window, XCreateWindow, (Display * a,
104 Window b, int c,
105 int d,
106 unsigned int e,
107 unsigned int f,
108 unsigned int g,
109 int h,
110 unsigned int i,
111 Visual * j,
112 unsigned long k,
113 XSetWindowAttributes
114 * l), (a, b, c, d,
115 e, f, g, h,
116 i, j, k, l),
117 return) SDL_X11_SYM(int, XDefineCursor, (Display * a, Window b, Cursor c), (a, b, c), return)
118 SDL_X11_SYM(int, XDeleteProperty, (Display * a, Window b, Atom c), (a, b, c),
119 return) SDL_X11_SYM(int, XDestroyWindow, (Display * a,
120 Window b), (a, b),
121 return) SDL_X11_SYM(char *, XDisplayName,
122 (_Xconst char *a), (a),
123 return)
124 SDL_X11_SYM(int, XEventsQueued, (Display * a, int b), (a, b),
125 return) SDL_X11_SYM(Bool, XFilterEvent, (XEvent * event,
126 Window w), (event, w),
127 return) SDL_X11_SYM(int, XFlush,
128 (Display * a), (a),
129 return)
130 SDL_X11_SYM(int, XFree, (void *a), (a), return) SDL_X11_SYM(int,
131 XFreeColormap,
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
404 SDL_X11_SYM(KeySym, XKeycodeToKeysym, (Display * a, unsigned int b, int c),
405 (a, b, c), return)
406 #else
407 SDL_X11_SYM(KeySym, XKeycodeToKeysym, (Display * a, KeyCode b, int c),
408 (a, b, c), return)
409 #endif
410 #ifdef X_HAVE_UTF8_STRING
411 SDL_X11_MODULE(UTF8)
412 SDL_X11_SYM(int, Xutf8TextListToTextProperty,
413 (Display * a, char **b, int c, XICCEncodingStyle d,
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! */
419 SDL_X11_SYM(void, XDestroyIC, (XIC a), (a),)
420 SDL_X11_SYM(void, XSetICFocus, (XIC a), (a),)
421 SDL_X11_SYM(void, XUnsetICFocus, (XIC a), (a),)
422 SDL_X11_SYM(XIM, XOpenIM,
423 (Display * a, struct _XrmHashBucketRec * b, char *c, char *d),
424 (a, b, c, d), return)
425 SDL_X11_SYM(Status, XCloseIM, (XIM a), (a), return)
426 #endif
427 #ifndef NO_SHARED_MEMORY
428 SDL_X11_MODULE(SHM)
429 SDL_X11_SYM(Status, XShmAttach, (Display * a, XShmSegmentInfo * b), (a, b),
430 return)
431 SDL_X11_SYM(Status, XShmDetach, (Display * a, XShmSegmentInfo * b), (a, b),
432 return)
433 SDL_X11_SYM(Status, XShmPutImage,
434 (Display * a, Drawable b, GC c, XImage * d, int e, int f, int g,
435 int h, unsigned int i, unsigned int j, Bool k), (a, b, c, d, e,
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 /*
447 * 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.
449 */
450 #ifdef LONG64
451 SDL_X11_MODULE(IO_32BIT)
452 SDL_X11_SYM(int, _XData32,
453 (Display * dpy, register long *data, unsigned len), (dpy, data,
454 len), return)
455 SDL_X11_SYM(void, _XRead32, (Display * dpy, register long *data, long len),
456 (dpy, data, len),)
457 #endif
458 /*
459 * These only show up on some variants of Unix.
460 */
461 #if defined(__osf__)
462 SDL_X11_MODULE(OSF_ENTRY_POINTS)
463 SDL_X11_SYM(void, _SmtBufferOverflow,
464 (Display * dpy, register smtDisplayPtr p), (dpy, p),)
465 SDL_X11_SYM(void, _SmtIpError,
466 (Display * dpy, register smtDisplayPtr p, int i), (dpy, p, i),)
467 SDL_X11_SYM(int, ipAllocateData, (ChannelPtr a, IPCard b, IPDataPtr * c),
468 (a, b, c), return)
469 SDL_X11_SYM(int, ipUnallocateAndSendData, (ChannelPtr a, IPCard b), (a, b),
470 return)
471 #endif
472 /* Xrandr support. */
473 #if SDL_VIDEO_DRIVER_X11_XRANDR
474 SDL_X11_MODULE(XRANDR)
475 SDL_X11_SYM(Status, XRRQueryVersion,
476 (Display * dpy, int *major_versionp, int *minor_versionp), (dpy,
477 major_versionp,
478 minor_versionp),
479 return)
480 SDL_X11_SYM(XRRScreenConfiguration *, XRRGetScreenInfo,
481 (Display * dpy, Drawable draw), (dpy, draw), return)
482 SDL_X11_SYM(SizeID, XRRConfigCurrentConfiguration,
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 */
505 #if SDL_VIDEO_DRIVER_X11_DPMS
506 SDL_X11_MODULE(DPMS)
507 SDL_X11_SYM(Status, DPMSQueryExtension,
508 (Display * dpy, int *major_versionp, int *minor_versionp), (dpy,
509 major_versionp,
510 minor_versionp),
511 return)
512 SDL_X11_SYM(Status, DPMSInfo, (Display * dpy, CARD16 * state, BOOL * onoff),
513 (dpy, state, onoff), return)
514 SDL_X11_SYM(Status, DPMSEnable, (Display * dpy), (dpy), return)
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: */