physfs.h
changeset 943 5df593de06e2
parent 897 4adcb2c5567b
child 944 4a814e7fee5d
equal deleted inserted replaced
942:e7bed87e50ce 943:5df593de06e2
   332  * \sa PHYSFS_tell
   332  * \sa PHYSFS_tell
   333  * \sa PHYSFS_eof
   333  * \sa PHYSFS_eof
   334  * \sa PHYSFS_setBuffer
   334  * \sa PHYSFS_setBuffer
   335  * \sa PHYSFS_flush
   335  * \sa PHYSFS_flush
   336  */
   336  */
   337 typedef struct
   337 typedef struct PHYSFS_File
   338 {
   338 {
   339     void *opaque;  /**< That's all you get. Don't touch. */
   339     void *opaque;  /**< That's all you get. Don't touch. */
   340 } PHYSFS_File;
   340 } PHYSFS_File;
   341 
   341 
   342 
   342 
   367  *          PHYSFS_supportedArchiveTypes() to see if your archive type is
   367  *          PHYSFS_supportedArchiveTypes() to see if your archive type is
   368  *          supported.
   368  *          supported.
   369  *
   369  *
   370  * \sa PHYSFS_supportedArchiveTypes
   370  * \sa PHYSFS_supportedArchiveTypes
   371  */
   371  */
   372 typedef struct
   372 typedef struct PHYSFS_ArchiveInfo
   373 {
   373 {
   374     const char *extension;   /**< Archive file extension: "ZIP", for example. */
   374     const char *extension;   /**< Archive file extension: "ZIP", for example. */
   375     const char *description; /**< Human-readable archive description. */
   375     const char *description; /**< Human-readable archive description. */
   376     const char *author;      /**< Person who did support for this archive. */
   376     const char *author;      /**< Person who did support for this archive. */
   377     const char *url;         /**< URL related to this archive */
   377     const char *url;         /**< URL related to this archive */
   389  *  revision).
   389  *  revision).
   390  *
   390  *
   391  * \sa PHYSFS_VERSION
   391  * \sa PHYSFS_VERSION
   392  * \sa PHYSFS_getLinkedVersion
   392  * \sa PHYSFS_getLinkedVersion
   393  */
   393  */
   394 typedef struct
   394 typedef struct PHYSFS_Version
   395 {
   395 {
   396     PHYSFS_uint8 major; /**< major revision */
   396     PHYSFS_uint8 major; /**< major revision */
   397     PHYSFS_uint8 minor; /**< minor revision */
   397     PHYSFS_uint8 minor; /**< minor revision */
   398     PHYSFS_uint8 patch; /**< patchlevel */
   398     PHYSFS_uint8 patch; /**< patchlevel */
   399 } PHYSFS_Version;
   399 } PHYSFS_Version;
  1972  *  downcast, it's okay to return NULL if the allocation is greater than
  1972  *  downcast, it's okay to return NULL if the allocation is greater than
  1973  *  4 gigabytes, since you'd have to do so anyhow.
  1973  *  4 gigabytes, since you'd have to do so anyhow.
  1974  *
  1974  *
  1975  * \sa PHYSFS_setAllocator
  1975  * \sa PHYSFS_setAllocator
  1976  */
  1976  */
  1977 typedef struct
  1977 typedef struct PHYSFS_Allocator
  1978 {
  1978 {
  1979     int (*Init)(void);   /**< Initialize. Can be NULL. Zero on failure. */
  1979     int (*Init)(void);   /**< Initialize. Can be NULL. Zero on failure. */
  1980     void (*Deinit)(void);  /**< Deinitialize your allocator. Can be NULL. */
  1980     void (*Deinit)(void);  /**< Deinitialize your allocator. Can be NULL. */
  1981     void *(*Malloc)(PHYSFS_uint64);  /**< Allocate like malloc(). */
  1981     void *(*Malloc)(PHYSFS_uint64);  /**< Allocate like malloc(). */
  1982     void *(*Realloc)(void *, PHYSFS_uint64); /**< Reallocate like realloc(). */
  1982     void *(*Realloc)(void *, PHYSFS_uint64); /**< Reallocate like realloc(). */