mirror of
https://github.com/openharmony/interface_sdk_c.git
synced 2026-08-24 14:32:50 -04:00
!5690 merge napi-release into OpenHarmony-7.0-Release
修复napi接口 Created-by: liudachuan3 Commit-by: liudachuan3 Merged-by: openharmony_ci Description: ### 相关的Issue https://gitcode.com/openharmony/interface_sdk_c/issues/4450 ### 原因(目的、解决的问题等) 修复napi接口 ### 描述(做了什么,变更了什么) 修复napi接口 ### 自检结果(结果截图添加到下面) - [x] 是否通过C语法扫描 - [x] 是否通过注释规则扫描 - [x] 是否更新json文件 - [x] 实现代码是否已经合入 - [x] 目标是否已经添加到interface/sdk_c仓ndk依赖目标(ndk_targets.gni)里 - [x] 头文件library声明与SDK so库名称一致 ### 兼容性影响评估,如有影响请写明(Y/N) - [ ] 不兼容 - [ ] 是否经过评审 ### L0新增用例自检结果 - [ ] 是,有新增L0用例,且完成自检 - [x] 否 ### API参考文档影响评估(提供docs仓pr链接) - [ ] 是,已刷新API参考文档 - [x] 否,不涉及刷新API参考文档 See merge request: openharmony/interface_sdk_c!5690
This commit is contained in:
@@ -318,9 +318,5 @@
|
||||
{
|
||||
"first_introduced": "24",
|
||||
"name": "napi_set_property_with_callsite_info"
|
||||
},
|
||||
{
|
||||
"first_introduced": "26.1.0",
|
||||
"name": "napi_get_global_handle_count"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3178,19 +3178,6 @@ NAPI_EXTERN napi_status napi_set_property_with_callsite_info(napi_env env,
|
||||
napi_value value,
|
||||
napi_callsite_info info,
|
||||
bool* hit);
|
||||
|
||||
/**
|
||||
* @brief To obtain the count of global object in current ArkTS runtime thread.
|
||||
* @param env Current running virtual machine context.
|
||||
* @param count The count number of global object.
|
||||
*
|
||||
* @return Returns the function execution status.
|
||||
* <ul><li>{@link napi_ok } If the function executed successfully.</li>
|
||||
* <li>{@link napi_invalid_arg } If env or count is nullptr.</li>
|
||||
* <li>{@link napi_pending_exception } There is an uncaught exception occurred before execution.</li></ul>
|
||||
* @since 26.1.0
|
||||
*/
|
||||
NAPI_EXTERN napi_status napi_get_global_handle_count(napi_env env, size_t* count);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user