comparison src/video/x11/SDL_x11dyn.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents ecba4bbaf9c2
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
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: */