root/lm-sensors/trunk/lib/sysfs.h

Revision 3098, 1.3 kB (checked in by mmh, 3 years ago)

(mmh)
Bugfix: lib/init.c wasn't compiling properly if SYSFS_SUPPORT was turned off.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2     sysfs.h - part of libsensors, a library for reading Linux sensor data
3     Copyright (C) Mark M. Hoffman <mhoffman@lightlink.com>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef SENSORS_LIB_SYSFS_H
21 #define SENSORS_LIB_SYSFS_H
22
23 #ifdef SYSFS_SUPPORT
24 extern int sensors_found_sysfs;
25
26 extern char sensors_sysfs_mount[];
27
28 extern int sensors_init_sysfs(void);
29
30 extern int sensors_read_sysfs_chips(void);
31
32 extern int sensors_read_sysfs_bus(void);
33
34 #else
35
36 #define sensors_found_sysfs 0
37 #define sensors_init_sysfs() 0
38 #define sensors_read_sysfs_chips() (-1)
39 #define sensors_read_sysfs_bus() (-1)
40
41 #endif
42
43 #endif /* !SENSORS_LIB_SYSFS_H */
Note: See TracBrowser for help on using the browser.