src/SDL20_syms.h
author Ryan C. Gordon <icculus@icculus.org>
Wed, 10 Apr 2013 15:49:41 -0400
changeset 22 fc1fad22e997
parent 21 acd0dd6933f3
child 23 171a5eadaca3
permissions -rw-r--r--
A couple SDL20 passthrough function cleanups.
icculus@7
     1
/*
icculus@7
     2
  Simple DirectMedia Layer
icculus@7
     3
  Copyright (C) 1997-2013 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@7
    24
SDL20_SYM(int,Init,(Uint32 a),(a),return)
icculus@11
    25
SDL20_SYM(int,InitSubSystem,(Uint32 a),(a),return)
icculus@7
    26
SDL20_SYM(char*,GetError,(void),(),return)
icculus@22
    27
SDL20_SYM_PASSTHROUGH(void,Error,(SDL_errorcode a),(a),)
icculus@7
    28
/*SDL20_SYM_PASSTHROUGH(void,SetError,(const char *fmt, ...);*/
icculus@7
    29
SDL20_SYM_PASSTHROUGH(void,ClearError,(void),(),)
icculus@7
    30
SDL20_SYM(void,Quit,(void),(),)
icculus@11
    31
SDL20_SYM(void,QuitSubSystem,(Uint32 a),(a),)
icculus@11
    32
SDL20_SYM_PASSTHROUGH(int,VideoInit,(const char *a),(a),return)
icculus@11
    33
SDL20_SYM_PASSTHROUGH(void,VideoQuit,(void),(),)
icculus@11
    34
SDL20_SYM_PASSTHROUGH(int,AudioInit,(const char *a),(a),return)
icculus@11
    35
SDL20_SYM_PASSTHROUGH(void,AudioQuit,(void),(),)
icculus@7
    36
icculus@18
    37
SDL20_SYM_PASSTHROUGH(void,PumpEvents,(void),(),)
icculus@18
    38
icculus@17
    39
SDL20_SYM(SDL_PixelFormat *,AllocFormat,(Uint32 a),(a),return)
icculus@17
    40
SDL20_SYM(void,FreeFormat,(SDL_PixelFormat *a),(a),)
icculus@15
    41
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
    42
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@22
    43
SDL20_SYM(void,FreeSurface,(SDL_Surface *a),(a),)
icculus@15
    44
SDL20_SYM(SDL_Surface*,LoadBMP_RW,(SDL_RWops *a, int b),(a,b),return)
icculus@15
    45
SDL20_SYM(int,SaveBMP_RW,(SDL_Surface *a, SDL_RWops *b, int c),(a,b,c),return)
icculus@22
    46
SDL20_SYM_PASSTHROUGH(int,GL_LoadLibrary,(const char *a),(a),return)
icculus@22
    47
SDL20_SYM_PASSTHROUGH(void *,GL_GetProcAddress,(const char *a),(a),return)
icculus@21
    48
SDL20_SYM_PASSTHROUGH(int,ShowCursor,(int a),(a),return)
icculus@15
    49
icculus@7
    50
SDL20_SYM_PASSTHROUGH(Uint32,GetThreadID,(SDL_Thread *a),(a),return)
icculus@7
    51
SDL20_SYM_PASSTHROUGH(Uint32,ThreadID,(void),(),return)
icculus@7
    52
SDL20_SYM_PASSTHROUGH(void,WaitThread,(SDL_Thread *a, int *b),(a,b),)
icculus@7
    53
SDL20_SYM_PASSTHROUGH(SDL_mutex*,CreateMutex,(void),(),return)
icculus@7
    54
SDL20_SYM_PASSTHROUGH(int,mutexP,(SDL_mutex *a),(a),return)
icculus@7
    55
SDL20_SYM_PASSTHROUGH(int,mutexV,(SDL_mutex *a),(a),return)
icculus@7
    56
SDL20_SYM_PASSTHROUGH(void,DestroyMutex,(SDL_mutex *a),(a),)
icculus@7
    57
SDL20_SYM_PASSTHROUGH(SDL_sem*,CreateSemaphore,(Uint32 a),(a),return)
icculus@7
    58
SDL20_SYM_PASSTHROUGH(void,DestroySemaphore,(SDL_sem *a),(a),)
icculus@7
    59
