diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2025-01-14 19:47:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 19:47:28 +0100 |
commit | 5f350961230df5a249e7e1e09d2b38b149b105d9 (patch) | |
tree | 79c7419e8cbf7fcc0d430a7ce78ddf2dd265d8a1 /lib/northbound_oper.c | |
parent | Merge pull request #17581 from mjstapp/fix_fpm_netlink (diff) | |
parent | lib: fix new (incorrect) CLANG SA warnings (diff) | |
download | frr-5f350961230df5a249e7e1e09d2b38b149b105d9.tar.xz frr-5f350961230df5a249e7e1e09d2b38b149b105d9.zip |
Merge pull request #17796 from LabNConsulting/chopps/datastore-notifications
operational-state (datastore) change notifications
Diffstat (limited to 'lib/northbound_oper.c')
-rw-r--r-- | lib/northbound_oper.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/northbound_oper.c b/lib/northbound_oper.c index c80cdc116..a296b147a 100644 --- a/lib/northbound_oper.c +++ b/lib/northbound_oper.c @@ -35,6 +35,7 @@ * We must also process containers with lookup-next descendants last. */ +DEFINE_MTYPE_STATIC(LIB, NB_STATE, "Northbound State"); DEFINE_MTYPE_STATIC(LIB, NB_YIELD_STATE, "NB Yield State"); DEFINE_MTYPE_STATIC(LIB, NB_NODE_INFOS, "NB Node Infos"); @@ -1833,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) |