src/SDL20_syms.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 10 Mar 2019 00:18:10 -0500
changeset 113 ed19faa58a82
parent 108 d3b0971aa72c
permissions -rw-r--r--
Call SDL_StopTextInput() during init.

Otherwise, macOS might pop up a choose-an-accented-letter window if you hold
down a key, which looks really weird in an FPS.

I had never seen this happen before, so it's not clear why this has to be
done here or if it was a fluke or something. But for now it works, and it's
not like SDL 1.2 has proper text input anyhow.
icculus@7
     1
/*
icculus@7
     2
  Simple DirectMedia Layer
icculus@46
     3
  Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
icculus@7
     4
icculus@7
     5
  This software is provided 'as-is', without any express or implied
icculus@7
     6
  warranty.  In no event will the authors be held liable for any damages
icculus@7
     7
  arising from the use of this software.
icculus@7
     8
icculus@7
     9
  Permission is granted to anyone to use this software for any purpose,
icculus@7
    10
  including commercial applications, and to alter it and redistribute it
icculus@7
    11
  freely, subject to the following restrictions:
icculus@7
    12
icculus@7
    13
  1. The origin of this software must not be misrepresented; you must not
icculus@7
    14
     claim that you wrote the original software. If you use this software
icculus@7
    15
     in a product, an acknowledgment in the product documentation would be
icculus@7
    16
     appreciated but is not required.
icculus@7
    17
  2. Altered source versions must be plainly marked as such, and must not be
icculus@7
    18
     misrepresented as being the original software.
icculus@7
    19
  3. This notice may not be removed or altered from any source distribution.
icculus@7
    20
*/
icculus@7
    21
icculus@7
    22
/* don't #pragma once this file, it gets #included multiple times! */
icculus@7
    23
icculus@48
    24
#ifndef SDL20_SYM
icculus@48
    25
#define SDL20_SYM(rc,fn,params,args,ret)
icculus@48
    26
#endif
icculus@48
    27
icculus@48
    28
#ifndef SDL20_SYM_PASSTHROUGH
icculus@55
    29
#define SDL20_SYM_PASSTHROUGH(rc,fn,params,args,ret) SDL20_SYM(rc,fn,params,args,ret)
icculus@55
    30
#endif
icculus@55
    31
icculus@55
    32
#ifndef SDL20_SYM_VARARGS
icculus@55
    33
#define SDL20_SYM_VARARGS(rc,fn,params) SDL20_SYM(rc,fn,params,unused,unused)
icculus@48
    34
#endif
icculus@48
    35
icculus@7
    36
SDL20_SYM(int,Init,(Uint32 a),(a),return)
icculus@11
    37
SDL20_SYM(int,InitSubSystem,(Uint32 a),(a),return)
icculus@31
    38
SDL20_SYM(Uint32,WasInit,(Uint32 a),(a),return)
icculus@7
    39
SDL20_SYM(char*,GetError,(void),(),return)
icculus@55
    40
SDL20_SYM_VARARGS(int,SetError,(const char *fmt, ...))
icculus@55
    41
icculus@31
    42
SDL20_SYM_PASSTHROUGH(int,Error,(SDL_errorcode a),(a),return)
icculus@7
    43
SDL20_SYM_PASSTHROUGH(void,ClearError,(void),(),)
icculus@7
    44
SDL20_SYM(void,Quit,(void),(),)
icculus@11
    45
SDL20_SYM(void,QuitSubSystem,(Uint32 a),(a),)
icculus@11
    46
SDL20_SYM_PASSTHROUGH(int,VideoInit,(const char *a),(a),return)
icculus@11
    47
SDL20_SYM_PASSTHROUGH(void,VideoQuit,(void),(),)
icculus@11
    48
SDL20_SYM_PASSTHROUGH(int,AudioInit,(const char *a),(a),return)
icculus@11
    49
SDL20_SYM_PASSTHROUGH(void,AudioQuit,(void),(),)
icculus@31
    50
SDL20_SYM(const char *,GetCurrentAudioDriver,(void),(),return)
icculus@31
    51
SDL20_SYM(const char *,GetCurrentVideoDriver,(void),(),return)
icculus@7
    52
icculus@34
    53
