pool_unref(&ctx->parser_pool);
}
-void *settings_parser_get(struct setting_parser_context *ctx)
-{
- i_assert(ctx->root_count == 1);
-
- return ctx->roots[0].set_struct;
-}
-
void *settings_parser_get_root_set(const struct setting_parser_context *ctx,
const struct setting_parser_info *root)
{
void settings_parser_ref(struct setting_parser_context *ctx);
void settings_parser_unref(struct setting_parser_context **ctx);
-/* Return pointer to root setting structure. */
-void *settings_parser_get(struct setting_parser_context *ctx);
/* Returns settings for a specific root. The root is expected to exist, and it
must be the same pointer as given to settings_parser_init*(). If it doesn't,
the function panics. */
void *settings_parser_get_root_set_dup(const struct setting_parser_context *ctx,
const struct setting_parser_info *root,
pool_t pool);
-/* Like settings_parser_get(), but return change struct. */
+/* Return pointer to changes in the root setting structure. */
void *settings_parser_get_changes(struct setting_parser_context *ctx);
/* Returns the setting parser's roots (same as given to init()). */
const struct setting_parser_info *const *