about summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-26 01:38:26 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-26 01:38:26 -0400
commit563174a6894f4b4bdf3f90b28fde84d5dd6bfee8 (patch)
tree02c89b7e3109eaed7fe70d3f45ac958f96281bd8 /include
parent476e00fb734d0e129edbc6ad1409a87051a3a735 (diff)
downloaduv_link_t-563174a6894f4b4bdf3f90b28fde84d5dd6bfee8.tar.gz
uv_link_t: default alloc_cb/read_cb
Diffstat (limited to 'include')
-rw-r--r--include/uv_link_t.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uv_link_t.h b/include/uv_link_t.h
index ced26ad..19b67ce 100644
--- a/include/uv_link_t.h
+++ b/include/uv_link_t.h
@@ -23,6 +23,8 @@ struct uv_link_s {
   uv_link_alloc_cb alloc_cb;
   uv_link_read_cb read_cb;
 
+  /* Read-only after assigning initial values */
+
   /* Sort of virtual table */
   int (*read_start)(uv_link_t* link);
   int (*read_stop)(uv_link_t* link);
@@ -37,6 +39,10 @@ struct uv_link_s {
                    unsigned int nbufs);
 
   int (*shutdown)(uv_link_t* link, uv_link_shutdown_cb cb);
+
+  /* Private, used for chain/unchain */
+  uv_link_alloc_cb saved_alloc_cb;
+  uv_link_read_cb saved_read_cb;
 };
 
 UV_EXTERN int uv_link_init(uv_loop_t* loop, uv_link_t* link);