Browse Source

Move cares to extension model

v0.7.4-release
Paul Querna 15 years ago
committed by Ryan Dahl
parent
commit
208290b524
  1. 5
      src/node.cc
  2. 2
      src/node_cares.cc
  3. 1
      src/node_extensions.h

5
src/node.cc

@ -1586,11 +1586,6 @@ static Handle<Value> Binding(const Arguments& args) {
exports = Object::New(); exports = Object::New();
modp->register_func(exports); modp->register_func(exports);
binding_cache->Set(module, exports); binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "cares")) {
exports = Object::New();
Cares::Initialize(exports);
binding_cache->Set(module, exports);
} else if (!strcmp(*module_v, "fs")) { } else if (!strcmp(*module_v, "fs")) {
exports = Object::New(); exports = Object::New();

2
src/node_cares.cc

@ -761,3 +761,5 @@ void Channel::SockStateCb(void *data, int sock, int read, int write) {
} // namespace node } // namespace node
NODE_MODULE(node_cares, node::Cares::Initialize);

1
src/node_extensions.h

@ -1,5 +1,6 @@
NODE_EXT_LIST_START NODE_EXT_LIST_START
NODE_EXT_LIST_ITEM(node_cares)
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
NODE_EXT_LIST_ITEM(node_crypto) NODE_EXT_LIST_ITEM(node_crypto)
#endif #endif

Loading…
Cancel
Save