ldb: Make ldb_match_scope and ldb_match_message available to other ldb parts
authorMatthieu Patou <mat@matws.net>
Thu, 13 Dec 2012 05:15:57 +0000 (21:15 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 21:03:14 +0000 (22:03 +0100)
This allow the indexing code to use them.

Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/common/ldb_match.c
lib/ldb/include/ldb_private.h

index c6959b98f3b13f6697640998c5c80f888583773c..766500df5b3d8027d655d21f45026918e72ca907 100644 (file)
@@ -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)
index 526bf5e49104115afa4f56c6e435018d5440c187..9b896f801ed48490ac7269a7c4661d0200c8a77e 100644 (file)
@@ -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);