summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-01 14:59:28 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-01 18:55:19 +1100
commitbe8e91d9cadf0886bf5ce4816dff4073d903965d (patch)
treeaafdcf858e1194a995e74338239b06a1ce6232aa /source4/lib/ldb/ldb_tdb
parentb887b69151808455ae19ce2e690f6fe336c44bb9 (diff)
downloadsamba-be8e91d9cadf0886bf5ce4816dff4073d903965d.tar.gz
samba-be8e91d9cadf0886bf5ce4816dff4073d903965d.tar.bz2
samba-be8e91d9cadf0886bf5ce4816dff4073d903965d.zip
s4-ldb: convert the rest of the ldb modules to the new style
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 25ec1b0bf2..90eb209ec5 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -1447,7 +1447,7 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url,
return LDB_SUCCESS;
}
-_PRIVATE_ const struct ldb_backend_ops ldb_tdb_backend_ops = {
- .name = "tdb",
- .connect_fn = ltdb_connect,
-};
+int ldb_tdb_init(const char *version)
+{
+ return ldb_register_backend("tdb", ltdb_connect);
+}