Rev 7 |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
1 |
nishi |
1 |
/* $Id: rv_db.h 13 2024-08-21 12:31:40Z nishi $ */
|
|
|
2 |
|
|
|
3 |
#ifndef __RV_DB_H__
|
|
|
4 |
#define __RV_DB_H__
|
|
|
5 |
|
|
|
6 |
#include <stdbool.h>
|
|
|
7 |
|
|
|
8 |
void rv_init_db(void);
|
|
|
9 |
void rv_close_db(void);
|
|
|
10 |
bool rv_has_user(const char* name);
|
5 |
nishi |
11 |
bool rv_check_password(const char* username, const char* password);
|
|
|
12 |
void rv_save_token(const char* username, const char* token);
|
|
|
13 |
char* rv_who_has_token(const char* token);
|
|
|
14 |
bool rv_has_token(const char* token);
|
7 |
nishi |
15 |
void rv_remove_token(const char* token);
|
13 |
nishi |
16 |
void rv_create_user(const char* username, const char* password);
|
1 |
nishi |
17 |
|
|
|
18 |
#endif
|