File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
packages/react-native-node-api-modules/scripts Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function generateSource(functions: FunctionDecl[]) {
2626
2727 namespace callstack::nodeapihost {
2828
29- using node_api::internal::inject_host_t ;
29+ using node_api::internal::InjectHostFunction ;
3030 using node_api::internal::NodeApiHost;
3131
3232 void injectIntoWeakNodeApi() {
@@ -36,7 +36,7 @@ export function generateSource(functions: FunctionDecl[]) {
3636 abort();
3737 }
3838
39- auto inject_host = (inject_host_t )dlsym(
39+ auto inject_host = (InjectHostFunction )dlsym(
4040 module, "_ZN8node_api8internal11inject_hostERKNS0_11NodeApiHostE");
4141 if (NULL == inject_host) {
4242 log_debug("NapiHost: Failed to find 'inject_host' function: %s", dlerror());
Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ export function generateHeader(functions: FunctionDecl[]) {
2323 `${ returnType } (*${ name } )(${ argumentTypes . join ( ", " ) } );`
2424 ) ,
2525 "};" ,
26- "typedef void(*inject_host_t)(const NodeApiHost&);" ,
27- "void inject_host(const NodeApiHost& host);" ,
28- "} // namespace node_api::internal" ,
26+ "typedef void(*InjectHostFunction)(const NodeApiHost&);" ,
2927 ] . join ( "\n" ) ;
3028}
3129
You can’t perform that action at this time.
0 commit comments