SDL20_SYM(SDL_assert_state,ReportAssertion,(SDL_assert_data *a,const char *b,const char *c, int d),(a,b,c,d),return)
icculus@34
    54
icculus@96
    55
SDL20_SYM(void,PumpEvents,(void),(),)
icculus@31
    56
SDL20_SYM(void,SetEventFilter,(SDL_EventFilter a, void *b),(a,b),)
icculus@31
    57
icculus@31
    58
SDL20_SYM(int,GetNumDisplayModes,(int a),(a),return)
icculus@31
    59
SDL20_SYM(int,GetDisplayMode,(int a, int b, SDL_DisplayMode *c),(a,b,c),return)
icculus@31
    60
SDL20_SYM(int,GetDesktopDisplayMode,(int a, SDL_DisplayMode *b),(a,b),return)
icculus@31
    61
SDL20_SYM(int,GetCurrentDisplayMode,(int a, SDL_DisplayMode *b),(a,b),return)
icculus@34
    62
icculus@31
    63
SDL20_SYM(void,EnableScreenSaver,(void),(),)
icculus@31
    64
SDL20_SYM(void,DisableScreenSaver,(void),(),)
icculus@31
    65
icculus@31
    66
SDL20_SYM(SDL_Window *,CreateWindow,(const char *a, int b, int c, int d, int e, Uint32 f),(a,b,c,d,e,f),return)
icculus@31
    67
SDL20_SYM(void,DestroyWindow,(SDL_Window *a),(a),)
icculus@31
    68
SDL20_SYM(void,SetWindowIcon,(SDL_Window *a,SDL_Surface *b),(a,b),)
icculus@31
    69
SDL20_SYM(int,UpdateWindowSurface,(SDL_Window *a),(a),return)
icculus@31
    70
SDL20_SYM(SDL_Surface *,GetWindowSurface,(SDL_Window *a),(a),return)
icculus@31
    71
SDL20_SYM(void,GetWindowPosition,(SDL_Window *a,int *b, int *c),(a,b,c),)
icculus@31
    72
SDL20_SYM(void,SetWindowSize,(SDL_Window *a, int b, int c),(a,b,c),)
icculus@31
    73
SDL20_SYM(void,GetWindowSize,(SDL_Window *a, int *b, int *c),(a,b,c),)
icculus@34
    74
SDL20_SYM(void,MinimizeWindow,(SDL_Window *a),(a),)
icculus@80
    75
SDL20_SYM(void,RaiseWindow,(SDL_Window *a),(a),)
icculus@34
    76
SDL20_SYM(int,SetWindowGammaRamp,(SDL_Window *a,const Uint16 *b,const Uint16 *c,const Uint16 *d),(a,b,c,d),return)
icculus@34
    77
SDL20_SYM(int,GetWindowGammaRamp,(SDL_Window *a,Uint16 *b,Uint16 *c,Uint16 *d),(a,b,c,d),return)
icculus@34
    78
SDL20_SYM(Uint32,GetWindowFlags,(SDL_Window *a),(a),return)
icculus@34
    79
SDL20_SYM(void,SetWindowGrab,(SDL_Window *a,SDL_bool b),(a,b),)
icculus@34
    80
SDL20_SYM(SDL_bool,GetWindowGrab,(SDL_Window *a),(a),return)
icculus@34
    81
SDL20_SYM(void,SetWindowTitle,(SDL_Window *a,const char *b),(a,b),)
icculus@59
    82
SDL20_SYM(int,SetWindowFullscreen,(SDL_Window *a, Uint32 b),(a,b),return)
icculus@59
    83
SDL20_SYM(void,SetWindowBordered,(SDL_Window *a, SDL_bool b),(a,b),return)
icculus@59
    84
SDL20_SYM(void,SetWindowResizable,(SDL_Window *a, SDL_bool b),(a,b),return)
icculus@18
    85
icculus@17
    86
SDL20_SYM(SDL_PixelFormat *,AllocFormat,(Uint32 a),(a),return)
icculus@17
    87
SDL20_SYM(void,FreeFormat,(SDL_PixelFormat *a),(a),)
icculus@15
    88
