]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fs-test: Implement new init() API
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Jul 2023 12:53:00 +0000 (15:53 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/lib-fs/fs-test.c

index 0e40c72e3cb9229a3f0fc781d33d5f082ac4ff22..807329b2b9a66113605bc49c0a9d66156e3f0544 100644 (file)
@@ -17,13 +17,21 @@ static struct fs *fs_test_alloc(void)
 }
 
 static int
-fs_test_init(struct fs *_fs ATTR_UNUSED, const char *args ATTR_UNUSED,
+fs_test_init(struct fs *_fs ATTR_UNUSED,
             const struct fs_parameters *params ATTR_UNUSED,
             const char **error_r ATTR_UNUSED)
 {
        return 0;
 }
 
+static int
+fs_test_legacy_init(struct fs *_fs ATTR_UNUSED, const char *args ATTR_UNUSED,
+                   const struct fs_parameters *params ATTR_UNUSED,
+                   const char **error_r ATTR_UNUSED)
+{
+       return 0;
+}
+
 static void fs_test_free(struct fs *_fs)
 {
        struct test_fs *fs = (struct test_fs *)_fs;
@@ -407,7 +415,8 @@ const struct fs fs_class_test = {
        .name = "test",
        .v = {
                .alloc = fs_test_alloc,
-               .legacy_init = fs_test_init,
+               .init = fs_test_init,
+               .legacy_init = fs_test_legacy_init,
                .deinit = NULL,
                .free = fs_test_free,
                .get_properties = fs_test_get_properties,