mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-08-24 22:21:26 -04:00
Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch OpenHarmony-3.0-LTS Your branch is up to date with 'origin/OpenHarmony-3.0-LTS'. Changes to be committed: modified: convertxml/BUILD.gn modified: convertxml/native_module_convertxml.cpp modified: uri/BUILD.gn modified: uri/native_module_uri.cpp modified: url/BUILD.gn modified: url/native_module_url.cpp
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
extern const char _binary_js_convertxml_js_start[];
|
||||
extern const char _binary_js_convertxml_js_end[];
|
||||
extern const char _binary_convertxml_abc_start[];
|
||||
extern const char _binary_convertxml_abc_end[];
|
||||
|
||||
static napi_value ConvertXmlConstructor(napi_env env, napi_callback_info info)
|
||||
{
|
||||
@@ -95,6 +97,16 @@ __attribute__((visibility("default"))) void NAPI_convertxml_GetJSCode(const char
|
||||
*bufLen = _binary_js_convertxml_js_end - _binary_js_convertxml_js_start;
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_convertxml_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_convertxml_abc_start;
|
||||
}
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_convertxml_abc_end - _binary_convertxml_abc_start;
|
||||
}
|
||||
}
|
||||
|
||||
static napi_module ConvertXmlModule = {
|
||||
.nm_version = 1,
|
||||
|
||||
Reference in New Issue
Block a user