Skip to main content

lyd_new_implicit_module

Function lyd_new_implicit_module 

Source
pub unsafe extern "C" fn lyd_new_implicit_module(
    tree: *mut *mut lyd_node,
    module: *const lys_module,
    implicit_options: u32,
    diff: *mut *mut lyd_node,
) -> Type
Expand description

@brief Add any missing implicit nodes of one module. Default nodes with a false “when” are not added.

@param[in,out] tree Tree to add implicit nodes into. Note that in case a first top-level sibling is used, it may no longer be first if an implicit node was inserted before @p tree. Use ::lyd_first_sibling() to adjust @p tree in these cases. @param[in] module Module whose implicit nodes to create. @param[in] implicit_options Options for implicit node creation, see @ref implicitoptions. @param[out] diff Optional diff with any created nodes. @return LY_ERR value.