File attr_storage.h
↰ Parent directory (include_public/anjay)
Definition (include_public/anjay/attr_storage.h)
Detailed Description
Automatic Attribute Storage module.
This feature is enabled using the ANJAY_WITH_ATTR_STORAGE compile-time feature macro. It makes it possible to automatically manage attributes for LwM2M Objects, their instances and resources.
In accordance to the LwM2M specification, there are three levels on which attributes may be stored:
Resource level (Typedef anjay_dm_resource_read_attrs_t, Typedef anjay_dm_resource_write_attrs_t)
Instance level (Typedef anjay_dm_instance_read_default_attrs_t, Typedef anjay_dm_instance_write_default_attrs_t)
Object level (Typedef anjay_dm_object_read_default_attrs_t, Typedef anjay_dm_object_write_default_attrs_t)
If at least one of either read or write handlers is provided in a given object for a given level, attribute handling on that level will not be altered, but instead any calls will be directly forwarded to the original handlers.
If both read and write handlers are left as NULL in a given object for a given level, attribute storage will be handled by the Attribute Storage module instead, implementing both handlers.
Includes
anjay/dm.h(File dm.h)avsystem/commons/avs_stream.h