2
* Copyright (C) 2002,2003,2004 Mattia Dongili<dongili@supereva.it>
3
* George Staikos <staikos@0wned.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
/* function declaration */
22
int read_args (int argc, char *argv[]);
23
int write_cpufreqd_pid (void);
24
int clear_cpufreqd_pid (void);
25
int is_system_changed (const sys_info *sys_now,
26
const sys_info *sys_prev);
27
int get_rule_hits (const sys_info *si,
29
int get_running_programs (void);
30
int free_running_programs (void);
31
rule *find_valid_rule (const sys_info *si, rule *r);
32
int set_policy (profile *prof);
33
void print_version (const char *me);
34
void print_help (const char *me);
36
void close_libraries (void);
37
int load_libraries (void);
39
void cp_log (const int prio, const char *fmt, ...);
42
void term_handler (int signo);
43
void int_handler (int signo);
44
void hup_handler (int signo);