Mercurial > dovecot > core-2.2
annotate src/dict/dict-settings.c @ 9405:aa08a4506d89 HEAD
dict server works again.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 29 May 2009 12:33:58 -0400 |
parents | 189a92535cc7 |
children | ee99bb70b05f |
rev | line source |
---|---|
9149
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
1 /* Copyright (c) 2009 Dovecot authors, see the included COPYING file */ |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
2 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 #include "lib.h" |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
4 #include "settings-parser.h" |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 #include "dict-settings.h" |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
6 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
7 #undef DEF |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
8 #define DEF(type, name) \ |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
9 { type, #name, offsetof(struct dict_settings, name), NULL } |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
10 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
11 static struct setting_define dict_setting_defines[] = { |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
12 DEF(SET_STR, dict_db_config), |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
13 { SET_STRLIST, "dict", offsetof(struct dict_settings, dicts), NULL }, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
14 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
15 SETTING_DEFINE_LIST_END |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
16 }; |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
17 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
18 struct dict_settings dict_default_settings = { |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
19 MEMBER(dict_db_config) "", |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
20 MEMBER(dicts) ARRAY_INIT |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
21 }; |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
22 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
23 struct setting_parser_info dict_setting_parser_info = { |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
24 MEMBER(defines) dict_setting_defines, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
25 MEMBER(defaults) &dict_default_settings, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
26 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
27 MEMBER(parent) NULL, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
28 MEMBER(dynamic_parsers) NULL, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
29 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
30 MEMBER(parent_offset) (size_t)-1, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
31 MEMBER(type_offset) (size_t)-1, |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
32 MEMBER(struct_size) sizeof(struct dict_settings) |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
33 }; |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
34 |
6d374fc3ae1d
Moved most of the dict settings handling to dict binary.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
35 struct dict_settings *dict_settings; |