Skip to main content

lys_find_xpath

Function lys_find_xpath 

Source
pub unsafe extern "C" fn lys_find_xpath(
    ctx: *const ly_ctx,
    ctx_node: *const lysc_node,
    xpath: *const c_char,
    options: u32,
    set: *mut *mut ly_set,
) -> Type
Expand description

@brief Evaluate an @p xpath expression on schema nodes.

@param[in] ctx libyang context to use for absolute @p xpath. May be NULL if @p ctx_node is set. @param[in] ctx_node XPath schema context node for relative @p xpath. Use NULL for the root node. @param[in] xpath Data XPath expression filtering the matching nodes. ::LY_VALUE_JSON prefix format is expected. @param[in] options Whether to apply some node access restrictions, see @ref findxpathoptions. @param[out] set Set of found schema nodes. @return LY_SUCCESS on success, @p set is returned. @return LY_ERR value if an error occurred.