![]() |
libyang 3.13.5
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
|
Typedefs | |
| typedef LY_ERR(* | lyplg_ext_sprinter_info_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. | |
Functions | |
| LIBYANG_API_DECL uint16_t * | lyplg_ext_print_get_level (const struct lyspr_ctx *ctx) |
| YANG printer context getter for printer indentation level. | |
| LIBYANG_API_DECL uint32_t * | lyplg_ext_print_get_options (const struct lyspr_ctx *ctx) |
| YANG printer context getter for printer options. | |
| LIBYANG_API_DECL struct ly_out ** | lyplg_ext_print_get_out (const struct lyspr_ctx *ctx) |
| YANG printer context getter for output handler. | |
| LIBYANG_API_DECL void | lyplg_ext_print_info_extension_instance (struct lyspr_ctx *ctx, const struct lysc_ext_instance *ext, ly_bool *flag) |
| Print substatements of an extension instance in info format (compiled YANG). | |
Implementing extension plugin schema info printer callback.
| typedef LY_ERR(* lyplg_ext_sprinter_info_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.
| [in] | ctx | YANG printer context to provide output handler and other information for printing. |
| [in] | ext | The compiled extension instance, mainly to access the extensions. |
| [in,out] | flag | Flag to be shared with the caller regarding the opening brackets - 0 if the '{' not yet printed, 1 otherwise. |
Definition at line 675 of file plugins_exts.h.
| LIBYANG_API_DECL uint16_t * lyplg_ext_print_get_level | ( | const struct lyspr_ctx * | ctx | ) |
YANG printer context getter for printer indentation level.
| [in] | ctx | YANG printer context. |
| LIBYANG_API_DECL uint32_t * lyplg_ext_print_get_options | ( | const struct lyspr_ctx * | ctx | ) |
YANG printer context getter for printer options.
| [in] | ctx | YANG printer context. |
| LIBYANG_API_DECL struct ly_out ** lyplg_ext_print_get_out | ( | const struct lyspr_ctx * | ctx | ) |
YANG printer context getter for output handler.
| [in] | ctx | YANG printer context. |
| LIBYANG_API_DECL void lyplg_ext_print_info_extension_instance | ( | struct lyspr_ctx * | ctx, |
| const struct lysc_ext_instance * | ext, | ||
| ly_bool * | flag ) |
Print substatements of an extension instance in info format (compiled YANG).
Generic function to access YANG printer functions from the extension plugins (lyplg_ext_sprinter_info_clb).
| [in] | ctx | YANG printer context to provide output handler and other information for printing. |
| [in] | ext | The compiled extension instance to access the extensions and substatements data. |
| [in,out] | flag | Flag to be shared with the caller regarding the opening brackets - 0 if the '{' not yet printed, 1 otherwise. |