SDL20_SYM(SDL_Surface *,CreateRGBSurface,(Uint32 a, int b, int c, int d, Uint32 e, Uint32 f, Uint32 g, Uint32 h),(a,b,c,d,e,f,g,h),return)
icculus@15
    89
SDL20_SYM(SDL_Surface *,CreateRGBSurfaceFrom,(void *a, int b, int c, int d, int e, Uint32 f, Uint32 g, Uint32 h, Uint32 i),(a,b,c,d,e,f,g,h,i),return)
icculus@59
    90
SDL20_SYM(SDL_Surface *,CreateRGBSurfaceWithFormat,(Uint32 a, int b, int c, int d, Uint32 e),(a,b,c,d,e),return)
icculus@65
    91
SDL20_SYM(SDL_Surface *,ConvertSurface,(SDL_Surface *a, const SDL_PixelFormat *b, Uint32 c),(a,b,c),return)
icculus@76
    92
SDL20_SYM(int,LockSurface,(SDL_Surface *a),(a),return)
icculus@76
    93
SDL20_SYM(void,UnlockSurface,(SDL_Surface *a),(a),)
icculus@64
    94
SDL20_SYM(int,UpperBlit,(SDL_Surface *a,const SDL_Rect *b,SDL_Surface *c, SDL_Rect *d),(a,b,c,d),return)
icculus@64
    95
SDL20_SYM(int,LowerBlit,(SDL_Surface *a,const SDL_Rect *b,SDL_Surface *c, SDL_Rect *d),(a,b,c,d),return)
icculus@100
    96
SDL20_SYM(SDL_bool,HasColorKey,(SDL_Surface *a),(a),return)
icculus@74
    97
SDL20_SYM(int,SetColorKey,(SDL_Surface *a, int b, Uint32 c),(a,b,c),return)
icculus@74
    98
SDL20_SYM(int,GetColorKey,(SDL_Surface *a, Uint32 *b),(a,b),return)
icculus@22
    99
SDL20_SYM(void,FreeSurface,(SDL_Surface *a),(a),)
icculus@100
   100
SDL20_SYM(int,SetSurfaceAlphaMod,(SDL_Surface *a, Uint8 b),(a,b),return)
icculus@100
   101
SDL20_SYM(int,GetSurfaceAlphaMod,(SDL_Surface *a, Uint8 *b),(a,b),return)
icculus@100
   102
SDL20_SYM(int,SetSurfaceBlendMode,(SDL_Surface *a, SDL_BlendMode b),(a,b),return)
icculus@102
   103
SDL20_SYM(int,GetSurfaceBlendMode,(SDL_Surface *a, SDL_BlendMode *b),(a,b),return)
icculus@15
   104
SDL20_SYM(SDL_Surface*,LoadBMP_RW,(SDL_RWops *a, int b),(a,b),return)
icculus@15
   105
SDL20_SYM(int,SaveBMP_RW,(SDL_Surface *a, SDL_RWops *b, int c),(a,b,c),return)
icculus@100
   106
SDL20_SYM(int,SetPaletteColors,(SDL_Palette *a, const SDL_Color *b, int c, int d),(a,b,c,d),return)
icculus@87
   107
SDL20_SYM(int,GL_LoadLibrary,(const char *a),(a),return)
icculus@22
   108
SDL20_SYM_PASSTHROUGH(void *,GL_GetProcAddress,(const char *a),(a),return)
icculus@30
   109
SDL20_SYM(int,GL_SetAttribute,(SDL_GLattr a, int b),(a,b),return)
icculus@30
   110
SDL20_SYM(int,GL_GetAttribute,(SDL_GLattr a, int *b),(a,b),return)
icculus@31
   111
SDL20_SYM(int,GL_SetSwapInterval,(int a),(a),return)
icculus@31
   112
SDL20_SYM(int,GL_GetSwapInterval,(void),(),return)
icculus@59
   113
SDL20_SYM(SDL_GLContext,GL_CreateContext,(SDL_Window *a),(a),return)
icculus@59
   114
SDL20_SYM(int,GL_MakeCurrent,(SDL_Window *a, SDL_GLContext b),(a,b),return)
icculus@34
   115
SDL20_SYM(void,GL_SwapWindow,(SDL_Window *a),(a),)
icculus@34
   116
