]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Added some consts to parameters.
authorTimo Sirainen <tss@iki.fi>
Sat, 20 Feb 2010 15:16:31 +0000 (17:16 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 20 Feb 2010 15:16:31 +0000 (17:16 +0200)
--HG--
branch : HEAD

src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h

index 3399a7ac278172beefb70b79a2e4955b617c8739..fd7534a53468ade93c398d127db88d77e6fa9a92 100644 (file)
@@ -240,7 +240,7 @@ void *settings_parser_get(struct setting_parser_context *ctx)
        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;
@@ -1483,7 +1483,8 @@ settings_link_get_new(struct setting_parser_context *new_ctx,
 }
 
 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;
index 217487428ebc689d89207455e0d388ee9c147c5d..59aebf249d60c351f6ebdedb69e59370e9620b77 100644 (file)
@@ -111,7 +111,7 @@ void settings_parser_deinit(struct setting_parser_context **ctx);
 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);
 
@@ -178,7 +178,8 @@ void *settings_dup(const struct setting_parser_info *info,
                   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