return ctx->roots[0].set_struct;
}
-void **settings_parser_get_list(struct setting_parser_context *ctx)
+void **settings_parser_get_list(const struct setting_parser_context *ctx)
{
unsigned int i;
void **sets;
}
struct setting_parser_context *
-settings_parser_dup(struct setting_parser_context *old_ctx, pool_t new_pool)
+settings_parser_dup(const struct setting_parser_context *old_ctx,
+ pool_t new_pool)
{
struct setting_parser_context *new_ctx;
struct hash_iterate_context *iter;
void *settings_parser_get(struct setting_parser_context *ctx);
/* If there are multiple roots, return a NULL-terminated list to all of
their settings. */
-void **settings_parser_get_list(struct setting_parser_context *ctx);
+void **settings_parser_get_list(const struct setting_parser_context *ctx);
/* Like settings_parser_get(), but return change struct. */
void *settings_parser_get_changes(struct setting_parser_context *ctx);
const void *set, pool_t pool);
/* Duplicate the entire setting parser. */
struct setting_parser_context *
-settings_parser_dup(struct setting_parser_context *old_ctx, pool_t new_pool);
+settings_parser_dup(const struct setting_parser_context *old_ctx,
+ pool_t new_pool);
/* parsers is a name=NULL -terminated list. The parsers are appended as
dynamic_settings_list structures to their parent. All must have the same