mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
New sensors.conf keyword 'ignore'
This often-asked for, long-planned and somewhat-forgotten feature makes it possible to tell libsensors-linked applications (like the sensors program) that certain features should not be displayed. This is very nice for things like unconnected temperature sensors or fans. Modifications to the library code, to the sensors program and to the documentation and example sensors.conf file. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@676 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
01bad38253
commit
8199abde46
10 files changed
+648
-376
No files matched your search
@@ -79,6 +79,12 @@ typedef struct sensors_compute {
|
||||
int lineno;
|
||||
} sensors_compute;
|
||||
|
||||
/* Config file ignore declaration: a feature name */
|
||||
typedef struct sensors_ignore {
|
||||
char *name;
|
||||
int lineno;
|
||||
} sensors_ignore;
|
||||
|
||||
/* A list of chip names, used to represent a config file chips declaration */
|
||||
typedef struct sensors_chip_name_list {
|
||||
sensors_chip_name *fits;
|
||||
@@ -98,6 +104,9 @@ typedef struct sensors_chip {
|
||||
sensors_compute *computes;
|
||||
int computes_count;
|
||||
int computes_max;
|
||||
sensors_ignore *ignores;
|
||||
int ignores_count;
|
||||
int ignores_max;
|
||||
int lineno;
|
||||
} sensors_chip;
|
||||
|
||||
|
||||
Reference in new issue
Block a user