Skip to content

Commit 7089f94

Browse files
de-nordiccarlescufi
authored andcommitted
mgmt/mcumgr: Deprecate zephyr_ prefixed API
The zephyr_ prefixed functions have been marked __deprecated. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 79f105d commit 7089f94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/zephyr/mgmt/mcumgr/smp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void smp_transport_init(struct smp_transport *smpt,
140140
smp_transport_ud_copy_fn ud_copy_func,
141141
smp_transport_ud_free_fn ud_free_func);
142142

143-
static inline
143+
__deprecated static inline
144144
void zephyr_smp_transport_init(struct zephyr_smp_transport *smpt,
145145
zephyr_smp_transport_out_fn *output_func,
146146
zephyr_smp_transport_get_mtu_fn *get_mtu_func,

subsys/mgmt/mcumgr/smp_internal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct net_buf;
2727
*/
2828
void smp_rx_req(struct smp_transport *smtp, struct net_buf *nb);
2929

30-
static inline
30+
__deprecated static inline
3131
void zephyr_smp_rx_req(struct zephyr_smp_transport *smpt, struct net_buf *nb)
3232
{
3333
smp_rx_req((struct smp_transport *)smpt, nb);
@@ -46,7 +46,7 @@ void zephyr_smp_rx_req(struct zephyr_smp_transport *smpt, struct net_buf *nb)
4646
*/
4747
void *smp_alloc_rsp(const void *req, void *arg);
4848

49-
static inline
49+
__deprecated static inline
5050
void *zephyr_smp_alloc_rsp(const void *req, void *arg)
5151
{
5252
return smp_alloc_rsp(req, arg);
@@ -61,7 +61,7 @@ void *zephyr_smp_alloc_rsp(const void *req, void *arg)
6161
*/
6262
void smp_free_buf(void *buf, void *arg);
6363

64-
static inline
64+
__deprecated static inline
6565
void zephyr_smp_free_buf(void *buf, void *arg)
6666
{
6767
smp_free_buf(buf, arg);

0 commit comments

Comments
 (0)