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
This commit is contained in:
Frodo Looijaard committed 1998-12-25 21:51:59 +00:00
1 parent a4940fe7c3
commit faa996f454
9 files changed
+116 -88

No files matched your search

+10 -18
View File
@@ -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 */