SDL20_SYM(void,GL_DeleteContext,(SDL_GLContext a),(a),)
icculus@24
   117
SDL20_SYM(void,GetClipRect,(SDL_Surface *a, SDL_Rect *b),(a,b),)
icculus@24
   118
SDL20_SYM(SDL_bool,SetClipRect,(SDL_Surface *a, const SDL_Rect *b),(a,b),return)
icculus@25
   119
SDL20_SYM(int,FillRect,(SDL_Surface *a,const SDL_Rect *b,Uint32 c),(a,b,c),return)
icculus@25
   120
SDL20_SYM(SDL_bool,IntersectRect,(const SDL_Rect *a,const SDL_Rect *b,SDL_Rect *c),(a,b,c),return)
icculus@31
   121
SDL20_SYM(void,GetRGB,(Uint32 a,const SDL_PixelFormat *b,Uint8 *c,Uint8 *d,Uint8 *e),(a,b,c,d,e),)
icculus@31
   122
SDL20_SYM(void,GetRGBA,(Uint32 a,const SDL_PixelFormat *b,Uint8 *c,Uint8 *d,Uint8 *e,Uint8 *f),(a,b,c,d,e,f),)
icculus@31
   123
SDL20_SYM(Uint32,MapRGB,(const SDL_PixelFormat *a,Uint8 b,Uint8 c,Uint8 d),(a,b,c,d),return)
icculus@31
   124
SDL20_SYM(Uint32,MapRGBA,(const SDL_PixelFormat *a,Uint8 b,Uint8 c,Uint8 d,Uint8 e),(a,b,c,d,e),return)
icculus@34
   125
SDL20_SYM(void,CalculateGammaRamp,(float a, Uint16 *b),(a,b),)
icculus@34
   126
SDL20_SYM(Uint32,MasksToPixelFormatEnum,(int a,Uint32 b,Uint32 c,Uint32 d,Uint32 e),(a,b,c,d,e),return)
icculus@59
   127
SDL20_SYM(SDL_bool,PixelFormatEnumToMasks,(Uint32 a,int *b,Uint32 *c,Uint32 *d,Uint32 *e,Uint32 *f),(a,b,c,d,e,f),return)
icculus@23
   128
icculus@77
   129
SDL20_SYM_PASSTHROUGH(void,SetModState,(SDL_Keymod a),(a),)
icculus@77
   130
SDL20_SYM_PASSTHROUGH(SDL_Keymod,GetModState,(void),(),return)
icculus@113
   131
SDL20_SYM(void,StopTextInput,(void),(),)
icculus@77
   132
icculus@29
   133
SDL20_SYM(Uint32,GetMouseState,(int *a, int *b),(a,b),return)
icculus@108
   134
SDL20_SYM(Uint32,GetRelativeMouseState,(int *a, int *b),(a,b),return)
icculus@34
   135
SDL20_SYM(void,WarpMouseInWindow,(SDL_Window *a, int b, int c),(a,b,c),)
icculus@88
   136
SDL20_SYM(int,SetRelativeMouseMode,(SDL_bool a),(a),return)
icculus@88
   137
SDL20_SYM(int,ShowCursor,(int a),(a),return)
icculus@23
   138
SDL20_SYM(SDL_Cursor *,CreateCursor,(const Uint8 *a,const Uint8 *b,int c,int d,int e,int f),(a,b,c,d,e,f),return)
icculus@23
   139
SDL20_SYM(void,SetCursor,(SDL_Cursor *a),(a),)
icculus@23
   140
SDL20_SYM(SDL_Cursor *,GetCursor,(void),(),return)
icculus@23
   141
SDL20_SYM(void,FreeCursor,(SDL_Cursor *a),(a),)
icculus@15
   142
icculus@26
   143
#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
icculus@26
   144
SDL20_SYM(SDL_Thread *,CreateThread,(SDL_ThreadFunction a, const char *b, void *c, pfnSDL_CurrentBeginThread d, pfnSDL_CurrentEndThread e),(a,b,c,d,e),return)
icculus@26
   145
#else
icculus@26
   146
SDL20_SYM(SDL_Thread *,CreateThread,(SDL_ThreadFunction a, const char *b, void *c),(a,b,c),return)
icculus@26
   147
