summaryrefslogtreecommitdiff
path: root/cpp/include/IcePatch2/Util.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-12-06 21:00:28 +0000
committerMarc Laukien <marc@zeroc.com>2004-12-06 21:00:28 +0000
commitd0be319d1296891a164b7f62d3917024f43f5399 (patch)
tree832fc4f21223778a745cfdf124c9969f73377164 /cpp/include/IcePatch2/Util.h
parentfixes (diff)
downloadice-d0be319d1296891a164b7f62d3917024f43f5399.tar.bz2
ice-d0be319d1296891a164b7f62d3917024f43f5399.tar.xz
ice-d0be319d1296891a164b7f62d3917024f43f5399.zip
patcher enhancements
Diffstat (limited to 'cpp/include/IcePatch2/Util.h')
-rw-r--r--cpp/include/IcePatch2/Util.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/include/IcePatch2/Util.h b/cpp/include/IcePatch2/Util.h
index 32ab7ed4a92..ac899b3e6e4 100644
--- a/cpp/include/IcePatch2/Util.h
+++ b/cpp/include/IcePatch2/Util.h
@@ -103,7 +103,18 @@ struct FileInfoLess: public std::binary_function<const FileInfo&, const FileInfo
}
};
-ICE_PATCH2_API void getFileInfoSeq(const std::string&, FileInfoSeq&, bool, bool, bool);
+class ICE_PATCH2_API GetFileInfoSeqCB
+{
+public:
+
+ virtual ~GetFileInfoSeqCB() { }
+
+ virtual bool remove(const std::string&) = 0;
+ virtual bool checksum(const std::string&) = 0;
+ virtual bool compress(const std::string&) = 0;
+};
+
+ICE_PATCH2_API bool getFileInfoSeq(const std::string&, int mode, GetFileInfoSeqCB*, FileInfoSeq&);
ICE_PATCH2_API void saveFileInfoSeq(const std::string&, const FileInfoSeq&);
ICE_PATCH2_API void loadFileInfoSeq(const std::string&, FileInfoSeq&);