diff --git a/includes/contrib/postgres/kore_pgsql.h b/includes/contrib/postgres/kore_pgsql.h index 799df5f..9e8f4bc 100644 --- a/includes/contrib/postgres/kore_pgsql.h +++ b/includes/contrib/postgres/kore_pgsql.h @@ -19,14 +19,6 @@ #include -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