Merge pull request #232 from ManaPlus/master

add basic support for SDL lib.
This commit is contained in:
Daniel Marjamäki 2014-02-02 10:18:18 -08:00
commit c1282071cf
1 changed files with 45 additions and 0 deletions

45
cfg/sdl.cfg Normal file
View File

@ -0,0 +1,45 @@
<?xml version="1.0"?>
<def>
<function name="SDL_mutexP"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function>
<function name="SDL_mutexV"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function>
<function name="SDL_RWsize"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function>
<function name="SDL_RWread"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg><arg nr="2"><not-bool/><not-null/></arg> </function>
<function name="IMG_isPNG"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function>
<function name="IMG_isJPG"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function>
<resource>
<dealloc>SDL_FreeSurface</dealloc>
<alloc init="true">SDL_CreateRGBSurface</alloc>
<alloc init="true">SDL_ConvertSurface</alloc>
<alloc init="true">TTF_RenderUTF8_Blended</alloc>
<alloc init="true">IMG_LoadPNG_RW</alloc>
<alloc init="true">IMG_LoadJPG_RW</alloc>
<alloc init="true">IMG_Load</alloc>
</resource>
<resource>
<dealloc>SDL_DestroyMutex</dealloc>
<alloc init="true">SDL_CreateMutex</alloc>
</resource>
<resource>
<dealloc>SDL_WaitThread</dealloc>
<alloc init="true">SDL_CreateThread</alloc>
</resource>
<resource>
<dealloc>SDL_RWclose</dealloc>
<alloc init="true">SDL_RWFromFile</alloc>
</resource>
<resource>
<dealloc>SDL_FreeRW</dealloc>
<alloc init="true">SDL_AllocRW</alloc>
</resource>
<resource>
<dealloc>Mix_FreeMusic</dealloc>
<alloc init="true">Mix_LoadMUSType_RW</alloc>
</resource>
</def>