summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-02-25 20:43:14 +0300
committerRod Vagg <rod@vagg.org>2015-02-25 14:21:34 -0600
commit89e133a1d8a3bfd655d5ae4f6b7071a1bbbcdc71 (patch)
tree52c64eb74a516c135b5b608c5020c8b1e03b28e3 /src/stream_wrap.cc
parenta558cd0a619a74dd69e212c79a909b8654942db2 (diff)
downloadandroid-node-v8-89e133a1d8a3bfd655d5ae4f6b7071a1bbbcdc71.tar.gz
android-node-v8-89e133a1d8a3bfd655d5ae4f6b7071a1bbbcdc71.tar.bz2
android-node-v8-89e133a1d8a3bfd655d5ae4f6b7071a1bbbcdc71.zip
stream_base: remove static JSMethod declarations
Move JS methods to the stream_base-inl.h and thus define them on each use of `StreamBase::AddMethods`. Inline `AddMethods` itself, so that there won't be any need in a static declaration in stream_base.cc. NOTE: This basically allows using this API in user-land, though, some polishing is required before releasing it. PR-URL: https://github.com/iojs/io.js/pull/957 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index c8ea8d228f..824a880ebd 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -1,4 +1,7 @@
#include "stream_wrap.h"
+#include "stream_base.h"
+#include "stream_base-inl.h"
+
#include "env-inl.h"
#include "env.h"
#include "handle_wrap.h"