aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'db.h')
-rw-r--r--db.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/db.h b/db.h
index 81a6bcd..9841d9c 100644
--- a/db.h
+++ b/db.h
@@ -2,6 +2,16 @@
sqlite3 *db;
+struct attachment{
+ int id;
+ int post;
+ int bytes;
+ char *name;
+ char *description;
+ char *mime;
+ char *data;
+};
+
struct post{
int id;
int parent;
@@ -20,5 +30,6 @@ struct user{
};
sqlite3_stmt *byid(char *, int);
+struct attachment *getattachment(sqlite3_stmt *, int);
struct post *getpost(sqlite3_stmt *, int);
struct user *getuser(sqlite3_stmt *, int); \ No newline at end of file