summaryrefslogtreecommitdiff
path: root/pg.h
blob: 6ff3178d99c7790b7e7120220cd1039a6a8817a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PG_H
#define PG_H

#include <time.h>

#include "channel.h"
#include "user.h"
#include "word.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);
void pg_channel_file_get(int channel_id, struct channel_file_t *file, long *pos, time_t *time);
void pg_channel_file_set(int channel_id, struct channel_file_t *file, long pos, time_t time);
void pg_user_set(int channel_id, struct user_t *user);
void pg_users_get(int channel_id);
void pg_word_set(int channel, struct word_t *word);
void pg_words_get(int channel);

#endif