• Home
  • Raw
  • Download

Lines Matching refs:db

43 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid,
52 void gatts_init_service_db(tGATT_SVC_DB& db, const Uuid& service_uuid, in gatts_init_service_db() argument
54 db.attr_list.reserve(num_handle); in gatts_init_service_db()
60 db.next_handle = s_hdl; in gatts_init_service_db()
61 db.end_handle = s_hdl + num_handle; in gatts_init_service_db()
66 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_init_service_db()
328 uint16_t gatts_add_included_service(tGATT_SVC_DB& db, uint16_t s_handle, in gatts_add_included_service() argument
341 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_included_service()
366 uint16_t gatts_add_characteristic(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_characteristic() argument
374 tGATT_ATTR& char_decl = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_characteristic()
375 tGATT_ATTR& char_val = allocate_attr_in_db(db, char_uuid, perm); in gatts_add_characteristic()
398 uint16_t gatts_add_char_descr(tGATT_SVC_DB& db, tGATT_PERM perm, in gatts_add_char_descr() argument
404 tGATT_ATTR& char_dscptr = allocate_attr_in_db(db, descr_uuid, perm); in gatts_add_char_descr()
653 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid, in allocate_attr_in_db() argument
655 if (db.next_handle >= db.end_handle) { in allocate_attr_in_db()
657 << " wrong number of handles! handle_max = " << +db.end_handle in allocate_attr_in_db()
658 << ", next_handle = " << +db.next_handle; in allocate_attr_in_db()
661 db.attr_list.emplace_back(); in allocate_attr_in_db()
662 tGATT_ATTR& attr = db.attr_list.back(); in allocate_attr_in_db()
663 attr.handle = db.next_handle++; in allocate_attr_in_db()