| 1 | /* |
|---|
| 2 | access.h - Part of libsensors, a Linux library for reading sensor data. |
|---|
| 3 | Copyright (c) 1998, 1999 Frodo Looijaard <frodol@dds.nl> |
|---|
| 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_ACCESS_H |
|---|
| 21 | #define LIB_SENSORS_ACCESS_H |
|---|
| 22 | |
|---|
| 23 | #include "sensors.h" |
|---|
| 24 | #include "data.h" |
|---|
| 25 | |
|---|
| 26 | /* Look up a resource in the intern chip list, and return a pointer to it. |
|---|
| 27 | Do not modify the struct the return value points to! Returns NULL if |
|---|
| 28 | not found. */ |
|---|
| 29 | const sensors_chip_feature *sensors_lookup_feature_nr(const sensors_chip_name *chip, |
|---|
| 30 | int feature); |
|---|
| 31 | |
|---|
| 32 | /* Check whether the chip name is an 'absolute' name, which can only match |
|---|
| 33 | one chip, or whether it has wildcards. Returns 0 if it is absolute, 1 |
|---|
| 34 | if there are wildcards. */ |
|---|
| 35 | int sensors_chip_name_has_wildcards(const sensors_chip_name *chip); |
|---|
| 36 | |
|---|
| 37 | sensors_feature_type sensors_feature_get_type(const char *name, int *nr); |
|---|
| 38 | |
|---|
| 39 | #endif /* def LIB_SENSORS_ACCESS_H */ |
|---|