Home | History | Annotate | Download | only in utils

Lines Matching full:config_value

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