Use config_module_parsers_get_setting() directly.
const char *final_path = NULL;
switch (dest) {
case CONFIG_DUMP_FULL_DEST_RUNDIR: {
- const char *base_dir = config_export_get_base_dir(export_ctx);
+ const char *base_dir =
+ config_module_parsers_get_setting(
+ filter_parser->module_parsers,
+ "master_service", "base_dir");
final_path = t_strdup_printf("%s/dovecot.conf.binary", base_dir);
str_append(path, final_path);
str_append_c(path, '.');
o_stream_cork(output);
if (import_environment_r != NULL) {
- *import_environment_r =
- t_strdup(config_export_get_import_environment(export_ctx));
+ const char *value =
+ config_module_parsers_get_setting(
+ filter_parser->module_parsers,
+ "master_service", "import_environment");
+ *import_environment_r = t_strdup(value);
}
uint64_t blob_size = UINT64_MAX;
return i;
}
-const char *
-config_export_get_import_environment(struct config_export_context *ctx)
-{
- return config_module_parsers_get_setting(ctx->module_parsers,
- "master_service", "import_environment");
-}
-
-const char *config_export_get_base_dir(struct config_export_context *ctx)
-{
- return config_module_parsers_get_setting(ctx->module_parsers,
- "master_service", "base_dir");
-}
-
void config_export_free(struct config_export_context **_ctx)
{
struct config_export_context *ctx = *_ctx;
void config_export_set_module_parsers(struct config_export_context *ctx,
const struct config_module_parser *parsers);
unsigned int config_export_get_parser_count(struct config_export_context *ctx);
-const char *
-config_export_get_import_environment(struct config_export_context *ctx);
-const char *config_export_get_base_dir(struct config_export_context *ctx);
int config_export_all_parsers(struct config_export_context **ctx);
const struct setting_parser_info *
config_export_parser_get_info(struct config_export_context *ctx,