changes related to temperature and layout
[monky] / src / smapi.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
2  *
3  * smapi.h:  conky support for IBM Thinkpad smapi
4  *
5  * Copyright (C) 2007 Phil Sutter <Phil@nwl.cc>
6  *
7  * This library is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
20  * USA.
21  *
22  */
23
24 #ifndef _SMAPI_H
25 #define _SMAPI_H
26
27 int smapi_bat_installed(int);
28
29 char *smapi_read_str(const char *);
30 int smapi_read_int(const char *);
31
32 char *smapi_get_str(const char *);
33 char *smapi_get_val(const char *);
34
35 char *smapi_get_bat_str(int, const char *);
36 int smapi_get_bat_int(int, const char *);
37 char *smapi_get_bat_val(const char *);
38
39 void print_smapi(struct text_object *, char *, int);
40 void print_smapi_bat_perc(struct text_object *, char *, int);
41 void print_smapi_bat_temp(struct text_object *, char *, int);
42 void print_smapi_bat_power(struct text_object *, char *, int);
43 void print_smapi_bat_bar(struct text_object *, char *, int);
44
45 #endif /* _SMAPI_H */