mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-19 03:18:15 -04:00
changed std::string into RsFileHash for all file hashes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-IdCleaning@7137 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
533216c9e3
commit
acf34cd7ad
84 changed files with 698 additions and 718 deletions
|
@ -92,8 +92,8 @@ bool checkCreateDirectory(const std::string& dir);
|
|||
bool cleanupDirectory(const std::string& dir, const std::set<std::string> &keepFiles);
|
||||
bool cleanupDirectoryFaster(const std::string& dir, const std::set<std::string> &keepFiles);
|
||||
|
||||
bool hashFile(const std::string& filepath, std::string &name, std::string &hash, uint64_t &size);
|
||||
bool getFileHash(const std::string& filepath,std::string &hash, uint64_t &size, RsThread *thread = NULL);
|
||||
bool hashFile(const std::string& filepath, std::string &name, RsFileHash &hash, uint64_t &size);
|
||||
bool getFileHash(const std::string& filepath,RsFileHash &hash, uint64_t &size, RsThread *thread = NULL);
|
||||
|
||||
Sha1CheckSum sha1sum(const uint8_t *data,uint32_t size) ;
|
||||
|
||||
|
@ -124,11 +124,9 @@ bool checkWideDirectory(std::wstring dir);
|
|||
bool checkWideCreateDirectory(std::wstring dir);
|
||||
bool cleanupWideDirectory(std::wstring dir, std::list<std::wstring> keepFiles);
|
||||
|
||||
bool hashWideFile(std::wstring filepath,
|
||||
std::wstring &name, std::string &hash, uint64_t &size);
|
||||
bool hashWideFile(std::wstring filepath,std::wstring &name, RsFileHash &hash, uint64_t &size);
|
||||
|
||||
bool getWideFileHash(std::wstring filepath,
|
||||
std::string &hash, uint64_t &size);
|
||||
bool getWideFileHash(std::wstring filepath, RsFileHash &hash, uint64_t &size);
|
||||
|
||||
FILE *rs_fopen(const char* filename, const char* mode);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue