From: Matthieu Patou Date: Thu, 13 Dec 2012 05:15:57 +0000 (-0800) Subject: ldb: Make ldb_match_scope and ldb_match_message available to other ldb parts X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=da34441add7e93674560f785e97fea48c2bba954 ldb: Make ldb_match_scope and ldb_match_message available to other ldb parts This allow the indexing code to use them. Reviewed-by: Stefan Metzmacher --- diff --git a/lib/ldb/common/ldb_match.c b/lib/ldb/common/ldb_match.c index c6959b98f3b1..766500df5b3d 100644 --- a/lib/ldb/common/ldb_match.c +++ b/lib/ldb/common/ldb_match.c @@ -37,7 +37,7 @@ /* check if the scope matches in a search result */ -static int ldb_match_scope(struct ldb_context *ldb, +int ldb_match_scope(struct ldb_context *ldb, struct ldb_dn *base, struct ldb_dn *dn, enum ldb_scope scope) @@ -475,7 +475,7 @@ static int ldb_match_extended(struct ldb_context *ldb, this is a recursive function, and does short-circuit evaluation */ -static int ldb_match_message(struct ldb_context *ldb, +int ldb_match_message(struct ldb_context *ldb, const struct ldb_message *msg, const struct ldb_parse_tree *tree, enum ldb_scope scope, bool *matched) diff --git a/lib/ldb/include/ldb_private.h b/lib/ldb/include/ldb_private.h index 526bf5e49104..9b896f801ed4 100644 --- a/lib/ldb/include/ldb_private.h +++ b/lib/ldb/include/ldb_private.h @@ -156,6 +156,16 @@ extern const struct ldb_backend_ops ldb_ldap_backend_ops; extern const struct ldb_backend_ops ldb_ldapi_backend_ops; extern const struct ldb_backend_ops ldb_ldaps_backend_ops; +int ldb_match_scope(struct ldb_context *ldb, + struct ldb_dn *base, + struct ldb_dn *dn, + enum ldb_scope scope); + +int ldb_match_message(struct ldb_context *ldb, + const struct ldb_message *msg, + const struct ldb_parse_tree *tree, + enum ldb_scope scope, bool *matched); + int ldb_setup_wellknown_attributes(struct ldb_context *ldb); const char **ldb_subclass_list(struct ldb_context *ldb, const char *classname);