add FilenameDB::GetFilePriv

This commit is contained in:
Glenn Maynard
2004-09-05 03:40:19 +00:00
parent 57b6bd4ceb
commit 0bfb1d5058
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -389,6 +389,15 @@ const File *FilenameDB::GetFile( const CString &sPath )
return const_cast<File *> (&*it);
}
const void *FilenameDB::GetFilePriv( const CString &path )
{
const File *pFile = GetFile( path );
void *pRet = NULL;
if( pFile != NULL )
pRet = pFile->priv;
return pRet;
}
+1
View File
@@ -93,6 +93,7 @@ public:
void AddFile( const CString &sPath, int size, int hash, void *priv=NULL );
void DelFile( const CString &sPath );
const File *GetFile( const CString &path );
const void *GetFilePriv( const CString &path );
/* This handles at most two * wildcards. If we need anything more complicated,
* we'll need to use fnmatch or regex. */