40# define ANJ_DM_ERR_BAD_REQUEST (-(int) ANJ_COAP_CODE_BAD_REQUEST)
46# define ANJ_DM_ERR_UNAUTHORIZED (-(int) ANJ_COAP_CODE_UNAUTHORIZED)
51# define ANJ_DM_ERR_NOT_FOUND (-(int) ANJ_COAP_CODE_NOT_FOUND)
57# define ANJ_DM_ERR_METHOD_NOT_ALLOWED \
58 (-(int) ANJ_COAP_CODE_METHOD_NOT_ALLOWED)
63# define ANJ_DM_ERR_INTERNAL (-(int) ANJ_COAP_CODE_INTERNAL_SERVER_ERROR)
68# define ANJ_DM_ERR_NOT_IMPLEMENTED (-(int) ANJ_COAP_CODE_NOT_IMPLEMENTED)
74# define ANJ_DM_ERR_SERVICE_UNAVAILABLE \
75 (-(int) ANJ_COAP_CODE_SERVICE_UNAVAILABLE)
152 size_t *out_bytes_len,
153 bool *out_is_last_chunk);
183 bool *out_is_last_chunk);
186# define ANJ_INTERNAL_INCLUDE_DM_DEFS
187# include <anj_internal/dm/defs.h>
188# undef ANJ_INTERNAL_INCLUDE_DM_DEFS
Core type and constant definitions for Anjay Lite.
struct anj_struct anj_t
Definition defs.h:136
uint16_t anj_oid_t
Definition defs.h:125
int anj_dm_remove_obj(anj_t *anj, anj_oid_t oid)
int anj_dm_res_read(anj_t *anj, const anj_uri_path_t *path, anj_res_value_t *out_value)
int anj_dm_write_string_chunked(const anj_res_value_t *value, char *buffer, size_t buffer_len, bool *out_is_last_chunk)
int anj_dm_add_obj(anj_t *anj, const anj_dm_obj_t *obj)
int anj_dm_write_bytes_chunked(const anj_res_value_t *value, uint8_t *buffer, size_t buffer_len, size_t *out_bytes_len, bool *out_is_last_chunk)
Data model definitions: resources, instances, objects, and handlers.
Global configuration validation header for Anjay Lite.