math/include/db/auth.h

25 lines
429 B
C

#ifndef DB_AUTH_H
#define DB_AUTH_H
#ifdef __cplusplus
extern "C"
{
#endif
int open_user_db();
void close_user_db();
int check_user_exists(const char* user_id, int* result);
int set_user_password(const char* user_id, const char* password);
int login(const char* user_id, const char* password, int* result);
int delete_user(const char* user_id);
#ifdef __cplusplus
}
#endif
#endif // DB_AUTH_H