MCPcopy Create free account
hub / github.com/acl-dev/acl / set_cfg_bool

Method set_cfg_bool

lib_acl_cpp/src/master/master_conf.cpp:130–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void master_conf::set_cfg_bool(master_bool_tbl* table)
131{
132 if (table == NULL || bool_cfg_) {
133 return;
134 }
135
136 int i = 0;
137 for (; table[i].name != NULL; i++) {}
138
139 bool_cfg_ = (ACL_CFG_BOOL_TABLE*) acl_mycalloc(i + 1,
140 sizeof(ACL_CFG_BOOL_TABLE));
141
142 for (i = 0; table[i].name != NULL; i++) {
143 bool_cfg_[i].name = table[i].name;
144 bool_cfg_[i].defval = table[i].defval;
145 bool_cfg_[i].target = table[i].target;
146 }
147 bool_cfg_[i].name = NULL;
148 load_bool();
149}
150
151void master_conf::set_cfg_int(master_int_tbl* table)
152{

Callers 15

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected