Skip to content

Commit d3524e2

Browse files
doxygen
1 parent 8f90875 commit d3524e2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

features/FEATURE_BLE/ble/generic/SecurityDb.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ class SecurityDb {
661661
virtual void set_restore(bool reload) { };
662662

663663
private:
664+
/**
665+
* Get an entry for a new connection not present in the db yet. This will find a free entry
666+
* or use a disconnected entry by reseting all the stored information.
667+
* @return empty entry for the new connection
668+
*/
664669
virtual SecurityDistributionFlags_t* get_free_entry_flags() {
665670
/* get a free one if available */
666671
SecurityDistributionFlags_t* match = NULL;
@@ -690,10 +695,23 @@ class SecurityDb {
690695
return match;
691696
}
692697

698+
/**
699+
* How many entries can be stored in the databes.
700+
* @return max number of entries
701+
*/
693702
virtual uint8_t get_entry_count() = 0;
694703

704+
/**
705+
* Return database entry based on its index.
706+
* @param index index from 0 to get_entry_count()
707+
* @return databse entry stored at index
708+
*/
695709
virtual SecurityDistributionFlags_t* get_entry_handle_by_index(uint8_t index) = 0;
696710

711+
/**
712+
* Delete all the information.
713+
* @param db_handle handle for the entry to be reset
714+
*/
697715
virtual void reset_entry(entry_handle_t db_handle) = 0;
698716

699717
virtual SecurityEntryIdentity_t* read_in_entry_peer_identity(entry_handle_t db_handle) = 0;

0 commit comments

Comments
 (0)