Skip to content

Commit 33efe43

Browse files
committed
Doc update
1 parent 7c3a736 commit 33efe43

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

common/resource_based_routing.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,22 @@ BmErr add_neighbor_resource(const char *topic, BmTopicLength len,
170170
return err;
171171
}
172172

173+
/*!
174+
@brief Will remove resource information from data structures
175+
176+
@details If a resource is no longer of interest from a neighbor, it will be
177+
removed from the associated hash table. If there are no ports that
178+
express interest in this resource and the device itself does not,
179+
then the resource will be removed from the trie.
180+
181+
@param topic topic string to be removed from trie
182+
@param len length of topic in bytes
183+
@param port_num port number the request to remove was received on, if set to
184+
0, the element is not removed from the hash table
185+
@param element resource trie element to remove
186+
187+
@return
188+
*/
173189
static BmErr remove_from_data_structs(const char *topic, BmTopicLength len,
174190
uint8_t port_num,
175191
ResourceTrieElement *element) {

0 commit comments

Comments
 (0)