diff options
author | Christian Pointner <equinox@anytun.org> | 2010-01-20 08:19:16 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-01-20 08:19:16 +0000 |
commit | 9c363297c80c00d5b940b8614fb1b4e375b45fe6 (patch) | |
tree | e7e87832dfb0890b42f87f989dbd855e9d64105b /src/win32/winService.h | |
parent | integrated winservice into signal controller (diff) |
winService works now together with signalController
Diffstat (limited to 'src/win32/winService.h')
-rw-r--r-- | src/win32/winService.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/win32/winService.h b/src/win32/winService.h index e2bab90..4cb485a 100644 --- a/src/win32/winService.h +++ b/src/win32/winService.h @@ -36,6 +36,7 @@ #ifdef WIN_SERVICE #include "../threadUtils.hpp" +#include "../signalController.h" class WinService { @@ -49,11 +50,11 @@ public: static VOID WINAPI ctrlHandler(DWORD dwCtrl); void reportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode); - int handleCtrlSignal(const SigNum& sig, const std::string& msg); + int handleCtrlSignal(const int& sig, const std::string& msg); private: - WinService() : started_(false) {}; - ~WinService(); + WinService() {}; + ~WinService() {}; WinService(const WinService &w); void operator=(const WinService &w); @@ -61,8 +62,6 @@ private: SERVICE_STATUS_HANDLE status_handle_; }; -extern WinService& gWinService; - #endif #endif |