mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-12-04 13:17:06 +00:00
feat: update version for StartNativeChildProcess
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com>
This commit is contained in:
parent
0d4ee170c8
commit
e45a88f850
@ -4,7 +4,7 @@
|
|||||||
"name": "OH_Ability_CreateNativeChildProcess"
|
"name": "OH_Ability_CreateNativeChildProcess"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"first_introduced": "12",
|
"first_introduced": "13",
|
||||||
"name": "OH_Ability_StartNativeChildProcess"
|
"name": "OH_Ability_StartNativeChildProcess"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -48,6 +48,10 @@ extern "C" {
|
|||||||
* @brief Enumerates the error codes used by the native child process module.
|
* @brief Enumerates the error codes used by the native child process module.
|
||||||
* @since 12
|
* @since 12
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* @brief Enumerates the error codes used by the native child process module.
|
||||||
|
* @since 13
|
||||||
|
*/
|
||||||
typedef enum Ability_NativeChildProcess_ErrCode {
|
typedef enum Ability_NativeChildProcess_ErrCode {
|
||||||
/**
|
/**
|
||||||
* @error Operation successful.
|
* @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.
|
* @brief The info of the file descriptors passed to child process.
|
||||||
* @since 12
|
* @since 13
|
||||||
*/
|
*/
|
||||||
typedef struct NativeChildProcess_Fd {
|
typedef struct NativeChildProcess_Fd {
|
||||||
/** the key of the file descriptor. */
|
/** 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.
|
* @brief The list of the info of the file descriptors passed to child process.
|
||||||
* @since 12
|
* @since 13
|
||||||
*/
|
*/
|
||||||
typedef struct NativeChildProcess_FdList {
|
typedef struct NativeChildProcess_FdList {
|
||||||
/** the head of the list.
|
/** 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.
|
* @brief Enumerates the isolation modes used by the native child process module.
|
||||||
* @since 12
|
* @since 13
|
||||||
*/
|
*/
|
||||||
typedef enum NativeChildProcess_IsolationMode {
|
typedef enum NativeChildProcess_IsolationMode {
|
||||||
/**
|
/**
|
||||||
@ -222,7 +226,7 @@ typedef enum NativeChildProcess_IsolationMode {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The options used by the child process.
|
* @brief The options used by the child process.
|
||||||
* @since 12
|
* @since 13
|
||||||
*/
|
*/
|
||||||
typedef struct NativeChildProcess_Options {
|
typedef struct NativeChildProcess_Options {
|
||||||
/** the isolation mode used by the child process.
|
/** the isolation mode used by the child process.
|
||||||
@ -236,7 +240,7 @@ typedef struct NativeChildProcess_Options {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The arguments passed to the child process.
|
* @brief The arguments passed to the child process.
|
||||||
* @since 12
|
* @since 13
|
||||||
*/
|
*/
|
||||||
typedef struct NativeChildProcess_Args {
|
typedef struct NativeChildProcess_Args {
|
||||||
/** the entry parameter. */
|
/** 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
|
* 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}.
|
* For details, see {@link Ability_NativeChildProcess_ErrCode}.
|
||||||
* @see OH_Ability_OnNativeChildProcessStarted
|
* @see OH_Ability_OnNativeChildProcessStarted
|
||||||
* @since 12
|
* @since 13
|
||||||
*/
|
*/
|
||||||
Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcess(
|
Ability_NativeChildProcess_ErrCode OH_Ability_StartNativeChildProcess(
|
||||||
const char* entry, NativeChildProcess_Args args,
|
const char* entry, NativeChildProcess_Args args,
|
||||||
|
Loading…
Reference in New Issue
Block a user