summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-05 16:20:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:54 -0500
commitdec69975f5d62d4c2d038ad22d405e5cb183d78b (patch)
tree85269a7aa66182dcacf76be94d76b34a04fee448 /source4/lib/ldb/include
parentbb725bbe0132a24e4a56441b7ee3ce765844e219 (diff)
downloadsamba-dec69975f5d62d4c2d038ad22d405e5cb183d78b.tar.gz
samba-dec69975f5d62d4c2d038ad22d405e5cb183d78b.tar.bz2
samba-dec69975f5d62d4c2d038ad22d405e5cb183d78b.zip
r20046: Add ldb_search_exp_fmt and port comment to 4
(This used to be commit 879dfed8d8356aae6a11352b89bdc0f2d9f28970)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index dfa447b534..eb1f505099 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -989,9 +989,16 @@ int ldb_search(struct ldb_context *ldb,
const char *expression,
const char * const *attrs, struct ldb_result **res);
-int ldb_search_exp_fmt(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_result **result,
- struct ldb_dn *base, enum ldb_scope scope, const char * const *attrs,
- const char *exp_fmt, ...);
+/*
+ * a useful search function where you can easily define the expression and
+ * that takes a memory context where results are allocated
+*/
+
+int ldb_search_exp_fmt(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
+ struct ldb_result **result, struct ldb_dn *base,
+ enum ldb_scope scope, const char * const *attrs,
+ const char *exp_fmt, ...);
+
/*
like ldb_search() but takes a parse tree
*/