|
@@ -6,7 +6,23 @@ void config_load_default(config_t *cfg)
|
|
config_add_int(cfg, "pin.clk", 3);
|
|
config_add_int(cfg, "pin.clk", 3);
|
|
config_add_int(cfg, "pin.ack", 4);
|
|
config_add_int(cfg, "pin.ack", 4);
|
|
config_add_int(cfg, "cache.size", 4096);
|
|
config_add_int(cfg, "cache.size", 4096);
|
|
|
|
+
|
|
|
|
+ config_add_string(cfg, "cache.file", "/tmp/compteur_elec.cache");
|
|
|
|
+
|
|
|
|
+ config_add_int(cfg, "mount", 1);
|
|
|
|
+ config_add_string(cfg, "mount.file", "192.168.0.88");
|
|
|
|
+ config_add_string(cfg, "mount.src", "//192.168.0.88/nas");
|
|
|
|
+ config_add_string(cfg, "mount.dst", "/media/nas");
|
|
|
|
+ config_add_string(cfg, "mount.username", "ptitcois");
|
|
|
|
+ config_add_string(cfg, "mount.password", "e1010898");
|
|
|
|
+
|
|
|
|
+ config_add_string(cfg, "storage.location", "/media/samba");
|
|
|
|
+ config_add_string(cfg, "storage.data", "data");
|
|
|
|
+ config_add_string(cfg, "storage.years", "years");
|
|
|
|
+ config_add_string(cfg, "storage.monthes", "monthes");
|
|
|
|
+ config_add_string(cfg, "storage.days", "days");
|
|
|
|
|
|
|
|
+ config_add_string(cfg, "misc.pidfile", "/tmp/compteur_elec.cache");
|
|
}
|
|
}
|
|
|
|
|
|
opt_t* _config_get(config_t* cfg, const char* name)
|
|
opt_t* _config_get(config_t* cfg, const char* name)
|