]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Add config_parser_context.dump_defaults
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 19 Dec 2024 13:54:39 +0000 (15:54 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
This is used by Pigeonhole config plugin.

src/config/config-parser-private.h
src/config/config-parser.c

index 8b052bca6d8499fda16633f6187923916d0da9c1..f1884665eca218a1434123fdc74422ee982efda5 100644 (file)
@@ -99,6 +99,7 @@ struct config_parser_context {
 
        HASH_TABLE(const char *, const char *) seen_settings;
        struct config_filter_context *filter;
+       bool dump_defaults:1;
        bool expand_values:1;
        bool hide_errors:1;
        bool delay_errors:1;
index c808685210f6aeed46272781379a839d73d9947b..b50446777a63a37264e2a7f0709047ceef1cd388 100644 (file)
@@ -2776,6 +2776,7 @@ int config_parse_file(const char *path, enum config_parse_flags flags,
        i_zero(&ctx);
        ctx.pool = pool_alloconly_create(MEMPOOL_GROWING"config file parser", 1024*256);
        ctx.path = path;
+       ctx.dump_defaults = dump_defaults;
        ctx.hide_obsolete_warnings =
                (flags & CONFIG_PARSE_FLAG_HIDE_OBSOLETE_WARNINGS) != 0;
        ctx.delay_errors = (flags & CONFIG_PARSE_FLAG_DELAY_ERRORS) != 0;