|
|
|
@ -1547,14 +1547,14 @@ int yon_config_update_by_key(char *key){
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int yon_config_update_by_list(config_str keys, size_t size){
|
|
|
|
int yon_config_update_by_list(char *config_path, config_str keys, size_t size){
|
|
|
|
if (!size||!keys) return 0;
|
|
|
|
if (!size||!keys) return 0;
|
|
|
|
check_config{
|
|
|
|
check_config{
|
|
|
|
int params_size=0;
|
|
|
|
int params_size=0;
|
|
|
|
yon_config_remove_by_list(keys,size);
|
|
|
|
yon_config_remove_by_list(keys,size);
|
|
|
|
config_str parameters = yon_config_get_load_parameters_by_list(¶ms_size,keys,size);
|
|
|
|
config_str parameters = yon_config_get_load_parameters_by_list(¶ms_size,keys,size);
|
|
|
|
if (params_size&¶meters){
|
|
|
|
if (params_size&¶meters){
|
|
|
|
char *path = yon_config_command_get_path(config_last_load_command);
|
|
|
|
char *path = config_path;
|
|
|
|
char *parameters_str = yon_char_parsed_to_string(parameters,params_size," ");
|
|
|
|
char *parameters_str = yon_char_parsed_to_string(parameters,params_size," ");
|
|
|
|
char *command = yon_char_unite(ubconfig_load_command(path), parameters_str, NULL);
|
|
|
|
char *command = yon_char_unite(ubconfig_load_command(path), parameters_str, NULL);
|
|
|
|
yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL);
|
|
|
|
yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL);
|
|
|
|
|