iostream: Make seeking's whence value a real enum.
This commit is contained in:
@@ -709,7 +709,7 @@ SDL_DYNAPI_PROC(int,SDL_SaveBMP,(SDL_Surface *a, const char *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_SaveBMP_IO,(SDL_Surface *a, SDL_IOStream *b, SDL_bool c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_ScreenKeyboardShown,(SDL_Window *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_ScreenSaverEnabled,(void),(),return)
|
||||
SDL_DYNAPI_PROC(Sint64,SDL_SeekIO,(SDL_IOStream *a, Sint64 b, int c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(Sint64,SDL_SeekIO,(SDL_IOStream *a, Sint64 b, SDL_IOWhence c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_SendGamepadEffect,(SDL_Gamepad *a, const void *b, int c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_SendJoystickEffect,(SDL_Joystick *a, const void *b, int c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_SendJoystickVirtualSensorData,(SDL_Joystick *a, SDL_SensorType b, Uint64 c, const float *d, int e),(a,b,c,d,e),return)
|
||||
|
||||
@@ -171,7 +171,7 @@ static Sint64 SDLCALL windows_file_size(void *userdata)
|
||||
return size.QuadPart;
|
||||
}
|
||||
|
||||
static Sint64 SDLCALL windows_file_seek(void *userdata, Sint64 offset, int whence)
|
||||
static Sint64 SDLCALL windows_file_seek(void *userdata, Sint64 offset, SDL_IOWhence whence)
|
||||
{
|
||||
IOStreamWindowsData *iodata = (IOStreamWindowsData *) userdata;
|
||||
DWORD windowswhence;
|
||||
@@ -339,7 +339,7 @@ typedef struct IOStreamStdioData
|
||||
#define fseek_off_t long
|
||||
#endif
|
||||
|
||||
static Sint64 SDLCALL stdio_seek(void *userdata, Sint64 offset, int whence)
|
||||
static Sint64 SDLCALL stdio_seek(void *userdata, Sint64 offset, SDL_IOWhence whence)
|
||||
{
|
||||
IOStreamStdioData *iodata = (IOStreamStdioData *) userdata;
|
||||
int stdiowhence;
|
||||
@@ -454,7 +454,7 @@ static Sint64 SDLCALL mem_size(void *userdata)
|
||||
return (iodata->stop - iodata->base);
|
||||
}
|
||||
|
||||
static Sint64 SDLCALL mem_seek(void *userdata, Sint64 offset, int whence)
|
||||
static Sint64 SDLCALL mem_seek(void *userdata, Sint64 offset, SDL_IOWhence whence)
|
||||
{
|
||||
IOStreamMemData *iodata = (IOStreamMemData *) userdata;
|
||||
Uint8 *newpos;
|
||||
@@ -760,7 +760,7 @@ static Sint64 SDLCALL dynamic_mem_size(void *userdata)
|
||||
return mem_size(&iodata->data);
|
||||
}
|
||||
|
||||
static Sint64 SDLCALL dynamic_mem_seek(void *userdata, Sint64 offset, int whence)
|
||||
static Sint64 SDLCALL dynamic_mem_seek(void *userdata, Sint64 offset, SDL_IOWhence whence)
|
||||
{
|
||||
IOStreamDynamicMemData *iodata = (IOStreamDynamicMemData *) userdata;
|
||||
return mem_seek(&iodata->data, offset, whence);
|
||||
@@ -993,7 +993,7 @@ Sint64 SDL_GetIOSize(SDL_IOStream *context)
|
||||
return context->iface.size(context->userdata);
|
||||
}
|
||||
|
||||
Sint64 SDL_SeekIO(SDL_IOStream *context, Sint64 offset, int whence)
|
||||
Sint64 SDL_SeekIO(SDL_IOStream *context, Sint64 offset, SDL_IOWhence whence)
|
||||
{
|
||||
if (!context) {
|
||||
return SDL_InvalidParamError("context");
|
||||
|
||||
Reference in New Issue
Block a user