diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-15 23:39:05 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-15 23:39:05 +0100 |
commit | 5af90fb735d357a729d02a661c92af6e865b6d3a (patch) | |
tree | a9af27348dacab4c5e21be4434e077f9550ebe3f /pg.h | |
parent | 4ec55cb9cfcdc8e64fa8f121e49422f8afbf960d (diff) |
Implemented most database queries.
Diffstat (limited to 'pg.h')
-rw-r--r-- | pg.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |