update EnumDirEnts docs. disambiguate <path> parameter - it's dir+name

This was SVN commit r2220.
This commit is contained in:
janwas 2005-05-03 05:03:27 +00:00
parent f50b7c6776
commit 03a3fd6091
2 changed files with 5 additions and 4 deletions

View File

@ -41,8 +41,8 @@ bool VFSUtil::FindFiles (const CStr& dirname, const char* filter, FileList& file
}
// call <cb> for each entry matching <filter> (see vfs_next_dirent) in the
// <start_path> directory; if <recursive>, entries in subdirectories are
// call <cb> for each entry matching <user_filter> (see vfs_next_dirent) in
// directory <start_path>; if <recursive>, entries in subdirectories are
// also returned.
//
// note: EnumDirEntsCB path and ent are only valid during the callback.

View File

@ -14,8 +14,9 @@ typedef std::vector<CStr> FileList;
extern bool FindFiles(const CStr& dirname, const char* filter, FileList& files);
// called by EnumFiles for each file in a directory (optionally
// its subdirectories as well), passing user-specified context.
// called by EnumDirEnts for each entry in a directory (optionally those in
// its subdirectories as well), passing their complete path+name, the info
// that would be returned by vfs_next_dirent, and user-specified context.
// note: path and ent parameters are only valid during the callback.
typedef void (*EnumDirEntsCB)(const char* path, const vfsDirEnt* ent,
void* context);