From cd4725b259b84e0a7a952e2b1f1a754823cfffbf Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 19 Dec 2024 15:54:39 +0200 Subject: [PATCH] config: Add config_parser_context.dump_defaults This is used by Pigeonhole config plugin. --- src/config/config-parser-private.h | 1 + src/config/config-parser.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config/config-parser-private.h b/src/config/config-parser-private.h index 8b052bca6d..f1884665ec 100644 --- a/src/config/config-parser-private.h +++ b/src/config/config-parser-private.h @@ -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; diff --git a/src/config/config-parser.c b/src/config/config-parser.c index c808685210..b50446777a 100644 --- a/src/config/config-parser.c +++ b/src/config/config-parser.c @@ -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; -- 2.47.3