summaryrefslogtreecommitdiffstats
path: root/pg.h
diff options
context:
space:
mode:
Diffstat (limited to 'pg.h')
-rw-r--r--pg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pg.h b/pg.h
index 2ea852b..a41eb82 100644
--- a/pg.h
+++ b/pg.h
@@ -5,7 +5,15 @@
#include <libpq-fe.h>
-PGconn *connect_to_db(const char **);
+struct pg_conninfo_ctx
+{
+ PGconn *connection;
+ int persistent;
+ const char *values[6];
+};
+
+void connect_to_db(struct pg_conninfo_ctx *);
+void disconnect_from_db(struct pg_conninfo_ctx *);
PGresult *pg_locks(PGconn *, int);
PGresult *pg_processes(PGconn *);