#endif
icculus@26
   148
icculus@7
   149
SDL20_SYM_PASSTHROUGH(Uint32,GetThreadID,(SDL_Thread *a),(a),return)
icculus@7
   150
SDL20_SYM_PASSTHROUGH(Uint32,ThreadID,(void),(),return)
icculus@7
   151
SDL20_SYM_PASSTHROUGH(void,WaitThread,(SDL_Thread *a, int *b),(a,b),)
icculus@7
   152
SDL20_SYM_PASSTHROUGH(SDL_mutex*,CreateMutex,(void),(),return)
icculus@52
   153
SDL20_SYM(int,LockMutex,(SDL_mutex *a),(a),return)
icculus@52
   154
SDL20_SYM(int,UnlockMutex,(SDL_mutex *a),(a),return)
icculus@7
   155
SDL20_SYM_PASSTHROUGH(void,DestroyMutex,(SDL_mutex *a),(a),)
icculus@7
   156
SDL20_SYM_PASSTHROUGH(SDL_sem*,CreateSemaphore,(Uint32 a),(a),return)
icculus@7
   157
SDL20_SYM_PASSTHROUGH(void,DestroySemaphore,(SDL_sem *a),(a),)
icculus@7
   158
SDL20_SYM_PASSTHROUGH(int,SemWait,(SDL_sem *a),(a),return)
icculus@7
   159
SDL20_SYM_PASSTHROUGH(int,SemTryWait,(SDL_sem *a),(a),return)
icculus@7
   160
SDL20_SYM_PASSTHROUGH(int,SemWaitTimeout,(SDL_sem *a, Uint32 b),(a,b),return)
icculus@7
   161
SDL20_SYM_PASSTHROUGH(int,SemPost,(SDL_sem *a),(a),return)
icculus@7
   162
SDL20_SYM_PASSTHROUGH(Uint32,SemValue,(SDL_sem *a),(a),return)
icculus@7
   163
SDL20_SYM_PASSTHROUGH(SDL_cond*,CreateCond,(void),(),return)
icculus@7
   164
SDL20_SYM_PASSTHROUGH(void,DestroyCond,(SDL_cond *a),(a),)
icculus@7
   165
SDL20_SYM_PASSTHROUGH(int,CondSignal,(SDL_cond *a),(a),return)
icculus@7
   166
SDL20_SYM_PASSTHROUGH(int,CondBroadcast,(SDL_cond *a),(a),return)
icculus@7
   167
SDL20_SYM_PASSTHROUGH(int,CondWait,(SDL_cond *a, SDL_mutex *b),(a,b),return)
icculus@7
   168
SDL20_SYM_PASSTHROUGH(int,CondWaitTimeout,(SDL_cond *a, SDL_mutex *b, Uint32 c),(a,b,c),return)
icculus@7
   169
icculus@15
   170
SDL20_SYM(SDL_AudioSpec *,LoadWAV_RW,(SDL_RWops *a, int b, SDL_AudioSpec *c, Uint8 **d, Uint32 *e),(a,b,c,d,e),return)
icculus@95
   171
SDL20_SYM(int,OpenAudio,(SDL_AudioSpec *a, SDL_AudioSpec *b),(a,b),return)
icculus@19
   172
SDL20_SYM_PASSTHROUGH(SDL_AudioStatus,GetAudioStatus,(void),(),return)
icculus@7
   173
SDL20_SYM_PASSTHROUGH(void,PauseAudio,(int a),(a),)
icculus@7
   174
SDL20_SYM_PASSTHROUGH(void,FreeWAV,(Uint8 *a),(a),)
icculus@7
   175
SDL20_SYM_PASSTHROUGH(int,BuildAudioCVT,(SDL_AudioCVT *a, Uint16 b, Uint8 c, int d, Uint16 e, Uint8 f, int g),(a,b,c,d,e,f,g),return)
icculus@7
   176
SDL20_SYM_PASSTHROUGH(int,ConvertAudio,(SDL_AudioCVT *a),(a),return)
icculus@7
   177
SDL20_SYM_PASSTHROUGH(void,MixAudio,(Uint8 *a, const Uint8 *b, Uint32 c, int d),(a,b,c,d),)
icculus@7
   178
