summaryrefslogtreecommitdiff
path: root/lib/scanner.h
diff options
context:
space:
mode:
authorMark M. Hoffman <mhoffman@lightlink.com>2006-05-20 15:24:37 +0000
committerMark M. Hoffman <mhoffman@lightlink.com>2006-05-20 15:24:37 +0000
commit4d2c4fd2122716f0a0add1861043e91a72b9f938 (patch)
treeec50bc6accd052ee306822e3b67d8d9a42b82f66 /lib/scanner.h
parent54423af70de9f30d0976c6c74d750a1c772be478 (diff)
downloadlm-sensors-git-4d2c4fd2122716f0a0add1861043e91a72b9f938.tar.gz
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
Diffstat (limited to 'lib/scanner.h')
-rw-r--r--lib/scanner.h27
1 files changed, 27 insertions, 0 deletions
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 <mhoffman@lightlink.com>
+
+ 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
+