1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
3 * smapi.h: conky support for IBM Thinkpad smapi
5 * Copyright (C) 2007 Phil Sutter <Phil@nwl.cc>
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.
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.
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
27 int smapi_bat_installed(int);
29 char *smapi_read_str(const char *);
30 int smapi_read_int(const char *);
32 char *smapi_get_str(const char *);
33 char *smapi_get_val(const char *);
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 *);
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);