Add new config metrics
[hdmi-switcher.git] / config.c
index a752d13..487e3e9 100644 (file)
--- a/config.c
+++ b/config.c
@@ -10,6 +10,14 @@ static int handler(void* user, const char* section, const char* name, const char
     #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")) {