struct nb_node **nb_nodes_find(const char *xpath)
{
- struct lysc_node **snodes = NULL;
+ const struct lysc_node **snodes = NULL;
struct nb_node **nb_nodes = NULL;
bool simple;
LY_ERR err;
}
LY_ERR yang_resolve_snode_xpath(struct ly_ctx *ly_ctx, const char *xpath,
- struct lysc_node ***snodes, bool *simple)
+ const struct lysc_node ***snodes, bool *simple)
{
struct lysc_node *snode;
struct ly_set *set;
* Return: a libyang error or LY_SUCCESS.
*/
extern LY_ERR yang_resolve_snode_xpath(struct ly_ctx *ly_ctx, const char *xpath,
- struct lysc_node ***snodes, bool *simple);
+ const struct lysc_node ***snodes,
+ bool *simple);
/*
* Libyang future functions
void *__msg, size_t msg_len)
{
struct mgmt_msg_get_data *msg = __msg;
- struct lysc_node **snodes = NULL;
- char *xpath_resolved = NULL;
+ const struct lysc_node **snodes = NULL;
uint64_t req_id = msg->req_id;
Mgmtd__DatastoreId ds_id;
uint64_t clients;
}
done:
darr_free(snodes);
- darr_free(xpath_resolved);
}
static void fe_adapter_handle_edit(struct mgmt_fe_session_ctx *session,