]> git.itanic.dy.fi Git - log-plotter/blobdiff - config.h
Use the same config structure for command line and config file
[log-plotter] / config.h
index 9f817fc7166d88aac450c34920e50bf69b6b370c..37437ea1a52cdf4f262577387c60fe3216e5a11e 100644 (file)
--- a/config.h
+++ b/config.h
@@ -10,8 +10,10 @@ struct plotter_config {
        char *device_path;
        int baudrate;
        char *log_path;
+       char *config_file_path;
 };
 
+int read_args(int argc, char *argv[], struct plotter_config *cfg);
 int populate_config_data_from_file(const char *path,
                                struct plotter_config *cfg);