Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11sym.h @ 1168:045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
This allows you to run an SDL program on a system without Xlib, since it'll
just report the x11 target unavailable at runtime.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 05 Nov 2005 19:53:37 +0000 |
parents | |
children | 4b3e2294782d |
comparison
equal
deleted
inserted
replaced
1167:435c2e481299 | 1168:045f186426e1 |
---|---|
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_SYM(XClassHint*,XAllocClassHint,(void)) | |
24 SDL_X11_SYM(Status,XAllocColor,(Display*,Colormap,XColor*)) | |
25 SDL_X11_SYM(XSizeHints*,XAllocSizeHints,(void)) | |
26 SDL_X11_SYM(XWMHints*,XAllocWMHints,(void)) | |
27 SDL_X11_SYM(int,XChangePointerControl,(Display*,Bool,Bool,int,int,int)) | |
28 SDL_X11_SYM(int,XChangeProperty,(Display*,Window,Atom,Atom,int,int,_Xconst unsigned char*,int)) | |
29 SDL_X11_SYM(int,XChangeWindowAttributes,(Display*,Window,unsigned long,XSetWindowAttributes*)) | |
30 SDL_X11_SYM(Bool,XCheckTypedEvent,(Display*,int,XEvent*)) | |
31 SDL_X11_SYM(int,XClearWindow,(Display*,Window)) | |
32 SDL_X11_SYM(int,XCloseDisplay,(Display*)) | |
33 SDL_X11_SYM(Colormap,XCreateColormap,(Display*,Window,Visual*,int)) | |
34 SDL_X11_SYM(Cursor,XCreatePixmapCursor,(Display*,Pixmap,Pixmap,XColor*,XColor*,unsigned int,unsigned int)) | |
35 SDL_X11_SYM(GC,XCreateGC,(Display*,Drawable,unsigned long,XGCValues*)) | |
36 SDL_X11_SYM(XImage*,XCreateImage,(Display*,Visual*,unsigned int,int,int,char*,unsigned int,unsigned int,int,int)) | |
37 SDL_X11_SYM(Pixmap,XCreatePixmap,(Display*,Drawable,unsigned int,unsigned int,unsigned int)) | |
38 SDL_X11_SYM(Pixmap,XCreatePixmapFromBitmapData,(Display*,Drawable,char*,unsigned int,unsigned int,unsigned long,unsigned long,unsigned int)) | |
39 SDL_X11_SYM(Window,XCreateSimpleWindow,(Display*,Window,int,int,unsigned int,unsigned int,unsigned int,unsigned long,unsigned long)) | |
40 SDL_X11_SYM(Window,XCreateWindow,(Display*,Window,int,int,unsigned int,unsigned int,unsigned int,int,unsigned int,Visual*,unsigned long,XSetWindowAttributes*)) | |
41 SDL_X11_SYM(int,XDefineCursor,(Display*,Window,Cursor)) | |
42 SDL_X11_SYM(int,XDeleteProperty,(Display*,Window,Atom)) | |
43 SDL_X11_SYM(int,XDestroyWindow,(Display*,Window)) | |
44 SDL_X11_SYM(char*,XDisplayName,(_Xconst char*)) | |
45 SDL_X11_SYM(int,XEventsQueued,(Display*,int)) | |
46 SDL_X11_SYM(int,XFlush,(Display*)) | |
47 SDL_X11_SYM(int,XFree,(void*)) | |
48 SDL_X11_SYM(int,XFreeColormap,(Display*,Colormap)) | |
49 SDL_X11_SYM(int,XFreeColors,(Display*,Colormap,unsigned long*,int,unsigned long)) | |
50 SDL_X11_SYM(int,XFreeCursor,(Display*,Cursor)) | |
51 SDL_X11_SYM(int,XFreeGC,(Display*,GC)) | |
52 SDL_X11_SYM(int,XFreeModifiermap,(XModifierKeymap*)) | |
53 SDL_X11_SYM(int,XFreePixmap,(Display*,Pixmap)) | |
54 SDL_X11_SYM(int,XGetErrorDatabaseText,(Display*,_Xconst char*,_Xconst char*,_Xconst char*,char*,int)) | |
55 SDL_X11_SYM(XModifierKeymap*,XGetModifierMapping,(Display*)) | |
56 SDL_X11_SYM(int,XGetPointerControl,(Display*,int*,int*,int*)) | |
57 SDL_X11_SYM(XVisualInfo*,XGetVisualInfo,(Display*,long,XVisualInfo*,int*)) | |
58 SDL_X11_SYM(XWMHints*,XGetWMHints,(Display*,Window)) | |
59 SDL_X11_SYM(Status,XGetWMIconName,(Display*,Window,XTextProperty*)) | |
60 SDL_X11_SYM(Status,XGetWMName,(Display*,Window,XTextProperty*)) | |
61 SDL_X11_SYM(Status,XGetWindowAttributes,(Display*,Window,XWindowAttributes*)) | |
62 SDL_X11_SYM(int,XGrabKeyboard,(Display*,Window,Bool,int,int,Time)) | |
63 SDL_X11_SYM(int,XGrabPointer,(Display*,Window,Bool,unsigned int,int,int,Window,Cursor,Time)) | |
64 SDL_X11_SYM(Status,XIconifyWindow,(Display*,Window,int)) | |
65 SDL_X11_SYM(int,XInstallColormap,(Display*,Colormap)) | |
66 SDL_X11_SYM(KeyCode,XKeysymToKeycode,(Display*,KeySym)) | |
67 SDL_X11_SYM(Atom,XInternAtom,(Display*,_Xconst char*,Bool)) | |
68 SDL_X11_SYM(XPixmapFormatValues*,XListPixmapFormats,(Display*,int*)) | |
69 SDL_X11_SYM(int,XLookupString,(XKeyEvent*,char*,int,KeySym*,XComposeStatus*)) | |
70 SDL_X11_SYM(int,XMapRaised,(Display*,Window)) | |
71 SDL_X11_SYM(int,XMapWindow,(Display*,Window)) | |
72 SDL_X11_SYM(int,XMaskEvent,(Display*,long,XEvent*)) | |
73 SDL_X11_SYM(Status,XMatchVisualInfo,(Display*,int,int,int,XVisualInfo*)) | |
74 SDL_X11_SYM(int,XMissingExtension,(Display*,_Xconst char*)) | |
75 SDL_X11_SYM(int,XMoveResizeWindow,(Display*,Window,int,int,unsigned int,unsigned int)) | |
76 SDL_X11_SYM(int,XMoveWindow,(Display*,Window,int,int)) | |
77 SDL_X11_SYM(int,XNextEvent,(Display*,XEvent*)) | |
78 SDL_X11_SYM(Display*,XOpenDisplay,(_Xconst char*)) | |
79 SDL_X11_SYM(int,XPeekEvent,(Display*,XEvent*)) | |
80 SDL_X11_SYM(int,XPending,(Display*)) | |
81 SDL_X11_SYM(int,XPutImage,(Display*,Drawable,GC,XImage*,int,int,int,int,unsigned int,unsigned int)) | |
82 SDL_X11_SYM(int,XQueryColors,(Display*,Colormap,XColor*,int)) | |
83 SDL_X11_SYM(int,XQueryKeymap,(Display*,char [32])) | |
84 SDL_X11_SYM(Bool,XQueryPointer,(Display*,Window,Window*,Window*,int*,int*,int*,int*,unsigned int*)) | |
85 SDL_X11_SYM(int,XRaiseWindow,(Display*,Window)) | |
86 SDL_X11_SYM(int,XReparentWindow,(Display*,Window,Window,int,int)) | |
87 SDL_X11_SYM(int,XResizeWindow,(Display*,Window,unsigned int,unsigned int)) | |
88 SDL_X11_SYM(int,XSelectInput,(Display*,Window,long)) | |
89 SDL_X11_SYM(Status,XSendEvent,(Display*,Window,Bool,long,XEvent*)) | |
90 SDL_X11_SYM(int,XSetClassHint,(Display*,Window,XClassHint*)) | |
91 SDL_X11_SYM(XErrorHandler,XSetErrorHandler,(XErrorHandler)) | |
92 SDL_X11_SYM(XIOErrorHandler,XSetIOErrorHandler,(XIOErrorHandler)) | |
93 SDL_X11_SYM(int,XSetTransientForHint,(Display*,Window,Window)) | |
94 SDL_X11_SYM(int,XSetWMHints,(Display*,Window,XWMHints*)) | |
95 SDL_X11_SYM(void,XSetWMIconName,(Display*,Window,XTextProperty*)) | |
96 SDL_X11_SYM(void,XSetWMName,(Display*,Window,XTextProperty*)) | |
97 SDL_X11_SYM(void,XSetWMNormalHints,(Display*,Window,XSizeHints*)) | |
98 SDL_X11_SYM(Status,XSetWMProtocols,(Display*,Window,Atom*,int)) | |
99 SDL_X11_SYM(int,XSetWindowBackground,(Display*,Window,unsigned long)) | |
100 SDL_X11_SYM(int,XSetWindowBackgroundPixmap,(Display*,Window,Pixmap)) | |
101 SDL_X11_SYM(int,XSetWindowColormap,(Display*,Window,Colormap)) | |
102 SDL_X11_SYM(int,XStoreColors,(Display*,Colormap,XColor*,int)) | |
103 SDL_X11_SYM(Status,XStringListToTextProperty,(char**,int,XTextProperty*)) | |
104 SDL_X11_SYM(int,XSync,(Display*,Bool)) | |
105 SDL_X11_SYM(int,XUngrabKeyboard,(Display*,Time)) | |
106 SDL_X11_SYM(int,XUngrabPointer,(Display*,Time)) | |
107 SDL_X11_SYM(int,XUnmapWindow,(Display*,Window)) | |
108 SDL_X11_SYM(int,XWarpPointer,(Display*,Window,Window,int,int,unsigned int,unsigned int,int,int)) | |
109 SDL_X11_SYM(VisualID,XVisualIDFromVisual,(Visual*)) | |
110 SDL_X11_SYM(XExtDisplayInfo*,XextAddDisplay,(XExtensionInfo*,Display*,char*,XExtensionHooks*,int,XPointer)) | |
111 SDL_X11_SYM(XExtensionInfo*,XextCreateExtension,(void)) | |
112 SDL_X11_SYM(void,XextDestroyExtension,(XExtensionInfo*)) | |
113 SDL_X11_SYM(XExtDisplayInfo*,XextFindDisplay,(XExtensionInfo*,Display*)) | |
114 SDL_X11_SYM(int,XextRemoveDisplay,(XExtensionInfo*,Display*)) | |
115 SDL_X11_SYM(int,Xutf8TextListToTextProperty,(Display*,char**,int,XICCEncodingStyle,XTextProperty*)) | |
116 SDL_X11_SYM(void,_XEatData,(Display*,unsigned long)) | |
117 SDL_X11_SYM(void,_XFlush,(Display*)) | |
118 SDL_X11_SYM(void,_XFlushGCCache,(Display*,GC)) | |
119 SDL_X11_SYM(int,_XRead,(Display*,char*,long)) | |
120 SDL_X11_SYM(void,_XReadPad,(Display*,char*,long)) | |
121 SDL_X11_SYM(void,_XSend,(Display*,_Xconst char*,long)) | |
122 SDL_X11_SYM(Status,_XReply,(Display*,xReply*,int,Bool)) | |
123 SDL_X11_SYM(unsigned long,_XSetLastRequestRead,(Display*,xGenericReply*)) | |
124 | |
125 #if NeedWidePrototypes | |
126 SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display*,unsigned int,int)) | |
127 #else | |
128 SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display*,KeyCode,int)) | |
129 #endif | |
130 | |
131 #ifndef NO_SHARED_MEMORY | |
132 SDL_X11_SYM(Status,XShmAttach,(Display*,XShmSegmentInfo*)) | |
133 SDL_X11_SYM(Status,XShmDetach,(Display*,XShmSegmentInfo*)) | |
134 SDL_X11_SYM(Status,XShmPutImage,(Display*,Drawable,GC,XImage*,int,int,int,int,unsigned int,unsigned int,Bool)) | |
135 SDL_X11_SYM(XImage*,XShmCreateImage,(Display*,Visual*,unsigned int,int,char*,XShmSegmentInfo*,unsigned int,unsigned int)) | |
136 SDL_X11_SYM(Bool,XShmQueryExtension,(Display*)) | |
137 #endif | |
138 | |
139 SDL_X11_SYM(SDL_X11_XSynchronizeRetType,XSynchronize,(Display*,Bool)) | |
140 SDL_X11_SYM(SDL_X11_XESetWireToEventRetType,XESetWireToEvent,(Display*,int,SDL_X11_XESetWireToEventRetType)) | |
141 SDL_X11_SYM(SDL_X11_XESetEventToWireRetType,XESetEventToWire,(Display*,int,SDL_X11_XESetEventToWireRetType)) | |
142 | |
143 /* end of SDL_x11sym.h ... */ | |
144 |