@lynx-js/lynx-library-headers 0.0.1-alpha.4 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/index.js +1 -0
  2. package/package.json +3 -26
  3. package/README.md +0 -53
  4. package/include/base/include/value/lynx_api_types.h +0 -57
  5. package/include/base/include/value/lynx_value_api.h +0 -204
  6. package/include/base/include/value/lynx_value_types.h +0 -73
  7. package/include/capi/lynx_env_capi.h +0 -47
  8. package/include/capi/lynx_event_reporter_service_capi.h +0 -67
  9. package/include/capi/lynx_export.h +0 -27
  10. package/include/capi/lynx_extension_module_capi.h +0 -148
  11. package/include/capi/lynx_extension_module_types_capi.h +0 -17
  12. package/include/capi/lynx_generic_resource_fetcher_capi.h +0 -124
  13. package/include/capi/lynx_group_capi.h +0 -42
  14. package/include/capi/lynx_http_service_capi.h +0 -113
  15. package/include/capi/lynx_load_meta_capi.h +0 -52
  16. package/include/capi/lynx_log_capi.h +0 -69
  17. package/include/capi/lynx_memory_capi.h +0 -28
  18. package/include/capi/lynx_native_module_capi.h +0 -51
  19. package/include/capi/lynx_native_view_capi.h +0 -163
  20. package/include/capi/lynx_resource_request_capi.h +0 -71
  21. package/include/capi/lynx_resource_response_capi.h +0 -92
  22. package/include/capi/lynx_runtime_lifecycle_observer_capi.h +0 -62
  23. package/include/capi/lynx_security_service_capi.h +0 -52
  24. package/include/capi/lynx_service_center_capi.h +0 -50
  25. package/include/capi/lynx_template_bundle_capi.h +0 -39
  26. package/include/capi/lynx_template_data_capi.h +0 -33
  27. package/include/capi/lynx_trace_capi.h +0 -62
  28. package/include/capi/lynx_trail_service_capi.h +0 -35
  29. package/include/capi/lynx_types.h +0 -750
  30. package/include/capi/lynx_update_meta_capi.h +0 -33
  31. package/include/capi/lynx_view_builder_capi.h +0 -113
  32. package/include/capi/lynx_view_capi.h +0 -174
  33. package/include/capi/lynx_view_client_capi.h +0 -81
  34. package/include/capi/lynx_vsync_monitor_capi.h +0 -38
  35. package/include/capi/lynx_windowless_renderer_capi.h +0 -213
  36. package/include/js_native_api.h +0 -608
  37. package/include/js_native_api_types.h +0 -202
  38. package/include/lynx/base/include/value/lynx_api_types.h +0 -57
  39. package/include/lynx/base/include/value/lynx_value_api.h +0 -204
  40. package/include/lynx/base/include/value/lynx_value_types.h +0 -73
  41. package/include/lynx/extension.h +0 -6
  42. package/include/lynx/platform/embedder/public/capi/lynx_env_capi.h +0 -47
  43. package/include/lynx/platform/embedder/public/capi/lynx_event_reporter_service_capi.h +0 -67
  44. package/include/lynx/platform/embedder/public/capi/lynx_export.h +0 -27
  45. package/include/lynx/platform/embedder/public/capi/lynx_extension_module_capi.h +0 -148
  46. package/include/lynx/platform/embedder/public/capi/lynx_extension_module_types_capi.h +0 -17
  47. package/include/lynx/platform/embedder/public/capi/lynx_generic_resource_fetcher_capi.h +0 -124
  48. package/include/lynx/platform/embedder/public/capi/lynx_group_capi.h +0 -42
  49. package/include/lynx/platform/embedder/public/capi/lynx_http_service_capi.h +0 -113
  50. package/include/lynx/platform/embedder/public/capi/lynx_load_meta_capi.h +0 -52
  51. package/include/lynx/platform/embedder/public/capi/lynx_log_capi.h +0 -69
  52. package/include/lynx/platform/embedder/public/capi/lynx_memory_capi.h +0 -28
  53. package/include/lynx/platform/embedder/public/capi/lynx_native_module_capi.h +0 -51
  54. package/include/lynx/platform/embedder/public/capi/lynx_native_view_capi.h +0 -163
  55. package/include/lynx/platform/embedder/public/capi/lynx_resource_request_capi.h +0 -71
  56. package/include/lynx/platform/embedder/public/capi/lynx_resource_response_capi.h +0 -92
  57. package/include/lynx/platform/embedder/public/capi/lynx_runtime_lifecycle_observer_capi.h +0 -62
  58. package/include/lynx/platform/embedder/public/capi/lynx_security_service_capi.h +0 -52
  59. package/include/lynx/platform/embedder/public/capi/lynx_service_center_capi.h +0 -50
  60. package/include/lynx/platform/embedder/public/capi/lynx_template_bundle_capi.h +0 -39
  61. package/include/lynx/platform/embedder/public/capi/lynx_template_data_capi.h +0 -33
  62. package/include/lynx/platform/embedder/public/capi/lynx_trace_capi.h +0 -62
  63. package/include/lynx/platform/embedder/public/capi/lynx_trail_service_capi.h +0 -35
  64. package/include/lynx/platform/embedder/public/capi/lynx_types.h +0 -750
  65. package/include/lynx/platform/embedder/public/capi/lynx_update_meta_capi.h +0 -33
  66. package/include/lynx/platform/embedder/public/capi/lynx_view_builder_capi.h +0 -113
  67. package/include/lynx/platform/embedder/public/capi/lynx_view_capi.h +0 -174
  68. package/include/lynx/platform/embedder/public/capi/lynx_view_client_capi.h +0 -81
  69. package/include/lynx/platform/embedder/public/capi/lynx_vsync_monitor_capi.h +0 -38
  70. package/include/lynx/platform/embedder/public/capi/lynx_windowless_renderer_capi.h +0 -213
  71. package/include/lynx/platform/embedder/public/lynx_env.h +0 -104
  72. package/include/lynx/platform/embedder/public/lynx_event_reporter_service.h +0 -96
  73. package/include/lynx/platform/embedder/public/lynx_event_simulation_proxy.h +0 -31
  74. package/include/lynx/platform/embedder/public/lynx_extension_module.h +0 -521
  75. package/include/lynx/platform/embedder/public/lynx_generic_resource_fetcher.h +0 -178
  76. package/include/lynx/platform/embedder/public/lynx_group.h +0 -70
  77. package/include/lynx/platform/embedder/public/lynx_http_service.h +0 -211
  78. package/include/lynx/platform/embedder/public/lynx_load_meta.h +0 -120
  79. package/include/lynx/platform/embedder/public/lynx_native_module.h +0 -9
  80. package/include/lynx/platform/embedder/public/lynx_native_view.h +0 -201
  81. package/include/lynx/platform/embedder/public/lynx_resource_request.h +0 -56
  82. package/include/lynx/platform/embedder/public/lynx_resource_response.h +0 -63
  83. package/include/lynx/platform/embedder/public/lynx_runtime_lifecycle_observer.h +0 -102
  84. package/include/lynx/platform/embedder/public/lynx_security_service.h +0 -78
  85. package/include/lynx/platform/embedder/public/lynx_service_center.h +0 -64
  86. package/include/lynx/platform/embedder/public/lynx_template_bundle.h +0 -65
  87. package/include/lynx/platform/embedder/public/lynx_template_data.h +0 -104
  88. package/include/lynx/platform/embedder/public/lynx_trail_service.h +0 -81
  89. package/include/lynx/platform/embedder/public/lynx_update_meta.h +0 -56
  90. package/include/lynx/platform/embedder/public/lynx_value.h +0 -270
  91. package/include/lynx/platform/embedder/public/lynx_view.h +0 -364
  92. package/include/lynx/platform/embedder/public/lynx_view_client.h +0 -226
  93. package/include/lynx/platform/embedder/public/lynx_vsync_monitor.h +0 -70
  94. package/include/lynx/platform/embedder/public/lynx_windowless_renderer.h +0 -302
  95. package/include/lynx/registration.h +0 -178
  96. package/include/lynx_env.h +0 -104
  97. package/include/lynx_event_reporter_service.h +0 -96
  98. package/include/lynx_event_simulation_proxy.h +0 -31
  99. package/include/lynx_extension.h +0 -10
  100. package/include/lynx_extension_module.h +0 -521
  101. package/include/lynx_generic_resource_fetcher.h +0 -178
  102. package/include/lynx_group.h +0 -70
  103. package/include/lynx_http_service.h +0 -211
  104. package/include/lynx_load_meta.h +0 -120
  105. package/include/lynx_native_module.h +0 -9
  106. package/include/lynx_native_view.h +0 -201
  107. package/include/lynx_resource_request.h +0 -56
  108. package/include/lynx_resource_response.h +0 -63
  109. package/include/lynx_runtime_lifecycle_observer.h +0 -102
  110. package/include/lynx_security_service.h +0 -78
  111. package/include/lynx_service_center.h +0 -64
  112. package/include/lynx_template_bundle.h +0 -65
  113. package/include/lynx_template_data.h +0 -104
  114. package/include/lynx_trail_service.h +0 -81
  115. package/include/lynx_update_meta.h +0 -56
  116. package/include/lynx_value.h +0 -270
  117. package/include/lynx_view.h +0 -364
  118. package/include/lynx_view_client.h +0 -226
  119. package/include/lynx_vsync_monitor.h +0 -70
  120. package/include/lynx_windowless_renderer.h +0 -302
  121. package/include/napi-inl.deprecated.h +0 -186
  122. package/include/napi-inl.h +0 -6607
  123. package/include/napi.h +0 -3208
  124. package/include/node_api.h +0 -276
  125. package/include/node_api_types.h +0 -59
  126. package/include/third_party/weak-node-api/headers/js_native_api.h +0 -608
  127. package/include/third_party/weak-node-api/headers/js_native_api_types.h +0 -202
  128. package/include/third_party/weak-node-api/headers/napi-inl.deprecated.h +0 -186
  129. package/include/third_party/weak-node-api/headers/napi-inl.h +0 -6607
  130. package/include/third_party/weak-node-api/headers/napi.h +0 -3208
  131. package/include/third_party/weak-node-api/headers/node_api.h +0 -276
  132. package/include/third_party/weak-node-api/headers/node_api_types.h +0 -59
  133. package/include/third_party/weak-node-api/headers/weak_napi_defines.h +0 -331
  134. package/include/third_party/weak-node-api/headers/weak_napi_undefs.h +0 -282
  135. package/include/weak_napi_defines.h +0 -331
  136. package/include/weak_napi_undefs.h +0 -282
