15 #ifndef LY_PRINTER_SCHEMA_H_
16 #define LY_PRINTER_SCHEMA_H_
95 #define LYS_PRINT_SHRINK LY_PRINT_SHRINK
96 #define LYS_PRINT_NO_SUBSTMT 0x10
98 // #define LYS_PRINT_TREE_RFC 0x01
99 // #define LYS_PRINT_TREE_GROUPING 0x02
100 // #define LYS_PRINT_TREE_USES 0x04
101 // #define LYS_PRINT_TREE_NO_LEAFREF 0x08
140 size_t line_length, uint32_t options);
Printer output structure specifying where the data are printed.
LY_ERR lys_print_node(struct ly_out *out, const struct lysc_node *node, LYS_OUTFORMAT format, size_t line_length, uint32_t options)
Schema node printer.
LY_ERR lys_print_path(const char *path, const struct lys_module *module, LYS_OUTFORMAT format, uint32_t options)
Print schema tree in the specified format into a file.
ssize_t(* ly_write_clb)(void *user_data, const void *buf, size_t count)
Generic write callback for data printed by libyang.
libyang output structures and functions
LY_ERR lys_print_submodule(struct ly_out *out, const struct lysp_submodule *submodule, LYS_OUTFORMAT format, size_t line_length, uint32_t options)
Schema submodule printer.
LY_ERR lys_print_file(FILE *f, const struct lys_module *module, LYS_OUTFORMAT format, uint32_t options)
Print schema tree in the specified format into a file stream.
LYS_OUTFORMAT
Schema output formats accepted by libyang printer functions.
LY_ERR lys_print_clb(ly_write_clb writeclb, void *user_data, const struct lys_module *module, LYS_OUTFORMAT format, uint32_t options)
Print schema tree in the specified format using a provided callback.
LY_ERR lys_print_fd(int fd, const struct lys_module *module, LYS_OUTFORMAT format, uint32_t options)
Print schema tree in the specified format into a file descriptor.
Available YANG schema tree structures representing YANG module.
LY_ERR lys_print_mem(char **strp, const struct lys_module *module, LYS_OUTFORMAT format, uint32_t options)
Print schema tree in the specified format into a memory block. It is up to caller to free the returne...
LY_ERR
libyang's error codes returned by the libyang functions.
Logger manipulation routines and error definitions.
LY_ERR lys_print_module(struct ly_out *out, const struct lys_module *module, LYS_OUTFORMAT format, size_t line_length, uint32_t options)
Schema module printer.