Skip to main content

lys_print_fd

Function lys_print_fd 

Source
pub unsafe extern "C" fn lys_print_fd(
    fd: c_int,
    module: *const lys_module,
    format: Type,
    options: u32,
) -> Type
Expand description

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

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] fd File descriptor where to print the data. @param[in] module Schema tree to print. @param[in] format Schema output format. @param[in] options Schema output options (see @ref schemaprinterflags). @return LY_ERR value.