comparison src/video/x11/SDL_x11dyn.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 ecba4bbaf9c2
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
52 * This allows us to use Xlib as-is when linking against it directly, but 52 * This allows us to use Xlib as-is when linking against it directly, but
53 * also handles all the strange cases where there was code in the Xlib 53 * also handles all the strange cases where there was code in the Xlib
54 * headers that may or may not exist or vary on a given platform. 54 * headers that may or may not exist or vary on a given platform.
55 */ 55 */
56 #ifdef __cplusplus 56 #ifdef __cplusplus
57 extern "C" { 57 extern "C"
58 {
58 #endif 59 #endif
59 60
60 /* evil function signatures... */ 61 /* evil function signatures... */
61 typedef Bool (*SDL_X11_XESetWireToEventRetType)(Display*,XEvent*,xEvent*); 62 typedef Bool (*SDL_X11_XESetWireToEventRetType) (Display *, XEvent *,
62 typedef int (*SDL_X11_XSynchronizeRetType)(Display*); 63 xEvent *);
63 typedef Status (*SDL_X11_XESetEventToWireRetType)(Display*,XEvent*,xEvent*); 64 typedef int (*SDL_X11_XSynchronizeRetType) (Display *);
65 typedef Status (*SDL_X11_XESetEventToWireRetType) (Display *, XEvent *,
66 xEvent *);
64 67
65 int SDL_X11_LoadSymbols(void); 68 int SDL_X11_LoadSymbols (void);
66 void SDL_X11_UnloadSymbols(void); 69 void SDL_X11_UnloadSymbols (void);
67 70
68 /* That's really annoying...make this a function pointer no matter what. */ 71 /* That's really annoying...make this a function pointer no matter what. */
69 #ifdef X_HAVE_UTF8_STRING 72 #ifdef X_HAVE_UTF8_STRING
70 extern XIC (*pXCreateIC)(XIM,...); 73 extern XIC (*pXCreateIC) (XIM, ...);
71 #endif 74 #endif
72 75
73 /* These SDL_X11_HAVE_* flags are here whether you have dynamic X11 or not. */ 76 /* These SDL_X11_HAVE_* flags are here whether you have dynamic X11 or not. */
74 #define SDL_X11_MODULE(modname) extern int SDL_X11_HAVE_##modname; 77 #define SDL_X11_MODULE(modname) extern int SDL_X11_HAVE_##modname;
75 #define SDL_X11_SYM(rc,fn,params,args,ret) 78 #define SDL_X11_SYM(rc,fn,params,args,ret)
80 83
81 #ifdef __cplusplus 84 #ifdef __cplusplus
82 } 85 }
83 #endif 86 #endif
84 87
85 #endif /* !defined _SDL_x11dyn_h */ 88 #endif /* !defined _SDL_x11dyn_h */
86 89 /* vi: set ts=4 sw=4 expandtab: */