Lines Matching refs:uri_scheme_list

56 	char uri_scheme_list[CONFIG_BT_TBS_MAX_SCHEME_LIST_LENGTH];  member
241 static bool uri_scheme_in_list(const char *uri_scheme, const char *uri_scheme_list) in uri_scheme_in_list() argument
244 const size_t scheme_list_len = strlen(uri_scheme_list); in uri_scheme_in_list()
245 const char *uri_scheme_cand = uri_scheme_list; in uri_scheme_in_list()
250 if (uri_scheme_list[i] == ',') { in uri_scheme_in_list()
261 uri_scheme_cand = &uri_scheme_list[i + 1]; in uri_scheme_in_list()
292 if (uri_scheme_in_list(uri_scheme, svc_insts[i].uri_scheme_list)) { in lookup_inst_by_uri_scheme()
299 if (uri_scheme_in_list(uri_scheme, gtbs_inst.uri_scheme_list)) { in lookup_inst_by_uri_scheme()
593 net_buf_simple_add_mem(&read_buf, inst->uri_scheme_list, strlen(inst->uri_scheme_list)); in read_uri_scheme_list()
598 size_t uri_len = strlen(svc_insts[i].uri_scheme_list); in read_uri_scheme_list()
606 net_buf_simple_add_mem(&read_buf, svc_insts[i].uri_scheme_list, uri_len); in read_uri_scheme_list()
1527 (void)utf8_lcpy(inst->uri_scheme_list, param->uri_schemes_supported, in tbs_inst_init_and_register()
1528 sizeof(inst->uri_scheme_list)); in tbs_inst_init_and_register()
2125 char uri_scheme_list[CONFIG_BT_TBS_MAX_SCHEME_LIST_LENGTH]; in bt_tbs_set_uri_scheme_list() local
2136 (void)memset(uri_scheme_list, 0, sizeof(uri_scheme_list)); in bt_tbs_set_uri_scheme_list()
2141 if (len > sizeof(uri_scheme_list) - 1) { in bt_tbs_set_uri_scheme_list()
2145 strcat(uri_scheme_list, ","); in bt_tbs_set_uri_scheme_list()
2149 if (len > sizeof(uri_scheme_list) - 1) { in bt_tbs_set_uri_scheme_list()
2154 strcat(uri_scheme_list, uri_list[i]); in bt_tbs_set_uri_scheme_list()
2157 if (strcmp(inst->uri_scheme_list, uri_scheme_list) == 0) { in bt_tbs_set_uri_scheme_list()
2163 (void)utf8_lcpy(inst->uri_scheme_list, uri_scheme_list, sizeof(inst->uri_scheme_list)); in bt_tbs_set_uri_scheme_list()
2165 LOG_DBG("TBS instance %u uri prefix list is now %s", bearer_index, inst->uri_scheme_list); in bt_tbs_set_uri_scheme_list()
2167 bt_gatt_notify_uuid(NULL, BT_UUID_TBS_URI_LIST, inst->attrs, &inst->uri_scheme_list, in bt_tbs_set_uri_scheme_list()
2168 strlen(inst->uri_scheme_list)); in bt_tbs_set_uri_scheme_list()
2172 net_buf_simple_add_mem(&uri_scheme_buf, gtbs_inst.uri_scheme_list, in bt_tbs_set_uri_scheme_list()
2173 strlen(gtbs_inst.uri_scheme_list)); in bt_tbs_set_uri_scheme_list()
2177 const size_t uri_len = strlen(svc_insts[i].uri_scheme_list); in bt_tbs_set_uri_scheme_list()
2185 net_buf_simple_add_mem(&uri_scheme_buf, svc_insts[i].uri_scheme_list, in bt_tbs_set_uri_scheme_list()