Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

nsdl: add sn_grs_pop_resource function #110

Merged
merged 1 commit into from
Dec 22, 2016

Conversation

TeroJaasko
Copy link
Contributor

The sn_grs_put_resource() needs a counterpart for removing
the structure from the list. This makes it possible to manage
the lifetime of nsdl structures from client code.

@TeroJaasko
Copy link
Contributor Author

@anttiylitokola @kuggenhoffen @kjbracey-arm @AnttiKauppila

* Used to remove a static or dynamic CoAP resource from lists without deleting it.
* NOTE: This function is a counterpart of sn_nsdl_put_resource().
*
* \param *res Pointer to a structure of type sn_nsdl_resource_info_t that contains the information
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small documentation change. sn_nsdl_resource_info_t --> sn_nsdl_dynamic_resource_parameters_s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, fixed that.

The sn_grs_put_resource() needs a counterpart for removing
the structure from the list. This makes it possible to manage
the lifetime of nsdl structures from client code.
@TeroJaasko TeroJaasko force-pushed the counterpart_of_put_api branch from e53e260 to a5e35ef Compare December 22, 2016 08:41
@TeroJaasko TeroJaasko merged commit 858d9f6 into memory_optimizations Dec 22, 2016
@TeroJaasko TeroJaasko deleted the counterpart_of_put_api branch December 22, 2016 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants