summaryrefslogtreecommitdiff
path: root/pg.h
blob: 26fbe5499dc09e97f1b32e2c2113e730bd0cd66f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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