SDL20_SYM_PASSTHROUGH(int,SemWait,(SDL_sem *a),(a),return)
icculus@7
    60
SDL20_SYM_PASSTHROUGH(int,SemTryWait,(SDL_sem *a),(a),return)
icculus@7
    61
SDL20_SYM_PASSTHROUGH(int,SemWaitTimeout,(SDL_sem *a, Uint32 b),(a,b),return)
icculus@7
    62
SDL20_SYM_PASSTHROUGH(int,SemPost,(SDL_sem *a),(a),return)
icculus@7
    63
SDL20_SYM_PASSTHROUGH(Uint32,SemValue,(SDL_sem *a),(a),return)
icculus@7
    64
SDL20_SYM_PASSTHROUGH(SDL_cond*,CreateCond,(void),(),return)
icculus@7
    65
SDL20_SYM_PASSTHROUGH(void,DestroyCond,(SDL_cond *a),(a),)
icculus@7
    66
SDL20_SYM_PASSTHROUGH(int,CondSignal,(SDL_cond *a),(a),return)
icculus@7
    67
SDL20_SYM_PASSTHROUGH(int,CondBroadcast,(SDL_cond *a),(a),return)
icculus@7
    68
SDL20_SYM_PASSTHROUGH(int,CondWait,(SDL_cond *a, SDL_mutex *b),(a,b),return)
icculus@7
    69
SDL20_SYM_PASSTHROUGH(int,CondWaitTimeout,(SDL_cond *a, SDL_mutex *b, Uint32 c),(a,b,c),return)
icculus@7
    70
icculus@15
    71
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@7
    72
SDL20_SYM_PASSTHROUGH(int,OpenAudio,(SDL_AudioSpec *a, SDL_AudioSpec *b),(a,b),return)
icculus@19
    73
SDL20_SYM_PASSTHROUGH(SDL_AudioStatus,GetAudioStatus,(void),(),return)
icculus@7
    74
SDL20_SYM_PASSTHROUGH(void,PauseAudio,(int a),(a),)
icculus@7
    75
SDL20_SYM_PASSTHROUGH(void,FreeWAV,(Uint8 *a),(a),)
icculus@7
    76
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
    77
SDL20_SYM_PASSTHROUGH(int,ConvertAudio,(SDL_AudioCVT *a),(a),return)
icculus@7
    78
SDL20_SYM_PASSTHROUGH(void,MixAudio,(Uint8 *a, const Uint8 *b, Uint32 c, int d),(a,b,c,d),)
icculus@7
    79
SDL20_SYM_PASSTHROUGH(void,LockAudio,(void),(),)
icculus@7
    80
SDL20_SYM_PASSTHROUGH(void,UnlockAudio,(void),(),)
icculus@7
    81
SDL20_SYM_PASSTHROUGH(void,CloseAudio,(void),(),)
icculus@7
    82
icculus@7
    83
SDL20_SYM_PASSTHROUGH(void*,LoadObject,(const char *a),(a),return)
icculus@7
    84
SDL20_SYM_PASSTHROUGH(void*,LoadFunction,(void *a, const char *b),(a,b),return)
icculus@7
    85
SDL20_SYM_PASSTHROUGH(void,UnloadObject,(void *a),(a),)
icculus@7
    86
icculus@7
    87
SDL20_SYM_PASSTHROUGH(SDL_bool,HasRDTSC,(void),(),return)
icculus@7
    88
SDL20_SYM_PASSTHROUGH(SDL_bool,HasMMX,(void),(),return)
icculus@7
    89
SDL20_SYM_PASSTHROUGH(SDL_bool,HasMMXExt,(void),(),return)
icculus@7
    90
SDL20_SYM_PASSTHROUGH(SDL_bool,Has3DNow,(void),(),return)
icculus@7
    91
SDL20_SYM_PASSTHROUGH(SDL_bool,Has3DNowExt,(void),(),return)
icculus@7
    92
SDL20_SYM_PASSTHROUGH(SDL_bool,HasSSE,(void),(),return)
icculus@7
    93
SDL20_SYM_PASSTHROUGH(SDL_bool,HasSSE2,(void),(),return)
icculus@7
    94
SDL20_SYM_PASSTHROUGH(SDL_bool,HasAltiVec,(void),(),return)
icculus@7
    95
icculus@22
    96
