From 841d17ff83ff3737070117a32199164b0b006402 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Aug 2011 17:46:39 +1000 Subject: ldb: added ldb_parse_tree_walk() this walks a ldb parse tree, calling a callback on each node Pair-Programmed-With: Andrew Bartlett Pair-Programmed-With: Amitay Isaacs --- lib/ldb/include/ldb_module.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/ldb/include') 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 -- cgit