1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
3 * apcupsd.h: conky module for APC UPS daemon monitoring
5 * Copyright (C) 2009 Jaromir Smrcek <jaromir.smrcek@zoner.com>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (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 GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 * vim: ts=4 sw=4 noet ai cindent syntax=c
44 /* type for data exchange with main thread */
45 #define APCUPSD_MAXSTR 32
46 typedef struct apcupsd_s {
47 char items[_APCUPSD_COUNT][APCUPSD_MAXSTR+1]; /* e.g. items[APCUPSD_STATUS] */
50 } APCUPSD_S, *PAPCUPSD_S;
52 /* Service routine for the conky main thread */
53 void update_apcupsd(void);
55 /* fill in the default values */
56 void init_apcupsd(void);