|
| typedef LY_ERR(* | lyplg_ext_sprinter_ctree_clb) (struct lysc_ext_instance *ext, const struct lyspr_tree_ctx *ctx, const char **flags, const char **add_opts) |
| | Callback to print parent node of ext or to print the contents of the extension.
|
| typedef LY_ERR(* | lyplg_ext_sprinter_ctree_override_clb) (const struct lysc_node *node, const void *plugin_priv, ly_bool *skip, const char **flags, const char **add_opts) |
| | Callback for rewriting the tree-diagram form of a specific node.
|
| typedef LY_ERR(* | lyplg_ext_sprinter_ptree_clb) (struct lysp_ext_instance *ext, const struct lyspr_tree_ctx *ctx, const char **flags, const char **add_opts) |
| | Callback to print parent node of ext or to print the contents of the extension.
|
| typedef LY_ERR(* | lyplg_ext_sprinter_ptree_override_clb) (const struct lysp_node *node, const void *plugin_priv, ly_bool *skip, const char **flags, const char **add_opts) |
| | Callback for rewriting the tree-diagram form of a specific node.
|
|
| LIBYANG_API_DECL LY_ERR | lyplg_ext_sprinter_ctree_add_ext_nodes (const struct lyspr_tree_ctx *ctx, struct lysc_ext_instance *ext, lyplg_ext_sprinter_ctree_override_clb clb) |
| | Registration of printing a group of nodes, which is already in the extension.
|
| LIBYANG_API_DECL LY_ERR | lyplg_ext_sprinter_ctree_add_nodes (const struct lyspr_tree_ctx *ctx, struct lysc_node *nodes, lyplg_ext_sprinter_ctree_override_clb clb) |
| | Registration of printing the group of nodes which were defined in the plugin.
|
| LIBYANG_API_DECL LY_ERR | lyplg_ext_sprinter_ptree_add_ext_nodes (const struct lyspr_tree_ctx *ctx, struct lysp_ext_instance *ext, lyplg_ext_sprinter_ptree_override_clb clb) |
| | Registration of printing a group of nodes, which is already in the extension.
|
| LIBYANG_API_DECL LY_ERR | lyplg_ext_sprinter_ptree_add_nodes (const struct lyspr_tree_ctx *ctx, struct lysp_node *nodes, lyplg_ext_sprinter_ptree_override_clb clb) |
| | Registration of printing the group of nodes which were defined in the plugin.
|
| LIBYANG_API_DECL LY_ERR | lyplg_ext_sprinter_tree_set_priv (const struct lyspr_tree_ctx *ctx, void *plugin_priv, void(*free_clb)(void *plugin_priv)) |
| | Registration of plugin-private data defined by the plugin that is shared between override_clb calls.
|
Implementing extension plugin schema parsed and compiled tree printer callback.
| typedef LY_ERR(* lyplg_ext_sprinter_ctree_clb) (struct lysc_ext_instance *ext, const struct lyspr_tree_ctx *ctx, const char **flags, const char **add_opts) |
Callback to print parent node of ext or to print the contents of the extension.
Function is called in two different cases. If the printer_tree needs the tree-diagram form of a parent node, then ctx is set to NULL. In the second case, if printer_tree needs to print the contents of the extension, then ctx is set and function must prepare the nodes that should be printed using the lyplg_ext_sprinter_tree* functions.
- Parameters
-
| [in] | ext | Extension instance. |
| [in,out] | ctx | Context for the tree printer. Extension contents can be inserted into it by functions lyplg_ext_sprinter_ctree_add_ext_nodes(), lyplg_ext_sprinter_ctree_add_nodes() or by their ptree alternatives. It parameter is set to NULL, then flags and add_opts are used by printer_tree. |
| [out] | flags | Optional override tree-diagram <flags> in a parent node. If ctx is set, ignore this parameter. |
| [out] | add_opts | Additional tree-diagram <opts> string in a parent node which is printed before <opts>. If ctx is set, ignore this parameter. |
- Returns
- LY_ERR value.
Definition at line 743 of file plugins_exts.h.
| typedef LY_ERR(* lyplg_ext_sprinter_ptree_clb) (struct lysp_ext_instance *ext, const struct lyspr_tree_ctx *ctx, const char **flags, const char **add_opts) |
Callback to print parent node of ext or to print the contents of the extension.
Function is called in two different cases. If the printer_tree needs the tree-diagram form of a parent node, then ctx is set to NULL. In the second case, if printer_tree needs to print the contents of the extension, then ctx is set and function must prepare the nodes that should be printed using the lyplg_ext_sprinter_tree* functions.
- Parameters
-
| [in] | ext | Extension instance. |
| [in,out] | ctx | Context for the tree printer. Extension contents can be inserted into it by functions lyplg_ext_sprinter_ctree_add_ext_nodes(), lyplg_ext_sprinter_ctree_add_nodes() or by their ptree alternatives. It parameter is set to NULL, then flags and add_opts are used by printer_tree. |
| [out] | flags | Optional override tree-diagram <flags> in a parent node. If ctx is set, ignore this parameter. |
| [out] | add_opts | Additional tree-diagram <opts> string in a parent node which is printed before <opts>. If ctx is set, ignore this parameter. |
- Returns
- LY_ERR value.
Definition at line 797 of file plugins_exts.h.