![]() |
libyang
4.0.0
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
|
Functions | |
LIBYANG_API_DECL LY_ERR | lyplg_type_compare_simple (const struct ly_ctx *ctx, const struct lyd_value *val1, const struct lyd_value *val2) |
Implementation of lyplg_type_compare_clb for a generic simple type. More... | |
LIBYANG_API_DECL LY_ERR | lyplg_type_dup_simple (const struct ly_ctx *ctx, const struct lyd_value *original, struct lyd_value *dup) |
Implementation of lyplg_type_dup_clb for a generic simple type. More... | |
LIBYANG_API_DECL void | lyplg_type_free_simple (const struct ly_ctx *ctx, struct lyd_value *value) |
Implementation of lyplg_type_free_clb for a generic simple type. More... | |
LIBYANG_API_DECL void | lyplg_type_lyb_size_variable_bits (const struct lysc_type *type, enum lyplg_lyb_size_type *size_type, uint32_t *fixed_size_bits) |
Implementation of lyplg_type_lyb_size_clb for a type with variable length in bits. More... | |
LIBYANG_API_DECL void | lyplg_type_lyb_size_variable_bytes (const struct lysc_type *type, enum lyplg_lyb_size_type *size_type, uint32_t *fixed_size_bits) |
Implementation of lyplg_type_lyb_size_clb for a type with variable length rounded to bytes. More... | |
LIBYANG_API_DECL const void * | lyplg_type_print_simple (const struct ly_ctx *ctx, const struct lyd_value *value, LY_VALUE_FORMAT format, void *prefix_data, ly_bool *dynamic, uint32_t *value_size_bits) |
Implementation of lyplg_type_print_clb for a generic simple type. More... | |
LIBYANG_API_DEF int | lyplg_type_sort_simple (const struct ly_ctx *ctx, const struct lyd_value *val1, const struct lyd_value *val2) |
Implementation of lyplg_type_sort_clb for a generic simple type. More... | |
Simple functions implementing Type Plugins callbacks handling types that allocate no dynamic value and always generate their canonical value (lyd_value._canonical).
LIBYANG_API_DECL LY_ERR lyplg_type_compare_simple | ( | const struct ly_ctx * | ctx, |
const struct lyd_value * | val1, | ||
const struct lyd_value * | val2 | ||
) |
Implementation of lyplg_type_compare_clb for a generic simple type.
LIBYANG_API_DECL LY_ERR lyplg_type_dup_simple | ( | const struct ly_ctx * | ctx, |
const struct lyd_value * | original, | ||
struct lyd_value * | dup | ||
) |
Implementation of lyplg_type_dup_clb for a generic simple type.
LIBYANG_API_DECL void lyplg_type_free_simple | ( | const struct ly_ctx * | ctx, |
struct lyd_value * | value | ||
) |
Implementation of lyplg_type_free_clb for a generic simple type.
LIBYANG_API_DECL void lyplg_type_lyb_size_variable_bits | ( | const struct lysc_type * | type, |
enum lyplg_lyb_size_type * | size_type, | ||
uint32_t * | fixed_size_bits | ||
) |
Implementation of lyplg_type_lyb_size_clb for a type with variable length in bits.
LIBYANG_API_DECL void lyplg_type_lyb_size_variable_bytes | ( | const struct lysc_type * | type, |
enum lyplg_lyb_size_type * | size_type, | ||
uint32_t * | fixed_size_bits | ||
) |
Implementation of lyplg_type_lyb_size_clb for a type with variable length rounded to bytes.
LIBYANG_API_DECL const void* lyplg_type_print_simple | ( | const struct ly_ctx * | ctx, |
const struct lyd_value * | value, | ||
LY_VALUE_FORMAT | format, | ||
void * | prefix_data, | ||
ly_bool * | dynamic, | ||
uint32_t * | value_size_bits | ||
) |
Implementation of lyplg_type_print_clb for a generic simple type.
LIBYANG_API_DEF int lyplg_type_sort_simple | ( | const struct ly_ctx * | ctx, |
const struct lyd_value * | val1, | ||
const struct lyd_value * | val2 | ||
) |
Implementation of lyplg_type_sort_clb for a generic simple type.