Subversion Repositories RepoView

Rev

Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 7
Line 1... Line 1...
1
/* $Id: rv_db.h 5 2024-08-20 22:43:56Z nishi $ */
1
/* $Id: rv_db.h 7 2024-08-21 01:12:44Z nishi $ */
2
 
2
 
3
#ifndef __RV_DB_H__
3
#ifndef __RV_DB_H__
4
#define __RV_DB_H__
4
#define __RV_DB_H__
5
 
5
 
6
#include <stdbool.h>
6
#include <stdbool.h>
Line 10... Line 10...
10
bool rv_has_user(const char* name);
10
bool rv_has_user(const char* name);
11
bool rv_check_password(const char* username, const char* password);
11
bool rv_check_password(const char* username, const char* password);
12
void rv_save_token(const char* username, const char* token);
12
void rv_save_token(const char* username, const char* token);
13
char* rv_who_has_token(const char* token);
13
char* rv_who_has_token(const char* token);
14
bool rv_has_token(const char* token);
14
bool rv_has_token(const char* token);
-
 
15
void rv_remove_token(const char* token);
15
 
16
 
16
#endif
17
#endif