diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-05-12 01:24:27 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-05-16 19:25:25 -0400 |
commit | 768e5d52fb295b000940f6a806c3d4bfc3e4f54d (patch) | |
tree | cd0ae64786ceb7c363226fee822dad8ae919dd76 /src/util.h | |
parent | 49232d1abf96f85f785e0ee95fbb79d0338855bc (diff) |
Add new utility functions FileCommit(), RenameOver()
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 8e65fa7864..f7bdaf5332 100644 --- a/src/util.h +++ b/src/util.h @@ -152,7 +152,9 @@ std::string EncodeBase64(const std::string& str); void ParseParameters(int argc, const char*const argv[]); bool WildcardMatch(const char* psz, const char* mask); bool WildcardMatch(const std::string& str, const std::string& mask); +void FileCommit(FILE *fileout); int GetFilesize(FILE* file); +bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest); boost::filesystem::path GetDefaultDataDir(); const boost::filesystem::path &GetDataDir(bool fNetSpecific = true); boost::filesystem::path GetConfigFile(); |