mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-04 12:27:04 +00:00
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
39 lines
707 B
Plaintext
39 lines
707 B
Plaintext
; Config to test config parsing
|
|
; global and item have values that differ from defaults
|
|
; global_defaults and item_defualts are to show all defaults are set
|
|
; there should be an option for every default type, and a custom type
|
|
|
|
[global]
|
|
intopt=-1
|
|
uintopt=1
|
|
doubleopt=0.1
|
|
sockaddropt=1.2.3.4:1234
|
|
boolopt=true
|
|
boolflag1=true
|
|
boolflag2=false
|
|
boolflag3=true
|
|
acldenyopt=0.0.0.0/0
|
|
aclpermitopt=1.2.3.4/32
|
|
codecopt=!all,ulaw,g729
|
|
stropt=test
|
|
customopt=yes
|
|
|
|
[global_defaults]
|
|
|
|
[item]
|
|
intopt=-1
|
|
uintopt=1
|
|
doubleopt=0.1
|
|
sockaddropt=1.2.3.4:1234
|
|
boolopt=true
|
|
boolflag1=true
|
|
boolflag2=false
|
|
boolflag3=true
|
|
acldenyopt=0.0.0.0/0
|
|
aclpermitopt=1.2.3.4/32
|
|
codecopt=!all,ulaw,g729
|
|
stropt=test
|
|
customopt=yes
|
|
|
|
[item_defaults]
|