23 #if SDL_VIDEO_DRIVER_DIRECTFB
28 #ifdef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC
32 #define DFB_SYM(ret, name, args, al, func) ret (*name) args;
33 static struct _SDL_DirectFB_Symbols
36 const unsigned int *directfb_major_version;
37 const unsigned int *directfb_minor_version;
38 const unsigned int *directfb_micro_version;
39 } SDL_DirectFB_Symbols;
42 #define DFB_SYM(ret, name, args, al, func) ret name args { func SDL_DirectFB_Symbols.name al ; }
57 #define DFB_SYM(ret, name, args, al, func) if (!(SDL_DirectFB_Symbols.name = SDL_LoadFunction(handle, # name))) retval = 0;
61 (SDL_DirectFB_Symbols.directfb_major_version =
65 (SDL_DirectFB_Symbols.directfb_minor_version =
69 (SDL_DirectFB_Symbols.directfb_micro_version =
75 const char *stemp = DirectFBCheckVersion(DIRECTFB_MAJOR_VERSION,
76 DIRECTFB_MINOR_VERSION,
77 DIRECTFB_MICRO_VERSION);
81 "DirectFB Lib: Version mismatch. Compiled: %d.%d.%d Library %d.%d.%d\n",
82 DIRECTFB_MAJOR_VERSION, DIRECTFB_MINOR_VERSION,
83 DIRECTFB_MICRO_VERSION,
84 *SDL_DirectFB_Symbols.directfb_major_version,
85 *SDL_DirectFB_Symbols.directfb_minor_version,
86 *SDL_DirectFB_Symbols.directfb_micro_version);
void SDL_DirectFB_UnLoadLibrary(void)
DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile)
DECLSPEC void SDLCALL SDL_UnloadObject(void *handle)
EGLImageKHR EGLint EGLint * handle
DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, const char *name)
int SDL_DirectFB_LoadLibrary(void)