Mercurial > dovecot > core-2.2
diff src/auth/auth-settings.c @ 10106:5a25b4ec5694 HEAD
Reordered struct setting_parser_info fields to make using them easier.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 20 Oct 2009 17:15:01 -0400 |
parents | cf27080f3fcf |
children | dcda7c495eb6 |
line wrap: on
line diff
--- a/src/auth/auth-settings.c Tue Oct 20 15:40:51 2009 -0400 +++ b/src/auth/auth-settings.c Tue Oct 20 17:15:01 2009 -0400 @@ -29,12 +29,11 @@ MEMBER(defines) auth_passdb_setting_defines, MEMBER(defaults) NULL, - MEMBER(parent) &auth_setting_parser_info, - MEMBER(dynamic_parsers) NULL, + MEMBER(type_offset) offsetof(struct auth_passdb_settings, driver), + MEMBER(struct_size) sizeof(struct auth_passdb_settings), MEMBER(parent_offset) (size_t)-1, - MEMBER(type_offset) offsetof(struct auth_passdb_settings, driver), - MEMBER(struct_size) sizeof(struct auth_passdb_settings) + MEMBER(parent) &auth_setting_parser_info }; #undef DEF @@ -52,12 +51,11 @@ MEMBER(defines) auth_userdb_setting_defines, MEMBER(defaults) NULL, - MEMBER(parent) &auth_setting_parser_info, - MEMBER(dynamic_parsers) NULL, + MEMBER(type_offset) offsetof(struct auth_userdb_settings, driver), + MEMBER(struct_size) sizeof(struct auth_userdb_settings), MEMBER(parent_offset) (size_t)-1, - MEMBER(type_offset) offsetof(struct auth_userdb_settings, driver), - MEMBER(struct_size) sizeof(struct auth_userdb_settings) + MEMBER(parent) &auth_setting_parser_info }; /* we're kind of kludging here to avoid "auth_" prefix in the struct fields */ @@ -134,12 +132,12 @@ MEMBER(defines) auth_setting_defines, MEMBER(defaults) &auth_default_settings, - MEMBER(parent) NULL, - MEMBER(dynamic_parsers) NULL, + MEMBER(type_offset) (size_t)-1, + MEMBER(struct_size) sizeof(struct auth_settings), MEMBER(parent_offset) (size_t)-1, - MEMBER(type_offset) (size_t)-1, - MEMBER(struct_size) sizeof(struct auth_settings), + MEMBER(parent) NULL, + MEMBER(check_func) auth_settings_check };