From 1c7670aca2d1ec2909bffd48550a5556a3911c4e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 12 May 2010 12:17:45 -0700 Subject: [PATCH] Remove reference to C++ EventEmitter in docs I prefer ppl to use ObjectWrap --- doc/api.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api.markdown b/doc/api.markdown index 27c7ed6e2b..72d29941d0 100644 --- a/doc/api.markdown +++ b/doc/api.markdown @@ -2935,14 +2935,14 @@ knowledge of several libraries: `src/file.cc` so you will probably not need to use it. If you do need it, look at the header file `deps/libeio/eio.h`. - - Internal Node libraries. Most importantly is the `node::EventEmitter` - class which you will likely want to derive from. + - Internal Node libraries. Most importantly is the `node::ObjectWrap` + class which you will likely want to derive from. - - Others. Look in `deps/` for what else is available. + - Others. Look in `deps/` for what else is available. Node statically compiles all its dependencies into the executable. When compiling your module, you don't need to worry about linking to any of these -libraries. +libraries. To get started let's make a small Addon which does the following except in C++: @@ -2990,7 +2990,7 @@ provided for the ease of users. All Node addons must export a function called `init` with this signature: - extern 'C' void init (Handle target) + extern 'C' void init (Handle target) For the moment, that is all the documentation on addons. Please see for a real example.