From 0292e86cf884a26108a59d81d69cee83b54f4c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 10:38:09 +0200 Subject: Clean up database code --- db.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'db.h') 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 -- cgit v1.2.3