mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
More library files
This brings the archive into synch with my harddisk... Everything in the lib directory should compile without problems (yes, even without warnings even if WARN=1). It is not well-tested, though, and there are some minor functions which must still be added. It is now almost usable. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@95 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b47bfd40c2
commit
730efd78ca
10 files changed
+832
-4
No files matched your search
@@ -20,6 +20,9 @@
|
||||
#ifndef LIB_SENSORS_ACCESS_H
|
||||
#define LIB_SENSORS_ACCESS_H
|
||||
|
||||
#include "sensors.h"
|
||||
#include "data.h"
|
||||
|
||||
typedef struct sensors_chip_feature {
|
||||
int number;
|
||||
const char *name;
|
||||
@@ -45,4 +48,26 @@ typedef struct 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
|
||||
call. Returns NULL if no more matches are found. Do not modify
|
||||
the struct the return value points to!
|
||||
Note that this visits the list of chips from last to first. Usually,
|
||||
you want the match that was latest in the config file. */
|
||||
extern sensors_chip *sensors_for_all_config_chips(sensors_chip_name chip_name,
|
||||
sensors_chip *last);
|
||||
|
||||
/* Look up a resource in the intern chip list, and return a pointer to it.
|
||||
Do not modify the struct the return value points to! Returns NULL if
|
||||
not found. */
|
||||
extern sensors_chip_feature *sensors_lookup_feature_nr(const char *prefix,
|
||||
int feature);
|
||||
|
||||
/* Look up a resource in the intern chip list, and return a pointer to it.
|
||||
Do not modify the struct the return value points to! Returns NULL if
|
||||
not found.*/
|
||||
extern sensors_chip_feature *sensors_lookup_feature_name(const char *prefix,
|
||||
const char *feature);
|
||||
|
||||
#endif /* def LIB_SENSORS_ACCESS_H */
|
||||
Reference in new issue
Block a user