about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-06-04 10:26:23 -0400
committerFedor Indutny <fedor@indutny.com>2016-06-04 10:26:23 -0400
commitd7e448cd031488ab034b4b75945ffabfde569653 (patch)
tree78999775f1c5c18d8c8b4c561bf86fcd4c9aa56b
parent201448c9bbd6a143e0ad04b4961bd856eb6b5012 (diff)
downloaduv_link_t-d7e448cd031488ab034b4b75945ffabfde569653.tar.gz
api: rename default cb
-rw-r--r--docs/api.md12
-rw-r--r--include/uv_link_t.h12
-rw-r--r--src/defaults.c12
-rw-r--r--src/uv_link_observer_t.c2
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
 };