This adds the boiler plate code necessary to handle file-based configurations:
- Lookup
fuzzel.iniinXDG_CONFIG_HOMEorXDG_CONFIG_DIRS - Recognize valid option names
- Command line arguments override both defaults, and options set in
fuzzel.ini - Minor updates to existing API, only what was necessary to get things to compile
(削除) NOTE: does not yet work - values aren't (yet) loaded from the conf file. See TODO below. (削除ここまで)
This should now be ready for testing. See the bundled fuzzel.ini for available options.
TODO:
- Clean up APIs. Most objects should just take a pointer to a conf struct, instead of all their options as individual arguments
- Actually parse option values
- Documentation
- Changelog
- Add
--config=PATHcommand line option
Closes #3