From 4a9af3fecb4baf677f265e2e6e34a674a53810a6 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Mon, 20 Jan 2014 13:33:16 -0800 Subject: 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 --- src/stream_wrap.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/stream_wrap.h') 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 ShutdownWrap; class WriteWrap: public ReqWrap { 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 obj, StreamWrap* wrap) : ReqWrap(env, obj), wrap_(wrap) { @@ -150,7 +152,8 @@ class StreamWrap : public HandleWrap { StreamWrap(Environment* env, v8::Local object, - uv_stream_t* stream); + uv_stream_t* stream, + AsyncWrap::ProviderType provider); ~StreamWrap() { if (callbacks_ != &default_callbacks_) { -- cgit v1.2.3