diff options
-rw-r--r-- | docs/api.md | 12 | ||||
-rw-r--r-- | include/uv_link_t.h | 12 | ||||
-rw-r--r-- | src/defaults.c | 12 | ||||
-rw-r--r-- | src/uv_link_observer_t.c | 2 |
4 files changed, 19 insertions, 19 deletions
diff --git a/docs/api.md b/docs/api.md index d1860a0..2d2877b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -297,12 +297,12 @@ These maybe used for [`uv_methods_talloc_cb_override`][] and [`uv_methods_t.read_cb_override`][]. ```c -void uv_link_default_alloc_cb(uv_link_t* link, - size_t suggested_size, - uv_buf_t* buf); -void uv_link_default_read_cb(uv_link_t* link, - ssize_t nread, - const uv_buf_t* buf); +void uv_link_default_alloc_cb_override(uv_link_t* link, + size_t suggested_size, + uv_buf_t* buf); +void uv_link_default_read_cb_override(uv_link_t* link, + ssize_t nread, + const uv_buf_t* buf); ``` ### .read_start diff --git a/include/uv_link_t.h b/include/uv_link_t.h index cc9bcbb..61d4cf0 100644 --- a/include/uv_link_t.h +++ b/include/uv_link_t.h @@ -171,11 +171,11 @@ int uv_link_default_shutdown(uv_link_t* link, void uv_link_default_close(uv_link_t* link, uv_link_t* source, uv_link_close_cb cb); -void uv_link_default_alloc_cb(uv_link_t* link, - size_t suggested_size, - uv_buf_t* buf); -void uv_link_default_read_cb(uv_link_t* link, - ssize_t nread, - const uv_buf_t* buf); +void uv_link_default_alloc_cb_override(uv_link_t* link, + size_t suggested_size, + uv_buf_t* buf); +void uv_link_default_read_cb_override(uv_link_t* link, + ssize_t nread, + const uv_buf_t* buf); #endif /* INCLUDE_UV_LINK_H_ */ diff --git a/src/defaults.c b/src/defaults.c index f566356..1c486f8 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -43,15 +43,15 @@ void uv_link_default_close(uv_link_t* link, uv_link_t* source, } -void uv_link_default_alloc_cb(uv_link_t* link, - size_t suggested_size, - uv_buf_t* buf) { +void uv_link_default_alloc_cb_override(uv_link_t* link, + size_t suggested_size, + uv_buf_t* buf) { return uv_link_propagate_alloc_cb(link, suggested_size, buf); } -void uv_link_default_read_cb(uv_link_t* link, - ssize_t nread, - const uv_buf_t* buf) { +void uv_link_default_read_cb_override(uv_link_t* link, + ssize_t nread, + const uv_buf_t* buf) { return uv_link_propagate_read_cb(link, nread, buf); } diff --git a/src/uv_link_observer_t.c b/src/uv_link_observer_t.c index 7addd62..63122a6 100644 --- a/src/uv_link_observer_t.c +++ b/src/uv_link_observer_t.c @@ -26,7 +26,7 @@ static uv_link_methods_t uv_link_observer_methods = { .shutdown = uv_link_default_shutdown, .close = uv_link_default_close, - .alloc_cb_override = uv_link_default_alloc_cb, + .alloc_cb_override = uv_link_default_alloc_cb_override, .read_cb_override = uv_link_observer_read_cb }; |