s4-dsdb: convert the rest of the ldb modules to the new module type
[mat/samba.git] / source4 / dsdb / samdb / ldb_modules / new_partition.c
index 8e63eac40cba3fb255c3cd2d973fdd56f42513d6..0c5082bf14423b3fb02cc4b2e4839d4013f773b2 100644 (file)
@@ -195,7 +195,12 @@ static int new_partition_add(struct ldb_module *module, struct ldb_request *req)
        return ldb_next_request(module, req);
 }
 
-_PUBLIC_ const struct ldb_module_ops ldb_new_partition_module_ops = {
+static const struct ldb_module_ops ldb_new_partition_module_ops = {
        .name          = "new_partition",
        .add           = new_partition_add,
 };
+
+int ldb_new_partition_module_init(const char *version)
+{
+       return ldb_register_module(&ldb_new_partition_module_ops);
+}