Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: Use deprecations in code rather than comments #18650

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
suit/coap: Use in-code deprecation annotation
  • Loading branch information
chrysn committed Oct 3, 2022
commit f3da228a09af10e051deb44cfc70bc8bc73c6332
9 changes: 3 additions & 6 deletions sys/include/suit/transport/coap.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@

#include "net/nanocoap.h"
#include "suit/transport/worker.h"
#include "kernel_defines.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Start SUIT CoAP thread
*
* @deprecated This is an alias for @ref suit_worker_run and will be removed
* after after the 2023.01 release.
*/
DEPRECATED("This is an alias for suit_worker_run and will be removed after after the 2023.01 release.")
chrysn marked this conversation as resolved.
Show resolved Hide resolved
static inline void suit_coap_run(void)
{
suit_worker_run();
Expand Down Expand Up @@ -89,12 +88,10 @@ extern const coap_resource_subtree_t coap_resource_subtree_suit;
/**
* @brief Trigger a SUIT udate
*
* @deprecated This is an alias for @ref suit_worker_trigger and will be removed
* after after the 2023.01 release.
*
* @param[in] url url pointer containing the full coap url to the manifest
* @param[in] len length of the url
*/
DEPRECATED("This is an alias for suit_worker_trigger and will be removed after after the 2023.01 release.")
chrysn marked this conversation as resolved.
Show resolved Hide resolved
static inline void suit_coap_trigger(const uint8_t *url, size_t len)
{
suit_worker_trigger((const char *)url, len);
Expand Down