summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupStoreContext.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-08-27 14:06:46 +0000
committerChris Wilson <chris+github@qwirx.com>2011-08-27 14:06:46 +0000
commita473bb0923b0f7800bb95ef96ba20f5cf6cbe5b4 (patch)
tree68620eb4a0566889c5a2e903a5b2fb0b678d9613 /lib/backupstore/BackupStoreContext.h
parent50aac86024fae12072a240e6b952c9bb11437956 (diff)
Combine client and server protocols to make way for an offline/local protocol.
Rename ProtocolObject to Message.
Diffstat (limited to 'lib/backupstore/BackupStoreContext.h')
-rw-r--r--lib/backupstore/BackupStoreContext.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/backupstore/BackupStoreContext.h b/lib/backupstore/BackupStoreContext.h
index 44a05dd8..d46ac295 100644
--- a/lib/backupstore/BackupStoreContext.h
+++ b/lib/backupstore/BackupStoreContext.h
@@ -16,15 +16,14 @@
#include "BackupStoreRefCountDatabase.h"
#include "NamedLock.h"
-#include "ProtocolObject.h"
+#include "Message.h"
#include "Utils.h"
class BackupStoreDirectory;
class BackupStoreFilename;
-class BackupStoreDaemon;
class BackupStoreInfo;
class IOStream;
-class BackupProtocolObject;
+class BackupProtocolMessage;
class StreamableMemBlock;
class HousekeepingInterface
@@ -161,21 +160,22 @@ public:
class TestHook
{
public:
- virtual std::auto_ptr<ProtocolObject> StartCommand(BackupProtocolObject&
- rCommand) = 0;
+ virtual std::auto_ptr<BackupProtocolMessage>
+ StartCommand(const BackupProtocolMessage& rCommand) = 0;
virtual ~TestHook() { }
};
void SetTestHook(TestHook& rTestHook)
{
mpTestHook = &rTestHook;
}
- std::auto_ptr<ProtocolObject> StartCommandHook(BackupProtocolObject& rCommand)
+ std::auto_ptr<BackupProtocolMessage>
+ StartCommandHook(const BackupProtocolMessage& rCommand)
{
if(mpTestHook)
{
return mpTestHook->StartCommand(rCommand);
}
- return std::auto_ptr<ProtocolObject>();
+ return std::auto_ptr<BackupProtocolMessage>();
}
private: