Changeset 95
- Timestamp:
- 12/20/98 17:54:03 (10 years ago)
- Files:
-
- lm-sensors/trunk/lib/Module.mk (modified) (2 diffs)
- lm-sensors/trunk/lib/access.c (added)
- lm-sensors/trunk/lib/access.h (modified) (2 diffs)
- lm-sensors/trunk/lib/chips.c (modified) (1 diff)
- lm-sensors/trunk/lib/data.c (added)
- lm-sensors/trunk/lib/data.h (added)
- lm-sensors/trunk/lib/general.c (modified) (1 diff)
- lm-sensors/trunk/lib/proc.c (added)
- lm-sensors/trunk/lib/proc.h (added)
- lm-sensors/trunk/lib/sensors.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/lib/Module.mk
r93 r95 36 36 37 37 LIBCSOURCES := $(MODULE_DIR)/data.c $(MODULE_DIR)/general.c \ 38 $(MODULE_DIR)/error.c $(MODULE_DIR)/chips.c 38 $(MODULE_DIR)/error.c $(MODULE_DIR)/chips.c \ 39 $(MODULE_DIR)/proc.c $(MODULE_DIR)/access.c 39 40 LIBOTHEROBJECTS := $(MODULE_DIR)/conf-parse.o $(MODULE_DIR)/conf-lex.o 40 41 LIBSHOBJECTS := $(LIBCSOURCES:.c=.lo) $(LIBOTHEROBJECTS:.o=.lo) 41 42 LIBSTOBJECTS := $(LIBCSOURCES:.c=.ao) $(LIBOTHEROBJECTS:.o=.ao) 43 LIBEXTRACLEAN := $(MODULE_DIR)/conf_parse.h 42 44 43 LIBHEADERFILES := $(MODULE_DIR)/error.h 45 LIBHEADERFILES := $(MODULE_DIR)/error.h $(MODULE_DIR)/sensors.h 44 46 45 47 # How to create the shared library … … 76 78 $(RM) $(LIBTARGETS) $(LIBSHOBJECTS) $(LIBSTOBJECTS) 77 79 $(RM) $(LIBSHOBJECTS:.lo=.ld) $(LIBSTOBJECTS:.ao=.ad) 78 $(RM) $(LIBOTHEROBJECTS:.o=.c) $( MODULE_DIR)/conf-parse.h80 $(RM) $(LIBOTHEROBJECTS:.o=.c) $(LIBEXTRACLEAN) 79 81 clean :: clean-lib lm-sensors/trunk/lib/access.h
r93 r95 20 20 #ifndef LIB_SENSORS_ACCESS_H 21 21 #define LIB_SENSORS_ACCESS_H 22 23 #include "sensors.h" 24 #include "data.h" 22 25 23 26 typedef struct sensors_chip_feature { … … 46 49 extern sensors_chip_features sensors_chip_features_list[]; 47 50 51 /* Returns, one by one, a pointer to all sensor_chip structs of the 52 config file which match with the given chip name. Last should be 53 the value returned by the last call, or NULL if this is the first 54 call. Returns NULL if no more matches are found. Do not modify 55 the struct the return value points to! 56 Note that this visits the list of chips from last to first. Usually, 57 you want the match that was latest in the config file. */ 58 extern sensors_chip *sensors_for_all_config_chips(sensors_chip_name chip_name, 59 sensors_chip *last); 60 61 /* Look up a resource in the intern chip list, and return a pointer to it. 62 Do not modify the struct the return value points to! Returns NULL if 63 not found. */ 64 extern sensors_chip_feature *sensors_lookup_feature_nr(const char *prefix, 65 int feature); 66 67 /* Look up a resource in the intern chip list, and return a pointer to it. 68 Do not modify the struct the return value points to! Returns NULL if 69 not found.*/ 70 extern sensors_chip_feature *sensors_lookup_feature_name(const char *prefix, 71 const char *feature); 72 48 73 #endif /* def LIB_SENSORS_ACCESS_H */ lm-sensors/trunk/lib/chips.c
r93 r95 36 36 37 37 38 #define VALUE(x) (x-1) * sizeof( double)38 #define VALUE(x) (x-1) * sizeof(long) 39 39 40 40 static sensors_chip_feature lm78_features[] = lm-sensors/trunk/lib/general.c
r91 r95 18 18 */ 19 19 20 #include "error.h" 20 21 #include "general.h" 21 22 #include <errno.h>
