Fixed git ignore, updated much functionality, updated the procress_monitor to work, updated install.sh, added license, updated Makefile, updated install.sh, updated README.md, all that
This commit is contained in:
@@ -1,8 +1,21 @@
|
||||
#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);
|
||||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
extern bool dry_run;
|
||||
extern pid_t suspended_pids[];
|
||||
extern int suspended_count;
|
||||
extern pid_t suspended_high_cpu_pids[];
|
||||
extern int suspended_high_cpu_count;
|
||||
|
||||
int run_battery_saving_mode(pid_t current_pid);
|
||||
int get_ignore_processes(char *ignore_list[], int max_ignores, const char *config_key);
|
||||
int is_process_critical(const char *process_name, char *ignore_list[], int ignore_count);
|
||||
|
||||
int suspend_user_daemons();
|
||||
int resume_user_daemons();
|
||||
int resume_high_cpu_processes();
|
||||
|
||||
#endif // PROCESS_MONITOR_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user