diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 10:38:09 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 10:38:09 +0200 |
commit | 0292e86cf884a26108a59d81d69cee83b54f4c88 (patch) | |
tree | 3f5b30fe172013802955213503a5827616be6fec /db.h | |
parent | ae9b583b9575679f129680a0f56163fdb6590052 (diff) | |
download | cforum-0292e86cf884a26108a59d81d69cee83b54f4c88.tar.gz |
Clean up database code
Diffstat (limited to 'db.h')
-rw-r--r-- | db.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |