libyang 5.7.1
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
Loading...
Searching...
No Matches
Plugins: Simple Types Callbacks
Collaboration diagram for Plugins: Simple Types Callbacks:

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.
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, uint64_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, uint64_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, uint64_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.

Detailed Description

Simple functions implementing Type Plugins callbacks handling types that allocate no dynamic value and always generate their canonical value (lyd_value._canonical).

Function Documentation

◆ lyplg_type_compare_simple()

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.

◆ lyplg_type_dup_simple()

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.

◆ lyplg_type_free_simple()

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.

◆ lyplg_type_lyb_size_variable_bits()

LIBYANG_API_DECL void lyplg_type_lyb_size_variable_bits ( const struct lysc_type * type,
enum lyplg_lyb_size_type * size_type,
uint64_t * fixed_size_bits )

Implementation of lyplg_type_lyb_size_clb for a type with variable length in bits.

◆ lyplg_type_lyb_size_variable_bytes()

LIBYANG_API_DECL void lyplg_type_lyb_size_variable_bytes ( const struct lysc_type * type,
enum lyplg_lyb_size_type * size_type,
uint64_t * fixed_size_bits )

Implementation of lyplg_type_lyb_size_clb for a type with variable length rounded to bytes.

◆ lyplg_type_print_simple()

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,
uint64_t * value_size_bits )

Implementation of lyplg_type_print_clb for a generic simple type.

◆ lyplg_type_sort_simple()

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.