X-Git-Url: http://git.itanic.dy.fi/?p=log-plotter;a=blobdiff_plain;f=config.h;fp=config.h;h=9f817fc7166d88aac450c34920e50bf69b6b370c;hp=0000000000000000000000000000000000000000;hb=84ab13170c021724847f80663c9136ec8badac57;hpb=d44a215cef8d81a7dbb0f52168f5cca2cfc31aed diff --git a/config.h b/config.h new file mode 100644 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