#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; 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); #endif