Lines Matching refs:config_entry
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()
148 config_entry->param_ptr) in loc_set_config_entry()
150 switch (config_entry->param_type) in loc_set_config_entry()
155 *((char*)config_entry->param_ptr) = '\0'; in loc_set_config_entry()
158 strlcpy((char*) config_entry->param_ptr, in loc_set_config_entry()
163 …LOC_LOGD("%s: PARAM %s = %s", __FUNCTION__, config_entry->param_name, (char*)config_entry->param_p… in loc_set_config_entry()
165 if(NULL != config_entry->param_set) in loc_set_config_entry()
167 *(config_entry->param_set) = 1; 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()
175 if(NULL != config_entry->param_set) in loc_set_config_entry()
177 *(config_entry->param_set) = 1; 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()
185 if(NULL != config_entry->param_set) in loc_set_config_entry()
187 *(config_entry->param_set) = 1; in loc_set_config_entry()
191 …LOC_LOGE("%s: PARAM %s parameter type must be n, f, or s", __FUNCTION__, config_entry->param_name); in loc_set_config_entry()