initial commit

This commit is contained in:
klein panic
2024-09-29 02:33:20 -04:00
commit 55283e90df
17 changed files with 1297 additions and 0 deletions

16
include/battery_monitor.h Normal file
View File

@@ -0,0 +1,16 @@
#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);
#endif // BATTERY_MONITOR_H

7
include/log_message.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef LOG_MESSAGE_H
#define LOG_MESSAGE_H
void log_message(const char* msg);
#endif

View File

@@ -0,0 +1,8 @@
#ifndef PROCESS_MONITOR_H
#define PROCESS_MONITOR_H
int get_high_cpu_processes(char *process_list[], int max_processes);
void free_process_list(char *process_list[], int count);
#endif // PROCESS_MONITOR_H