Lines Matching refs:config_value
95 int loc_set_config_entry(loc_param_s_type* config_entry, loc_param_v_type* config_value) in loc_set_config_entry() argument
98 if(NULL == config_entry || NULL == config_value) in loc_set_config_entry()
104 if (strcmp(config_entry->param_name, config_value->param_name) == 0 && in loc_set_config_entry()
110 if (strcmp(config_value->param_str_value, "NULL") == 0) in loc_set_config_entry()
116 config_value->param_str_value, in loc_set_config_entry()
130 *((int *)config_entry->param_ptr) = config_value->param_int_value; in loc_set_config_entry()
133 config_entry->param_name, config_value->param_int_value); in loc_set_config_entry()
142 *((double *)config_entry->param_ptr) = config_value->param_double_value; in loc_set_config_entry()
145 config_entry->param_name, config_value->param_double_value); in loc_set_config_entry()
190 loc_param_v_type config_value; in loc_fill_conf_item() local
191 memset(&config_value, 0, sizeof(config_value)); in loc_fill_conf_item()
194 config_value.param_name = strtok_r(input_buf, "=", &lasts); in loc_fill_conf_item()
196 if (config_value.param_name) { in loc_fill_conf_item()
197 config_value.param_str_value = strtok_r(NULL, "=", &lasts); in loc_fill_conf_item()
200 if (config_value.param_str_value) { in loc_fill_conf_item()
202 loc_util_trim_space(config_value.param_name); in loc_fill_conf_item()
203 loc_util_trim_space(config_value.param_str_value); in loc_fill_conf_item()
206 if ((strlen(config_value.param_str_value) >=3) && in loc_fill_conf_item()
207 (config_value.param_str_value[0] == '0') && in loc_fill_conf_item()
208 (tolower(config_value.param_str_value[1]) == 'x')) in loc_fill_conf_item()
211 config_value.param_int_value = (int) strtol(&config_value.param_str_value[2], in loc_fill_conf_item()
215 … config_value.param_double_value = (double) atof(config_value.param_str_value); /* float */ in loc_fill_conf_item()
216 config_value.param_int_value = atoi(config_value.param_str_value); /* dec */ in loc_fill_conf_item()
221 if(!loc_set_config_entry(&config_table[i], &config_value)) { in loc_fill_conf_item()
385 loc_param_v_type config_value; in loc_read_conf() local