Changeset 4544
- Timestamp:
- 07/03/07 16:26:26 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0/lib
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/lib/access.c
r4543 r4544 28 28 #include "general.h" 29 29 30 static int sensors_do_this_chip_sets(sensors_chip_name name); 30 static int sensors_eval_expr(sensors_chip_name chipname, 31 const sensors_expr *expr, 32 double val, double *result); 31 33 32 34 /* Compare two chips name descriptions, to see whether they could match. … … 71 73 Note that this visits the list of chips from last to first. Usually, 72 74 you want the match that was latest in the config file. */ 73 sensors_chip *sensors_for_all_config_chips(sensors_chip_name chip_name, 74 const sensors_chip * last) 75 static sensors_chip * 76 sensors_for_all_config_chips(sensors_chip_name chip_name, 77 const sensors_chip *last) 75 78 { 76 79 int nr, i; … … 111 114 Do not modify the struct the return value points to! Returns NULL if 112 115 not found.*/ 113 const sensors_chip_feature *sensors_lookup_feature_name(const sensors_chip_name *chip, 114 const char *feature)116 static const sensors_chip_feature * 117 sensors_lookup_feature_name(const sensors_chip_name *chip, const char *feature) 115 118 { 116 119 int i, j; … … 350 353 } 351 354 355 /* Evaluate an expression */ 352 356 int sensors_eval_expr(sensors_chip_name chipname, const sensors_expr * expr, 353 357 double val, double *result) … … 411 415 contain wildcards! This function will return 0 on success, and <0 on 412 416 failure. */ 413 int sensors_do_this_chip_sets(sensors_chip_name name)417 static int sensors_do_this_chip_sets(sensors_chip_name name) 414 418 { 415 419 sensors_chip *chip; -
lm-sensors/branches/lm-sensors-3.0.0/lib/access.h
r4508 r4544 24 24 #include "data.h" 25 25 26 /* Returns, one by one, a pointer to all sensor_chip structs of the27 config file which match with the given chip name. Last should be28 the value returned by the last call, or NULL if this is the first29 call. Returns NULL if no more matches are found. Do not modify30 the struct the return value points to!31 Note that this visits the list of chips from last to first. Usually,32 you want the match that was latest in the config file. */33 extern sensors_chip *sensors_for_all_config_chips(sensors_chip_name chip_name,34 const sensors_chip *last);35 36 26 /* Look up a resource in the intern chip list, and return a pointer to it. 37 27 Do not modify the struct the return value points to! Returns NULL if … … 39 29 extern const sensors_chip_feature *sensors_lookup_feature_nr(const sensors_chip_name *chip, 40 30 int feature); 41 42 /* Look up a resource in the intern chip list, and return a pointer to it.43 Do not modify the struct the return value points to! Returns NULL if44 not found.*/45 extern const sensors_chip_feature *sensors_lookup_feature_name46 (const sensors_chip_name *chip, const char *feature);47 31 48 32 /* Substitute configuration bus numbers with real-world /proc bus numbers … … 55 39 extern int sensors_parse_i2cbus_name(const char *name, int *res); 56 40 57 /* Evaluate an expression */58 extern int sensors_eval_expr(sensors_chip_name chipname,59 const sensors_expr *expr,60 double val, double *result);61 62 63 41 #endif /* def LIB_SENSORS_ACCESS_H */
