s4-dsdb: convert the rest of the ldb modules to the new module type
[ira/wip.git] / source4 / dsdb / samdb / ldb_modules / anr.c
index ebe9d6609706ccdccef26f7d35a649fbba6dbb4a..9291dd54185f9941ca17e790e5a0664973fff5ca 100644 (file)
@@ -365,7 +365,12 @@ static int anr_search(struct ldb_module *module, struct ldb_request *req)
        return ldb_next_request(module, down_req);
 }
 
-_PUBLIC_ const struct ldb_module_ops ldb_anr_module_ops = {
+static const struct ldb_module_ops ldb_anr_module_ops = {
        .name              = "anr",
        .search = anr_search
 };
+
+int ldb_anr_module_init(const char *version)
+{
+       return ldb_register_module(&ldb_anr_module_ops);
+}