@@ -1,276 +0,0 @@
1
- #ifndef WEAK_NODE_API_SRC_NODE_API_H_
2
- #define WEAK_NODE_API_SRC_NODE_API_H_
3
-
4
- #if defined(BUILDING_NODE_EXTENSION) && !defined(WEAK_NAPI_EXTERN)
5
- #ifdef _WIN32
6
- // Building native addon against node
7
- #define WEAK_NAPI_EXTERN __declspec(dllimport)
8
- #elif defined(__wasm__)
9
- #define WEAK_NAPI_EXTERN __attribute__((__import_module__("napi")))
10
- #endif
11
- #endif
12
- #include "./js_native_api.h"
13
- #include "./node_api_types.h"
14
- #if defined(USE_WEAK_SUFFIX_NAPI) || defined(OS_HARMONY)
15
- #include "weak_napi_defines.h"
16
- #endif
17
-
18
- struct uv_loop_s; // Forward declaration.
19
-
20
- #ifdef _WIN32
21
- #define NAPI_MODULE_EXPORT __declspec(dllexport)
22
- #else
23
- #ifdef __EMSCRIPTEN__
24
- #define NAPI_MODULE_EXPORT \
25
- __attribute__((visibility("default"))) __attribute__((used))
26
- #else
27
- #define NAPI_MODULE_EXPORT __attribute__((visibility("default")))
28
- #endif
29
- #endif
30
-
31
- #if defined(__GNUC__)
32
- #define NAPI_NO_RETURN __attribute__((noreturn))
33
- #elif defined(_WIN32)
34
- #define NAPI_NO_RETURN __declspec(noreturn)
35
- #else
36
- #define NAPI_NO_RETURN
37
- #endif
38
-
39
- typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
40
- napi_value exports);
41
- typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
42
-
43
- // Used by deprecated registration method napi_module_register.
44
- typedef struct napi_module {
45
- int nm_version;
46
- unsigned int nm_flags;
47
- const char* nm_filename;
48
- napi_addon_register_func nm_register_func;
49
- const char* nm_modname;
50
- void* nm_priv;
51
- void* reserved[4];
52
- } napi_module;
53
-
54
- #define NAPI_MODULE_VERSION 1
55
-
56
- #define NAPI_MODULE_INITIALIZER_X(base, version) \
57
- NAPI_MODULE_INITIALIZER_X_HELPER(base, version)
58
- #define NAPI_MODULE_INITIALIZER_X_HELPER(base, version) base##version
59
-
60
- #ifdef __wasm__
61
- #define NAPI_MODULE_INITIALIZER_BASE napi_register_wasm_v
62
- #else
63
- #define NAPI_MODULE_INITIALIZER_BASE napi_register_module_v
64
- #endif
65
-
66
- #define NODE_API_MODULE_GET_API_VERSION_BASE node_api_module_get_api_version_v
67
-
68
- #define NAPI_MODULE_INITIALIZER \
69
- NAPI_MODULE_INITIALIZER_X(NAPI_MODULE_INITIALIZER_BASE, NAPI_MODULE_VERSION)
70
-
71
- #define NODE_API_MODULE_GET_API_VERSION \
72
- NAPI_MODULE_INITIALIZER_X(NODE_API_MODULE_GET_API_VERSION_BASE, \
73
- NAPI_MODULE_VERSION)
74
-
75
- #define NAPI_MODULE_INIT() \
76
- EXTERN_C_START \
77
- NAPI_MODULE_EXPORT int32_t NODE_API_MODULE_GET_API_VERSION(void) { \
78
- return NAPI_VERSION; \
79
- } \
80
- NAPI_MODULE_EXPORT napi_value NAPI_MODULE_INITIALIZER(napi_env env, \
81
- napi_value exports); \
82
- EXTERN_C_END \
83
- napi_value NAPI_MODULE_INITIALIZER(napi_env env, napi_value exports)
84
-
85
- #define NAPI_MODULE(modname, regfunc) \
86
- NAPI_MODULE_INIT() { return regfunc(env, exports); }
87
-
88
- // Deprecated. Use NAPI_MODULE.
89
- #define NAPI_MODULE_X(modname, regfunc, priv, flags) \
90
- NAPI_MODULE(modname, regfunc)
91
-
92
- EXTERN_C_START
93
-
94
- // Deprecated. Replaced by symbol-based registration defined by NAPI_MODULE
95
- // and NAPI_MODULE_INIT macros.
96
- WEAK_NAPI_EXTERN void NAPI_CDECL
97
- napi_module_register(napi_module* mod);
98
-
99
- WEAK_NAPI_EXTERN NAPI_NO_RETURN void NAPI_CDECL
100
- napi_fatal_error(const char* location,
101
- size_t location_len,
102
- const char* message,
103
- size_t message_len);
104
-
105
- // Methods for custom handling of async operations
106
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
107
- napi_async_init(napi_env env,
108
- napi_value async_resource,
109
- napi_value async_resource_name,
110
- napi_async_context* result);
111
-
112
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
113
- napi_async_destroy(napi_env env, napi_async_context async_context);
114
-
115
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
116
- napi_make_callback(napi_env env,
117
- napi_async_context async_context,
118
- napi_value recv,
119
- napi_value func,
120
- size_t argc,
121
- const napi_value* argv,
122
- napi_value* result);
123
-
124
- // Methods to provide node::Buffer functionality with napi types
125
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer(napi_env env,
126
- size_t length,
127
- void** data,
128
- napi_value* result);
129
- #ifndef NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
130
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
131
- napi_create_external_buffer(napi_env env,
132
- size_t length,
133
- void* data,
134
- node_api_basic_finalize finalize_cb,
135
- void* finalize_hint,
136
- napi_value* result);
137
- #endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
138
-
139
- #if NAPI_VERSION >= 10
140
-
141
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
142
- node_api_create_buffer_from_arraybuffer(napi_env env,
143
- napi_value arraybuffer,
144
- size_t byte_offset,
145
- size_t byte_length,
146
- napi_value* result);
147
- #endif // NAPI_VERSION >= 10
148
-
149
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer_copy(napi_env env,
150
- size_t length,
151
- const void* data,
152
- void** result_data,
153
- napi_value* result);
154
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_is_buffer(napi_env env,
155
- napi_value value,
156
- bool* result);
157
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_get_buffer_info(napi_env env,
158
- napi_value value,
159
- void** data,
160
- size_t* length);
161
-
162
- // Methods to manage simple async operations
163
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
164
- napi_create_async_work(napi_env env,
165
- napi_value async_resource,
166
- napi_value async_resource_name,
167
- napi_async_execute_callback execute,
168
- napi_async_complete_callback complete,
169
- void* data,
170
- napi_async_work* result);
171
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_delete_async_work(napi_env env,
172
- napi_async_work work);
173
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_queue_async_work(node_api_basic_env env,
174
- napi_async_work work);
175
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
176
- napi_cancel_async_work(node_api_basic_env env, napi_async_work work);
177
-
178
- // version management
179
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_get_node_version(
180
- node_api_basic_env env, const napi_node_version** version);
181
-
182
- #if NAPI_VERSION >= 2
183
-
184
- // Return the current libuv event loop for a given environment
185
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
186
- napi_get_uv_event_loop(node_api_basic_env env, struct uv_loop_s** loop);
187
-
188
- #endif // NAPI_VERSION >= 2
189
-
190
- #if NAPI_VERSION >= 3
191
-
192
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_fatal_exception(napi_env env,
193
- napi_value err);
194
-
195
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_add_env_cleanup_hook(
196
- node_api_basic_env env, napi_cleanup_hook fun, void* arg);
197
-
198
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_remove_env_cleanup_hook(
199
- node_api_basic_env env, napi_cleanup_hook fun, void* arg);
200
-
201
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
202
- napi_open_callback_scope(napi_env env,
203
- napi_value resource_object,
204
- napi_async_context context,
205
- napi_callback_scope* result);
206
-
207
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
208
- napi_close_callback_scope(napi_env env, napi_callback_scope scope);
209
-
210
- #endif // NAPI_VERSION >= 3
211
-
212
- #if NAPI_VERSION >= 4
213
-
214
- // Calling into JS from other threads
215
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
216
- napi_create_threadsafe_function(napi_env env,
217
- napi_value func,
218
- napi_value async_resource,
219
- napi_value async_resource_name,
220
- size_t max_queue_size,
221
- size_t initial_thread_count,
222
- void* thread_finalize_data,
223
- napi_finalize thread_finalize_cb,
224
- void* context,
225
- napi_threadsafe_function_call_js call_js_cb,
226
- napi_threadsafe_function* result);
227
-
228
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_get_threadsafe_function_context(
229
- napi_threadsafe_function func, void** result);
230
-
231
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
232
- napi_call_threadsafe_function(napi_threadsafe_function func,
233
- void* data,
234
- napi_threadsafe_function_call_mode is_blocking);
235
-
236
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
237
- napi_acquire_threadsafe_function(napi_threadsafe_function func);
238
-
239
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_release_threadsafe_function(
240
- napi_threadsafe_function func, napi_threadsafe_function_release_mode mode);
241
-
242
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_unref_threadsafe_function(
243
- node_api_basic_env env, napi_threadsafe_function func);
244
-
245
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL napi_ref_threadsafe_function(
246
- node_api_basic_env env, napi_threadsafe_function func);
247
-
248
- #endif // NAPI_VERSION >= 4
249
-
250
- #if NAPI_VERSION >= 8
251
-
252
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
253
- napi_add_async_cleanup_hook(node_api_basic_env env,
254
- napi_async_cleanup_hook hook,
255
- void* arg,
256
- napi_async_cleanup_hook_handle* remove_handle);
257
-
258
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
259
- napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle);
260
-
261
- #endif // NAPI_VERSION >= 8
262
-
263
- #if NAPI_VERSION >= 9
264
-
265
- WEAK_NAPI_EXTERN napi_status NAPI_CDECL
266
- node_api_get_module_file_name(node_api_basic_env env, const char** result);
267
-
268
- #endif // NAPI_VERSION >= 9
269
-
270
- EXTERN_C_END
271
-
272
- #endif // SRC_NODE_API_H_
273
-
274
- #if defined(USE_WEAK_SUFFIX_NAPI) || defined(OS_HARMONY)
275
- #include "weak_napi_undefs.h"
276
- #endif
@@ -1,59 +0,0 @@
1
- #ifndef WEAK_NODE_API_SRC_NODE_API_TYPES_H_
2
- #define WEAK_NODE_API_SRC_NODE_API_TYPES_H_
3
-
4
- #include "./js_native_api_types.h"
5
- #if defined(USE_WEAK_SUFFIX_NAPI) || defined(OS_HARMONY)
6
- #include "weak_napi_defines.h"
7
- #endif
8
-
9
- typedef struct napi_callback_scope__* napi_callback_scope;
10
- typedef struct napi_async_context__* napi_async_context;
11
- typedef struct napi_async_work__* napi_async_work;
12
-
13
- #if NAPI_VERSION >= 3
14
- typedef void(NAPI_CDECL* napi_cleanup_hook)(void* arg);
15
- #endif // NAPI_VERSION >= 3
16
-
17
- #if NAPI_VERSION >= 4
18
- typedef struct napi_threadsafe_function__* napi_threadsafe_function;
19
- #endif // NAPI_VERSION >= 4
20
-
21
- #if NAPI_VERSION >= 4
22
- typedef enum {
23
- napi_tsfn_release,
24
- napi_tsfn_abort
25
- } napi_threadsafe_function_release_mode;
26
-
27
- typedef enum {
28
- napi_tsfn_nonblocking,
29
- napi_tsfn_blocking
30
- } napi_threadsafe_function_call_mode;
31
- #endif // NAPI_VERSION >= 4
32
-
33
- typedef void(NAPI_CDECL* napi_async_execute_callback)(napi_env env, void* data);
34
- typedef void(NAPI_CDECL* napi_async_complete_callback)(napi_env env,
35
- napi_status status,
36
- void* data);
37
- #if NAPI_VERSION >= 4
38
- typedef void(NAPI_CDECL* napi_threadsafe_function_call_js)(
39
- napi_env env, napi_value js_callback, void* context, void* data);
40
- #endif // NAPI_VERSION >= 4
41
-
42
- typedef struct {
43
- uint32_t major;
44
- uint32_t minor;
45
- uint32_t patch;
46
- const char* release;
47
- } napi_node_version;
48
-
49
- #if NAPI_VERSION >= 8
50
- typedef struct napi_async_cleanup_hook_handle__* napi_async_cleanup_hook_handle;
51
- typedef void(NAPI_CDECL* napi_async_cleanup_hook)(
52
- napi_async_cleanup_hook_handle handle, void* data);
53
- #endif // NAPI_VERSION >= 8
54
-
55
- #endif // SRC_NODE_API_TYPES_H_
56
-
57
- #if defined(USE_WEAK_SUFFIX_NAPI) || defined(OS_HARMONY)
58
- #include "weak_napi_undefs.h"
59
- #endif
@@ -1,331 +0,0 @@
1
- // Copyright 2025 The Lynx Authors. All rights reserved.
2
- // Licensed under the Apache License Version 2.0 that can be found in the
3
- // LICENSE file in the root directory of this source tree.
4
-
5
- // Note: It is recommended to include this header under a guard such as
6
- // `#if defined(USE_WEAK_SUFFIX_NAPI)` so that weak suffix symbol remapping is
7
- // enabled only when explicitly requested.
8
-
9
- // Helper to construct weak symbol names
10
- #define WEAK_NAPI_SYMBOL(name) name##_weak
11
-
12
- #define napi_env WEAK_NAPI_SYMBOL(napi_env)
13
- #define napi_env__ WEAK_NAPI_SYMBOL(napi_env__)
14
- #define node_api_nogc_env WEAK_NAPI_SYMBOL(node_api_nogc_env)
15
- #define node_api_basic_env WEAK_NAPI_SYMBOL(node_api_basic_env)
16
- #define napi_value WEAK_NAPI_SYMBOL(napi_value)
17
- #define napi_value__ WEAK_NAPI_SYMBOL(napi_value__)
18
- #define napi_ref WEAK_NAPI_SYMBOL(napi_ref)
19
- #define napi_ref__ WEAK_NAPI_SYMBOL(napi_ref__)
20
- #define napi_handle_scope WEAK_NAPI_SYMBOL(napi_handle_scope)
21
- #define napi_handle_scope__ WEAK_NAPI_SYMBOL(napi_handle_scope__)
22
- #define napi_escapable_handle_scope \
23
- WEAK_NAPI_SYMBOL(napi_escapable_handle_scope)
24
- #define napi_escapable_handle_scope__ \
25
- WEAK_NAPI_SYMBOL(napi_escapable_handle_scope__)
26
- #define napi_callback_info WEAK_NAPI_SYMBOL(napi_callback_info)
27
- #define napi_callback_info__ WEAK_NAPI_SYMBOL(napi_callback_info__)
28
- #define napi_deferred WEAK_NAPI_SYMBOL(napi_deferred)
29
- #define napi_deferred__ WEAK_NAPI_SYMBOL(napi_deferred__)
30
- #define napi_callback_scope WEAK_NAPI_SYMBOL(napi_callback_scope)
31
- #define napi_callback_scope__ WEAK_NAPI_SYMBOL(napi_callback_scope__)
32
- #define napi_async_context WEAK_NAPI_SYMBOL(napi_async_context)
33
- #define napi_async_context__ WEAK_NAPI_SYMBOL(napi_async_context__)
34
- #define napi_async_work WEAK_NAPI_SYMBOL(napi_async_work)
35
- #define napi_async_work__ WEAK_NAPI_SYMBOL(napi_async_work__)
36
- #define napi_threadsafe_function WEAK_NAPI_SYMBOL(napi_threadsafe_function)
37
- #define napi_threadsafe_function__ WEAK_NAPI_SYMBOL(napi_threadsafe_function__)
38
- #define napi_async_cleanup_hook_handle \
39
- WEAK_NAPI_SYMBOL(napi_async_cleanup_hook_handle)
40
- #define napi_async_cleanup_hook_handle__ \
41
- WEAK_NAPI_SYMBOL(napi_async_cleanup_hook_handle__)
42
- #define napi_default WEAK_NAPI_SYMBOL(napi_default)
43
- #define napi_writable WEAK_NAPI_SYMBOL(napi_writable)
44
- #define napi_enumerable WEAK_NAPI_SYMBOL(napi_enumerable)
45
- #define napi_configurable WEAK_NAPI_SYMBOL(napi_configurable)
46
- #define napi_static WEAK_NAPI_SYMBOL(napi_static)
47
- #define napi_default_method WEAK_NAPI_SYMBOL(napi_default_method)
48
- #define napi_default_jsproperty WEAK_NAPI_SYMBOL(napi_default_jsproperty)
49
- #define napi_property_attributes WEAK_NAPI_SYMBOL(napi_property_attributes)
50
- #define napi_undefined WEAK_NAPI_SYMBOL(napi_undefined)
51
- #define napi_null WEAK_NAPI_SYMBOL(napi_null)
52
- #define napi_boolean WEAK_NAPI_SYMBOL(napi_boolean)
53
- #define napi_number WEAK_NAPI_SYMBOL(napi_number)
54
- #define napi_string WEAK_NAPI_SYMBOL(napi_string)
55
- #define napi_symbol WEAK_NAPI_SYMBOL(napi_symbol)
56
- #define napi_object WEAK_NAPI_SYMBOL(napi_object)
57
- #define napi_function WEAK_NAPI_SYMBOL(napi_function)
58
- #define napi_external WEAK_NAPI_SYMBOL(napi_external)
59
- #define napi_bigint WEAK_NAPI_SYMBOL(napi_bigint)
60
- #define napi_valuetype WEAK_NAPI_SYMBOL(napi_valuetype)
61
- #define napi_int8_array WEAK_NAPI_SYMBOL(napi_int8_array)
62
- #define napi_uint8_array WEAK_NAPI_SYMBOL(napi_uint8_array)
63
- #define napi_uint8_clamped_array WEAK_NAPI_SYMBOL(napi_uint8_clamped_array)
64
- #define napi_int16_array WEAK_NAPI_SYMBOL(napi_int16_array)
65
- #define napi_uint16_array WEAK_NAPI_SYMBOL(napi_uint16_array)
66
- #define napi_int32_array WEAK_NAPI_SYMBOL(napi_int32_array)
67
- #define napi_uint32_array WEAK_NAPI_SYMBOL(napi_uint32_array)
68
- #define napi_float32_array WEAK_NAPI_SYMBOL(napi_float32_array)
69
- #define napi_float64_array WEAK_NAPI_SYMBOL(napi_float64_array)
70
- #define napi_bigint64_array WEAK_NAPI_SYMBOL(napi_bigint64_array)
71
- #define napi_biguint64_array WEAK_NAPI_SYMBOL(napi_biguint64_array)
72
- #define napi_typedarray_type WEAK_NAPI_SYMBOL(napi_typedarray_type)
73
- #define napi_ok WEAK_NAPI_SYMBOL(napi_ok)
74
- #define napi_invalid_arg WEAK_NAPI_SYMBOL(napi_invalid_arg)
75
- #define napi_object_expected WEAK_NAPI_SYMBOL(napi_object_expected)
76
- #define napi_string_expected WEAK_NAPI_SYMBOL(napi_string_expected)
77
- #define napi_name_expected WEAK_NAPI_SYMBOL(napi_name_expected)
78
- #define napi_function_expected WEAK_NAPI_SYMBOL(napi_function_expected)
79
- #define napi_number_expected WEAK_NAPI_SYMBOL(napi_number_expected)
80
- #define napi_boolean_expected WEAK_NAPI_SYMBOL(napi_boolean_expected)
81
- #define napi_array_expected WEAK_NAPI_SYMBOL(napi_array_expected)
82
- #define napi_generic_failure WEAK_NAPI_SYMBOL(napi_generic_failure)
83
- #define napi_pending_exception WEAK_NAPI_SYMBOL(napi_pending_exception)
84
- #define napi_cancelled WEAK_NAPI_SYMBOL(napi_cancelled)
85
- #define napi_escape_called_twice WEAK_NAPI_SYMBOL(napi_escape_called_twice)
86
- #define napi_handle_scope_mismatch WEAK_NAPI_SYMBOL(napi_handle_scope_mismatch)
87
- #define napi_callback_scope_mismatch \
88
- WEAK_NAPI_SYMBOL(napi_callback_scope_mismatch)
89
- #define napi_queue_full WEAK_NAPI_SYMBOL(napi_queue_full)
90
- #define napi_closing WEAK_NAPI_SYMBOL(napi_closing)
91
- #define napi_bigint_expected WEAK_NAPI_SYMBOL(napi_bigint_expected)
92
- #define napi_date_expected WEAK_NAPI_SYMBOL(napi_date_expected)
93
- #define napi_arraybuffer_expected WEAK_NAPI_SYMBOL(napi_arraybuffer_expected)
94
- #define napi_detachable_arraybuffer_expected \
95
- WEAK_NAPI_SYMBOL(napi_detachable_arraybuffer_expected)
96
- #define napi_would_deadlock WEAK_NAPI_SYMBOL(napi_would_deadlock)
97
- #define napi_no_external_buffers_allowed \
98
- WEAK_NAPI_SYMBOL(napi_no_external_buffers_allowed)
99
- #define napi_cannot_run_js WEAK_NAPI_SYMBOL(napi_cannot_run_js)
100
- #define napi_status WEAK_NAPI_SYMBOL(napi_status)
101
- #define napi_tsfn_release WEAK_NAPI_SYMBOL(napi_tsfn_release)
102
- #define napi_tsfn_abort WEAK_NAPI_SYMBOL(napi_tsfn_abort)
103
- #define napi_threadsafe_function_release_mode \
104
- WEAK_NAPI_SYMBOL(napi_threadsafe_function_release_mode)
105
- #define napi_tsfn_nonblocking WEAK_NAPI_SYMBOL(napi_tsfn_nonblocking)
106
- #define napi_tsfn_blocking WEAK_NAPI_SYMBOL(napi_tsfn_blocking)
107
- #define napi_threadsafe_function_call_mode \
108
- WEAK_NAPI_SYMBOL(napi_threadsafe_function_call_mode)
109
- #define napi_key_include_prototypes \
110
- WEAK_NAPI_SYMBOL(napi_key_include_prototypes)
111
- #define napi_key_own_only WEAK_NAPI_SYMBOL(napi_key_own_only)
112
- #define napi_key_collection_mode WEAK_NAPI_SYMBOL(napi_key_collection_mode)
113
- #define napi_key_all_properties WEAK_NAPI_SYMBOL(napi_key_all_properties)
114
- #define napi_key_writable WEAK_NAPI_SYMBOL(napi_key_writable)
115
- #define napi_key_enumerable WEAK_NAPI_SYMBOL(napi_key_enumerable)
116
- #define napi_key_configurable WEAK_NAPI_SYMBOL(napi_key_configurable)
117
- #define napi_key_skip_strings WEAK_NAPI_SYMBOL(napi_key_skip_strings)
118
- #define napi_key_skip_symbols WEAK_NAPI_SYMBOL(napi_key_skip_symbols)
119
- #define napi_key_filter WEAK_NAPI_SYMBOL(napi_key_filter)
120
- #define napi_key_keep_numbers WEAK_NAPI_SYMBOL(napi_key_keep_numbers)
121
- #define napi_key_numbers_to_strings \
122
- WEAK_NAPI_SYMBOL(napi_key_numbers_to_strings)
123
- #define napi_key_conversion WEAK_NAPI_SYMBOL(napi_key_conversion)
124
- #define napi_property_descriptor WEAK_NAPI_SYMBOL(napi_property_descriptor)
125
- #define napi_extended_error_info WEAK_NAPI_SYMBOL(napi_extended_error_info)
126
- #define napi_node_version WEAK_NAPI_SYMBOL(napi_node_version)
127
- #define napi_module WEAK_NAPI_SYMBOL(napi_module)
128
- #define napi_type_tag WEAK_NAPI_SYMBOL(napi_type_tag)
129
- #define napi_callback WEAK_NAPI_SYMBOL(napi_callback)
130
- #define napi_finalize WEAK_NAPI_SYMBOL(napi_finalize)
131
- #define node_api_nogc_finalize WEAK_NAPI_SYMBOL(node_api_nogc_finalize)
132
- #define node_api_basic_finalize WEAK_NAPI_SYMBOL(node_api_basic_finalize)
133
- #define napi_cleanup_hook WEAK_NAPI_SYMBOL(napi_cleanup_hook)
134
- #define napi_async_execute_callback \
135
- WEAK_NAPI_SYMBOL(napi_async_execute_callback)
136
- #define napi_async_complete_callback \
137
- WEAK_NAPI_SYMBOL(napi_async_complete_callback)
138
- #define napi_threadsafe_function_call_js \
139
- WEAK_NAPI_SYMBOL(napi_threadsafe_function_call_js)
140
- #define napi_async_cleanup_hook WEAK_NAPI_SYMBOL(napi_async_cleanup_hook)
141
- #define napi_addon_register_func WEAK_NAPI_SYMBOL(napi_addon_register_func)
142
- #define node_api_addon_get_api_version_func \
143
- WEAK_NAPI_SYMBOL(node_api_addon_get_api_version_func)
144
- #define napi_get_last_error_info WEAK_NAPI_SYMBOL(napi_get_last_error_info)
145
- #define napi_get_undefined WEAK_NAPI_SYMBOL(napi_get_undefined)
146
- #define napi_get_null WEAK_NAPI_SYMBOL(napi_get_null)
147
- #define napi_get_global WEAK_NAPI_SYMBOL(napi_get_global)
148
- #define napi_get_boolean WEAK_NAPI_SYMBOL(napi_get_boolean)
149
- #define napi_create_object WEAK_NAPI_SYMBOL(napi_create_object)
150
- #define napi_create_array WEAK_NAPI_SYMBOL(napi_create_array)
151
- #define napi_create_array_with_length \
152
- WEAK_NAPI_SYMBOL(napi_create_array_with_length)
153
- #define napi_create_double WEAK_NAPI_SYMBOL(napi_create_double)
154
- #define napi_create_int32 WEAK_NAPI_SYMBOL(napi_create_int32)
155
- #define napi_create_uint32 WEAK_NAPI_SYMBOL(napi_create_uint32)
156
- #define napi_create_int64 WEAK_NAPI_SYMBOL(napi_create_int64)
157
- #define napi_create_string_latin1 WEAK_NAPI_SYMBOL(napi_create_string_latin1)
158
- #define napi_create_string_utf8 WEAK_NAPI_SYMBOL(napi_create_string_utf8)
159
- #define napi_create_string_utf16 WEAK_NAPI_SYMBOL(napi_create_string_utf16)
160
- #define node_api_create_external_string_latin1 \
161
- WEAK_NAPI_SYMBOL(node_api_create_external_string_latin1)
162
- #define node_api_create_external_string_utf16 \
163
- WEAK_NAPI_SYMBOL(node_api_create_external_string_utf16)
164
- #define node_api_create_property_key_latin1 \
165
- WEAK_NAPI_SYMBOL(node_api_create_property_key_latin1)
166
- #define node_api_create_property_key_utf8 \
167
- WEAK_NAPI_SYMBOL(node_api_create_property_key_utf8)
168
- #define node_api_create_property_key_utf16 \
169
- WEAK_NAPI_SYMBOL(node_api_create_property_key_utf16)
170
- #define napi_create_symbol WEAK_NAPI_SYMBOL(napi_create_symbol)
171
- #define node_api_symbol_for WEAK_NAPI_SYMBOL(node_api_symbol_for)
172
- #define napi_create_function WEAK_NAPI_SYMBOL(napi_create_function)
173
- #define napi_create_error WEAK_NAPI_SYMBOL(napi_create_error)
174
- #define napi_create_type_error WEAK_NAPI_SYMBOL(napi_create_type_error)
175
- #define napi_create_range_error WEAK_NAPI_SYMBOL(napi_create_range_error)
176
- #define node_api_create_syntax_error \
177
- WEAK_NAPI_SYMBOL(node_api_create_syntax_error)
178
- #define napi_typeof WEAK_NAPI_SYMBOL(napi_typeof)
179
- #define napi_get_value_double WEAK_NAPI_SYMBOL(napi_get_value_double)
180
- #define napi_get_value_int32 WEAK_NAPI_SYMBOL(napi_get_value_int32)
181
- #define napi_get_value_uint32 WEAK_NAPI_SYMBOL(napi_get_value_uint32)
182
- #define napi_get_value_int64 WEAK_NAPI_SYMBOL(napi_get_value_int64)
183
- #define napi_get_value_bool WEAK_NAPI_SYMBOL(napi_get_value_bool)
184
- #define napi_get_value_string_latin1 \
185
- WEAK_NAPI_SYMBOL(napi_get_value_string_latin1)
186
- #define napi_get_value_string_utf8 WEAK_NAPI_SYMBOL(napi_get_value_string_utf8)
187
- #define napi_get_value_string_utf16 \
188
- WEAK_NAPI_SYMBOL(napi_get_value_string_utf16)
189
- #define napi_coerce_to_bool WEAK_NAPI_SYMBOL(napi_coerce_to_bool)
190
- #define napi_coerce_to_number WEAK_NAPI_SYMBOL(napi_coerce_to_number)
191
- #define napi_coerce_to_object WEAK_NAPI_SYMBOL(napi_coerce_to_object)
192
- #define napi_coerce_to_string WEAK_NAPI_SYMBOL(napi_coerce_to_string)
193
- #define napi_get_prototype WEAK_NAPI_SYMBOL(napi_get_prototype)
194
- #define napi_get_property_names WEAK_NAPI_SYMBOL(napi_get_property_names)
195
- #define napi_set_property WEAK_NAPI_SYMBOL(napi_set_property)
196
- #define napi_has_property WEAK_NAPI_SYMBOL(napi_has_property)
197
- #define napi_get_property WEAK_NAPI_SYMBOL(napi_get_property)
198
- #define napi_delete_property WEAK_NAPI_SYMBOL(napi_delete_property)
199
- #define napi_has_own_property WEAK_NAPI_SYMBOL(napi_has_own_property)
200
- #define napi_set_named_property WEAK_NAPI_SYMBOL(napi_set_named_property)
201
- #define napi_has_named_property WEAK_NAPI_SYMBOL(napi_has_named_property)
202
- #define napi_get_named_property WEAK_NAPI_SYMBOL(napi_get_named_property)
203
- #define napi_set_element WEAK_NAPI_SYMBOL(napi_set_element)
204
- #define napi_has_element WEAK_NAPI_SYMBOL(napi_has_element)
205
- #define napi_get_element WEAK_NAPI_SYMBOL(napi_get_element)
206
- #define napi_delete_element WEAK_NAPI_SYMBOL(napi_delete_element)
207
- #define napi_define_properties WEAK_NAPI_SYMBOL(napi_define_properties)
208
- #define napi_is_array WEAK_NAPI_SYMBOL(napi_is_array)
209
- #define napi_get_array_length WEAK_NAPI_SYMBOL(napi_get_array_length)
210
- #define napi_strict_equals WEAK_NAPI_SYMBOL(napi_strict_equals)
211
- #define napi_call_function WEAK_NAPI_SYMBOL(napi_call_function)
212
- #define napi_new_instance WEAK_NAPI_SYMBOL(napi_new_instance)
213
- #define napi_instanceof WEAK_NAPI_SYMBOL(napi_instanceof)
214
- #define napi_get_cb_info WEAK_NAPI_SYMBOL(napi_get_cb_info)
215
- #define napi_get_new_target WEAK_NAPI_SYMBOL(napi_get_new_target)
216
- #define napi_define_class WEAK_NAPI_SYMBOL(napi_define_class)
217
- #define napi_wrap WEAK_NAPI_SYMBOL(napi_wrap)
218
- #define napi_unwrap WEAK_NAPI_SYMBOL(napi_unwrap)
219
- #define napi_remove_wrap WEAK_NAPI_SYMBOL(napi_remove_wrap)
220
- #define napi_create_external WEAK_NAPI_SYMBOL(napi_create_external)
221
- #define napi_get_value_external WEAK_NAPI_SYMBOL(napi_get_value_external)
222
- #define napi_create_reference WEAK_NAPI_SYMBOL(napi_create_reference)
223
- #define napi_delete_reference WEAK_NAPI_SYMBOL(napi_delete_reference)
224
- #define napi_reference_ref WEAK_NAPI_SYMBOL(napi_reference_ref)
225
- #define napi_reference_unref WEAK_NAPI_SYMBOL(napi_reference_unref)
226
- #define napi_get_reference_value WEAK_NAPI_SYMBOL(napi_get_reference_value)
227
- #define napi_open_handle_scope WEAK_NAPI_SYMBOL(napi_open_handle_scope)
228
- #define napi_close_handle_scope WEAK_NAPI_SYMBOL(napi_close_handle_scope)
229
- #define napi_open_escapable_handle_scope \
230
- WEAK_NAPI_SYMBOL(napi_open_escapable_handle_scope)
231
- #define napi_close_escapable_handle_scope \
232
- WEAK_NAPI_SYMBOL(napi_close_escapable_handle_scope)
233
- #define napi_escape_handle WEAK_NAPI_SYMBOL(napi_escape_handle)
234
- #define napi_throw WEAK_NAPI_SYMBOL(napi_throw)
235
- #define napi_throw_error WEAK_NAPI_SYMBOL(napi_throw_error)
236
- #define napi_throw_type_error WEAK_NAPI_SYMBOL(napi_throw_type_error)
237
- #define napi_throw_range_error WEAK_NAPI_SYMBOL(napi_throw_range_error)
238
- #define node_api_throw_syntax_error \
239
- WEAK_NAPI_SYMBOL(node_api_throw_syntax_error)
240
- #define napi_is_error WEAK_NAPI_SYMBOL(napi_is_error)
241
- #define napi_is_exception_pending WEAK_NAPI_SYMBOL(napi_is_exception_pending)
242
- #define napi_get_and_clear_last_exception \
243
- WEAK_NAPI_SYMBOL(napi_get_and_clear_last_exception)
244
- #define napi_is_arraybuffer WEAK_NAPI_SYMBOL(napi_is_arraybuffer)
245
- #define napi_create_arraybuffer WEAK_NAPI_SYMBOL(napi_create_arraybuffer)
246
- #define napi_create_external_arraybuffer \
247
- WEAK_NAPI_SYMBOL(napi_create_external_arraybuffer)
248
- #define napi_get_arraybuffer_info WEAK_NAPI_SYMBOL(napi_get_arraybuffer_info)
249
- #define napi_is_typedarray WEAK_NAPI_SYMBOL(napi_is_typedarray)
250
- #define napi_create_typedarray WEAK_NAPI_SYMBOL(napi_create_typedarray)
251
- #define napi_get_typedarray_info WEAK_NAPI_SYMBOL(napi_get_typedarray_info)
252
- #define napi_create_dataview WEAK_NAPI_SYMBOL(napi_create_dataview)
253
- #define napi_is_dataview WEAK_NAPI_SYMBOL(napi_is_dataview)
254
- #define napi_get_dataview_info WEAK_NAPI_SYMBOL(napi_get_dataview_info)
255
- #define napi_get_version WEAK_NAPI_SYMBOL(napi_get_version)
256
- #define napi_create_promise WEAK_NAPI_SYMBOL(napi_create_promise)
257
- #define napi_resolve_deferred WEAK_NAPI_SYMBOL(napi_resolve_deferred)
258
- #define napi_reject_deferred WEAK_NAPI_SYMBOL(napi_reject_deferred)
259
- #define napi_is_promise WEAK_NAPI_SYMBOL(napi_is_promise)
260
- #define napi_run_script WEAK_NAPI_SYMBOL(napi_run_script)
261
- #define napi_adjust_external_memory \
262
- WEAK_NAPI_SYMBOL(napi_adjust_external_memory)
263
- #define napi_create_date WEAK_NAPI_SYMBOL(napi_create_date)
264
- #define napi_is_date WEAK_NAPI_SYMBOL(napi_is_date)
265
- #define napi_get_date_value WEAK_NAPI_SYMBOL(napi_get_date_value)
266
- #define napi_add_finalizer WEAK_NAPI_SYMBOL(napi_add_finalizer)
267
- #define napi_create_bigint_int64 WEAK_NAPI_SYMBOL(napi_create_bigint_int64)
268
- #define napi_create_bigint_uint64 WEAK_NAPI_SYMBOL(napi_create_bigint_uint64)
269
- #define napi_create_bigint_words WEAK_NAPI_SYMBOL(napi_create_bigint_words)
270
- #define napi_get_value_bigint_int64 \
271
- WEAK_NAPI_SYMBOL(napi_get_value_bigint_int64)
272
- #define napi_get_value_bigint_uint64 \
273
- WEAK_NAPI_SYMBOL(napi_get_value_bigint_uint64)
274
- #define napi_get_value_bigint_words \
275
- WEAK_NAPI_SYMBOL(napi_get_value_bigint_words)
276
- #define napi_get_all_property_names \
277
- WEAK_NAPI_SYMBOL(napi_get_all_property_names)
278
- #define napi_set_instance_data WEAK_NAPI_SYMBOL(napi_set_instance_data)
279
- #define napi_get_instance_data WEAK_NAPI_SYMBOL(napi_get_instance_data)
280
- #define napi_detach_arraybuffer WEAK_NAPI_SYMBOL(napi_detach_arraybuffer)
281
- #define napi_is_detached_arraybuffer \
282
- WEAK_NAPI_SYMBOL(napi_is_detached_arraybuffer)
283
- #define napi_type_tag_object WEAK_NAPI_SYMBOL(napi_type_tag_object)
284
- #define napi_check_object_type_tag WEAK_NAPI_SYMBOL(napi_check_object_type_tag)
285
- #define napi_object_freeze WEAK_NAPI_SYMBOL(napi_object_freeze)
286
- #define napi_object_seal WEAK_NAPI_SYMBOL(napi_object_seal)
287
- #define napi_module_register WEAK_NAPI_SYMBOL(napi_module_register)
288
- #define napi_fatal_error WEAK_NAPI_SYMBOL(napi_fatal_error)
289
- #define napi_async_init WEAK_NAPI_SYMBOL(napi_async_init)
290
- #define napi_async_destroy WEAK_NAPI_SYMBOL(napi_async_destroy)
291
- #define napi_make_callback WEAK_NAPI_SYMBOL(napi_make_callback)
292
- #define napi_create_buffer WEAK_NAPI_SYMBOL(napi_create_buffer)
293
- #define napi_create_external_buffer \
294
- WEAK_NAPI_SYMBOL(napi_create_external_buffer)
295
- #define node_api_create_buffer_from_arraybuffer \
296
- WEAK_NAPI_SYMBOL(node_api_create_buffer_from_arraybuffer)
297
- #define napi_create_buffer_copy WEAK_NAPI_SYMBOL(napi_create_buffer_copy)
298
- #define napi_is_buffer WEAK_NAPI_SYMBOL(napi_is_buffer)
299
- #define napi_get_buffer_info WEAK_NAPI_SYMBOL(napi_get_buffer_info)
300
- #define napi_create_async_work WEAK_NAPI_SYMBOL(napi_create_async_work)
301
- #define napi_delete_async_work WEAK_NAPI_SYMBOL(napi_delete_async_work)
302
- #define napi_queue_async_work WEAK_NAPI_SYMBOL(napi_queue_async_work)
303
- #define napi_cancel_async_work WEAK_NAPI_SYMBOL(napi_cancel_async_work)
304
- #define napi_get_node_version WEAK_NAPI_SYMBOL(napi_get_node_version)
305
- #define napi_get_uv_event_loop WEAK_NAPI_SYMBOL(napi_get_uv_event_loop)
306
- #define napi_fatal_exception WEAK_NAPI_SYMBOL(napi_fatal_exception)
307
- #define napi_add_env_cleanup_hook WEAK_NAPI_SYMBOL(napi_add_env_cleanup_hook)
308
- #define napi_remove_env_cleanup_hook \
309
- WEAK_NAPI_SYMBOL(napi_remove_env_cleanup_hook)
310
- #define napi_open_callback_scope WEAK_NAPI_SYMBOL(napi_open_callback_scope)
311
- #define napi_close_callback_scope WEAK_NAPI_SYMBOL(napi_close_callback_scope)
312
- #define napi_create_threadsafe_function \
313
- WEAK_NAPI_SYMBOL(napi_create_threadsafe_function)
314
- #define napi_get_threadsafe_function_context \
315
- WEAK_NAPI_SYMBOL(napi_get_threadsafe_function_context)
316
- #define napi_call_threadsafe_function \
317
- WEAK_NAPI_SYMBOL(napi_call_threadsafe_function)
318
- #define napi_acquire_threadsafe_function \
319
- WEAK_NAPI_SYMBOL(napi_acquire_threadsafe_function)
320
- #define napi_release_threadsafe_function \
321
- WEAK_NAPI_SYMBOL(napi_release_threadsafe_function)
322
- #define napi_unref_threadsafe_function \
323
- WEAK_NAPI_SYMBOL(napi_unref_threadsafe_function)
324
- #define napi_ref_threadsafe_function \
325
- WEAK_NAPI_SYMBOL(napi_ref_threadsafe_function)
326
- #define napi_add_async_cleanup_hook \
327
- WEAK_NAPI_SYMBOL(napi_add_async_cleanup_hook)
328
- #define napi_remove_async_cleanup_hook \
329
- WEAK_NAPI_SYMBOL(napi_remove_async_cleanup_hook)
330
- #define node_api_get_module_file_name \
331
- WEAK_NAPI_SYMBOL(node_api_get_module_file_name)