From 5af90fb735d357a729d02a661c92af6e865b6d3a Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 15 Nov 2010 23:39:05 +0100 Subject: Implemented most database queries. --- pg.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pg.h') diff --git a/pg.h b/pg.h index 150b5ef..26fbe54 100644 --- a/pg.h +++ b/pg.h @@ -1,9 +1,18 @@ #ifndef PG_H #define PG_H +#include "channel.h" +#include "user.h" + int pg_connect(const char *string); void pg_disconnect(); int pg_init(); int pg_upgrade(); +void pg_dropall(); +int pg_channel_get(struct channel_t *channel); +long pg_channel_file_get(int channel_id, struct channel_file_t *file); +void pg_channel_file_set(int channel_id, struct channel_file_t *file, long pos); +void pg_user_set(int channel_id, struct user_t *user); +void pg_user_get(int channel_id, struct user_t *user); #endif -- cgit v1.2.3