summaryrefslogtreecommitdiff
path: root/src/stream_wrap.h
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2014-01-20 13:33:16 -0800
committerTrevor Norris <trev.norris@gmail.com>2014-02-05 13:30:56 -0800
commit4a9af3fecb4baf677f265e2e6e34a674a53810a6 (patch)
tree3e96cf57bc7f9d47ebe7a177acc7a2d18dc13bdd /src/stream_wrap.h
parentc9abb59638bc4bc64176ded80ebdc05d066ad0db (diff)
downloadandroid-node-v8-4a9af3fecb4baf677f265e2e6e34a674a53810a6.tar.gz
android-node-v8-4a9af3fecb4baf677f265e2e6e34a674a53810a6.tar.bz2
android-node-v8-4a9af3fecb4baf677f265e2e6e34a674a53810a6.zip
async_wrap: add provider types/pass to constructor
These will be used to allow users to filter for which types of calls they wish their callbacks to run. Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
Diffstat (limited to 'src/stream_wrap.h')
-rw-r--r--src/stream_wrap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h
index f91bb8ba55..0f657fe920 100644
--- a/src/stream_wrap.h
+++ b/src/stream_wrap.h
@@ -37,6 +37,8 @@ typedef class ReqWrap<uv_shutdown_t> ShutdownWrap;
class WriteWrap: public ReqWrap<uv_write_t> {
public:
+ // TODO(trevnorris): WrapWrap inherits from ReqWrap, which I've globbed
+ // into the same provider. How should these be broken apart?
WriteWrap(Environment* env, v8::Local<v8::Object> obj, StreamWrap* wrap)
: ReqWrap<uv_write_t>(env, obj),
wrap_(wrap) {
@@ -150,7 +152,8 @@ class StreamWrap : public HandleWrap {
StreamWrap(Environment* env,
v8::Local<v8::Object> object,
- uv_stream_t* stream);
+ uv_stream_t* stream,
+ AsyncWrap::ProviderType provider);
~StreamWrap() {
if (callbacks_ != &default_callbacks_) {