Reorder arguments to ldb_search() to match what is in Samba 4.
[kai/samba-autobuild/.git] / source3 / lib / ldb / include / ldb.h
index 3891c1c6a3124614e7fa8bb91b7ea5e731a5ae05..d98536c480c712f90fc78bc92a0eb4e925c01fa6 100644 (file)
@@ -987,11 +987,12 @@ int ldb_build_rename_req(struct ldb_request **ret_req,
 
   \note use talloc_free() to free the ldb_result returned
 */
-int ldb_search(struct ldb_context *ldb, 
+int ldb_search(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
+                  struct ldb_result **_res,
               const struct ldb_dn *base,
               enum ldb_scope scope,
-              const char *expression,
-              const char * const *attrs, struct ldb_result **_res);
+              const char * const *attrs,
+              const char *expression);
 
 /*
  * a useful search function where you can easily define the expression and