about summary refs log tree commit diff stats
path: root/include/uv_link_t.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-26 04:01:13 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-26 04:01:13 -0400
commite018867ffaaa13975df29c9664914f7abdc43b2d (patch)
tree1a516fc244ea7d46c4a7915a2a0f2f9a7b2bc6de /include/uv_link_t.h
parentf3be4240e5da100f7615e6805648ed50485c2ebb (diff)
downloaduv_link_t-e018867ffaaa13975df29c9664914f7abdc43b2d.tar.gz
include: invoke => propagate
Diffstat (limited to 'include/uv_link_t.h')
-rw-r--r--include/uv_link_t.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/uv_link_t.h b/include/uv_link_t.h
index 919d5ec..a964211 100644
--- a/include/uv_link_t.h
+++ b/include/uv_link_t.h
@@ -62,13 +62,15 @@ UV_EXTERN void uv_link_close(uv_link_t* link);
 UV_EXTERN int uv_link_chain(uv_link_t* from, uv_link_t* to);
 UV_EXTERN int uv_link_unchain(uv_link_t* from, uv_link_t* to);
 
-/* Use this to invoke methods */
-UV_EXTERN void uv_link_invoke_alloc_cb(uv_link_t* link,
-                                       size_t suggested_size,
-                                       uv_buf_t* buf);
-UV_EXTERN void uv_link_invoke_read_cb(uv_link_t* link,
-                                      ssize_t nread,
-                                      const uv_buf_t* buf);
+/* Use this to invoke parent link's methods */
+UV_EXTERN void uv_link_propagate_alloc_cb(uv_link_t* link,
+                                          size_t suggested_size,
+                                          uv_buf_t* buf);
+UV_EXTERN void uv_link_propagate_read_cb(uv_link_t* link,
+                                         ssize_t nread,
+                                         const uv_buf_t* buf);
+
+/* Use this to invoke methods of `link` */
 
 static int uv_link_read_start(uv_link_t* link) {
   return link->methods->read_start(link);
@@ -97,7 +99,7 @@ static int uv_link_shutdown(uv_link_t* link, uv_link_shutdown_cb cb) {
   return link->methods->shutdown(link, cb);
 }
 
-/* Source */
+/* Link Source */
 
 struct uv_link_source_s {
   uv_link_t link;
@@ -110,7 +112,7 @@ UV_EXTERN int uv_link_source_init(uv_link_source_t* source,
                                   uv_stream_t* stream);
 UV_EXTERN void uv_link_source_close(uv_link_source_t* source);
 
-/* Observer */
+/* Link Observer */
 
 struct uv_link_observer_s {
   uv_link_t link;