cancel download: changes idea

This commit is contained in:
2026-06-04 17:49:00 +03:00
parent 1ce2cccf59
commit ae81b806eb
5 changed files with 2 additions and 11 deletions
-1
View File
@@ -40,7 +40,6 @@ enum state {
S_PREP_SERVER_MESSAGE,
S_PRINT_SERVER_MESSAGE,
S_FILE_LIST,
S_WAIT_SERVER_READY,
S_WAIT_PASS,
/* S_FILE_SELECT, */
S_DOWNLOAD_FILE,
-1
View File
@@ -35,7 +35,6 @@ void dwn_pr_modal_cb(w_cb_args_t *args) {
server_send_string(app->query_args, "cancel\n");
FILE_CLEAN(app);
d->needs_destroy = true;
app->query_args->state = S_WAIT_SERVER_READY;
}
}
-2
View File
@@ -216,8 +216,6 @@ int process_query(app_t *app) {
case S_PREP_SERVER_MESSAGE:
process_command(app, server_print_message_cb);
break;
case S_WAIT_SERVER_READY:
/* TODO: implement */
default:
break;
}
-6
View File
@@ -93,8 +93,6 @@ int server_print_message_cb(app_t *app, char *line, int l_len) {
return 0;
}
/* TODO: function that do all extraction stuff and compares the buf with a given world (in arg) */
int process_server_command(char *line, int l_len, app_t *app) {
int ws_pos = l_len;
query_args_t *q_args = app->query_args;
@@ -191,10 +189,6 @@ void ask_uname_and_password(params_t *params) {
}
}
void wait_server_ready(params_t *params) {
}
void ask_register(params_t *params, char *email) {
size_t lsize;
char *bufptr = NULL;