SDL20_SYM_PASSTHROUGH(void,LockAudio,(void),(),)
icculus@7
   179
SDL20_SYM_PASSTHROUGH(void,UnlockAudio,(void),(),)
icculus@7
   180
SDL20_SYM_PASSTHROUGH(void,CloseAudio,(void),(),)
icculus@7
   181
icculus@7
   182
SDL20_SYM_PASSTHROUGH(void*,LoadObject,(const char *a),(a),return)
icculus@7
   183
SDL20_SYM_PASSTHROUGH(void*,LoadFunction,(void *a, const char *b),(a,b),return)
icculus@7
   184
SDL20_SYM_PASSTHROUGH(void,UnloadObject,(void *a),(a),)
icculus@7
   185
icculus@7
   186
SDL20_SYM_PASSTHROUGH(SDL_bool,HasRDTSC,(void),(),return)
icculus@7
   187
SDL20_SYM_PASSTHROUGH(SDL_bool,HasMMX,(void),(),return)
icculus@7
   188
SDL20_SYM_PASSTHROUGH(SDL_bool,Has3DNow,(void),(),return)
icculus@7
   189
SDL20_SYM_PASSTHROUGH(SDL_bool,HasSSE,(void),(),return)
icculus@7
   190
SDL20_SYM_PASSTHROUGH(SDL_bool,HasSSE2,(void),(),return)
icculus@7
   191
SDL20_SYM_PASSTHROUGH(SDL_bool,HasAltiVec,(void),(),return)
icculus@7
   192
icculus@22
   193
SDL20_SYM(SDL_TimerID,AddTimer,(Uint32 a, SDL_TimerCallback b, void *c),(a,b,c),return)
icculus@22
   194
SDL20_SYM(SDL_bool,RemoveTimer,(SDL_TimerID a),(a),return)
icculus@7
   195
SDL20_SYM_PASSTHROUGH(Uint32,GetTicks,(void),(),return)
icculus@7
   196
SDL20_SYM_PASSTHROUGH(void,Delay,(Uint32 a),(a),)
icculus@7
   197
icculus@7
   198
SDL20_SYM_PASSTHROUGH(int,NumJoysticks,(void),(),return)
icculus@82
   199
SDL20_SYM(const char *,JoystickNameForIndex,(int a),(a),return)
icculus@82
   200
SDL20_SYM(SDL_Joystick *,JoystickOpen,(int a),(a),return)
icculus@7
   201
SDL20_SYM_PASSTHROUGH(int,JoystickNumAxes,(SDL_Joystick *a),(a),return)
icculus@7
   202
SDL20_SYM_PASSTHROUGH(int,JoystickNumBalls,(SDL_Joystick *a),(a),return)
icculus@7
   203
SDL20_SYM_PASSTHROUGH(int,JoystickNumHats,(SDL_Joystick *a),(a),return)
icculus@7
   204
SDL20_SYM_PASSTHROUGH(int,JoystickNumButtons,(SDL_Joystick *a),(a),return)
icculus@7
   205
SDL20_SYM_PASSTHROUGH(void,JoystickUpdate,(void),(),)
icculus@7
   206
SDL20_SYM_PASSTHROUGH(int,JoystickEventState,(int a),(a),return)
icculus@7
   207
SDL20_SYM_PASSTHROUGH(Sint16,JoystickGetAxis,(SDL_Joystick *a, int b),(a,b),return)
icculus@7
   208
SDL20_SYM_PASSTHROUGH(Uint8,JoystickGetHat,(SDL_Joystick *a, int b),(a,b),return)
icculus@7
   209
SDL20_SYM_PASSTHROUGH(int,JoystickGetBall,(SDL_Joystick *a, int b, int *c, int *d),(a,b,c,d),return)
icculus@7
   210
SDL20_SYM_PASSTHROUGH(Uint8,JoystickGetButton,(SDL_Joystick *a, int b),(a,b),return)
icculus@82
   211
SDL20_SYM(void,JoystickClose,(SDL_Joystick *a),(a),return)
icculus@82
   212
SDL20_SYM(void,LockJoysticks,(void),(),)
icculus@82
   213
SDL20_SYM(void,UnlockJoysticks,(void),(),)
icculus@82
   214
