Skip to content

Instantly share code, notes, and snippets.

@ghaiklor
Last active August 29, 2015 14:26
Show Gist options
  • Save ghaiklor/ac2ba1b5003c99f12e56 to your computer and use it in GitHub Desktop.
Save ghaiklor/ac2ba1b5003c99f12e56 to your computer and use it in GitHub Desktop.
Structure where NodeJS is storing data about native modules
struct node_module {
int nm_version;
unsigned int nm_flags;
void* nm_dso_handle;
const char* nm_filename;
node::addon_register_func nm_register_func;
node::addon_context_register_func nm_context_register_func;
const char* nm_modname;
void* nm_priv;
struct node_module* nm_link;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment