Skip to main content

lys_print_file

Function lys_print_file 

Source
pub unsafe extern "C" fn lys_print_file(
    f: *mut FILE,
    module: *const lys_module,
    format: Type,
    options: u32,
) -> Type
Expand description

@brief Print schema tree in the specified format into a file stream.

This is just a wrapper around ::lys_print_module() for simple use cases. In case of a complex use cases, use lys_print with ly_out output handler.

@param[in] module Schema tree to print. @param[in] f File stream where to print the schema. @param[in] format Schema output format. @param[in] options Schema output options (see @ref schemaprinterflags). @return LY_ERR value.