Lines Matching refs:db
45 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid,
54 void gatts_init_service_db(tGATT_SVC_DB& db, const Uuid& service_uuid, in gatts_init_service_db() argument
56 db.attr_list.reserve(num_handle); in gatts_init_service_db()
62 db.next_handle = s_hdl; in gatts_init_service_db()
63 db.end_handle = s_hdl + num_handle; in gatts_init_service_db()
68 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_init_service_db()
326 uint16_t gatts_add_included_service(tGATT_SVC_DB& db, uint16_t s_handle, in gatts_add_included_service() argument
339 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_included_service()
365 uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_characteristic() argument
373 tGATT_ATTR& char_decl = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_characteristic()
374 tGATT_ATTR& char_val = allocate_attr_in_db(db, char_uuid, perm); in gatts_add_characteristic()
397 tGATT_SVC_DB& db, uint16_t extended_properties) { in gatts_add_char_ext_prop_descr() argument
403 tGATT_ATTR& char_dscptr = allocate_attr_in_db(db, descr_uuid, GATT_PERM_READ); in gatts_add_char_ext_prop_descr()
425 uint16_t gatts_add_char_descr(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_char_descr() argument
431 tGATT_ATTR& char_dscptr = allocate_attr_in_db(db, descr_uuid, perm); in gatts_add_char_descr()
681 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid, in allocate_attr_in_db() argument
683 if (db.next_handle >= db.end_handle) { in allocate_attr_in_db()
685 << " wrong number of handles! handle_max = " << +db.end_handle in allocate_attr_in_db()
686 << ", next_handle = " << +db.next_handle; in allocate_attr_in_db()
689 db.attr_list.emplace_back(); in allocate_attr_in_db()
690 tGATT_ATTR& attr = db.attr_list.back(); in allocate_attr_in_db()
691 attr.handle = db.next_handle++; in allocate_attr_in_db()