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

New public library function: sensors_get_subfeature(). Applications can
use it to retrieve a specific subfeature by type. While it is slighly
less efficient than looping over sensors_get_all_subfeatures(), it
often makes the application code much more elegant.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/libsensors.3

    r4838 r4846  
    4747.B const sensors_feature *sensors_get_features(const sensors_chip_name *name, int *nr);\fP 
    4848.B const sensors_subfeature *sensors_get_all_subfeatures(const sensors_chip_name *name, const sensors_feature *feature, int *nr);\fP 
     49.B const sensors_subfeature *sensors_get_subfeature(const sensors_chip_name *name, const sensors_feature *feature, sensors_subfeature_type type);\fP 
    4950.B const char *libsensors_version; 
    5051.fi 
     
    141142data structures. 
    142143 
     144\fBconst sensors_subfeature *sensors_get_subfeature(const sensors_chip_name *name, const sensors_feature *feature, sensors_subfeature_type type);\fP 
     145.br 
     146This returns the subfeature of the given type for a given main feature, 
     147if it exists, NULL otherwise. 
     148Do not try to change the returned structure; you will corrupt internal 
     149data structures. 
     150 
    143151\fBconst char *libsensors_version;\fP 
    144152.br