for (; *filters != NULL && ret == 0; filters++) T_BEGIN {
config_dump_full_write_filter(output, &(*filters)->filter);
- export_ctx = config_export_init(NULL,
+ export_ctx = config_export_init(
CONFIG_DUMP_SCOPE_SET,
CONFIG_DUMP_FLAG_HIDE_LIST_DEFAULTS,
config_dump_full_callback, &dump_ctx);
};
flags = CONFIG_DUMP_FLAG_CHECK_SETTINGS;
- export_ctx = config_export_init(NULL,
- CONFIG_DUMP_SCOPE_CHANGED, flags,
+ export_ctx = config_export_init(CONFIG_DUMP_SCOPE_CHANGED, flags,
config_dump_full_callback, &dump_ctx);
i_zero(&empty_filter);
config_export_by_filter(export_ctx, &empty_filter);
config_request_callback_t *callback;
void *context;
- const char *const *modules;
enum config_dump_flags flags;
const struct config_module_parser *parsers;
struct config_module_parser *dup_parsers;
}
struct config_export_context *
-config_export_init(const char *const *modules,
- enum config_dump_scope scope,
+config_export_init(enum config_dump_scope scope,
enum config_dump_flags flags,
config_request_callback_t *callback, void *context)
{
ctx = p_new(pool, struct config_export_context, 1);
ctx->pool = pool;
- ctx->modules = modules == NULL ? NULL : p_strarray_dup(pool, modules);
ctx->flags = flags;
ctx->callback = callback;
ctx->context = context;
const char *error;
if (config_filter_parsers_get(config_filter, ctx->pool,
- ctx->modules, filter,
+ NULL, filter,
&ctx->dup_parsers, &ctx->output,
&error) < 0) {
i_error("%s", error);
ctx->section_idx = *section_idx;
for (i = 0; ctx->parsers[i].root != NULL; i++) {
parser = &ctx->parsers[i];
- if (!config_module_want_parser(config_module_parsers,
- ctx->modules, parser->root))
- continue;
T_BEGIN {
settings_export(ctx, parser->root, FALSE,
enum setting_type type, bool dump_default,
bool *dump_r) ATTR_NULL(3);
struct config_export_context *
-config_export_init(const char *const *modules,
- enum config_dump_scope scope,
+config_export_init(enum config_dump_scope scope,
enum config_dump_flags flags,
config_request_callback_t *callback, void *context)
ATTR_NULL(1, 5);
CONFIG_DUMP_FLAG_CALLBACK_ERRORS;
if (check_settings)
flags |= CONFIG_DUMP_FLAG_CHECK_SETTINGS;
- ctx->export_ctx = config_export_init(NULL, scope, flags,
+ ctx->export_ctx = config_export_init(scope, flags,
config_request_get_strings, ctx);
return ctx;
}
struct config_export_context *ctx;
unsigned int section_idx = 0;
- ctx = config_export_init(NULL, scope,
+ ctx = config_export_init(scope,
CONFIG_DUMP_FLAG_CHECK_SETTINGS,
config_request_simple_stdout,
setting_name_filters);
struct config_export_context *ctx;
unsigned int section_idx = 0;
- ctx = config_export_init(NULL, CONFIG_DUMP_SCOPE_SET,
+ ctx = config_export_init(CONFIG_DUMP_SCOPE_SET,
CONFIG_DUMP_FLAG_CHECK_SETTINGS,
config_request_putenv, NULL);
config_export_by_filter(ctx, &filter);