mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
Change the prototype of sensors_get_label(). Errors can be reported
with a NULL pointer. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4694 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
12655c1d85
commit
8bcdc331a0
8 files changed
+29
-38
No files matched your search
+3
-4
@@ -88,11 +88,10 @@ int sensors_match_chip(const sensors_chip_name *chip1,
|
||||
const char *sensors_get_adapter_name(const sensors_bus_id *bus);
|
||||
|
||||
/* Look up the label which belongs to this chip. Note that chip should not
|
||||
contain wildcard values! *result is newly allocated (free it yourself).
|
||||
This function will return 0 on success, and <0 on failure.
|
||||
contain wildcard values! The returned string is newly allocated (free it
|
||||
yourself). On failure, NULL is returned.
|
||||
If no label exists for this feature, its name is returned itself. */
|
||||
int sensors_get_label(const sensors_chip_name *name, int feature,
|
||||
char **result);
|
||||
char *sensors_get_label(const sensors_chip_name *name, int feature);
|
||||
|
||||
/* Read the value of a feature of a certain chip. Note that chip should not
|
||||
contain wildcard values! This function will return 0 on success, and <0
|
||||
|
||||
Reference in new issue
Block a user