Clean up configuration again
authorSteven Luo <steven+maemo@steven676.net>
Wed, 26 May 2010 11:06:30 +0000 (04:06 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Wed, 26 May 2010 13:09:06 +0000 (06:09 -0700)
commit477b01a24f842c98e8abac56e3fe2ffb3d3a56db
treed58f1334c86b3f5e4e72ac0a84653f9299e81daa
parentec8b58af1b1cf22f34478faf476047e7ce996245
Clean up configuration again

Commit ec8b58af... ("Refactor configuration") still has too much
boilerplate code and leaves too many places that have to be modified to
add a new config option.

To fix this, add a new array of config options with name and type of
information stored, and then add an array of pointers to the elements of
struct swb_config with indices matching the list of config options to
struct swb_config.  This consolidates all the work needed to add new
config options to config.h and config.c, and allows us to replace the
boilerplate code with loops over the array of config options.
config-ui/browser-switchboard-cp.c
config-ui/save-config.c
config.c
config.h