initial commit
This commit is contained in:
16
include/battery_monitor.h
Normal file
16
include/battery_monitor.h
Normal 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
7
include/log_message.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef LOG_MESSAGE_H
|
||||
#define LOG_MESSAGE_H
|
||||
|
||||
void log_message(const char* msg);
|
||||
|
||||
#endif
|
||||
|
||||
8
include/process_monitor.h
Normal file
8
include/process_monitor.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user