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

Method set_cfg_str

lib_acl_cpp/src/master/master_conf.cpp:198–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void master_conf::set_cfg_str(master_str_tbl* table)
199{
200 if (table == NULL || str_cfg_) {
201 return;
202 }
203
204 int i = 0;
205 for (; table[i].name != NULL; i++) {}
206
207 str_cfg_ = (ACL_CFG_STR_TABLE*) acl_mycalloc(i + 1,
208 sizeof(ACL_CFG_STR_TABLE));
209
210 for (i = 0; table[i].name != NULL; i++) {
211 str_cfg_[i].name = table[i].name;
212 str_cfg_[i].defval = table[i].defval;
213 str_cfg_[i].target = table[i].target;
214 }
215 str_cfg_[i].name = NULL;
216 load_str();
217}
218
219ACL_CFG_INT_TABLE* master_conf::get_int_cfg() const
220{

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