]> git.itanic.dy.fi Git - log-plotter/blob - config.h
bal.plot: Convert volts to millivolts correctly
[log-plotter] / config.h
1 #ifndef _CONFIG_H_
2 #define _CONFIG_H_
3
4 struct plotter_config {
5         char *charger_name;
6
7         char *plotter_scripts_dir;
8         char *images_output_dir;
9
10         char *device_path;
11         int baudrate;
12         char *log_path;
13         char *config_file_path;
14 };
15
16 int read_args(int argc, char *argv[], struct plotter_config *cfg);
17 int populate_config_data_from_file(const char *path,
18                                 struct plotter_config *cfg);
19
20 #endif