diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-06 08:51:23 -0500 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-08-06 08:51:23 -0500 |
commit | 3c776675b3824d4497d913386793efaece2ee7d1 (patch) | |
tree | 92d0cccb701a041cb9aa730d1baf028568137835 /controller/PostgreSQL.hpp | |
parent | 37d508ab969afaf16c2aee1838a225022de34177 (diff) | |
download | infinitytier-3c776675b3824d4497d913386793efaece2ee7d1.tar.gz infinitytier-3c776675b3824d4497d913386793efaece2ee7d1.zip |
Cruftectomy, work in progress on mirrorring
Diffstat (limited to 'controller/PostgreSQL.hpp')
-rw-r--r-- | controller/PostgreSQL.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index fe69635d..ce6fb242 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -23,16 +23,14 @@ * directly against ZeroTier software without disclosing the source code * of your own application. */ - -#define ZT_CONTROLLER_USE_LIBPQ + +#include "DB.hpp" #ifdef ZT_CONTROLLER_USE_LIBPQ #ifndef ZT_CONTROLLER_LIBPQ_HPP #define ZT_CONTROLLER_LIBPQ_HPP -#include "DB.hpp" - #define ZT_CENTRAL_CONTROLLER_COMMIT_THREADS 4 extern "C" { @@ -57,7 +55,7 @@ public: virtual bool waitForReady(); virtual bool isReady(); - virtual void save(nlohmann::json *orig, nlohmann::json &record); + virtual void save(nlohmann::json &record); virtual void eraseNetwork(const uint64_t networkId); virtual void eraseMember(const uint64_t networkId, const uint64_t memberId); virtual void nodeIsOnline(const uint64_t networkId, const uint64_t memberId, const InetAddress &physicalAddress); |