mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-27 20:48:22 +00:00
default. Now uses libsensors. Ripped the display formatting code from sensors (with some modification) but needless to say I've only tested a single chip. Doesn't support alarms yet. With a bit of work, could share the display formatting code with sensors so just one source needs updating. Compiles on my machine. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@661 7894878c-1315-0410-8ee3-d5d059ff63e0
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/*
|
|
* sensord
|
|
*
|
|
* A daemon that logs all sensor information to /var/log/sensors
|
|
* every 5 minutes.
|
|
*
|
|
* Copyright (c) 1999 Merlin Hughes <merlin@merlin.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#define MAX_DATA 5
|
|
|
|
typedef char * (*FormatterFN) (double[]);
|
|
|
|
typedef struct {
|
|
FormatterFN format;
|
|
int labelNumber;
|
|
int dataNumbers[MAX_DATA + 1];
|
|
} FeatureDescriptor;
|
|
|
|
typedef struct {
|
|
char **names;
|
|
FeatureDescriptor *features;
|
|
} ChipDescriptor;
|
|
|
|
extern ChipDescriptor knownChips[];
|