add FilenameDB::GetFilePriv
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user