MCPcopy Create free account
hub / github.com/acl-dev/acl / napi_value Init

Function napi_value Init

harmony/api9/acl_one/entry/src/main/cpp/hello.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127EXTERN_C_START
128static napi_value Init(napi_env env, napi_value exports)
129{
130 acl::acl_cpp_init();
131 log_open();
132
133 const char* version = acl_version();
134 log_info("%s: Acl version=%s", __func__, version);
135
136 napi_property_descriptor desc[] = {
137 { "HttpGet", nullptr, HttpGet, nullptr, nullptr, nullptr, napi_default, nullptr },
138 { "Add", nullptr, Add, nullptr, nullptr, nullptr, napi_default, nullptr },
139 };
140 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
141 return exports;
142}
143EXTERN_C_END
144
145static napi_module demoModule = {

Callers

nothing calls this directly

Calls 4

acl_cpp_initFunction · 0.85
acl_versionFunction · 0.85
log_openFunction · 0.70
log_infoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…