diff options
author | Michi Henning <michi@zeroc.com> | 2005-01-11 03:59:42 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-01-11 03:59:42 +0000 |
commit | bfdd46fc78552716f25900de5b75a6aff79c6d7c (patch) | |
tree | b0078934828f0c08be6d5f2bf12757e1010f5ed1 /cpp/include/IcePatch2/Util.h | |
parent | Commented out the delete[] args calls again -- I couldn't reproduce a (diff) | |
download | ice-bfdd46fc78552716f25900de5b75a6aff79c6d7c.tar.bz2 ice-bfdd46fc78552716f25900de5b75a6aff79c6d7c.tar.xz ice-bfdd46fc78552716f25900de5b75a6aff79c6d7c.zip |
Minor refactoring of IcePatch2.
Diffstat (limited to 'cpp/include/IcePatch2/Util.h')
-rw-r--r-- | cpp/include/IcePatch2/Util.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/include/IcePatch2/Util.h b/cpp/include/IcePatch2/Util.h index 2368fb8a792..8ea209f20cc 100644 --- a/cpp/include/IcePatch2/Util.h +++ b/cpp/include/IcePatch2/Util.h @@ -16,6 +16,9 @@ namespace IcePatch2 { +ICE_PATCH2_API extern const char* checksumFile; +ICE_PATCH2_API extern const char* logFile; + ICE_PATCH2_API std::string lastError(); ICE_PATCH2_API std::string bytesToString(const Ice::ByteSeq&); @@ -105,6 +108,15 @@ struct FileInfoLess: public std::binary_function<const FileInfo&, const FileInfo } }; +struct PathLess: public std::binary_function<const FileInfo&, const FileInfo&, bool> +{ + bool + operator()(const FileInfo& lhs, const FileInfo& rhs) + { + return lhs.path < rhs.path; + } +}; + class ICE_PATCH2_API GetFileInfoSeqCB { public: @@ -117,7 +129,6 @@ public: }; ICE_PATCH2_API bool getFileInfoSeq(const std::string&, int, GetFileInfoSeqCB*, FileInfoSeq&); -ICE_PATCH2_API bool getFileInfoSeqSubDir(const std::string&, const std::string&, int, GetFileInfoSeqCB*, FileInfoSeq&); ICE_PATCH2_API void saveFileInfoSeq(const std::string&, const FileInfoSeq&); ICE_PATCH2_API void loadFileInfoSeq(const std::string&, FileInfoSeq&); |