#define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0
if (MATCH("global", "credit_value")) {
pconfig->credit_value = atoi(value);
+ } else if (MATCH("global", "external_timer")) {
+ pconfig->external_timer = atoi(value);
+ } else if (MATCH("global", "sync_switch")) {
+ pconfig->sync_switch = atoi(value);
+ } else if (MATCH("global", "sync_switch_delay")) {
+ pconfig->sync_switch_delay = atoi(value);
+ } else if (MATCH("global", "default_switch_state")) {
+ pconfig->default_switch_state = atoi(value);
//}else if (MATCH("user", "name")) {
// pconfig->name = strdup(value);
//} else if (MATCH("user", "email")) {