physfs_internal.h
changeset 41 ff60d39d0862
parent 39 bc29e1ee7ef6
child 45 a489d28872ba
equal deleted inserted replaced
40:8cc16df4bada 41:ff60d39d0862
   140 
   140 
   141         /*
   141         /*
   142          * Returns a list of all files in dirname. Each element of this list
   142          * Returns a list of all files in dirname. Each element of this list
   143          *  (and its "str" field) will be deallocated with the system's free()
   143          *  (and its "str" field) will be deallocated with the system's free()
   144          *  function by the caller, so be sure to explicitly malloc() each
   144          *  function by the caller, so be sure to explicitly malloc() each
   145          *  chunk.
   145          *  chunk. Omit symlinks if (omitSymLinks) is non-zero.
   146          * If you have a memory failure, return as much as you can.
   146          * If you have a memory failure, return as much as you can.
   147          *  This dirname is in platform-independent notation.
   147          *  This dirname is in platform-independent notation.
   148          */
   148          */
   149     LinkedStringList *(*enumerateFiles)(DirHandle *r, const char *dirname);
   149     LinkedStringList *(*enumerateFiles)(DirHandle *r,
       
   150                                         const char *dirname,
       
   151                                         int omitSymLinks);
       
   152 
   150 
   153 
   151         /*
   154         /*
   152          * Returns non-zero if filename can be opened for reading.
   155          * Returns non-zero if filename can be opened for reading.
   153          *  This filename is in platform-independent notation.
   156          *  This filename is in platform-independent notation.
   154          */
   157          */
   405 /*
   408 /*
   406  * Enumerate a directory of files. This follows the rules for the
   409  * Enumerate a directory of files. This follows the rules for the
   407  *  DirFunctions->enumerateFiles() method (see above), except that the
   410  *  DirFunctions->enumerateFiles() method (see above), except that the
   408  *  (dirName) that is passed to this function is converted to
   411  *  (dirName) that is passed to this function is converted to
   409  *  platform-DEPENDENT notation by the caller. The DirFunctions version
   412  *  platform-DEPENDENT notation by the caller. The DirFunctions version
   410  *  uses platform-independent notation.
   413  *  uses platform-independent notation. Note that ".", "..", and other
   411  */
   414  *  metaentries should always be ignored.
   412 LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname);
   415  */
       
   416 LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
       
   417                                                   int omitSymLinks);
   413 
   418 
   414 
   419 
   415 /*
   420 /*
   416  * Determine the current size of a file, in bytes, from a stdio FILE *.
   421  * Determine the current size of a file, in bytes, from a stdio FILE *.
   417  *  Return -1 if you can't do it, and call __PHYSFS_setError().
   422  *  Return -1 if you can't do it, and call __PHYSFS_setError().