commit 39a9f7d6f0eec7c9c47c1563e04f1b1bba6e754c
parent 9e3d19fbbd15246a0c9e294448aaf162b4ceb64d
Author: Joris Vink <joris@coders.se>
Date: Tue, 1 Apr 2014 21:44:22 +0200
Add new wrappers
Diffstat:
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/includes/contrib/postgres/kore_pgsql.h b/includes/contrib/postgres/kore_pgsql.h
@@ -19,14 +19,6 @@
#include <libpq-fe.h>
-void kore_pgsql_init(void);
-void kore_pgsql_handle(void *, int);
-void kore_pgsql_cleanup(struct http_request *);
-void kore_pgsql_continue(struct http_request *, int);
-int kore_pgsql_query(struct http_request *, char *, int);
-
-int kore_pgsql_ntuples(struct http_request *, int);
-
struct kore_pgsql {
u_int8_t state;
char *error;
@@ -34,6 +26,15 @@ struct kore_pgsql {
void *conn;
};
+void kore_pgsql_init(void);
+void kore_pgsql_handle(void *, int);
+void kore_pgsql_cleanup(struct http_request *);
+void kore_pgsql_continue(struct http_request *, int);
+int kore_pgsql_query(struct http_request *, char *, int);
+
+int kore_pgsql_ntuples(struct kore_pgsql *);
+char *kore_pgsql_getvalue(struct kore_pgsql *, int, int);
+
#define KORE_PGSQL_STATE_INIT 1
#define KORE_PGSQL_STATE_WAIT 2
#define KORE_PGSQL_STATE_RESULT 3