Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-09-22 21:35:48 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2020-09-26 11:22:47 +0300
commitff38165820da2a9eaddabbce23f3e75aa502900b (patch)
tree61b7c444eecbb96a7dacc4b0460c0e3eee93165a /src/node_api.h
parentaa99bb47bfbfc0fdf0d0ca4f452b527b02b83d2d (diff)
src: allow N-API addon in `AddLinkedBinding()`
`AddLinkedBinding()` can be used to load old-style Node.js addons, but currently not N-API addons. There’s no good reason not to support N-API addons as well, so add that. PR-URL: https://github.com/nodejs/node/pull/35301 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
Diffstat (limited to 'src/node_api.h')
-rw-r--r--src/node_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_api.h b/src/node_api.h
index 577a1dcd949..786988e296b 100644
--- a/src/node_api.h
+++ b/src/node_api.h
@@ -31,7 +31,7 @@ struct uv_loop_s; // Forward declaration.
typedef napi_value (*napi_addon_register_func)(napi_env env,
napi_value exports);
-typedef struct {
+typedef struct napi_module {
int nm_version;
unsigned int nm_flags;
const char* nm_filename;