about summary refs log tree commit diff stats
path: root/docs
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-06-04 19:25:26 -0400
committerFedor Indutny <fedor@indutny.com>2016-06-04 19:25:26 -0400
commit4916c3ba7e3dbefbddb8c5ba8370092ce1a634fb (patch)
tree623f8d6fc0dae590f29eca86ffb00af70e9a41c4 /docs
parent79d44e403c15b1cfe08f317f17ad20f4814ae4c9 (diff)
downloaduv_link_t-4916c3ba7e3dbefbddb8c5ba8370092ce1a634fb.tar.gz
api: uv_link_errno
Diffstat (limited to 'docs')
-rw-r--r--docs/api.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md
index 0d7e634..adb25e4 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -118,6 +118,15 @@ Invoke `shutdown` from the link's [`uv_link_methods_t`][]. Acts similarly to
 `uv_shutdown()`. `cb(uv_link_t* link, int status, void* arg)` is invoked on
 completion.
 
+### int uv_link_errno(...)
+
+* `uv_link_t** link`
+* `int err` - error code, previously either returned the one of the
+  `uv_link...` methods or passed as a negative `nread` to `link->read_cb`
+
+Unprefix internal error code and set the `link` pointer to the link that
+have emitted that error.
+
 ### const char* uv_link_strerror(...)
 
 * `uv_link_t* link`