Show
Ignore:
Timestamp:
09/23/07 14:05:16 (6 years ago)
Author:
khali
Message:

Define a separate structure to represent main features. This allows
for faster main features lookup. One side effect of this change is
that subfeatures can no longer have labels nor be ignored. I do not
think that this is a problem in practice, and actually this makes a
lot of sense.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/sensord.h

    r4828 r4834  
    5757/* from sense.c */ 
    5858 
    59 extern int getRawLabel (const sensors_chip_name *name, int feature, const char **label); 
    60  
    6159extern int readChips (void); 
    6260extern int scanChips (void); 
     
    9290  int alarmNumber; 
    9391  int beepNumber; 
    94   int dataNumbers[MAX_DATA + 1]; /* First entry is used for the label */ 
     92  const sensors_feature *feature; 
     93  int dataNumbers[MAX_DATA + 1]; 
    9594} FeatureDescriptor; 
    9695