diff options
author | Christian Hopps <chopps@labn.net> | 2024-12-15 00:26:49 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2025-01-14 05:40:52 +0100 |
commit | 709b2ae23f1b74e8c319ce88625d621e0d6f7beb (patch) | |
tree | 81f5f6967d0e9e705ffb95d75f1452edeae15ef0 /lib/northbound_oper.c | |
parent | lib: if: track oper-state inline (diff) | |
download | frr-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.c | 14 |
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) |