]> git.itanic.dy.fi Git - log-plotter/blobdiff - config.h
Add primitive config file parsing support
[log-plotter] / config.h
diff --git a/config.h b/config.h
new file mode 100644 (file)
index 0000000..9f817fc
--- /dev/null
+++ b/config.h
@@ -0,0 +1,18 @@
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+
+struct plotter_config {
+       char *charger_name;
+
+       char *plotter_scripts_dir;
+       char *images_output_dir;
+
+       char *device_path;
+       int baudrate;
+       char *log_path;
+};
+
+int populate_config_data_from_file(const char *path,
+                               struct plotter_config *cfg);
+
+#endif