s4-dsdb: convert the rest of the ldb modules to the new module type
[metze/samba/wip.git] / source4 / dsdb / samdb / ldb_modules / schema_data.c
index 4818a54dcf5c52c94b53bade0bb5303f2fc97c3d..0f52e4793c6d52d9bc2bf7d000a239c58124532d 100644 (file)
@@ -476,9 +476,14 @@ static int schema_data_search(struct ldb_module *module, struct ldb_request *req
 }
 
 
-_PUBLIC_ const struct ldb_module_ops ldb_schema_data_module_ops = {
+static const struct ldb_module_ops ldb_schema_data_module_ops = {
        .name           = "schema_data",
        .init_context   = schema_data_init,
        .add            = schema_data_add,
        .search         = schema_data_search
 };
+
+int ldb_schema_data_module_init(const char *version)
+{
+       return ldb_register_module(&ldb_schema_data_module_ops);
+}