Anjay Lite
Loading...
Searching...
No Matches
anj_dm_handlers_struct Struct Reference

#include <defs.h>

Data Fields

anj_dm_inst_create_tinst_create
 
anj_dm_inst_delete_tinst_delete
 
anj_dm_inst_reset_tinst_reset
 
anj_dm_transaction_begin_ttransaction_begin
 
anj_dm_transaction_validate_ttransaction_validate
 
anj_dm_transaction_end_ttransaction_end
 
anj_dm_res_read_tres_read
 
anj_dm_res_write_tres_write
 
anj_dm_res_execute_tres_execute
 
anj_dm_res_inst_create_tres_inst_create
 
anj_dm_res_inst_delete_tres_inst_delete
 

Detailed Description

A struct containing function pointers to Object-level and Resource-level operation handlers used by the DM (Data Model) interface.

Field Documentation

◆ inst_create

anj_dm_inst_create_t* inst_create

Creates an Object Instance.

Required to support the LwM2M Create operation.

◆ inst_delete

anj_dm_inst_delete_t* inst_delete

Deletes an Object Instance.

Required to support the LwM2M Delete operation.

◆ inst_reset

anj_dm_inst_reset_t* inst_reset

Resets an Object Instance to its default state.

Required to support the LwM2M Write operation in Replace mode. If not defined, Replace mode will fail.

◆ res_execute

anj_dm_res_execute_t* res_execute

Executes a Resource.

Required to support the LwM2M Execute operation.

◆ res_inst_create

anj_dm_res_inst_create_t* res_inst_create

Creates a Resource Instance in a multi-instance Resource.

Required to support the LwM2M Write operation when new instances must be created. If not defined, and creation is required, an error will be returned to the LwM2M server.

◆ res_inst_delete

anj_dm_res_inst_delete_t* res_inst_delete

Deletes a Resource Instance from a multi-instance Resource.

Required to support:

  • LwM2M Delete operations targeting individual Resource Instances,
  • LwM2M Write Replace operations that remove all instances.

◆ res_read

anj_dm_res_read_t* res_read

Reads a Resource value.

Required to support the LwM2M Read operation.

◆ res_write

anj_dm_res_write_t* res_write

Writes a Resource value.

Required to support the LwM2M Write operation.

◆ transaction_begin

anj_dm_transaction_begin_t* transaction_begin

Called before any transactional LwM2M operation (Create, Write, Delete) involving this Object.

◆ transaction_end

anj_dm_transaction_end_t* transaction_end

Called after any transactional operation is completed.

Provides information about the result of the operation.

◆ transaction_validate

anj_dm_transaction_validate_t* transaction_validate

Called after a transactional operation that modifies this Object.

The return value determines whether the Object's state is valid and whether the operation can be completed.


The documentation for this struct was generated from the following file: