Skip to main content

lyd_eval_xpath2

Function lyd_eval_xpath2 

Source
pub unsafe extern "C" fn lyd_eval_xpath2(
    ctx_node: *const lyd_node,
    xpath: *const c_char,
    vars: *const lyxp_var,
    result: *mut ly_bool,
) -> Type
Expand description

@brief Evaluate an XPath on data and return the result converted to boolean.

It is ::lyd_eval_xpath() with @p vars added.

@param[in] ctx_node XPath context node. @param[in] xpath [XPath](@ref howtoXPath) to select in JSON format. @param[in] vars [Sized array](@ref sizedarrays) of XPath variables. @param[out] result Expression result converted to boolean. @return LY_SUCCESS on success, @p result is returned. @return LY_ERR value if an error occurred.