Add the ability to set flags via the config options api
authorTerry Wilson <twilson@digium.com>
Thu, 28 Jun 2012 01:12:06 +0000 (01:12 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 28 Jun 2012 01:12:06 +0000 (01:12 +0000)
commit1609fca6bb0bb85ac3c423aa7507bb489f7616e9
tree1313e845503f782464e8b5a14289d6d02ddc470c
parent7d9e0158c3bc528e4e59b225604fb4f39ebd653e
Add the ability to set flags via the config options api

Allows the setting of flags via the config options api.
For example, code like this:

#define OPT1 1 << 0
#define OPT2 1 << 1
#define OPT3 1 << 2

struct thing {
   unsigned int flags;
};

and a config like this:

[blah]
opt1=yes
opt2=no
opt3=yes

Review: https://reviewboard.asterisk.org/r/2004/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
configs/config_test.conf.sample
include/asterisk/config_options.h
main/config_options.c
tests/test_config.c