diff options
| author | Christian Hopps <chopps@labn.net> | 2025-01-08 10:34:57 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2025-01-13 23:40:52 -0500 |
| commit | 255026c2cef831e38539a0f044c39d45cc0d41bd (patch) | |
| tree | ba4d640a2651bf21b02404707c30a767da9ba763 /lib/northbound.h | |
| parent | 709b2ae23f1b74e8c319ce88625d621e0d6f7beb (diff) | |
mgmtd: add notify selectors to filter datastore notifications
- Additionally push the selectors down to the backends
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound.h')
| -rw-r--r-- | lib/northbound.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/northbound.h b/lib/northbound.h index b65cc10003..bd802e0888 100644 --- a/lib/northbound.h +++ b/lib/northbound.h @@ -1815,6 +1815,15 @@ extern struct lyd_node *nb_op_updatef(struct lyd_node *tree, const char *path, c extern struct lyd_node *nb_op_vupdatef(struct lyd_node *tree, const char *path, const char *val_fmt, va_list ap); +/** + * nb_notif_set_filters() - add or replace notification filters + * @selectors: darr array of selector (filter) xpath strings, can be NULL if + * @replace is true. nb_notif_set_filters takes ownership of this + * array and the contained darr strings. + * @replace: true to replace existing set otherwise append. + */ +extern void nb_notif_set_filters(const char **selectors, bool replace); + extern void nb_notif_init(struct event_loop *loop); extern void nb_notif_terminate(void); |
