Remove trailing whitespace.
[dockapps.git] / wmpower / src / power_management / apm / libapm.h
blob7797b6a42582e93e27aed3240875530f0b0c4fbe
1 /***************************************************************************
2 libapm.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 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
25 * *
26 ***************************************************************************/
28 /***************************************************************************
29 Originally written by Filippo Panessa for his 'wmab' program
30 ***************************************************************************/
32 #define APMDEV "/proc/apm"
34 typedef struct
36 const char driver_version[10];
37 int apm_version_major;
38 int apm_version_minor;
39 int apm_flags;
40 int ac_line_status;
41 int battery_status;
42 int battery_flags;
43 int battery_percentage;
44 int battery_time;
45 int using_minutes;
46 } struct_apm_data;
48 # ifndef APM_32_BIT_SUPPORT
49 # define APM_32_BIT_SUPPORT 0x0002
50 # endif
52 int apm_exists(void);
53 int apm_read(struct_apm_data *);