R: compromises between process_server_command and callbacks

This commit is contained in:
2026-03-24 12:56:10 +02:00
parent 7755fa0a81
commit dc6a25acac
4 changed files with 18 additions and 9 deletions
+3 -1
View File
@@ -92,7 +92,6 @@ int server_print_message_cb(app_t *app, char *line, int l_len) {
return 0;
}
/* TODO: refactor to process callbacks */
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;
@@ -146,6 +145,9 @@ int process_server_command(char *line, int l_len, app_t *app) {
return 0;
}
q_args->state = S_PREP_SERVER_MESSAGE;
server_print_message_cb(app, line, l_len);
return -1;
}