diff options
Diffstat (limited to 'db.h')
-rw-r--r-- | db.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -59,6 +59,7 @@ i64 db_find_user(const char *name); // -1 if not found struct db_strings_list db_user_tokens(i64 userid); bool db_add_token(i64 userid,const char *token); bool db_delete_token(i64 userid,const char *token); +bool db_user_knows_user(i64 userid1,i64 userid2); // both users have a common room i64 db_create_message(i64 roomid,i64 userid,i64 timestamp,i64 replyid,const char *message); // returns msgid struct db_message_list db_get_messages(i64 roomid,i64 count); // gets latest `count` messages in rev. chron. order |