aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'db.h')
-rw-r--r--db.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/db.h b/db.h
index 9841d9c..4d956f9 100644
--- a/db.h
+++ b/db.h
@@ -2,7 +2,7 @@
sqlite3 *db;
-struct attachment{
+struct att{
int id;
int post;
int bytes;
@@ -30,6 +30,9 @@ 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
+struct att *getatt(sqlite3_stmt *);
+struct post *getpost(sqlite3_stmt *);
+struct user *getuser(sqlite3_stmt *);
+struct att *nextatt(sqlite3_stmt *);
+struct post *nextpost(sqlite3_stmt *);
+struct user *nextuser(sqlite3_stmt *); \ No newline at end of file