summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb_modules.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-05 16:05:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:14 -0500
commit5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83 (patch)
tree8a9ae36a29652dec9dbb5138ba3c0dee86b8e32d /source4/lib/ldb/common/ldb_modules.c
parent8edf29e8ef4d886321a6e8ec3902065641d34f40 (diff)
downloadsamba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.tar.gz
samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.tar.bz2
samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.zip
r13839: Use registration mechanism for backends as well (in the same sense
my previous patch added it for modules). This is the next step towards LDB backends and modules as run-time loadable .so files. (This used to be commit fb2f70de4f6c4a9b13ad590cb4d3a9c858cede49)
Diffstat (limited to 'source4/lib/ldb/common/ldb_modules.c')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 17c5231e54..53394e7047 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -126,10 +126,24 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
return NULL;
}
-
+#ifdef HAVE_LDAP
+#define LDAP_INIT ldb_ldap_init,
+#else
+#define LDAP_INIT
+#endif
+
+#ifdef HAVE_SQLITE3
+#define SQLITE3_INIT ldb_sqlite3_init,
+#else
+#define SQLITE3_INIT
+#endif
+
#ifndef STATIC_LIBLDB_MODULES
#define STATIC_LIBLDB_MODULES \
{ \
+ LDAP_INIT \
+ SQLITE3_INIT \
+ ldb_tdb_init, \
ldb_schema_init, \
ldb_operational_init, \
ldb_rdn_name_init, \