[asterisk-dev] [Code Review] Add the ability to set flags via the config options api

Terry Wilson reviewboard at asterisk.org
Tue Jun 26 19:27:46 CDT 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2004/
-----------------------------------------------------------

Review request for Asterisk Developers.


Summary
-------

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


Diffs
-----

  /trunk/configs/config_test.conf.sample 369417 
  /trunk/include/asterisk/config_options.h 369417 
  /trunk/main/config_options.c 369417 
  /trunk/tests/test_config.c 369417 

Diff: https://reviewboard.asterisk.org/r/2004/diff


Testing
-------

I wrote a test, and that passes.


Thanks,

Terry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120627/086294f0/attachment.htm>


More information about the asterisk-dev mailing list