diff options
| author | Christian Hopps <chopps@labn.net> | 2023-05-16 05:54:05 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-05-30 02:09:51 -0400 |
| commit | acd7aea00ee6d23bff4ebb8bb0e7ab6a32874c9b (patch) | |
| tree | a545e4811d41dcf647359a3db0e282f9209e1f13 /mgmtd/mgmt_ds.h | |
| parent | a1d8c7a36e44b5b5e87f9f863d04a74670a19843 (diff) | |
mgmtd: simplify early config build removing unused code
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_ds.h')
| -rw-r--r-- | mgmtd/mgmt_ds.h | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/mgmtd/mgmt_ds.h b/mgmtd/mgmt_ds.h index 2a32eb641a..e5c88742dd 100644 --- a/mgmtd/mgmt_ds.h +++ b/mgmtd/mgmt_ds.h @@ -218,39 +218,6 @@ extern int mgmt_ds_copy_dss(struct mgmt_ds_ctx *src_ds_ctx, extern struct nb_config *mgmt_ds_get_nb_config(struct mgmt_ds_ctx *ds_ctx); /* - * Lookup YANG data nodes. - * - * ds_ctx - * Datastore context. - * - * xpath - * YANG base xpath. - * - * dxpaths - * Out param - array of YANG data xpaths. - * - * num_nodes - * In-out param - number of YANG data xpaths. - * Note - Caller should init this to the size of the array - * provided in dxpaths. - * On return this will have the actual number of xpaths - * being returned. - * - * get_childs_as_well - * TRUE if child nodes needs to be fetched as well, FALSE otherwise. - * - * alloc_xp_copy - * TRUE if the caller is interested in getting a copy of the xpath. - * - * Returns: - * 0 on success, -1 on failure. - */ -extern int mgmt_ds_lookup_data_nodes(struct mgmt_ds_ctx *ds_ctx, - const char *xpath, char *dxpaths[], - int *num_nodes, bool get_childs_as_well, - bool alloc_xp_copy); - -/* * Find YANG data node given a datastore handle YANG xpath. */ extern struct lyd_node * @@ -281,18 +248,15 @@ extern int mgmt_ds_delete_data_nodes(struct mgmt_ds_ctx *ds_ctx, * be passed to the iterator function provided in * 'iter_fn'. * - * alloc_xp_copy - * TRUE if the caller is interested in getting a copy of the xpath. - * * Returns: * 0 on success, -1 on failure. */ extern int mgmt_ds_iter_data( - struct mgmt_ds_ctx *ds_ctx, char *base_xpath, - void (*mgmt_ds_node_iter_fn)(struct mgmt_ds_ctx *ds_ctx, char *xpath, - struct lyd_node *node, + struct mgmt_ds_ctx *ds_ctx, const char *base_xpath, + void (*mgmt_ds_node_iter_fn)(struct mgmt_ds_ctx *ds_ctx, + const char *xpath, struct lyd_node *node, struct nb_node *nb_node, void *ctx), - void *ctx, bool alloc_xp_copy); + void *ctx); /* * Load config to datastore from a file. |
