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/tty_wrap.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tty_wrap.cc') diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index b1a354ac33..4b5b8587c0 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -174,7 +174,10 @@ void TTYWrap::New(const FunctionCallbackInfo& args) { TTYWrap::TTYWrap(Environment* env, Handle object, int fd, bool readable) - : StreamWrap(env, object, reinterpret_cast(&handle_)) { + : StreamWrap(env, + object, + reinterpret_cast(&handle_), + AsyncWrap::PROVIDER_TTYWRAP) { uv_tty_init(env->event_loop(), &handle_, fd, readable); } -- cgit v1.2.3