Remove trailing whitespace.
[dockapps.git] / wmpower / src / power_management / compal / compal_lib.h
blobc96d847bf494a28c769f16e2d8e3d8b580f58067
1 /***************************************************************************
2 compal_lib.h - description
3 -------------------
4 begin : Oct 01 2003
5 copyright : (C) 2003 by Francisco Rodrigo Escobedo Robles
6 e-mail : frer@pepix.net
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 Many thanks to Soós Péter <sp@osb.hu> and the omke project team
30 I could never have done this otherwise
31 ***************************************************************************/
34 #define COMPAL_LCD_MIN 0
35 #define COMPAL_LCD_MAX 10
36 #define COMPAL_MAX_DMI_INFO 1000
37 #define COMPAL_MAX_BATT_INFO 1000
38 #define COMPAL_MAX_MODEL_INFO 255
40 #define COMPAL_PROC_FILE_DMI "/proc/omnibook/dmi"
41 #define COMPAL_PROC_FILE_FAN "/proc/omnibook/fan"
42 #define COMPAL_PROC_FILE_TEMP "/proc/omnibook/temperature"
43 #define COMPAL_PROC_FILE_LCD "/proc/omnibook/lcd"
44 #define COMPAL_PROC_FILE_BATT "/proc/omnibook/battery"
47 char compal_model[COMPAL_MAX_MODEL_INFO];
49 char *getvaluefromhash (char *key, char *hash);
51 int machine_is_compal(void);
52 int compal_get_fan_status(void);
53 int compal_get_temperature(void);
54 int compal_get_lcd_brightness(void);
55 int compal_set_lcd_brightness(int brightness);
56 void Compal_lcdBrightness_UpOneStep(void);
57 void Compal_lcdBrightness_DownOneStep(void);