X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Fetag.cpp;h=e4dcef14b5a28dc8300487df82b38250712042a7;hb=1dd9568c924ede2b46fa40ea8f7eed03a2ffba1c;hp=95e38e4c1578d583daffab880502d60867bcce68;hpb=c5b9277e4f51a80b2485c05476634d14f9826742;p=xestiaab%2F.git diff --git a/source/common/etag.cpp b/source/common/etag.cpp index 95e38e4..e4dcef1 100644 --- a/source/common/etag.cpp +++ b/source/common/etag.cpp @@ -106,6 +106,30 @@ void ETagDB::UpdateETag(wxString Filename, wxString ETag, wxString ETagOriginal) } +bool ETagDB::ETagExists(wxString Filename){ + + // Lock or wait if it is already locked. + + ProcessLock->lock(); + + bool FileResult = FALSE; + + if (FilenameETag.find(Filename) != FilenameETag.end()){ + + FileResult = TRUE; + + } else { + + FileResult = FALSE; + + } + + // Unlock. + + ProcessLock->unlock(); + +} + std::map* ETagDB::GetFilenamePointer(){ return &FilenameETag;