aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 11:58:56 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 11:58:56 +0200
commit973edb08ed5ff35644328c244d5d584f44a70591 (patch)
tree864b7e74297fafa44db93ce5c55888380282de56 /db.h
parentb67acafd615ae705a3e3682f87f35027789ddda5 (diff)
downloadcforum-973edb08ed5ff35644328c244d5d584f44a70591.tar.gz
Implement `add' functions
Diffstat (limited to 'db.h')
-rw-r--r--db.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/db.h b/db.h
index 4d956f9..d6f229d 100644
--- a/db.h
+++ b/db.h
@@ -24,15 +24,18 @@ struct post{
struct user{
int id;
+ int created;
char *name;
char *full;
char *hash;
};
-sqlite3_stmt *byid(char *, int);
+int addatt(struct att *);
+int adduser(struct user *);
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
+struct user *nextuser(sqlite3_stmt *);
+sqlite3_stmt *selectbyint(char *, char *, int); \ No newline at end of file