24 lines
649 B
C
24 lines
649 B
C
#ifndef BATTERY_MONITOR_H
|
|
#define BATTERY_MONITOR_H
|
|
|
|
void show_notification(const char *message, const char *title);
|
|
int get_battery_level();
|
|
int is_charging();
|
|
int activate_battery_saving_mode();
|
|
int enter_sleep_mode();
|
|
int kill_processes(const char *filename);
|
|
int set_brightness(int brightness);
|
|
void log_message(const char *message);
|
|
|
|
// New function declaration for process monitoring
|
|
int get_high_cpu_processes(char *process_list[], int max_processes);
|
|
|
|
extern int battery_saving_mode_active;
|
|
extern int THRESHOLD_LOW;
|
|
extern int THRESHOLD_CRITICAL;
|
|
extern int THRESHOLD_HIGH;
|
|
|
|
void load_thresholds_from_config();
|
|
|
|
#endif // BATTERY_MONITOR_H
|