• Home
  • Raw
  • Download

Lines Matching refs:config_value

139 void loc_set_config_entry(loc_param_s_type* config_entry, loc_param_v_type* config_value)  in loc_set_config_entry()  argument
141 if(NULL == config_entry || NULL == config_value) in loc_set_config_entry()
147 if (strcmp(config_entry->param_name, config_value->param_name) == 0 && in loc_set_config_entry()
153 if (strcmp(config_value->param_str_value, "NULL") == 0) in loc_set_config_entry()
159 config_value->param_str_value, in loc_set_config_entry()
171 *((int *)config_entry->param_ptr) = config_value->param_int_value; in loc_set_config_entry()
173 …LOC_LOGD("%s: PARAM %s = %d", __FUNCTION__, config_entry->param_name, config_value->param_int_valu… in loc_set_config_entry()
181 *((double *)config_entry->param_ptr) = config_value->param_double_value; in loc_set_config_entry()
183 …LOC_LOGD("%s: PARAM %s = %f", __FUNCTION__, config_entry->param_name, config_value->param_double_v… in loc_set_config_entry()
223 loc_param_v_type config_value; in loc_read_conf() local
248 memset(&config_value, 0, sizeof(config_value)); in loc_read_conf()
251 config_value.param_name = strtok_r(input_buf, "=", &lasts); in loc_read_conf()
252 if (config_value.param_name == NULL) continue; /* skip lines that do not contain "=" */ in loc_read_conf()
253 config_value.param_str_value = strtok_r(NULL, "=", &lasts); in loc_read_conf()
254 …if (config_value.param_str_value == NULL) continue; /* skip lines that do not contain two operand… in loc_read_conf()
257 trim_space(config_value.param_name); in loc_read_conf()
258 trim_space(config_value.param_str_value); in loc_read_conf()
261 if (config_value.param_str_value[0] == '0' && tolower(config_value.param_str_value[1]) == 'x') in loc_read_conf()
264config_value.param_int_value = (int) strtol(&config_value.param_str_value[2], (char**) NULL, 16); in loc_read_conf()
267 config_value.param_double_value = (double) atof(config_value.param_str_value); /* float */ in loc_read_conf()
268 config_value.param_int_value = atoi(config_value.param_str_value); /* dec */ in loc_read_conf()
273 loc_set_config_entry(&config_table[i], &config_value); in loc_read_conf()
278 loc_set_config_entry(&loc_parameter_table[i], &config_value); in loc_read_conf()