Changed yon_config_update_by_list function

pull/91/head
parent 3dad86270a
commit 40bd61a4a5

@ -1547,14 +1547,14 @@ int yon_config_update_by_key(char *key){
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;
check_config{
int params_size=0;
yon_config_remove_by_list(keys,size);
config_str parameters = yon_config_get_load_parameters_by_list(&params_size,keys,size);
if (params_size&&parameters){
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 *command = yon_char_unite(ubconfig_load_command(path), parameters_str, NULL);
yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL);

@ -1562,7 +1562,7 @@ int yon_config_update_by_key(char *key);
/// @param key Parameters key list.
/// @param size size of parameters keys list.
/// @return TRUE if parameter successfully updated, FALSE if parameter doesn't registered in configuration
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);
/// @brief Update parameters value from configuration.
/// @param config_path Configuration path where from to update parameter.

Loading…
Cancel
Save