diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-07-26 17:39:00 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-07-26 17:39:00 -0700 |
commit | f6b080b8a2c071266270de23c7b99722b2cef21a (patch) | |
tree | 1fbfdc4d07b1061a58b1eb64a6baa47082d0acc2 /controller/LFDB.hpp | |
parent | c8c33db1d12359e38dbe0cae80143963ea0b8c8a (diff) | |
download | infinitytier-f6b080b8a2c071266270de23c7b99722b2cef21a.tar.gz infinitytier-f6b080b8a2c071266270de23c7b99722b2cef21a.zip |
Abstract out change listener from controller itself to permit DBs to shadow changes from other DBs.
Diffstat (limited to 'controller/LFDB.hpp')
-rw-r--r-- | controller/LFDB.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/controller/LFDB.hpp b/controller/LFDB.hpp index 6659c0bf..73187462 100644 --- a/controller/LFDB.hpp +++ b/controller/LFDB.hpp @@ -43,7 +43,6 @@ class LFDB : public DB { public: /** - * @param nc Network controller * @param myId Identity of controller node (with secret) * @param path Base path for ZeroTier node itself * @param lfOwnerPrivate LF owner private in PEM format @@ -52,7 +51,7 @@ public: * @param lfNodePort LF node http (not https) port * @param storeOnlineState If true, store online/offline state and IP info in LF (a lot of data, only for private networks!) */ - LFDB(EmbeddedNetworkController *const nc,const Identity &myId,const char *path,const char *lfOwnerPrivate,const char *lfOwnerPublic,const char *lfNodeHost,int lfNodePort,bool storeOnlineState); + LFDB(const Identity &myId,const char *path,const char *lfOwnerPrivate,const char *lfOwnerPublic,const char *lfNodeHost,int lfNodePort,bool storeOnlineState); virtual ~LFDB(); virtual bool waitForReady(); @@ -63,7 +62,6 @@ public: virtual void nodeIsOnline(const uint64_t networkId,const uint64_t memberId,const InetAddress &physicalAddress); protected: - EmbeddedNetworkController *const _nc; const Identity _myId; std::string _lfOwnerPrivate,_lfOwnerPublic; |