finishes registration process
This commit is contained in:
@@ -20,7 +20,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
uint32_t id;
|
||||
uint32_t user_id;
|
||||
char name[64];
|
||||
char name[FILE_NAME_LEN];
|
||||
} i_get_file_db;
|
||||
|
||||
enum sort_direction { ASC, DESC };
|
||||
@@ -28,17 +28,24 @@ enum sort_by { ID, NAME, CREATED_AT, USER_ID };
|
||||
|
||||
typedef struct {
|
||||
uint32_t user_id; // TODO: implement
|
||||
char name[12]; // TODO: implement
|
||||
char name[FILE_NAME_LEN]; // TODO: implement
|
||||
uint32_t limit;
|
||||
uint32_t offset;
|
||||
enum sort_by sort_by;
|
||||
enum sort_direction sort_direction;
|
||||
} i_get_files_db;
|
||||
|
||||
typedef struct {
|
||||
char uname[UNAME_LEN];
|
||||
char pass[PASS_LEN];
|
||||
char email[EMAIL_LEN];
|
||||
} i_db_user_create;
|
||||
|
||||
int32_t init_db_connection();
|
||||
int32_t db_save_file(session *s);
|
||||
int32_t db_user_auth(i_auth_t *credentials, o_auth_t *response);
|
||||
s_file_t *db_get_file(i_get_file_db *arg);
|
||||
uint64_t db_get_files_data(i_get_files_db *arg, fl_t **fl_start,
|
||||
uint64_t *full_count);
|
||||
int32_t db_user_create(i_db_user_create *);
|
||||
#endif
|
||||
Reference in New Issue
Block a user