未验证 提交 fa7f95d3 编写于 作者: O openharmony_ci 提交者: Gitee

!360 feat(startup_init_lite): 修改syscap ndk接口名称

Merge pull request !360 from lnlan/modify_syscap_ndk_name
......@@ -43,6 +43,7 @@
"//base/startup/init_lite/services/begetctl:paramshell",
"//base/startup/init_lite/services/plugin:plugin",
"//base/startup/init_lite/interfaces/innerkits:libbegetutil",
"//base/startup/init_lite/interfaces/kits:deviceinfo_ndk",
"//base/startup/init_lite/interfaces/innerkits:libbeget_proxy",
"//base/startup/init_lite/interfaces/innerkits/file:libfile",
"//base/startup/init_lite/interfaces/innerkits/socket:libsocket",
......@@ -81,4 +82,4 @@
]
}
}
}
\ No newline at end of file
}
......@@ -54,8 +54,6 @@ ohos_shared_library("libbegetutil") {
deps += [ "//base/startup/init_lite/services/log:init_log" ]
symlink_target_name = [ "libdeviceinfo_ndk.z.so" ]
public_configs = [ ":exported_header_files" ]
part_name = "init"
install_images = [
......
......@@ -13,6 +13,13 @@
import("//build/ohos.gni")
ohos_shared_library("deviceinfo_ndk") {
sources = [ "src/syscap_ndk.c" ]
include_dirs = [ "./include" ]
deps = [ "//base/startup/init_lite/interfaces/innerkits:libbegetutil" ]
part_name = "init"
}
ohos_ndk_library("libdeviceinfo_ndk") {
output_name = "deviceinfo_ndk"
ndk_description_file = "./libdeviceinfo.ndk.json"
......@@ -21,5 +28,5 @@ ohos_ndk_library("libdeviceinfo_ndk") {
ohos_ndk_headers("deviceinfo_header") {
dest_dir = "$ndk_headers_out_dir/"
sources = [ "./include/systemcapability.h" ]
sources = [ "./include/syscap_ndk.h" ]
}
......@@ -13,8 +13,8 @@
* limitations under the License.
*/
#ifndef INIT_SYSCAP_API_H
#define INIT_SYSCAP_API_H
#ifndef SYSCAP_NDK_H
#define SYSCAP_NDK_H
#include <stdbool.h>
......@@ -24,8 +24,7 @@ extern "C" {
#endif
#endif
bool HasSystemCapability(const char *cap);
bool canIUse(const char *cap);
#ifdef __cplusplus
#if __cplusplus
......
[
{
"name": "HasSystemCapability"
"name": "canIUse"
}
]
#include <stdbool.h>
#include "systemcapability.h"
#include "syscap_ndk.h"
bool canIUse(const char *cap)
{
return HasSystemCapability(cap);
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册