summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupDaemon.h
diff options
context:
space:
mode:
authorBen Summers <ben@fluffy.co.uk>2006-01-30 20:04:53 +0000
committerBen Summers <ben@fluffy.co.uk>2006-01-30 20:04:53 +0000
commitd0418fb869e5a95022888b44fe67a31f08986d61 (patch)
tree57cc131b68cbb0685adacc7f1ac4a1ad41e11b04 /bin/bbackupd/BackupDaemon.h
parent9fff72211207eda582e10f6bf5294bfa61cc40ed (diff)
Merge chris/bb-save-state, resolving conflicts
Diffstat (limited to 'bin/bbackupd/BackupDaemon.h')
-rw-r--r--bin/bbackupd/BackupDaemon.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupDaemon.h b/bin/bbackupd/BackupDaemon.h
index e6798798..cef09630 100644
--- a/bin/bbackupd/BackupDaemon.h
+++ b/bin/bbackupd/BackupDaemon.h
@@ -14,8 +14,8 @@
#include <string>
#include <memory>
-#include "Daemon.h"
#include "BoxTime.h"
+#include "Daemon.h"
#include "Socket.h"
#include "SocketListen.h"
#include "SocketStream.h"
@@ -27,6 +27,7 @@ class Configuration;
class BackupClientInodeToIDMap;
class ExcludeList;
class IOStreamGetLine;
+class Archive;
// --------------------------------------------------------------------------
//
@@ -41,6 +42,10 @@ class BackupDaemon : public Daemon
public:
BackupDaemon();
~BackupDaemon();
+
+ // methods below do partial (specialized) serialization of client state only
+ void SerializeStoreObjectInfo(int64_t aClientStoreMarker, box_time_t theLastSyncTime, box_time_t theNextSyncTime) const;
+ void DeserializeStoreObjectInfo(int64_t & aClientStoreMarker, box_time_t & theLastSyncTime, box_time_t & theNextSyncTime);
private:
BackupDaemon(const BackupDaemon &);
public:
@@ -117,6 +122,9 @@ private:
public:
Location();
~Location();
+
+ void Deserialize(Archive & rArchive);
+ void Serialize(Archive & rArchive) const;
private:
Location(const Location &); // copy not allowed
Location &operator=(const Location &);