diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 11:18:39 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 11:18:39 +0000 |
commit | 9cae0cb415d50e28d4819e54ce76131fbd9f7c1c (patch) | |
tree | d0adebf44b25de0b1ffd47b1de3182d3e24f69c5 /bin/bbstored/BackupStoreContext.h | |
parent | 7dbcaff4f698c914f9307cb69e742983e3a1a4e1 (diff) |
Run housekeeping synchronously on all platforms if daemon is run in
single process mode (-D), not just on Windows.
Add a housekeeping interface to allow Boxi to run housekeeping.
Diffstat (limited to 'bin/bbstored/BackupStoreContext.h')
-rw-r--r-- | bin/bbstored/BackupStoreContext.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/bbstored/BackupStoreContext.h b/bin/bbstored/BackupStoreContext.h index 3f0ba55a..da0a7668 100644 --- a/bin/bbstored/BackupStoreContext.h +++ b/bin/bbstored/BackupStoreContext.h @@ -26,6 +26,13 @@ class IOStream; class BackupProtocolObject; class StreamableMemBlock; +class HousekeepingInterface +{ + public: + virtual ~HousekeepingInterface() { } + virtual void SendMessageToHousekeepingProcess(const void *Msg, int MsgLen) = 0; +}; + // -------------------------------------------------------------------------- // // Class @@ -37,7 +44,7 @@ class StreamableMemBlock; class BackupStoreContext { public: - BackupStoreContext(int32_t ClientID, BackupStoreDaemon &rDaemon); + BackupStoreContext(int32_t ClientID, HousekeepingInterface &rDaemon); ~BackupStoreContext(); private: BackupStoreContext(const BackupStoreContext &rToCopy); @@ -131,7 +138,7 @@ private: private: int32_t mClientID; - BackupStoreDaemon &mrDaemon; + HousekeepingInterface &mrDaemon; int mProtocolPhase; bool mClientHasAccount; std::string mStoreRoot; // has final directory separator |