summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorThorsten Lorenz <thlorenz@gmx.de>2014-09-15 12:00:22 -0500
committerRod Vagg <rod@vagg.org>2014-12-04 21:20:28 +1100
commit0fe7a0d024e6f25ba30bdd22d671976868525ce2 (patch)
treeffef4eb3fafec1fe9413b14a600eedb59c16ef83 /src/node.h
parent766d063e0578c0f7758c3a965c971763f43fec85 (diff)
downloadnode-new-0fe7a0d024e6f25ba30bdd22d671976868525ce2.tar.gz
modules: adding load linked modules feature
- introduced NM_F_LINKED flag to identify linked modules - setting node_is_initialized after calling V8::Initialize in order to make the right decision during initial module registration - introduced modlist_linked in order to track modules that were pre-registered in order to complete it once node is initialized - completing registration of linked module similarly to the way it's done inside DLOpen PR-URL: https://github.com/iojs/io.js/pull/8 Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h
index 8857751b50..afca6bf0d3 100644
--- a/src/node.h
+++ b/src/node.h
@@ -339,6 +339,7 @@ typedef void (*addon_context_register_func)(
void* priv);
#define NM_F_BUILTIN 0x01
+#define NM_F_LINKED 0x02
struct node_module {
int nm_version;
@@ -353,6 +354,7 @@ struct node_module {
};
node_module* get_builtin_module(const char *name);
+node_module* get_linked_module(const char *name);
extern "C" NODE_EXTERN void node_module_register(void* mod);