summaryrefslogtreecommitdiff
path: root/bin/bbstored/BackupStoreDaemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bbstored/BackupStoreDaemon.h')
-rw-r--r--bin/bbstored/BackupStoreDaemon.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/bbstored/BackupStoreDaemon.h b/bin/bbstored/BackupStoreDaemon.h
index 2fbe486d..857a9356 100644
--- a/bin/bbstored/BackupStoreDaemon.h
+++ b/bin/bbstored/BackupStoreDaemon.h
@@ -38,11 +38,13 @@ private:
BackupStoreDaemon(const BackupStoreDaemon &rToCopy);
public:
+#ifndef WIN32
// For BackupContext to comminicate with housekeeping process
void SendMessageToHousekeepingProcess(const void *Msg, int MsgLen)
{
mInterProcessCommsSocket.Write(Msg, MsgLen);
}
+#endif
protected:
@@ -57,9 +59,11 @@ protected:
const ConfigurationVerify *GetConfigVerify() const;
+#ifndef WIN32
// Housekeeping functions
void HousekeepingProcess();
bool CheckForInterProcessMsg(int AccountNum = 0, int MaximumWaitTime = 0);
+#endif
void LogConnectionStats(const char *commonName, const SocketStreamTLS &s);
@@ -70,8 +74,17 @@ private:
bool mHaveForkedHousekeeping;
bool mIsHousekeepingProcess;
+#ifdef WIN32
+ virtual void OnIdle();
+ bool mHousekeepingInited;
+#else
SocketStream mInterProcessCommsSocket;
IOStreamGetLine mInterProcessComms;
+#endif
+
+ void HousekeepingInit();
+ void RunHousekeepingIfNeeded();
+ int64_t mLastHousekeepingRun;
};