Ignore:
Timestamp:
22/09/2007 00:05:25 (5 years ago)
Author:
chris
Message:

Use Daemon's delegated option processing instead of our own hacks.

Move Windows service startup, installation and removal to BackupDaemon?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/bin/bbackupd/BackupDaemon.h

    r1805 r1854  
    5959        bool DeleteStoreObjectInfo() const; 
    6060        BackupDaemon(const BackupDaemon &); 
     61 
    6162public: 
     63        #ifdef WIN32 
     64                // add command-line options to handle Windows services 
     65                std::string GetOptionString(); 
     66                int ProcessOption(signed int option); 
     67                int Main(const std::string &rConfigFileName); 
     68        #endif 
    6269 
    6370        void Run(); 
     
    417424        private: 
    418425        bool mDoSyncFlagOut, mSyncIsForcedOut; 
     426        bool mInstallService, mRemoveService, mRunAsService; 
     427        std::string mServiceName; 
    419428        HANDLE mhMessageToSendEvent, mhCommandReceivedEvent; 
    420429        CRITICAL_SECTION mMessageQueueLock; 
Note: See TracChangeset for help on using the changeset viewer.