diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-01-20 13:33:16 -0800 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-02-05 13:30:56 -0800 |
commit | 4a9af3fecb4baf677f265e2e6e34a674a53810a6 (patch) | |
tree | 3e96cf57bc7f9d47ebe7a177acc7a2d18dc13bdd /src/tty_wrap.cc | |
parent | c9abb59638bc4bc64176ded80ebdc05d066ad0db (diff) | |
download | android-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/tty_wrap.cc')
-rw-r--r-- | src/tty_wrap.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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<Value>& args) { TTYWrap::TTYWrap(Environment* env, Handle<Object> object, int fd, bool readable) - : StreamWrap(env, object, reinterpret_cast<uv_stream_t*>(&handle_)) { + : StreamWrap(env, + object, + reinterpret_cast<uv_stream_t*>(&handle_), + AsyncWrap::PROVIDER_TTYWRAP) { uv_tty_init(env->event_loop(), &handle_, fd, readable); } |