physfs.h
changeset 650 298b8bb26775
parent 648 5c993684b8f2
child 654 c0ae01de361d
equal deleted inserted replaced
649:85aeb90378bc 650:298b8bb26775
  1840     int (*init)(void);
  1840     int (*init)(void);
  1841     void (*deinit)(void);
  1841     void (*deinit)(void);
  1842     void *(*malloc)(size_t);
  1842     void *(*malloc)(size_t);
  1843     void *(*realloc)(void *, size_t);
  1843     void *(*realloc)(void *, size_t);
  1844     void (*free)(void *);
  1844     void (*free)(void *);
  1845 } PHYSFS_allocator;
  1845 } PHYSFS_Allocator;
  1846 
  1846 
  1847 
  1847 
  1848 /**
  1848 /**
  1849  * \fn int PHYSFS_setAllocator(PHYSFS_allocator *allocator)
  1849  * \fn int PHYSFS_setAllocator(PHYSFS_Allocator *allocator)
  1850  * \brief Hook your own allocation routines into PhysicsFS.
  1850  * \brief Hook your own allocation routines into PhysicsFS.
  1851  *
  1851  *
  1852  * (This is for limited, hardcore use. If you don't immediately see a need
  1852  * (This is for limited, hardcore use. If you don't immediately see a need
  1853  *  for it, you can probably ignore this forever.)
  1853  *  for it, you can probably ignore this forever.)
  1854  *
  1854  *
  1868  *
  1868  *
  1869  *    \param allocator Structure containing your allocator's entry points.
  1869  *    \param allocator Structure containing your allocator's entry points.
  1870  *   \return zero on failure, non-zero on success. This call only fails
  1870  *   \return zero on failure, non-zero on success. This call only fails
  1871  *           when used between PHYSFS_init() and PHYSFS_deinit() calls.
  1871  *           when used between PHYSFS_init() and PHYSFS_deinit() calls.
  1872  */
  1872  */
  1873 __EXPORT__ int PHYSFS_setAllocator(PHYSFS_allocator *allocator);
  1873 __EXPORT__ int PHYSFS_setAllocator(PHYSFS_Allocator *allocator);
  1874 
  1874 
  1875 
  1875 
  1876 /* Everything above this line is part of the PhysicsFS 2.0 API. */
  1876 /* Everything above this line is part of the PhysicsFS 2.0 API. */
  1877 
  1877 
  1878 
  1878