summaryrefslogtreecommitdiff
path: root/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-01 17:46:39 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-04 16:17:24 +1000
commit841d17ff83ff3737070117a32199164b0b006402 (patch)
treefd568c5c70a9e9d9b01ca50ba231cb71c295a973 /lib/ldb/include
parent4ba8069e3d33dca53780521026c972425c1d66c5 (diff)
downloadsamba-841d17ff83ff3737070117a32199164b0b006402.tar.gz
samba-841d17ff83ff3737070117a32199164b0b006402.tar.bz2
samba-841d17ff83ff3737070117a32199164b0b006402.zip
ldb: added ldb_parse_tree_walk()
this walks a ldb parse tree, calling a callback on each node Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'lib/ldb/include')
-rw-r--r--lib/ldb/include/ldb_module.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ldb/include/ldb_module.h b/lib/ldb/include/ldb_module.h
index 22d24dbdea..fecf0c7ede 100644
--- a/lib/ldb/include/ldb_module.h
+++ b/lib/ldb/include/ldb_module.h
@@ -348,4 +348,11 @@ int ldb_init_module(const char *version);
*/
bool ldb_dn_replace_components(struct ldb_dn *dn, struct ldb_dn *new_dn);
+/*
+ walk a parse tree, calling the provided callback on each node
+*/
+int ldb_parse_tree_walk(struct ldb_parse_tree *tree,
+ int (*callback)(struct ldb_parse_tree *tree, void *),
+ void *private_context);
+
#endif