update EnumDirEnts docs. disambiguate <path> parameter - it's dir+name
This was SVN commit r2220.
This commit is contained in:
parent
f50b7c6776
commit
03a3fd6091
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user