diff options
author | Frodo Looijaard <frodol@dds.nl> | 1998-12-25 21:51:59 +0000 |
---|---|---|
committer | Frodo Looijaard <frodol@dds.nl> | 1998-12-25 21:51:59 +0000 |
commit | faa996f454fe51c881026623b56d2f7a74fe2f03 (patch) | |
tree | 59a6fdfb3f53edb70000733b2c50ccb24d18d7ce /lib/access.h | |
parent | a4940fe7c3a5cc8978f16c78fd36442dfd1edbdc (diff) | |
download | lm-sensors-git-faa996f454fe51c881026623b56d2f7a74fe2f03.tar.gz |
Moved some library functions around, to put them in more logical files.
No external changes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@119 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/access.h')
-rw-r--r-- | lib/access.h | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/lib/access.h b/lib/access.h index ae1d9f33..9545a9d3 100644 --- a/lib/access.h +++ b/lib/access.h @@ -23,24 +23,6 @@ #include "sensors.h" #include "data.h" -typedef struct sensors_chip_feature { - int number; - const char *name; - int logical_mapping; - int compute_mapping; - int mode; - int sysctl; - int offset; - int scaling; -} sensors_chip_feature; - -typedef struct sensors_chip_features { - const char *prefix; - struct sensors_chip_feature *feature; -} sensors_chip_features; - -extern sensors_chip_features sensors_chip_features_list[]; - /* Returns, one by one, a pointer to all sensor_chip structs of the config file which match with the given chip name. Last should be the value returned by the last call, or NULL if this is the first @@ -67,4 +49,14 @@ extern sensors_chip_feature *sensors_lookup_feature_name(const char *prefix, in the chips lists */ extern int sensors_substitute_busses(void); + +/* Parse an i2c bus name into its components. Returns 0 on succes, a value from + error.h on failure. */ +extern int sensors_parse_i2cbus_name(const char *name, int *res); + +/* Evaluate an expression */ +extern int sensors_eval_expr(sensors_chip_name chipname, sensors_expr *expr, + double val, double *result); + + #endif /* def LIB_SENSORS_ACCESS_H */ |