mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
Pass the structures by reference inside libsensors. Again a small
performance gain, and this makes the internal code consistent with the public functions. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4667 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3bab00fff9
commit
d9ec11a6c7
4 files changed
+90
-85
No files matched your search
+4
-2
@@ -29,9 +29,11 @@ extern int sensors_read_sysfs_chips(void);
|
||||
extern int sensors_read_sysfs_bus(void);
|
||||
|
||||
/* Read a value out of a sysfs attribute file */
|
||||
int sensors_read_sysfs_attr(sensors_chip_name name, int feature, double *value);
|
||||
int sensors_read_sysfs_attr(const sensors_chip_name *name, int feature,
|
||||
double *value);
|
||||
|
||||
/* Write a value to a sysfs attribute file */
|
||||
int sensors_write_sysfs_attr(sensors_chip_name name, int feature, double value);
|
||||
int sensors_write_sysfs_attr(const sensors_chip_name *name, int feature,
|
||||
double value);
|
||||
|
||||
#endif /* !SENSORS_LIB_SYSFS_H */
|
||||
Reference in new issue
Block a user