Lines Matching refs:svc
68 std::vector<btgatt_db_element_t> svc; in AddService() local
70 svc.push_back({.type = (service.primary() ? BTGATT_DB_PRIMARY_SERVICE in AddService()
75 svc.push_back({.type = BTGATT_DB_CHARACTERISTIC, in AddService()
80 svc.push_back({.type = BTGATT_DB_DESCRIPTOR, in AddService()
86 svc.push_back({.type = BTGATT_DB_INCLUDED_SERVICE, in AddService()
93 server_id_, svc); in AddService()
295 std::vector<btgatt_db_element_t> svc) { in ServiceAddedCallback() argument
301 << " first handle: " << svc[0].attribute_handle in ServiceAddedCallback()
302 << " service UUID: " << UUID(svc[0].uuid).ToString() in ServiceAddedCallback()
303 << " count: " << svc.size(); in ServiceAddedCallback()
305 Service service(svc[0].attribute_handle, true, UUID(svc[0].uuid), {}, {}); in ServiceAddedCallback()
307 for (size_t i = 1; i < svc.size(); i++) { in ServiceAddedCallback()
308 const btgatt_db_element_t& curr = svc[i]; in ServiceAddedCallback()
320 } else if (svc[i].type == BTGATT_DB_INCLUDED_SERVICE) { in ServiceAddedCallback()