2009-07-28 21:44:22 +00:00
|
|
|
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
|
2009-09-12 10:50:51 +00:00
|
|
|
* vim: ts=4 sw=4 noet ai cindent syntax=c
|
2009-07-28 21:44:22 +00:00
|
|
|
*
|
|
|
|
* apcupsd.h: conky module for APC UPS daemon monitoring
|
2009-05-10 19:11:09 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Jaromir Smrcek <jaromir.smrcek@zoner.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
2009-07-27 20:47:19 +00:00
|
|
|
* USA.
|
|
|
|
*
|
|
|
|
*/
|
2009-05-10 19:11:09 +00:00
|
|
|
|
|
|
|
#ifndef APCUPSD_H_
|
|
|
|
#define APCUPSD_H_
|
|
|
|
|
2009-12-17 22:07:15 +00:00
|
|
|
int apcupsd_scan_arg(const char *);
|
2009-05-10 19:11:09 +00:00
|
|
|
|
|
|
|
/* Service routine for the conky main thread */
|
2010-05-05 16:46:04 +00:00
|
|
|
int update_apcupsd(void);
|
2009-05-10 19:11:09 +00:00
|
|
|
|
2009-12-04 00:37:32 +00:00
|
|
|
double apcupsd_loadbarval(struct text_object *);
|
2009-11-08 17:14:42 +00:00
|
|
|
|
|
|
|
void print_apcupsd_name(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_model(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_upsmode(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_cable(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_status(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_linev(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_load(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_charge(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_timeleft(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_temp(struct text_object *, char *, int);
|
|
|
|
void print_apcupsd_lastxfer(struct text_object *, char *, int);
|
|
|
|
|
2009-05-10 19:11:09 +00:00
|
|
|
#endif /*APCUPSD_H_*/
|