include/SDL_rwops.h
changeset 1354 22f39393668a
parent 1330 450721ad5436
child 1356 67114343400d
     1.1 --- a/include/SDL_rwops.h	Thu Feb 09 09:07:13 2006 +0000
     1.2 +++ b/include/SDL_rwops.h	Thu Feb 09 09:38:05 2006 +0000
     1.3 @@ -27,14 +27,9 @@
     1.4  #ifndef _SDL_RWops_h
     1.5  #define _SDL_RWops_h
     1.6  
     1.7 -#include "SDL_config.h"
     1.8 +#include "SDL_stdinc.h"
     1.9  
    1.10 -#ifdef HAVE_STDIO_H
    1.11 -#include <stdio.h>
    1.12 -#endif
    1.13 -
    1.14 -#include "SDL_types.h"
    1.15 -
    1.16 +#ifndef DISABLE_FILE
    1.17  #include "begin_code.h"
    1.18  /* Set up for C function definitions, even when using C++ */
    1.19  #ifdef __cplusplus
    1.20 @@ -112,10 +107,28 @@
    1.21  #define SDL_RWclose(ctx)		(ctx)->close(ctx)
    1.22  
    1.23  
    1.24 +/* Read an item of the specified endianness and return in native format */
    1.25 +extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops *src);
    1.26 +extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops *src);
    1.27 +extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops *src);
    1.28 +extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops *src);
    1.29 +extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops *src);
    1.30 +extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops *src);
    1.31 +
    1.32 +/* Write an item of native format to the specified endianness */
    1.33 +extern DECLSPEC int SDLCALL SDL_WriteLE16(SDL_RWops *dst, Uint16 value);
    1.34 +extern DECLSPEC int SDLCALL SDL_WriteBE16(SDL_RWops *dst, Uint16 value);
    1.35 +extern DECLSPEC int SDLCALL SDL_WriteLE32(SDL_RWops *dst, Uint32 value);
    1.36 +extern DECLSPEC int SDLCALL SDL_WriteBE32(SDL_RWops *dst, Uint32 value);
    1.37 +extern DECLSPEC int SDLCALL SDL_WriteLE64(SDL_RWops *dst, Uint64 value);
    1.38 +extern DECLSPEC int SDLCALL SDL_WriteBE64(SDL_RWops *dst, Uint64 value);
    1.39 +
    1.40 +
    1.41  /* Ends C function definitions when using C++ */
    1.42  #ifdef __cplusplus
    1.43  }
    1.44  #endif
    1.45  #include "close_code.h"
    1.46 +#endif /* !DISABLE_FILE */
    1.47  
    1.48  #endif /* _SDL_RWops_h */