aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 10:38:09 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 10:38:09 +0200
commit0292e86cf884a26108a59d81d69cee83b54f4c88 (patch)
tree3f5b30fe172013802955213503a5827616be6fec /db.h
parentae9b583b9575679f129680a0f56163fdb6590052 (diff)
downloadcforum-0292e86cf884a26108a59d81d69cee83b54f4c88.tar.gz
Clean up database code
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