summaryrefslogtreecommitdiff
path: root/lib/util/util_ldb.h
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-17 14:27:18 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-17 13:37:16 +0000
commita3f61dea40d8a907d56abe1c0eee980f78228b79 (patch)
tree6371c9b0ba971eb014fa10e54ddc241d336fa09d /lib/util/util_ldb.h
parent8a2ce5c47cee499f90b125ebde83de5f9f1a9aa0 (diff)
downloadsamba-a3f61dea40d8a907d56abe1c0eee980f78228b79.tar.gz
samba-a3f61dea40d8a907d56abe1c0eee980f78228b79.tar.bz2
samba-a3f61dea40d8a907d56abe1c0eee980f78228b79.zip
Revert "s4:remove "util_ldb" submodule and integrate the three gendb_* calls in "dsdb/common/util.c""
This reverts commit 8a2ce5c47cee499f90b125ebde83de5f9f1a9aa0. Jelmer pointed out that these are also in use by other LDB databases - not only SAMDB ones. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 17 13:37:16 UTC 2010 on sn-devel-104
Diffstat (limited to 'lib/util/util_ldb.h')
-rw-r--r--lib/util/util_ldb.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/util/util_ldb.h b/lib/util/util_ldb.h
new file mode 100644
index 0000000000..d2bc3b0ff7
--- /dev/null
+++ b/lib/util/util_ldb.h
@@ -0,0 +1,27 @@
+#ifndef __LIB_UTIL_UTIL_LDB_H__
+#define __LIB_UTIL_UTIL_LDB_H__
+
+struct ldb_dn;
+
+/* The following definitions come from lib/util/util_ldb.c */
+
+int gendb_search_v(struct ldb_context *ldb,
+ TALLOC_CTX *mem_ctx,
+ struct ldb_dn *basedn,
+ struct ldb_message ***msgs,
+ const char * const *attrs,
+ const char *format,
+ va_list ap) PRINTF_ATTRIBUTE(6,0);
+int gendb_search(struct ldb_context *ldb,
+ TALLOC_CTX *mem_ctx,
+ struct ldb_dn *basedn,
+ struct ldb_message ***res,
+ const char * const *attrs,
+ const char *format, ...) PRINTF_ATTRIBUTE(6,7);
+int gendb_search_dn(struct ldb_context *ldb,
+ TALLOC_CTX *mem_ctx,
+ struct ldb_dn *dn,
+ struct ldb_message ***res,
+ const char * const *attrs);
+
+#endif /* __LIB_UTIL_UTIL_LDB_H__ */