aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
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