Lines Matching refs:section

257 bool btif_config_has_section(const char *section) {  in btif_config_has_section()  argument
259 assert(section != NULL); in btif_config_has_section()
262 bool ret = config_has_section(config, section); in btif_config_has_section()
268 bool btif_config_exist(const char *section, const char *key) { in btif_config_exist() argument
270 assert(section != NULL); in btif_config_exist()
274 bool ret = config_has_key(config, section, key); in btif_config_exist()
280 bool btif_config_get_int(const char *section, const char *key, int *value) { in btif_config_get_int() argument
282 assert(section != NULL); in btif_config_get_int()
287 bool ret = config_has_key(config, section, key); in btif_config_get_int()
289 *value = config_get_int(config, section, key, *value); in btif_config_get_int()
295 bool btif_config_set_int(const char *section, const char *key, int value) { in btif_config_set_int() argument
297 assert(section != NULL); in btif_config_set_int()
301 config_set_int(config, section, key, value); in btif_config_set_int()
307 bool btif_config_get_str(const char *section, const char *key, char *value, int *size_bytes) { in btif_config_get_str() argument
309 assert(section != NULL); in btif_config_get_str()
315 const char *stored_value = config_get_string(config, section, key, NULL); in btif_config_get_str()
327 bool btif_config_set_str(const char *section, const char *key, const char *value) { in btif_config_set_str() argument
329 assert(section != NULL); in btif_config_set_str()
334 config_set_string(config, section, key, value); in btif_config_set_str()
340 bool btif_config_get_bin(const char *section, const char *key, uint8_t *value, size_t *length) { in btif_config_get_bin() argument
342 assert(section != NULL); in btif_config_get_bin()
348 const char *value_str = config_get_string(config, section, key, NULL); in btif_config_get_bin()
368 size_t btif_config_get_bin_length(const char *section, const char *key) { in btif_config_get_bin_length() argument
370 assert(section != NULL); in btif_config_get_bin_length()
374 const char *value_str = config_get_string(config, section, key, NULL); in btif_config_get_bin_length()
384 bool btif_config_set_bin(const char *section, const char *key, const uint8_t *value, size_t length)… in btif_config_set_bin() argument
388 assert(section != NULL); in btif_config_set_bin()
402 config_set_string(config, section, key, str); in btif_config_set_bin()
419 …t btif_config_section_iter_t *btif_config_section_next(const btif_config_section_iter_t *section) { in btif_config_section_next() argument
421 assert(section != NULL); in btif_config_section_next()
422 …rn (const btif_config_section_iter_t *)config_section_next((const config_section_node_t *)section); in btif_config_section_next()
425 const char *btif_config_section_name(const btif_config_section_iter_t *section) { in btif_config_section_name() argument
427 assert(section != NULL); in btif_config_section_name()
428 return config_section_name((const config_section_node_t *)section); in btif_config_section_name()
431 bool btif_config_remove(const char *section, const char *key) { in btif_config_remove() argument
433 assert(section != NULL); in btif_config_remove()
437 bool ret = config_remove_key(config, section, key); in btif_config_remove()
508 const char *section = config_section_name(snode); in btif_config_remove_unpaired() local
509 if (string_is_bdaddr(section)) { in btif_config_remove_unpaired()
510 if (!config_has_key(conf, section, "LinkKey") && in btif_config_remove_unpaired()
511 !config_has_key(conf, section, "LE_KEY_PENC") && in btif_config_remove_unpaired()
512 !config_has_key(conf, section, "LE_KEY_PID") && in btif_config_remove_unpaired()
513 !config_has_key(conf, section, "LE_KEY_PCSRK") && in btif_config_remove_unpaired()
514 !config_has_key(conf, section, "LE_KEY_LENC") && in btif_config_remove_unpaired()
515 !config_has_key(conf, section, "LE_KEY_LCSRK")) { in btif_config_remove_unpaired()
517 config_remove_section(conf, section); in btif_config_remove_unpaired()
566 const char *section = config_section_name(snode); in btif_config_remove_restricted() local
567 if (string_is_bdaddr(section) && config_has_key(config, section, "Restricted")) { in btif_config_remove_restricted()
568 BTIF_TRACE_DEBUG("%s: Removing restricted device %s", __func__, section); in btif_config_remove_restricted()
569 config_remove_section(config, section); in btif_config_remove_restricted()