From 973edb08ed5ff35644328c244d5d584f44a70591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 11:58:56 +0200 Subject: Implement `add' functions --- db.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'db.h') 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 -- cgit v1.2.3