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/tests/sample_module.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb/tests') diff --git a/source4/lib/ldb/tests/sample_module.c b/source4/lib/ldb/tests/sample_module.c index 5269b8f017..d93c6de440 100644 --- a/source4/lib/ldb/tests/sample_module.c +++ b/source4/lib/ldb/tests/sample_module.c @@ -54,9 +54,14 @@ int sample_modify(struct ldb_module *mod, struct ldb_request *req) } -const struct ldb_module_ops ldb_sample_module_ops = { +static struct ldb_module_ops ldb_sample_module_ops = { .name = "sample", .add = sample_add, .del = sample_modify, .modify = sample_modify, }; + +int ldb_sample_init(const char *version) +{ + return ldb_register_module(&ldb_sample_module_ops); +} -- cgit