introduce command flags system, mark command sources, warning fixes

This commit is contained in:
openshwprojects
2022-05-05 23:04:18 +02:00
parent 231e03c132
commit e95d4695e0
27 changed files with 96 additions and 87 deletions

View File

@ -1063,7 +1063,7 @@ static int http_rest_post_channels(http_request_t *request){
static int http_rest_post_cmd(http_request_t *request){
char *cmd = request->bodystart;
CMD_ExecuteCommand(cmd);
CMD_ExecuteCommand(cmd, COMMAND_FLAG_SOURCE_CONSOLE);
return http_rest_error(request, 200, "OK");
}