Anjay Lite
|
#include <defs.h>
A struct containing function pointers to Object-level and Resource-level operation handlers used by the DM (Data Model) interface.
anj_dm_inst_create_t* inst_create |
Creates an Object Instance.
Required to support the LwM2M Create operation.
anj_dm_inst_delete_t* inst_delete |
Deletes an Object Instance.
Required to support the LwM2M Delete operation.
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.
anj_dm_res_execute_t* res_execute |
Executes a Resource.
Required to support the LwM2M Execute operation.
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.
anj_dm_res_inst_delete_t* res_inst_delete |
Deletes a Resource Instance from a multi-instance Resource.
Required to support:
anj_dm_res_read_t* res_read |
Reads a Resource value.
Required to support the LwM2M Read operation.
anj_dm_res_write_t* res_write |
Writes a Resource value.
Required to support the LwM2M Write operation.
anj_dm_transaction_begin_t* transaction_begin |
Called before any transactional LwM2M operation (Create, Write, Delete) involving this Object.
anj_dm_transaction_end_t* transaction_end |
Called after any transactional operation is completed.
Provides information about the result of the operation.
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.