SDL20_SYM(SDL_TimerID,AddTimer,(Uint32 a, SDL_TimerCallback b, void *c),(a,b,c),return)
icculus@22
    97
SDL20_SYM(SDL_bool,RemoveTimer,(SDL_TimerID a),(a),return)
icculus@7
    98
SDL20_SYM_PASSTHROUGH(Uint32,GetTicks,(void),(),return)
icculus@7
    99
SDL20_SYM_PASSTHROUGH(void,Delay,(Uint32 a),(a),)
icculus@7
   100
icculus@7
   101
SDL20_SYM_PASSTHROUGH(int,NumJoysticks,(void),(),return)
icculus@7
   102
SDL20_SYM_PASSTHROUGH(const char *,JoystickName,(int a),(a),return)
icculus@7
   103
SDL20_SYM_PASSTHROUGH(SDL_Joystick *,JoystickOpen,(int a),(a),return)
icculus@7
   104
SDL20_SYM_PASSTHROUGH(int,JoystickOpened,(int a),(a),return)
icculus@7
   105
SDL20_SYM_PASSTHROUGH(int,JoystickIndex,(SDL_Joystick *a),(a),return)
icculus@7
   106
SDL20_SYM_PASSTHROUGH(int,JoystickNumAxes,(SDL_Joystick *a),(a),return)
icculus@7
   107
SDL20_SYM_PASSTHROUGH(int,JoystickNumBalls,(SDL_Joystick *a),(a),return)
icculus@7
   108
SDL20_SYM_PASSTHROUGH(int,JoystickNumHats,(SDL_Joystick *a),(a),return)
icculus@7
   109
SDL20_SYM_PASSTHROUGH(int,JoystickNumButtons,(SDL_Joystick *a),(a),return)
icculus@7
   110
SDL20_SYM_PASSTHROUGH(void,JoystickUpdate,(void),(),)
icculus@7
   111
SDL20_SYM_PASSTHROUGH(int,JoystickEventState,(int a),(a),return)
icculus@7
   112
SDL20_SYM_PASSTHROUGH(Sint16,JoystickGetAxis,(SDL_Joystick *a, int b),(a,b),return)
icculus@7
   113
SDL20_SYM_PASSTHROUGH(Uint8,JoystickGetHat,(SDL_Joystick *a, int b),(a,b),return)
icculus@7
   114
SDL20_SYM_PASSTHROUGH(int,JoystickGetBall,(SDL_Joystick *a, int b, int *c, int *d),(a,b,c,d),return)
icculus@7
   115
SDL20_SYM_PASSTHROUGH(Uint8,JoystickGetButton,(SDL_Joystick *a, int b),(a,b),return)
icculus@7
   116
SDL20_SYM_PASSTHROUGH(void,JoystickClose,(SDL_Joystick *a),(a),return)
icculus@7
   117
icculus@10
   118
/* We don't call most things that use 2.0 RWops, so most aren't listed here. */
icculus@10
   119
SDL20_SYM(SDL_RWops *,SDL_RWFromFile,(const char *a, const char *b),(a,b),return)
icculus@10
   120
SDL20_SYM(SDL_RWops *,SDL_RWFromFP,(FILE *a, int b),(a,b),return)
icculus@10
   121
SDL20_SYM(SDL_RWops *,SDL_RWFromMem,(void *a, int b),(a,b),return)
icculus@10
   122
SDL20_SYM(SDL_RWops *,SDL_RWFromConstMem,(const void *a, int b),(a,b),return)
icculus@7
   123
icculus@19
   124
SDL20_SYM_PASSTHROUGH(void *,malloc,(size_t a),(a),return)
icculus@19
   125
SDL20_SYM_PASSTHROUGH(void *,calloc,(size_t a, size_t b),(a,b),return)
icculus@19
   126
SDL20_SYM_PASSTHROUGH(void *,realloc,(void *a, size_t b),(a,b),return)
icculus@19
   127
SDL20_SYM_PASSTHROUGH(void,free,(void *a),(a),)
icculus@19
   128
SDL20_SYM_PASSTHROUGH(char *,getenv,(const char *a),(a),return)
icculus@19
   129
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
   130
SDL20_SYM_PASSTHROUGH(void *,memset,(void *a, int b, size_t c),(a,b,c),return)
icculus@19
   131
