mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
doc: Additional notes on sp_last_error_{code,message}.
This commit is contained in:
parent
46d8b0a039
commit
ec4b55ae25
@ -1335,6 +1335,8 @@ enum sp_return sp_end_break(struct sp_port *port);
|
|||||||
*
|
*
|
||||||
* In order to obtain the correct result, this function should be called
|
* In order to obtain the correct result, this function should be called
|
||||||
* straight after the failure, before executing any other system operations.
|
* straight after the failure, before executing any other system operations.
|
||||||
|
* The result is thread-specific, and only valid when called immediately
|
||||||
|
* after a previous call returning SP_ERR_FAIL.
|
||||||
*
|
*
|
||||||
* @return The system's numeric code for the error that caused the last
|
* @return The system's numeric code for the error that caused the last
|
||||||
* operation to fail.
|
* operation to fail.
|
||||||
@ -1348,6 +1350,8 @@ int sp_last_error_code(void);
|
|||||||
*
|
*
|
||||||
* In order to obtain the correct result, this function should be called
|
* In order to obtain the correct result, this function should be called
|
||||||
* straight after the failure, before executing other system operations.
|
* straight after the failure, before executing other system operations.
|
||||||
|
* The result is thread-specific, and only valid when called immediately
|
||||||
|
* after a previous call returning SP_ERR_FAIL.
|
||||||
*
|
*
|
||||||
* @return The system's message for the error that caused the last
|
* @return The system's message for the error that caused the last
|
||||||
* operation to fail. This string may be allocated by the function,
|
* operation to fail. This string may be allocated by the function,
|
||||||
|
Loading…
Reference in New Issue
Block a user