s4-ldb: convert the rest of the ldb modules to the new style
[samba.git] / source4 / lib / ldb / modules / paged_searches.c
index bd2ea0942ef5d751e4c2b875a348c10a4e5d9c93..becab83bcff5b2d6e58ec1629c49215cc8c6bb0d 100644 (file)
@@ -371,8 +371,13 @@ static int ps_init(struct ldb_module *module)
        return ldb_next_init(module);
 }
 
-_PUBLIC_ const struct ldb_module_ops ldb_paged_searches_module_ops = {
+static const struct ldb_module_ops ldb_paged_searches_module_ops = {
        .name           = "paged_searches",
        .search         = ps_search,
        .init_context   = ps_init
 };
+
+int ldb_paged_searches_init(const char *version)
+{
+       return ldb_register_module(&ldb_paged_searches_module_ops);
+}