SDL20_SYM(SDL_JoystickID,JoystickGetDeviceInstanceID,(int a),(a),return)
icculus@7
   215
icculus@31
   216
SDL20_SYM(SDL_RWops *,RWFromFile,(const char *a, const char *b),(a,b),return)
icculus@31
   217
SDL20_SYM(SDL_RWops *,RWFromFP,(FILE *a, int b),(a,b),return)
icculus@31
   218
SDL20_SYM(SDL_RWops *,RWFromMem,(void *a, int b),(a,b),return)
icculus@31
   219
SDL20_SYM(SDL_RWops *,RWFromConstMem,(const void *a, int b),(a,b),return)
icculus@31
   220
SDL20_SYM(SDL_RWops *,AllocRW,(void),(),return)
icculus@31
   221
SDL20_SYM(void,FreeRW,(SDL_RWops *a),(a),)
icculus@7
   222
icculus@19
   223
SDL20_SYM_PASSTHROUGH(void *,malloc,(size_t a),(a),return)
icculus@19
   224
SDL20_SYM_PASSTHROUGH(void *,calloc,(size_t a, size_t b),(a,b),return)
icculus@19
   225
SDL20_SYM_PASSTHROUGH(void *,realloc,(void *a, size_t b),(a,b),return)
icculus@19
   226
SDL20_SYM_PASSTHROUGH(void,free,(void *a),(a),)
icculus@19
   227
SDL20_SYM_PASSTHROUGH(char *,getenv,(const char *a),(a),return)
icculus@19
   228
SDL20_SYM_PASSTHROUGH(void,qsort,(void *a, size_t b, size_t c, int (*d)(const void *, const void *)),(a,b,c,d),)
icculus@19
   229
SDL20_SYM_PASSTHROUGH(void *,memset,(void *a, int b, size_t c),(a,b,c),return)
icculus@19
   230
SDL20_SYM_PASSTHROUGH(void *,memcpy,(void *a, const void *b, size_t c),(a,b,c),return)
icculus@19
   231
SDL20_SYM_PASSTHROUGH(int,memcmp,(const void *a, const void *b, size_t c),(a,b,c),return)
icculus@19
   232
SDL20_SYM_PASSTHROUGH(size_t,strlen,(const char *a),(a),return)
icculus@19
   233
