diff options
| author | Grant Limberg <[email protected]> | 2019-03-05 15:11:50 -0800 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2019-03-05 15:11:50 -0800 |
| commit | fcb4221f97a7545ac741b184c53c10c3ac2c06b3 (patch) | |
| tree | 2ce08a4b2447a620c1225d19401f34dbd8929d18 /controller/PostgreSQL.hpp | |
| parent | 1f13374a4f24c5398d4f1978b217db39aefdffad (diff) | |
rabbitMQ implementation
Diffstat (limited to 'controller/PostgreSQL.hpp')
| -rw-r--r-- | controller/PostgreSQL.hpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index e0dcdf06..779d47bd 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -40,13 +40,7 @@ extern "C" { namespace ZeroTier { -struct mq_config -{ - const char *host; - int port; - const char *username; - const char *password; -}; +struct MQConfig; /** * A controller database driver that talks to PostgreSQL @@ -57,7 +51,7 @@ struct mq_config class PostgreSQL : public DB { public: - PostgreSQL(EmbeddedNetworkController *const nc, const Identity &myId, const char *path, int listenPort, mq_config *mqc = NULL); + PostgreSQL(EmbeddedNetworkController *const nc, const Identity &myId, const char *path, int listenPort, MQConfig *mqc = NULL); virtual ~PostgreSQL(); virtual bool waitForReady(); @@ -115,7 +109,7 @@ private: int _listenPort; - mq_config *_mqc; + MQConfig *_mqc; }; } |
