Configuration file definitions: use a datatype struct, instead of
having separate "assigner" and "freer" fields in the parameter definition table. * src/server/conf-file.h (struct datatype): New struct. (struct parameter): Move the assigner and freer fields to struct datatype, and include a pointer to a const struct datatype. * src/server/conf-file.c, src/server/conf-file.h (cf_text_no): New constant struct. (cf_conf_no): Ditto. (cf_int): Ditto. (cf_ulong): Ditto. (cf_uint): Ditto. (cf_string): Ditto. (cf_bool): Ditto. (cf_double): Ditto. (cf_timeval): Ditto. * src/server/conf-file.c (assign_defaults): Handle configuration datatypes. (configure_line): Ditto. * src/server/server-config.c (assign_path): Removed. (unassign_path): Removed. (cf_path): New. Replaces assign_path and unassign_path. (cf_log_param): New const struct. (cf_jubel): New const struct. (cf_ident_param): New const struct. (parameters): Replaced all assigners and freers with the pointers to the proper datatype structs. (free_configuration): Handle configuration datatypes.
Showing with 224 additions and 174 deletions