15 #ifndef LY_PLUGINS_EXTS_H_
16 #define LY_PLUGINS_EXTS_H_
101 #define LYPLG_EXT_API_VERSION 1
109 #define LYPLG_EXTENSIONS \
110 uint32_t plugins_extensions_apiver__ = LYPLG_EXT_API_VERSION; \
111 const struct lyplg_ext_record plugins_extensions__[]
208 const char *format, ...);
Extension plugin implementing various aspects of a YANG extension.
Generic structure for a data node.
lyplg_ext_schema_printer_clb sprinter
uint8_t ly_bool
Type to indicate boolean value.
libyang representation of YANG schema trees.
LY_ERR(* lyplg_ext_schema_printer_clb)(struct lyspr_ctx *ctx, struct lysc_ext_instance *ext, ly_bool *flag)
Callback to print the compiled extension instance's private data in the INFO format.
LY_ERR(* lyplg_ext_compile_clb)(struct lysc_ctx *cctx, const struct lysp_ext_instance *p_ext, struct lysc_ext_instance *c_ext)
Callback to compile extension from the lysp_ext_instance to the lysc_ext_instance. The later structure is generally prepared and only the extension specific data are supposed to be added (if any).
LY_ERR(* lyplg_ext_data_validation_clb)(struct lysc_ext_instance *ext, struct lyd_node *node)
Callback to decide if data instance is valid according to the schema.
libyang support for YANG extensions implementation - schema print related items.
LY_LOG_LEVEL
Verbosity levels of the libyang logger.
lyplg_ext_compile_clb compile
Description of the extension instance substatements.
void(* lyplg_ext_free_clb)(struct ly_ctx *ctx, struct lysc_ext_instance *ext)
Callback to free the extension specific data created by the lyplg_ext_compile_clb callback of the sam...
libyang support for YANG extensions implementation - schema compilation related items.
void lyplg_ext_instance_substatements_free(struct ly_ctx *ctx, struct lysc_ext_substmt *substmts)
Free the extension instance's data compiled with lys_compile_extension_instance().
void lyplg_ext_log(const struct lysc_ext_instance *ext, LY_LOG_LEVEL level, LY_ERR err_no, const char *path, const char *format,...)
Provide a log message from an extension plugin.
libyang generic macros and functions to modify YANG schema or data trees. Intended for internal use a...
LY_ERR
libyang's error codes returned by the libyang functions.
Logger manipulation routines and error definitions.
lyplg_ext_data_validation_clb validate