aboutsummaryrefslogtreecommitdiff
path: root/db.h
blob: a70e1569fc94a36f21f39f27da74be8db541aa5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <sqlite3.h>

sqlite3 *db;

struct post{
	int id;
	int parent;
	int user;
	int created;
	int edited;
	char *subject;
	char *text;
};

struct user{
	int id;
	char *name;
	char *full;
	char *hash;
};

struct post *getpost(int);
struct user *getuser(int);