mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 07:40:21 -04:00
* Major tweak to the serialiser: shifted size to 32bits to handle bigger packets. This will break compatibility.
* Modified tlvitems to support future expansions. * added random tlv test functios. * added dummy Wide Directory functions to rsdir (for the future;) * Fixed Mutex Bug in fimonitor. * added netiface_test for hiberation / net change testing. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1620 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
05676e4399
commit
0f99826623
19 changed files with 1588 additions and 319 deletions
|
@ -38,9 +38,9 @@ std::string getTopDir(std::string);
|
|||
std::string getRootDir(std::string);
|
||||
std::string removeRootDir(std::string path);
|
||||
std::string removeTopDir(std::string dir);
|
||||
|
||||
std::string removeRootDirs(std::string path, std::string root);
|
||||
|
||||
|
||||
// Renames file from to file to. Files should be on the same file system.
|
||||
// returns true if succeed, false otherwise.
|
||||
bool renameFile(const std::string& from,const std::string& to) ;
|
||||
|
@ -58,6 +58,30 @@ bool hashFile(std::string filepath,
|
|||
bool getFileHash(std::string filepath,
|
||||
std::string &hash, uint64_t &size);
|
||||
|
||||
|
||||
std::wstring getWideTopDir(std::wstring);
|
||||
std::wstring getWideRootDir(std::wstring);
|
||||
std::wstring removeWideRootDir(std::wstring path);
|
||||
std::wstring removeWideTopDir(std::wstring dir);
|
||||
std::wstring removeWideRootDirs(std::wstring path, std::wstring root);
|
||||
|
||||
// Renames file from to file to. Files should be on the same file system.
|
||||
// returns true if succeed, false otherwise.
|
||||
bool renameWideFile(const std::wstring& from,const std::wstring& to) ;
|
||||
|
||||
int breakupWideDirList(std::wstring path,
|
||||
std::list<std::wstring> &subdirs);
|
||||
|
||||
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 getWideFileHash(std::wstring filepath,
|
||||
std::string &hash, uint64_t &size);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue