Skip to content
Permalink
Browse files

net: lwm2m: remove unique lwm2m_engine_obj_delete_cb_t definition

Instead, let's use lwm2m_engine_user_cb_t which is used elsewhere and
matches the same signature.

Signed-off-by: Michael Scott <mike@foundries.io>
  • Loading branch information...
mike-scott authored and jukkar committed Jul 29, 2019
1 parent 30f31fb commit ca308ec479d1157701e870a2934f8cb57cb65602
Showing with 1 addition and 2 deletions.
  1. +1 −2 subsys/net/lib/lwm2m/lwm2m_object.h
@@ -171,7 +171,6 @@ struct lwm2m_engine_obj_field {

typedef struct lwm2m_engine_obj_inst *
(*lwm2m_engine_obj_create_cb_t)(u16_t obj_inst_id);
typedef int (*lwm2m_engine_obj_delete_cb_t)(u16_t obj_inst_id);

struct lwm2m_engine_obj {
/* object list */
@@ -182,7 +181,7 @@ struct lwm2m_engine_obj {

/* object event callbacks */
lwm2m_engine_obj_create_cb_t create_cb;
lwm2m_engine_obj_delete_cb_t delete_cb;
lwm2m_engine_user_cb_t delete_cb;
lwm2m_engine_user_cb_t user_create_cb;
lwm2m_engine_user_cb_t user_delete_cb;

0 comments on commit ca308ec

Please sign in to comment.
You can’t perform that action at this time.