diff options
| author | Grant Limberg <grant.limberg@zerotier.com> | 2018-11-30 10:37:27 -0800 |
|---|---|---|
| committer | Grant Limberg <grant.limberg@zerotier.com> | 2018-11-30 10:40:57 -0800 |
| commit | ccb856749fba9e2fa6bc844f13527888e832e04f (patch) | |
| tree | 1fbe9465efe8c681e9d87e1afe45a352ce4b4976 /controller/PostgreSQL.hpp | |
| parent | 9d2bc9bf4e2c0be7f763297c5509e995703747d0 (diff) | |
| download | infinitytier-ccb856749fba9e2fa6bc844f13527888e832e04f.tar.gz infinitytier-ccb856749fba9e2fa6bc844f13527888e832e04f.zip | |
back to plain old libpq in dev
Diffstat (limited to 'controller/PostgreSQL.hpp')
| -rw-r--r-- | controller/PostgreSQL.hpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index 86aac80d..36fe8c9f 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -23,16 +23,12 @@ #include "DB.hpp" -#include <pqxx/pqxx> - extern "C" { typedef struct pg_conn PGconn; } namespace ZeroTier { -class _MemberNotificationReceiver; -class _NetworkNotificationReceiver; /** * A controller database driver that talks to PostgreSQL @@ -60,8 +56,8 @@ protected: }; private: - void initializeNetworks(pqxx::connection &conn); - void initializeMembers(pqxx::connection &conn); + void initializeNetworks(PGconn *conn); + void initializeMembers(PGconn *conn); void heartbeat(); void membersDbWatcher(); void networksDbWatcher(); @@ -85,9 +81,6 @@ private: mutable std::mutex _readyLock; std::atomic<int> _ready, _connected, _run; mutable volatile bool _waitNoticePrinted; - - friend class _MemberNotificationReceiver; - friend class _NetworkNotificationReceiver; }; } |
