From 4d2c4fd2122716f0a0add1861043e91a72b9f938 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Sat, 20 May 2006 15:24:37 +0000 Subject: Previous leak fix caused multiple sensors_init() calls to break. This patch fixes that by managing the scanner buffers manually. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3300 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/scanner.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/scanner.h (limited to 'lib/scanner.h') diff --git a/lib/scanner.h b/lib/scanner.h new file mode 100644 index 00000000..d8e9a413 --- /dev/null +++ b/lib/scanner.h @@ -0,0 +1,27 @@ +/* + scanner.h - Part of libsensors, a Linux library for reading sensor data. + Copyright (c) 2006 Mark M. Hoffman + + 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. +*/ + +#ifndef LIB_SENSORS_SCANNER_H +#define LIB_SENSORS_SCANNER_H + +extern int sensors_scanner_init(FILE *input); +extern void sensors_scanner_exit(void); + +#endif + -- cgit v1.2.1