add original hiredis

This commit is contained in:
Grant Limberg 2020-05-11 15:03:56 -07:00
parent 73b1d57b13
commit 154470b570
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
50 changed files with 8952 additions and 13 deletions

View file

@ -26,6 +26,8 @@ typedef struct pg_conn PGconn;
namespace ZeroTier {
struct RedisConfig;
/**
* A controller database driver that talks to PostgreSQL
*
@ -35,7 +37,7 @@ namespace ZeroTier {
class PostgreSQL : public DB
{
public:
PostgreSQL(const Identity &myId, const char *path, int listenPort);
PostgreSQL(const Identity &myId, const char *path, int listenPort, RedisConfig *rc);
virtual ~PostgreSQL();
virtual bool waitForReady();
@ -94,6 +96,8 @@ private:
mutable volatile bool _waitNoticePrinted;
int _listenPort;
RedisConfig *_rc;
};
} // namespace ZeroTier