summaryrefslogtreecommitdiff
path: root/lib/access.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-08-16 10:04:57 +0000
committerJean Delvare <khali@linux-fr.org>2007-08-16 10:04:57 +0000
commitedb42b3c1648eac51ed269b1ddcab5436897d526 (patch)
tree76b552de5a05314602ad41c372ba6b3cd0795b02 /lib/access.h
parent493d9b27f55286a0bbed4c814f87bfa763a4cb34 (diff)
downloadlm-sensors-git-edb42b3c1648eac51ed269b1ddcab5436897d526.tar.gz
Add a new function to libsensors doing the opposite of
sensors_parse_chip_name(). sensors_snprintf_chip_name() converts a chip name from its internal representation to a human readable string. So far, each user program had to reimplement this function. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4676 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/access.h')
-rw-r--r--lib/access.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/access.h b/lib/access.h
index 0298ae54..b5639246 100644
--- a/lib/access.h
+++ b/lib/access.h
@@ -29,6 +29,11 @@
extern const sensors_chip_feature *sensors_lookup_feature_nr(const sensors_chip_name *chip,
int feature);
+/* Check whether the chip name is an 'absolute' name, which can only match
+ one chip, or whether it has wildcards. Returns 0 if it is absolute, 1
+ if there are wildcards. */
+int sensors_chip_name_has_wildcards(const sensors_chip_name *chip);
+
sensors_feature_type sensors_feature_get_type(const char *name, int *nr);
#endif /* def LIB_SENSORS_ACCESS_H */