root/lm-sensors/tags/V2-10-2/lib/scanner.h

Revision 3300, 1.0 kB (checked in by mmh, 3 years ago)

Previous leak fix caused multiple sensors_init() calls to break.
This patch fixes that by managing the scanner buffers manually.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2     scanner.h - Part of libsensors, a Linux library for reading sensor data.
3     Copyright (c) 2006 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 LIB_SENSORS_SCANNER_H
21 #define LIB_SENSORS_SCANNER_H
22
23 extern int sensors_scanner_init(FILE *input);
24 extern void sensors_scanner_exit(void);
25
26 #endif
27
Note: See TracBrowser for help on using the browser.