anjay
|
#include <core.h>
Data Fields | |
uint16_t | ids [_ANJAY_URI_PATH_MAX_LENGTH] |
char | prefix [ANJAY_GATEWAY_MAX_PREFIX_LEN] |
A data type that represents a data model path.
It may represent a root path, an Object path, an Object Instance path, a Resource path, or a Resource Instance path.
The path is terminated either by an ANJAY_ID_INVALID value, or end-of-array (in case of Resource Instance paths). In case of root, Object and Object Instance paths, the array elements past the terminating invalid ID value are undefined and shall not be used. They are NOT required to be set to ANJAY_ID_INVALID. Paths object that numerically differ only in values past the terminating invalid ID shall be treated as equal (and this is how _anjay_uri_path_equal is implemented).
The ids
array is designed to be safely and meaningfully indexed by anjay_id_type_t values.
uint16_t ids[_ANJAY_URI_PATH_MAX_LENGTH] |
char prefix[ANJAY_GATEWAY_MAX_PREFIX_LEN] |