From 709b2ae23f1b74e8c319ce88625d621e0d6f7beb Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Sat, 14 Dec 2024 18:26:49 -0500 Subject: lib: notify on datastore (oper-state) changes Signed-off-by: Christian Hopps --- lib/northbound_oper.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/northbound_oper.c') 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) -- cgit v1.2.3