mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-25 06:25:37 -04:00
Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch master Your branch is up to date with 'origin/master'.
This commit is contained in:
@@ -88,28 +88,6 @@ namespace OHOS::Xml {
|
||||
return exports;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_convertxml_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_convertxml_js_start;
|
||||
}
|
||||
|
||||
if (bufLen != nullptr) {
|
||||
*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,
|
||||
.nm_flags = 0,
|
||||
@@ -124,4 +102,25 @@ namespace OHOS::Xml {
|
||||
{
|
||||
napi_module_register(&convertXmlModule);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_convertxml_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_convertxml_js_start;
|
||||
}
|
||||
if (bufLen != nullptr) {
|
||||
*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;
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user