|
|
|
|
@ -1157,6 +1157,7 @@ typedef struct yon_config_parameter
|
|
|
|
|
int ignore;
|
|
|
|
|
char *save_command;
|
|
|
|
|
char *load_command;
|
|
|
|
|
int compare_ignore;
|
|
|
|
|
} yon_config_parameter;
|
|
|
|
|
|
|
|
|
|
yon_config_parameter *yon_config_parameter_new_with_data(char *key, void *data){
|
|
|
|
|
@ -1172,6 +1173,7 @@ yon_config_parameter *yon_config_parameter_new_with_data(char *key, void *data){
|
|
|
|
|
param->ignore=0;
|
|
|
|
|
param->save_command=NULL;
|
|
|
|
|
param->load_command=NULL;
|
|
|
|
|
param->compare_ignore=0;
|
|
|
|
|
return param;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1534,6 +1536,22 @@ int yon_config_load_register(YON_CONFIG_TYPE config_type,char *section,char *par
|
|
|
|
|
} else return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_config_compare_ignore_set(char *key, int status){
|
|
|
|
|
dictionary *cur = yon_dictionary_get((dictionary**)&__yon__config__strings,key);
|
|
|
|
|
if (cur){
|
|
|
|
|
((yon_config_parameter*)cur)->compare_ignore=!!status;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int yon_config_compare_ignore_get(char *key){
|
|
|
|
|
|
|
|
|
|
dictionary *cur = yon_dictionary_get((dictionary**)&__yon__config__strings,key);
|
|
|
|
|
if (cur){
|
|
|
|
|
return ((yon_config_parameter*)cur)->compare_ignore;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int yon_config_remove_by_key(char *key){
|
|
|
|
|
check_config{
|
|
|
|
|
dictionary *dict = yon_dictionary_get((dictionary**)&__yon__config__strings,key);
|
|
|
|
|
|