SDL20_SYM_PASSTHROUGH(size_t,strlcpy,(char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   234
SDL20_SYM_PASSTHROUGH(size_t,strlcat,(char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   235
SDL20_SYM_PASSTHROUGH(char *,strdup,(const char *a),(a),return)
icculus@19
   236
SDL20_SYM_PASSTHROUGH(char *,strrev,(char *a),(a),return)
icculus@19
   237
SDL20_SYM_PASSTHROUGH(char *,strupr,(char *a),(a),return)
icculus@19
   238
SDL20_SYM_PASSTHROUGH(char *,strlwr,(char *a),(a),return)
icculus@19
   239
SDL20_SYM_PASSTHROUGH(char *,strchr,(const char *a, int b),(a,b),return)
icculus@19
   240
SDL20_SYM_PASSTHROUGH(char *,strrchr,(const char *a, int b),(a,b),return)
icculus@19
   241
SDL20_SYM_PASSTHROUGH(char *,strstr,(const char *a, const char *b),(a,b),return)
icculus@19
   242
SDL20_SYM_PASSTHROUGH(char *,ltoa,(long a, char *b, int c),(a,b,c),return)
icculus@19
   243
SDL20_SYM_PASSTHROUGH(char *,ultoa,(unsigned long a, char *b, int c),(a,b,c),return)
icculus@19
   244
SDL20_SYM_PASSTHROUGH(long,strtol,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   245
SDL20_SYM_PASSTHROUGH(unsigned long,strtoul,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   246
SDL20_SYM_PASSTHROUGH(char*,lltoa,(Sint64 a, char *b, int c),(a,b,c),return)
icculus@19
   247
SDL20_SYM_PASSTHROUGH(char*,ulltoa,(Uint64 a, char *b, int c),(a,b,c),return)
icculus@19
   248
SDL20_SYM_PASSTHROUGH(Sint64,strtoll,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   249
SDL20_SYM_PASSTHROUGH(Uint64,strtoull,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   250
SDL20_SYM_PASSTHROUGH(double,strtod,(const char *a, char **b),(a,b),return)
icculus@19
   251
SDL20_SYM_PASSTHROUGH(int,strcmp,(const char *a, const char *b),(a,b),return)
icculus@19
   252
SDL20_SYM_PASSTHROUGH(int,strncmp,(const char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   253
SDL20_SYM_PASSTHROUGH(int,strcasecmp,(const char *a, const char *b),(a,b),return)
icculus@19
   254
SDL20_SYM_PASSTHROUGH(int,strncasecmp,(const char *a, const char *b, size_t c),(a,b,c),return)
icculus@55
   255
SDL20_SYM_VARARGS(int,sscanf,(const char *text, const char *fmt, ...))
icculus@55
   256
SDL20_SYM_VARARGS(int,snprintf,(char *text, size_t maxlen, const char *fmt, ...))
icculus@19
   257
SDL20_SYM_PASSTHROUGH(int,vsnprintf,(char *a, size_t b, const char *c, va_list d),(a,b,c,d),return)
icculus@19
   258
SDL20_SYM_PASSTHROUGH(SDL_iconv_t,iconv_open,(const char *a, const char *b),(a,b),return)
icculus@19
   259
SDL20_SYM_PASSTHROUGH(int,iconv_close,(SDL_iconv_t a),(a),return)
icculus@19
   260
SDL20_SYM_PASSTHROUGH(size_t,iconv,(SDL_iconv_t a, const char **b, size_t *c, char **d, size_t *e),(a,b,c,d,e),return)
icculus@19
   261
SDL20_SYM_PASSTHROUGH(char *,iconv_string,(const char *a, const char *b, const char *c, size_t d),(a,b,c,d),return)
icculus@34
   262
SDL20_SYM(int,setenv,(const char *a, const char *b, int c),(a,b,c),return)
icculus@34
   263
SDL20_SYM(int,atoi,(const char *a),(a),return)
icculus@11
   264
icculus@59
   265
SDL20_SYM(SDL_Renderer *,CreateRenderer,(SDL_Window *a, int b, Uint32 c),(a,b,c),return)
icculus@59
   266
SDL20_SYM(int,GetRendererInfo,(SDL_Renderer *a, SDL_RendererInfo *b),(a,b),return)
icculus@59
   267
SDL20_SYM(SDL_Texture *,CreateTexture,(SDL_Renderer *a, Uint32 b, int c, int d, int e),(a,b,c,d,e),return)
icculus@59
   268
SDL20_SYM(int,LockTexture,(SDL_Texture *a, const SDL_Rect *b, void **c, int *d),(a,b,c,d),return)
icculus@59
   269
SDL20_SYM(void,UnlockTexture,(SDL_Texture *a),(a),)
icculus@59
   270
SDL20_SYM(int,RenderSetLogicalSize,(SDL_Renderer *a, int b, int c),(a,b,c),return)
icculus@59
   271
SDL20_SYM(int,SetRenderDrawColor,(SDL_Renderer *a, Uint8 b, Uint8 c, Uint8 d, Uint8 e),(a,b,c,d,e),return)
icculus@59
   272
SDL20_SYM(int,RenderClear,(SDL_Renderer *a),(a),return)
icculus@59
   273
SDL20_SYM(int,RenderCopy,(SDL_Renderer *a, SDL_Texture *b, const SDL_Rect *c, const SDL_Rect *d),(a,b,c,d),return)
icculus@59
   274
SDL20_SYM(void,DestroyTexture,(SDL_Texture *a),(a),)
icculus@59
   275
SDL20_SYM(void,DestroyRenderer,(SDL_Renderer *a),(a),)
icculus@59
   276
SDL20_SYM(void,RenderPresent,(SDL_Renderer *a),(a),)
icculus@59
   277
icculus@48
   278
#undef SDL20_SYM
icculus@48
   279
#undef SDL20_SYM_PASSTHROUGH
icculus@55
   280
#undef SDL20_SYM_VARARGS
icculus@48
   281
icculus@7
   282
/* vi: set ts=4 sw=4 expandtab: */
icculus@7
   283