More Windows service work... it builds! Now to do a new installer and test. Also fix a Windows compile warning in Switch.cpp.
This commit is contained in:
parent
8a7486577a
commit
5b97bb247e
6 changed files with 54 additions and 141 deletions
|
@ -29,6 +29,12 @@
|
|||
|
||||
#include "ServiceBase.h"
|
||||
|
||||
#include "../../node/Node.hpp"
|
||||
#include "../../node/Defaults.hpp"
|
||||
#include "../../node/Thread.hpp"
|
||||
#include "../../node/Mutex.hpp"
|
||||
#include "../../node/Utils.hpp"
|
||||
|
||||
#define ZT_SERVICE_NAME "ZeroTierOneService"
|
||||
#define ZT_SERVICE_DISPLAY_NAME "ZeroTier One"
|
||||
#define ZT_SERVICE_START_TYPE SERVICE_AUTO_START
|
||||
|
@ -36,11 +42,6 @@
|
|||
#define ZT_SERVICE_ACCOUNT "NT AUTHORITY\\LocalService"
|
||||
#define ZT_SERVICE_PASSWORD NULL
|
||||
|
||||
namespace ZeroTier {
|
||||
class Node;
|
||||
class Thread;
|
||||
} // namespace ZeroTier
|
||||
|
||||
class ZeroTierOneService : public CServiceBase
|
||||
{
|
||||
public:
|
||||
|
@ -60,5 +61,6 @@ protected:
|
|||
|
||||
private:
|
||||
ZeroTier::Node *volatile _node;
|
||||
ZeroTier::Thread *volatile _thread;
|
||||
ZeroTier::Mutex _lock;
|
||||
ZeroTier::Thread _thread;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue