Changeset 4647

Show
Ignore:
Timestamp:
08/09/07 10:39:41 (1 year ago)
Author:
khali
Message:

Don't export sensors_chip_name_has_wildcards(). I don't know of any
application using it, and I can't think of any use case for it outside
of libsensors. I'm not even sure if the inside calls are all legitimate.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r4642 r4647  
    1818           Fix a memory leak on error 
    1919           Speed up sensors_get_ignored() a bit 
     20           No longer export sensors_chip_name_has_wildcards() 
    2021  Makefile: Drop the package and version targets 
    2122  Man page sensors.conf.5: Update the chip statement section 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/access.c

    r4646 r4647  
    133133   one chip, or whether it has wildcards. Returns 0 if it is absolute, 1 
    134134   if there are wildcards. */ 
    135 int sensors_chip_name_has_wildcards(sensors_chip_name chip) 
     135static int sensors_chip_name_has_wildcards(sensors_chip_name chip) 
    136136{ 
    137137        if ((chip.prefix == SENSORS_CHIP_NAME_PREFIX_ANY) || 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/libsensors.3

    r4643 r4647  
    3838.B int sensors_match_chip(sensors_chip_name chip1,  
    3939                       \fBsensors_chip_name chip2);\fP 
    40 .B int sensors_chip_name_has_wildcards(sensors_chip_name chip); 
    4140.B const char *sensors_get_adapter_name(int bus_nr); 
    4241.B int sensors_get_label(sensors_chip_name name, int feature,  
     
    7271.br 
    7372Compare two chips name descriptions, to see whether they could match. Return 0 if it does not match, return 1 if it does match. 
    74  
    75 \fBint sensors_chip_name_has_wildcards 
    76     (sensors_chip_name chip);\fP 
    77 .br 
    78 Check whether the chip name is an 'absolute' name, which can only match one chip, or whether it has wildcards. Returns 0 if it is absolute, 1 if there are wildcards. 
    7973 
    8074.B const char *sensors_get_adapter_name(int bus_nr); 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.h

    r4644 r4647  
    6666extern int sensors_match_chip(sensors_chip_name chip1,  
    6767                              sensors_chip_name chip2); 
    68  
    69 /* Check whether the chip name is an 'absolute' name, which can only match 
    70    one chip, or whether it has wildcards. Returns 0 if it is absolute, 1 
    71    if there are wildcards. */ 
    72 extern int sensors_chip_name_has_wildcards(sensors_chip_name chip); 
    7368 
    7469/* This function returns the adapter name of a bus number,