mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
More library extensions
Most notably, config file line numbers are now stored, so we can now generate better error messages. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@98 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1779b684c1
commit
f26b52021b
8 files changed
+97
-9
No files matched your search
+10
@@ -54,17 +54,20 @@ typedef struct sensors_expr {
|
||||
typedef struct sensors_label {
|
||||
char *name;
|
||||
char *value;
|
||||
int lineno;
|
||||
} sensors_label;
|
||||
|
||||
typedef struct sensors_set {
|
||||
char *name;
|
||||
sensors_expr *value;
|
||||
int lineno;
|
||||
} sensors_set;
|
||||
|
||||
typedef struct sensors_compute {
|
||||
char *name;
|
||||
sensors_expr *from_proc;
|
||||
sensors_expr *to_proc;
|
||||
int lineno;
|
||||
} sensors_compute;
|
||||
|
||||
typedef struct sensors_chip_name_list {
|
||||
@@ -84,6 +87,7 @@ typedef struct sensors_chip {
|
||||
sensors_compute *computes;
|
||||
int computes_count;
|
||||
int computes_max;
|
||||
int lineno;
|
||||
} sensors_chip;
|
||||
|
||||
typedef enum sensors_bus_type {sensors_i2c, sensors_isa,
|
||||
@@ -93,6 +97,7 @@ typedef struct sensors_bus {
|
||||
int number;
|
||||
char *adapter;
|
||||
char *algorithm;
|
||||
int lineno;
|
||||
} sensors_bus;
|
||||
|
||||
typedef struct sensors_proc_chips_entry {
|
||||
@@ -100,6 +105,7 @@ typedef struct sensors_proc_chips_entry {
|
||||
sensors_chip_name name;
|
||||
} sensors_proc_chips_entry;
|
||||
|
||||
|
||||
extern sensors_chip *sensors_config_chips;
|
||||
extern int sensors_config_chips_count;
|
||||
extern int sensors_config_chips_max;
|
||||
@@ -112,6 +118,10 @@ extern sensors_proc_chips_entry *sensors_proc_chips;
|
||||
extern int sensors_proc_chips_count;
|
||||
extern int sensors_proc_chips_max;
|
||||
|
||||
extern sensors_bus *sensors_proc_bus;
|
||||
extern int sensors_proc_bus_count;
|
||||
extern int sensors_proc_bus_max;
|
||||
|
||||
/* 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);
|
||||
|
||||
Reference in new issue
Block a user