for (; *filters != NULL && ret == 0; filters++) T_BEGIN {
config_dump_full_write_filter(output, &(*filters)->filter);
- export_ctx = config_export_init(NULL, NULL,
+ export_ctx = config_export_init(NULL,
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, NULL,
+ export_ctx = config_export_init(NULL,
CONFIG_DUMP_SCOPE_CHANGED, flags,
config_dump_full_callback, &dump_ctx);
i_zero(&empty_filter);
void *context;
const char *const *modules;
- const char *const *exclude_settings;
enum config_dump_flags flags;
const struct config_module_parser *parsers;
struct config_module_parser *dup_parsers;
bool dump, dump_default = FALSE;
for (def = info->defines; def->key != NULL; def++) {
- if (ctx->exclude_settings != NULL &&
- str_array_find(ctx->exclude_settings, def->key))
- continue;
-
value = CONST_PTR_OFFSET(set, def->offset);
default_value = info->defaults == NULL ? NULL :
CONST_PTR_OFFSET(info->defaults, def->offset);
struct config_export_context *
config_export_init(const char *const *modules,
- const char *const *exclude_settings,
enum config_dump_scope scope,
enum config_dump_flags flags,
config_request_callback_t *callback, void *context)
ctx->pool = pool;
ctx->modules = modules == NULL ? NULL : p_strarray_dup(pool, modules);
- ctx->exclude_settings = exclude_settings == NULL ? NULL :
- p_strarray_dup(pool, exclude_settings);
ctx->flags = flags;
ctx->callback = callback;
ctx->context = context;
bool *dump_r) ATTR_NULL(3);
struct config_export_context *
config_export_init(const char *const *modules,
- const char *const *exclude_settings,
enum config_dump_scope scope,
enum config_dump_flags flags,
config_request_callback_t *callback, void *context)
CONFIG_DUMP_FLAG_CALLBACK_ERRORS;
if (check_settings)
flags |= CONFIG_DUMP_FLAG_CHECK_SETTINGS;
- ctx->export_ctx = config_export_init(modules, NULL, scope, flags,
+ ctx->export_ctx = config_export_init(modules, scope, flags,
config_request_get_strings, ctx);
return ctx;
}
struct config_export_context *ctx;
unsigned int section_idx = 0;
- ctx = config_export_init(wanted_modules, NULL, scope,
+ ctx = config_export_init(wanted_modules, 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(wanted_modules, NULL, CONFIG_DUMP_SCOPE_SET,
+ ctx = config_export_init(wanted_modules, CONFIG_DUMP_SCOPE_SET,
CONFIG_DUMP_FLAG_CHECK_SETTINGS,
config_request_putenv, NULL);
config_export_by_filter(ctx, &filter);