Changeset 4544

Show
Ignore:
Timestamp:
07/03/07 16:26:26 (6 years ago)
Author:
khali
Message:

Make a few libsensors functions static.

Location:
lm-sensors/branches/lm-sensors-3.0.0/lib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/access.c

    r4543 r4544  
    2828#include "general.h" 
    2929 
    30 static int sensors_do_this_chip_sets(sensors_chip_name name); 
     30static int sensors_eval_expr(sensors_chip_name chipname,  
     31                             const sensors_expr *expr, 
     32                             double val, double *result); 
    3133 
    3234/* Compare two chips name descriptions, to see whether they could match. 
     
    7173   Note that this visits the list of chips from last to first. Usually, 
    7274   you want the match that was latest in the config file. */ 
    73 sensors_chip *sensors_for_all_config_chips(sensors_chip_name chip_name, 
    74                                            const sensors_chip * last) 
     75static sensors_chip * 
     76sensors_for_all_config_chips(sensors_chip_name chip_name, 
     77                             const sensors_chip *last) 
    7578{ 
    7679        int nr, i; 
     
    111114   Do not modify the struct the return value points to! Returns NULL if  
    112115   not found.*/ 
    113 const sensors_chip_feature *sensors_lookup_feature_name(const sensors_chip_name *chip, 
    114                                                         const char *feature) 
     116static const sensors_chip_feature * 
     117sensors_lookup_feature_name(const sensors_chip_name *chip, const char *feature) 
    115118{ 
    116119        int i, j; 
     
    350353} 
    351354 
     355/* Evaluate an expression */ 
    352356int sensors_eval_expr(sensors_chip_name chipname, const sensors_expr * expr, 
    353357                      double val, double *result) 
     
    411415   contain wildcards!  This function will return 0 on success, and <0 on  
    412416   failure. */ 
    413 int sensors_do_this_chip_sets(sensors_chip_name name) 
     417static int sensors_do_this_chip_sets(sensors_chip_name name) 
    414418{ 
    415419        sensors_chip *chip; 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/access.h

    r4508 r4544  
    2424#include "data.h" 
    2525 
    26 /* Returns, one by one, a pointer to all sensor_chip structs of the 
    27    config file which match with the given chip name. Last should be 
    28    the value returned by the last call, or NULL if this is the first 
    29    call. Returns NULL if no more matches are found. Do not modify 
    30    the struct the return value points to! 
    31    Note that this visits the list of chips from last to first. Usually, 
    32    you want the match that was latest in the config file. */ 
    33 extern sensors_chip *sensors_for_all_config_chips(sensors_chip_name chip_name, 
    34                                                   const sensors_chip *last); 
    35  
    3626/* Look up a resource in the intern chip list, and return a pointer to it. 
    3727   Do not modify the struct the return value points to! Returns NULL if 
     
    3929extern const sensors_chip_feature *sensors_lookup_feature_nr(const sensors_chip_name *chip, 
    4030                                                             int feature); 
    41  
    42 /* Look up a resource in the intern chip list, and return a pointer to it. 
    43    Do not modify the struct the return value points to! Returns NULL if 
    44    not found.*/ 
    45 extern const sensors_chip_feature *sensors_lookup_feature_name 
    46                                   (const sensors_chip_name *chip, const char *feature); 
    4731 
    4832/* Substitute configuration bus numbers with real-world /proc bus numbers 
     
    5539extern int sensors_parse_i2cbus_name(const char *name, int *res); 
    5640 
    57 /* Evaluate an expression */ 
    58 extern int sensors_eval_expr(sensors_chip_name chipname,  
    59                              const sensors_expr *expr, 
    60                              double val, double *result); 
    61  
    62  
    6341#endif /* def LIB_SENSORS_ACCESS_H */