Initial dockapps git repo
[dockapps.git] / wmpower-0.4.3 / src / power_management / power_management.h
blobb5c3deff0c0b998a0b6d8fe8840de33aa8b64d50
1 /***************************************************************************
2 power_management.h - description
3 -------------------
4 begin : Feb 10 2003
5 copyright : (C) 2003 by Noberasco Michele
6 e-mail : 2001s098@educ.disi.unige.it
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * GNU General Public License for more details. *
20 * *
21 * You should have received a copy of the GNU General Public License *
22 * along with this program; if not, write to the *
23 * Free Software Foundation, Inc., *
24 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
25 * *
26 ***************************************************************************/
28 #define PM_Error -1
29 #define PM_ACPI 2
30 #define PM_APM 3
32 typedef enum
34 IS_2_6 = 0,
35 IS_OTHER
36 } kernel_versions;
37 kernel_versions kernel_version;
39 typedef struct
41 int battery_percentage;
42 int battery_charging;
43 int battery_time;
44 int battery_present;
45 int ac_on_line;
46 int fan_status;
47 int temperature;
48 int temp_is_celsius;
50 } pm_status;
52 int minBrightness;
53 int maxBrightness;
54 int waittime; /* /proc polling time */
55 char *cpufreq_online_governor;
56 char *cpufreq_offline_governor;
58 int pm_support(int which_battery);
59 void get_power_status(pm_status *power_status);
60 void set_pm_features(void);
61 int fast_battery_charge(int toggle);
62 int get_fast_battery_charge_mode(void);
63 void set_noflushd_use(int toggle);
64 void set_toshiba_hardware_use(int toggle);
65 void set_cpufreq_use(int toggle);
66 void lcdBrightness_UpOneStep();
67 void lcdBrightness_DownOneStep();