feat(config file): add a config file
This commit is contained in:
27
include/config.h
Normal file
27
include/config.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#define LED_BLINK_TRIGGER_DISABLED 101
|
||||
|
||||
/**
|
||||
* @brief parse the config file
|
||||
*
|
||||
* @param path the path to the config file
|
||||
*/
|
||||
void parse_config_file(char *path);
|
||||
|
||||
/**
|
||||
* @brief setup the led formula
|
||||
*/
|
||||
void setup_led_formula(void);
|
||||
|
||||
extern char *battery_status_path;
|
||||
extern char *battery_power_source;
|
||||
|
||||
extern char *led_brightness_path;
|
||||
|
||||
extern unsigned int led_blink_trigger_level;
|
||||
extern char *led_blink_timing_formula;
|
||||
|
||||
double led_blink_timing_func(int percent);
|
||||
|
||||
extern char *acpi_daemon_socket_path;
|
Reference in New Issue
Block a user