summaryrefslogtreecommitdiffstats
path: root/lib/northbound_oper.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-12-15 00:26:49 +0100
committerChristian Hopps <chopps@labn.net>2025-01-14 05:40:52 +0100
commit709b2ae23f1b74e8c319ce88625d621e0d6f7beb (patch)
tree81f5f6967d0e9e705ffb95d75f1452edeae15ef0 /lib/northbound_oper.c
parentlib: if: track oper-state inline (diff)
downloadfrr-709b2ae23f1b74e8c319ce88625d621e0d6f7beb.tar.xz
frr-709b2ae23f1b74e8c319ce88625d621e0d6f7beb.zip
lib: notify on datastore (oper-state) changes
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to '')
-rw-r--r--lib/northbound_oper.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/northbound_oper.c b/lib/northbound_oper.c
index dc4be2161..a296b147a 100644
--- a/lib/northbound_oper.c
+++ b/lib/northbound_oper.c
@@ -1834,6 +1834,20 @@ bool nb_oper_is_yang_lib_query(const char *xpath)
return strlen(xpath) > liblen;
}
+void *nb_oper_walk_finish_arg(void *walk)
+{
+ struct nb_op_yield_state *ys = walk;
+
+ return ys->finish_arg;
+}
+
+void *nb_oper_walk_cb_arg(void *walk)
+{
+ struct nb_op_yield_state *ys = walk;
+
+ return ys->cb_arg;
+}
+
void *nb_oper_walk(const char *xpath, struct yang_translator *translator,
uint32_t flags, bool should_batch, nb_oper_data_cb cb,
void *cb_arg, nb_oper_data_finish_cb finish, void *finish_arg)