Lines Matching refs:section
157 bool btif_config_has_section(const char *section) {
159 assert(section != NULL);
162 bool ret = config_has_section(config, section);
168 bool btif_config_exist(const char *section, const char *key) {
170 assert(section != NULL);
174 bool ret = config_has_key(config, section, key);
180 bool btif_config_get_int(const char *section, const char *key, int *value) {
182 assert(section != NULL);
187 bool ret = config_has_key(config, section, key);
189 *value = config_get_int(config, section, key, *value);
195 bool btif_config_set_int(const char *section, const char *key, int value) {
197 assert(section != NULL);
201 config_set_int(config, section, key, value);
207 bool btif_config_get_str(const char *section, const char *key, char *value, int *size_bytes) {
209 assert(section != NULL);
215 const char *stored_value = config_get_string(config, section, key, NULL);
227 bool btif_config_set_str(const char *section, const char *key, const char *value) {
229 assert(section != NULL);
234 config_set_string(config, section, key, value);
240 bool btif_config_get_bin(const char *section, const char *key, uint8_t *value, size_t *length) {
242 assert(section != NULL);
248 const char *value_str = config_get_string(config, section, key, NULL);
268 size_t btif_config_get_bin_length(const char *section, const char *key) {
270 assert(section != NULL);
274 const char *value_str = config_get_string(config, section, key, NULL);
284 bool btif_config_set_bin(const char *section, const char *key, const uint8_t *value, size_t length) {
288 assert(section != NULL);
304 config_set_string(config, section, key, str);
321 const btif_config_section_iter_t *btif_config_section_next(const btif_config_section_iter_t *section) {
323 assert(section != NULL);
324 return (const btif_config_section_iter_t *)config_section_next((const config_section_node_t *)section);
327 const char *btif_config_section_name(const btif_config_section_iter_t *section) {
329 assert(section != NULL);
330 return config_section_name((const config_section_node_t *)section);
333 bool btif_config_remove(const char *section, const char *key) {
335 assert(section != NULL);
339 bool ret = config_remove_key(config, section, key);
400 const char *section = config_section_name(snode);
401 if (!string_is_bdaddr(section))
404 if (config_has_key(config, section, "LinkKey") ||
405 config_has_key(config, section, "LE_KEY_PENC") ||
406 config_has_key(config, section, "LE_KEY_PID") ||
407 config_has_key(config, section, "LE_KEY_PCSRK") ||
408 config_has_key(config, section, "LE_KEY_LENC") ||
409 config_has_key(config, section, "LE_KEY_LCSRK"))
413 keys[num_keys++] = section;