Simple Config 1.1.0 review

Download
by rbytes.net on

Simple Config library supports configuration files consisting of simple name-value pairs, similar to the old Windows INI files

License: GPL (GNU General Public License)
File size: 23K
Developer: Jeffrey Dutky
0 stars award from rbytes.net

Simple Config library supports configuration files consisting of simple name-value pairs, similar to the old Windows INI files. A config file can be loaded into memory, queried by item name, modified, and written back out to a file. Configuration items may also be "watched", which causes a user-supplied callback function to be called with the named item is modified

Client code can query the configuration system for named values, set named values, test the type of values (STR, INT, FIX, BOOL, DATE or TIME) and watch values for changes. The system can update the configuration file when the application has changed or added values, even preserving the original format and commens from the input configuration file.

There's not much to it, at the moment, not even a manpage, so you're on your own as far as using the library. There is a ReadMe file and a makefile, so you can easily build and install the library.

The whole thing took about a week to design, code and test, so it's no heroic effort or anything. With a bit more time and energy it could probably be something really spectacular. My main point was that, given the simple problem statement, it was (relatively) trivial to code up a conforming solution.

What's New in This Release:
A bug was fixed that corrupted the config database, overwriting existing item names and values when new items are set with cfg_setval().
A bunch of changes made for a forthcoming 2.0 release were back-ported.

Simple Config 1.1.0 keywords