diff options
| author | Christian Hopps <chopps@labn.net> | 2023-10-13 22:51:11 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-12-28 17:52:57 +0000 |
| commit | 408ee24e411714596115d15c831dc59b22dec9f8 (patch) | |
| tree | dc4a0a2aa61bfb608ce186fe92fa8e80ae2e8fc4 /lib/northbound.h | |
| parent | d58653a5ba004f1d55981e8a69bcbdb82b87d354 (diff) | |
lib: create and use libyang tree during oper-state walk
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound.h')
| -rw-r--r-- | lib/northbound.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/northbound.h b/lib/northbound.h index 9c0b4d16c3..2a338a082c 100644 --- a/lib/northbound.h +++ b/lib/northbound.h @@ -1268,12 +1268,16 @@ extern int nb_running_lock_check(enum nb_client client, const void *user); * arg * Arbitrary argument passed as the fourth parameter in each call to 'cb'. * + * tree + * If non-NULL will contain the data tree built from the walk. + * * Returns: * NB_OK on success, NB_ERR otherwise. */ extern int nb_oper_data_iterate(const char *xpath, struct yang_translator *translator, - uint32_t flags, nb_oper_data_cb cb, void *arg); + uint32_t flags, nb_oper_data_cb cb, void *arg, + struct lyd_node **tree); /* * Validate if the northbound operation is valid for the given node. |
