diff options
author | Fedor Indutny <fedor@indutny.com> | 2016-05-26 01:38:26 -0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2016-05-26 01:38:26 -0400 |
commit | 563174a6894f4b4bdf3f90b28fde84d5dd6bfee8 (patch) | |
tree | 02c89b7e3109eaed7fe70d3f45ac958f96281bd8 /include | |
parent | 476e00fb734d0e129edbc6ad1409a87051a3a735 (diff) | |
download | uv_link_t-563174a6894f4b4bdf3f90b28fde84d5dd6bfee8.tar.gz |
uv_link_t: default alloc_cb/read_cb
Diffstat (limited to 'include')
-rw-r--r-- | include/uv_link_t.h | 6 |
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); |