]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings, config: Rename SET_BOOLLIST_* to SET_LIST_*
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 22 Nov 2024 10:41:06 +0000 (12:41 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:15 +0000 (12:34 +0200)
This is in preparation for STRLIST to use them as well.

src/config/config-dump-full.c
src/lib-settings/settings-parser.h
src/lib-settings/settings.c

index b81850dad6dd2c8f268eeb70d624a30729007069..005222b911b0a86a79e940dd806b8e8b57566579 100644 (file)
@@ -379,8 +379,8 @@ static void config_dump_full_callback(const struct config_export_setting *set,
                                suffix = settings_section_escape(suffix + 1);
                                o_stream_nsend(ctx->output,
                                               set->value_stop_list ?
-                                              SET_BOOLLIST_REPLACE :
-                                              SET_BOOLLIST_APPEND, 1);
+                                              SET_LIST_REPLACE :
+                                              SET_LIST_APPEND, 1);
                                o_stream_nsend(ctx->output, suffix,
                                               strlen(suffix) + 1);
                        } else {
@@ -388,7 +388,7 @@ static void config_dump_full_callback(const struct config_export_setting *set,
                                i_assert(suffix[0] == '\0');
                                i_assert(set->type == CONFIG_KEY_LIST);
                                o_stream_nsend(ctx->output,
-                                              SET_BOOLLIST_CLEAR, 1 + 1);
+                                              SET_LIST_CLEAR, 1 + 1);
                        }
                }
                o_stream_nsend(ctx->output, set->value, strlen(set->value)+1);
index 665d6d3396aa54bd1ccbf4fc9a7837305f8c931f..a84394b961aae8d18d89005f24db66f17ba9a73c 100644 (file)
@@ -19,9 +19,9 @@ struct var_expand_provider;
 #define SET_TIME_INFINITE UINT_MAX
 #define SET_TIME_MSECS_INFINITE UINT_MAX
 
-#define SET_BOOLLIST_APPEND "+"
-#define SET_BOOLLIST_REPLACE "$"
-#define SET_BOOLLIST_CLEAR "."
+#define SET_LIST_APPEND "+"
+#define SET_LIST_REPLACE "$"
+#define SET_LIST_CLEAR "."
 
 #define SET_FILE_INLINE_PREFIX "inline:"
 
index 3b61bfcdf548f1a36ea563ddb21ba6d63b2a15a7..02eec62845db88eee172793b18283a0e6fe43340 100644 (file)
@@ -707,12 +707,12 @@ settings_mmap_apply_blob(struct settings_apply_ctx *ctx,
                    ctx->info->defines[key_idx].type == SET_STRLIST) {
                        const char *type =
                                (const char *)mmap->mmap_base + offset;
-                       if (type[0] == SET_BOOLLIST_REPLACE[0])
+                       if (type[0] == SET_LIST_REPLACE[0])
                                list_stop = TRUE;
-                       else if (type[0] == SET_BOOLLIST_CLEAR[0]) {
+                       else if (type[0] == SET_LIST_CLEAR[0]) {
                                list_stop = TRUE;
                                list_clear = TRUE;
-                       } else if (type[0] != SET_BOOLLIST_APPEND[0]) {
+                       } else if (type[0] != SET_LIST_APPEND[0]) {
                                *error_r = t_strdup_printf(
                                        "List type is invalid (offset=%zu)",
                                        offset);