physfs_internal.h
changeset 28 529214f57d1b
parent 23 bd6ba9c8717c
child 30 c9cc9b79112e
equal deleted inserted replaced
27:e1d3292769b2 28:529214f57d1b
    79          * Move read/write pointer to byte offset from start of file.
    79          * Move read/write pointer to byte offset from start of file.
    80          *  Returns non-zero on success, zero on error.
    80          *  Returns non-zero on success, zero on error.
    81          * On failure, call __PHYSFS_setError().
    81          * On failure, call __PHYSFS_setError().
    82          */
    82          */
    83     int (*seek)(FileHandle *handle, int offset);
    83     int (*seek)(FileHandle *handle, int offset);
       
    84 
       
    85         /*
       
    86          * Return number of bytes available in the file, or -1 if you
       
    87          *  aren't able to determine.
       
    88          * On failure, call __PHYSFS_setError().
       
    89          */
       
    90     int (*fileLength)(FileHandle *handle);
    84 
    91 
    85         /*
    92         /*
    86          * Close the file, and free the FileHandle structure (including "opaque").
    93          * Close the file, and free the FileHandle structure (including "opaque").
    87          *  returns non-zero on success, zero if can't close file.
    94          *  returns non-zero on success, zero if can't close file.
    88          * On failure, call __PHYSFS_setError().
    95          * On failure, call __PHYSFS_setError().
   400  *  uses platform-independent notation.
   407  *  uses platform-independent notation.
   401  */
   408  */
   402 LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname);
   409 LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname);
   403 
   410 
   404 
   411 
       
   412 /*
       
   413  * Determine the current size of a file, in bytes, from a stdio FILE *.
       
   414  *  Return -1 if you can't do it, and call __PHYSFS_setError().
       
   415  */
       
   416 int __PHYSFS_platformFileLength(FILE *handle);
       
   417 
       
   418 
   405 #ifdef __cplusplus
   419 #ifdef __cplusplus
   406 extern "C" {
   420 extern "C" {
   407 #endif
   421 #endif
   408 
   422 
   409 #endif
   423 #endif