From be8e91d9cadf0886bf5ce4816dff4073d903965d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Nov 2010 14:59:28 +1100 Subject: s4-ldb: convert the rest of the ldb modules to the new style --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/lib/ldb/ldb_tdb') 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); +} -- cgit