From e45a88f85083bee628822d523115e87a5dcb5029 Mon Sep 17 00:00:00 2001 From: yangxuguang-huawei Date: Sun, 25 Aug 2024 14:21:41 +0800 Subject: [PATCH] feat: update version for StartNativeChildProcess Signed-off-by: yangxuguang-huawei --- .../child_process/libchild_process.ndk.json | 2 +- .../child_process/native_child_process.h | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ability/ability_runtime/child_process/libchild_process.ndk.json b/ability/ability_runtime/child_process/libchild_process.ndk.json index e42bbbc44..b00d0d189 100644 --- a/ability/ability_runtime/child_process/libchild_process.ndk.json +++ b/ability/ability_runtime/child_process/libchild_process.ndk.json @@ -4,7 +4,7 @@ "name": "OH_Ability_CreateNativeChildProcess" }, { - "first_introduced": "12", + "first_introduced": "13", "name": "OH_Ability_StartNativeChildProcess" } ] \ 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 821456513..3c9b18d38 100644 --- a/ability/ability_runtime/child_process/native_child_process.h +++ b/ability/ability_runtime/child_process/native_child_process.h @@ -48,6 +48,10 @@ extern "C" { * @brief Enumerates the error codes used by the native child process module. * @since 12 */ +/** + * @brief Enumerates the error codes used by the native child process module. + * @since 13 + */ typedef enum Ability_NativeChildProcess_ErrCode { /** * @error Operation successful. @@ -180,7 +184,7 @@ int OH_Ability_CreateNativeChildProcess(const char* libName, /** * @brief The info of the file descriptors passed to child process. - * @since 12 + * @since 13 */ typedef struct NativeChildProcess_Fd { /** the key of the file descriptor. */ @@ -195,7 +199,7 @@ typedef struct NativeChildProcess_Fd { /** * @brief The list of the info of the file descriptors passed to child process. - * @since 12 + * @since 13 */ typedef struct NativeChildProcess_FdList { /** the head of the list. @@ -206,7 +210,7 @@ typedef struct NativeChildProcess_FdList { /** * @brief Enumerates the isolation modes used by the native child process module. - * @since 12 + * @since 13 */ typedef enum NativeChildProcess_IsolationMode { /** @@ -222,7 +226,7 @@ typedef enum NativeChildProcess_IsolationMode { /** * @brief The options used by the child process. - * @since 12 + * @since 13 */ typedef struct NativeChildProcess_Options { /** the isolation mode used by the child process. @@ -236,7 +240,7 @@ typedef struct NativeChildProcess_Options { /** * @brief The arguments passed to the child process. - * @since 12 + * @since 13 */ typedef struct NativeChildProcess_Args { /** the entry parameter. */ @@ -267,7 +271,7 @@ typedef struct NativeChildProcess_Args { * Returns {@link NCP_ERR_MAX_CHILD_PROCESSES_REACHED} if the maximum number of native child processes is reached.\n * For details, see {@link Ability_NativeChildProcess_ErrCode}. * @see OH_Ability_OnNativeChildProcessStarted - * @since 12 + * @since 13 */ Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcess( const char* entry, NativeChildProcess_Args args,