SDL20_SYM_PASSTHROUGH(void *,memcpy,(void *a, const void *b, size_t c),(a,b,c),return)
icculus@19
   132
SDL20_SYM_PASSTHROUGH(void *,revcpy,(void *a, const void *b, size_t c),(a,b,c),return)
icculus@19
   133
SDL20_SYM_PASSTHROUGH(int,memcmp,(const void *a, const void *b, size_t c),(a,b,c),return)
icculus@19
   134
SDL20_SYM_PASSTHROUGH(size_t,strlen,(const char *a),(a),return)
icculus@19
   135
SDL20_SYM_PASSTHROUGH(size_t,strlcpy,(char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   136
SDL20_SYM_PASSTHROUGH(size_t,strlcat,(char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   137
SDL20_SYM_PASSTHROUGH(char *,strdup,(const char *a),(a),return)
icculus@19
   138
SDL20_SYM_PASSTHROUGH(char *,strrev,(char *a),(a),return)
icculus@19
   139
SDL20_SYM_PASSTHROUGH(char *,strupr,(char *a),(a),return)
icculus@19
   140
SDL20_SYM_PASSTHROUGH(char *,strlwr,(char *a),(a),return)
icculus@19
   141
SDL20_SYM_PASSTHROUGH(char *,strchr,(const char *a, int b),(a,b),return)
icculus@19
   142
SDL20_SYM_PASSTHROUGH(char *,strrchr,(const char *a, int b),(a,b),return)
icculus@19
   143
SDL20_SYM_PASSTHROUGH(char *,strstr,(const char *a, const char *b),(a,b),return)
icculus@19
   144
SDL20_SYM_PASSTHROUGH(char *,ltoa,(long a, char *b, int c),(a,b,c),return)
icculus@19
   145
SDL20_SYM_PASSTHROUGH(char *,ultoa,(unsigned long a, char *b, int c),(a,b,c),return)
icculus@19
   146
SDL20_SYM_PASSTHROUGH(long,strtol,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   147
SDL20_SYM_PASSTHROUGH(unsigned long,strtoul,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   148
SDL20_SYM_PASSTHROUGH(char*,lltoa,(Sint64 a, char *b, int c),(a,b,c),return)
icculus@19
   149
SDL20_SYM_PASSTHROUGH(char*,ulltoa,(Uint64 a, char *b, int c),(a,b,c),return)
icculus@19
   150
SDL20_SYM_PASSTHROUGH(Sint64,strtoll,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   151
SDL20_SYM_PASSTHROUGH(Uint64,strtoull,(const char *a, char **b, int c),(a,b,c),return)
icculus@19
   152
SDL20_SYM_PASSTHROUGH(double,strtod,(const char *a, char **b),(a,b),return)
icculus@19
   153
SDL20_SYM_PASSTHROUGH(int,strcmp,(const char *a, const char *b),(a,b),return)
icculus@19
   154
SDL20_SYM_PASSTHROUGH(int,strncmp,(const char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   155
SDL20_SYM_PASSTHROUGH(int,strcasecmp,(const char *a, const char *b),(a,b),return)
icculus@19
   156
SDL20_SYM_PASSTHROUGH(int,strncasecmp,(const char *a, const char *b, size_t c),(a,b,c),return)
icculus@19
   157
//SDL20_SYM_PASSTHROUGH(int,sscanf,(const char *text, const char *fmt, ...);
icculus@19
   158
//SDL20_SYM_PASSTHROUGH(int,snprintf,(char *text, size_t maxlen, const char *fmt, ...);
icculus@19
   159
SDL20_SYM_PASSTHROUGH(int,vsnprintf,(char *a, size_t b, const char *c, va_list d),(a,b,c,d),return)
icculus@19
   160
SDL20_SYM_PASSTHROUGH(SDL_iconv_t,iconv_open,(const char *a, const char *b),(a,b),return)
icculus@19
   161
SDL20_SYM_PASSTHROUGH(int,iconv_close,(SDL_iconv_t a),(a),return)
icculus@19
   162
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
   163
SDL20_SYM_PASSTHROUGH(char *,iconv_string,(const char *a, const char *b, const char *c, size_t d),(a,b,c,d),return)
icculus@11
   164
icculus@7
   165
/* vi: set ts=4 sw=4 expandtab: */
icculus@7
   166