Document function sensors_snprintf_chip_name.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5653 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-02-15 20:46:13 +00:00
1 parent 42beaab3fc
commit 5d30872044
1 file changed
+7
+7
View File
@@ -42,6 +42,8 @@ libsensors \- publicly accessible functions provided by the sensors library
/* Chip name handling */
.BI "int sensors_parse_chip_name(const char *" orig_name ","
.BI " sensors_chip_name *" res ");"
.BI "int sensors_snprintf_chip_name(char *" str ", size_t " size ","
.BI " const sensors_chip_name *" chip ");"
.BI "const char *sensors_get_adapter_name(const sensors_bus_id *" bus ");"
/* Chips and features enumeration */
@@ -90,6 +92,11 @@ is a string representing the version of libsensors.
parses a chip name to the internal representation. Return 0 on success,
<0 on error.
.B sensors_snprintf_chip_name()
prints a chip name from its internal representation. Note that chip should
not contain wildcard values! Return the number of characters printed on
success (same as snprintf), <0 on error.
.B sensors_get_adapter_name()
returns the adapter name of a bus number, as used within the
sensors_chip_name structure. If it could not be found, it returns NULL.