[asterisk-dev] [Code Review] Add the ability to set flags via the config options api
Joshua Colp
reviewboard at asterisk.org
Wed Jun 27 09:09:12 CDT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2004/#review6585
-----------------------------------------------------------
Ship it!
THANK YOU!
- Joshua
On June 26, 2012, 7:27 p.m., Terry Wilson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2004/
> -----------------------------------------------------------
>
> (Updated June 26, 2012, 7:27 p.m.)
>
>
> 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/717e1dc8/attachment.htm>
More information about the asterisk-dev
mailing list