s4-dsdb: convert the rest of the ldb modules to the new module type
[metze/samba/wip.git] / source4 / dsdb / samdb / ldb_modules / samba_dsdb.c
index 9536981393768ff27a15481f78eb8b7cfde04b36..871a5bd07126d78d675b016de96592a64be198eb 100644 (file)
@@ -352,7 +352,12 @@ static int samba_dsdb_init(struct ldb_module *module)
        return ldb_next_init(module);
 }
 
-_PUBLIC_ const struct ldb_module_ops ldb_samba_dsdb_module_ops = {
+static const struct ldb_module_ops ldb_samba_dsdb_module_ops = {
        .name              = "samba_dsdb",
        .init_context      = samba_dsdb_init,
 };
+
+int ldb_samba_dsdb_module_init(const char *version)
+{
+       return ldb_register_module(&ldb_samba_dsdb_module_ops);
+}