Skip to main content

lys_find_path

Function lys_find_path 

Source
pub unsafe extern "C" fn lys_find_path(
    ctx: *const ly_ctx,
    ctx_node: *const lysc_node,
    path: *const c_char,
    output: ly_bool,
) -> *const lysc_node
Expand description

@brief Get a schema node based on the given data path (JSON format, see @ref howtoXPath).

@param[in] ctx libyang context to use for absolute @p path. May be NULL if @p ctx_node is set. @param[in] ctx_node XPath schema context node for relative @p path. Use NULL for the root node. @param[in] path JSON path of the node to get. @param[in] output Search operation output instead of input. @return Found schema node or NULL.