From 6e40d5882a7fdf26a8f2c98455e5bbab28c395d8 Mon Sep 17 00:00:00 2001 From: hanchenZz Date: Mon, 3 Mar 2025 19:19:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3OH=5FAb?= =?UTF-8?q?ility=5FGetChildProcessArgs=EF=BC=8C=E6=94=AF=E6=8C=81=E5=AD=90?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E8=8E=B7=E5=8F=96=E5=90=AF=E5=8A=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hanchenZz --- .../child_process/libchild_process.ndk.json | 4 ++++ .../ability_runtime/child_process/native_child_process.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ability/ability_runtime/child_process/libchild_process.ndk.json b/ability/ability_runtime/child_process/libchild_process.ndk.json index b00d0d189..d812f5a08 100644 --- a/ability/ability_runtime/child_process/libchild_process.ndk.json +++ b/ability/ability_runtime/child_process/libchild_process.ndk.json @@ -6,5 +6,9 @@ { "first_introduced": "13", "name": "OH_Ability_StartNativeChildProcess" + }, + { + "first_introduced": "16", + "name": "OH_Ability_GetCurrentChildProcessArgs" } ] \ No newline at end of file diff --git a/ability/ability_runtime/child_process/native_child_process.h b/ability/ability_runtime/child_process/native_child_process.h index a60cca635..283710400 100644 --- a/ability/ability_runtime/child_process/native_child_process.h +++ b/ability/ability_runtime/child_process/native_child_process.h @@ -279,6 +279,15 @@ Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcess( const char* entry, NativeChildProcess_Args args, NativeChildProcess_Options options, int32_t *pid); +/** + * @brief Child process get self NativeChildProcess_Args. + * + * @return Returns a pointer to the arguments passed to current child process.\n + * For details, see {@link NativeChildProcess_Args}. + * @since 16 + */ +NativeChildProcess_Args* OH_Ability_GetCurrentChildProcessArgs(); + #ifdef __cplusplus } // extern "C" #endif -- Gitee From 8899cae86a3d73ebef3783be358445d666ceed24 Mon Sep 17 00:00:00 2001 From: hanchenZz Date: Thu, 3 Apr 2025 07:35:31 +0000 Subject: [PATCH 2/3] update ability/ability_runtime/child_process/libchild_process.ndk.json. Signed-off-by: hanchenZz --- ability/ability_runtime/child_process/libchild_process.ndk.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ability/ability_runtime/child_process/libchild_process.ndk.json b/ability/ability_runtime/child_process/libchild_process.ndk.json index d812f5a08..6f6bdcebf 100644 --- a/ability/ability_runtime/child_process/libchild_process.ndk.json +++ b/ability/ability_runtime/child_process/libchild_process.ndk.json @@ -8,7 +8,7 @@ "name": "OH_Ability_StartNativeChildProcess" }, { - "first_introduced": "16", + "first_introduced": "17", "name": "OH_Ability_GetCurrentChildProcessArgs" } ] \ No newline at end of file -- Gitee From bf13a08da08c1aa178b9a44371a9b168aad751b3 Mon Sep 17 00:00:00 2001 From: hanchenZz Date: Thu, 3 Apr 2025 07:35:57 +0000 Subject: [PATCH 3/3] update ability/ability_runtime/child_process/native_child_process.h. Signed-off-by: hanchenZz --- ability/ability_runtime/child_process/native_child_process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ability/ability_runtime/child_process/native_child_process.h b/ability/ability_runtime/child_process/native_child_process.h index 283710400..ca195fdef 100644 --- a/ability/ability_runtime/child_process/native_child_process.h +++ b/ability/ability_runtime/child_process/native_child_process.h @@ -284,7 +284,7 @@ Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcess( * * @return Returns a pointer to the arguments passed to current child process.\n * For details, see {@link NativeChildProcess_Args}. - * @since 16 + * @since 17 */ NativeChildProcess_Args* OH_Ability_GetCurrentChildProcessArgs(); -- Gitee