From fc146704e5cf065c7eea21bd853db6356c271afd Mon Sep 17 00:00:00 2001 From: XiYuhao Date: Thu, 3 Mar 2022 14:18:09 +0000 Subject: [PATCH] add version info Signed-off-by: Xi_Yuhao --- api/@ohos.rpc.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.rpc.d.ts b/api/@ohos.rpc.d.ts index 8932f4c6bb..abd5e0e15f 100644 --- a/api/@ohos.rpc.d.ts +++ b/api/@ohos.rpc.d.ts @@ -941,21 +941,25 @@ declare namespace rpc { class MessageOption { /** * Indicates synchronous call. + * @since 7 */ TF_SYNC = 0; /** * Indicates asynchronous call. + * @since 7 */ TF_ASYNC = 1; /** * Indicates the sendRequest API for returning the file descriptor. + * @since 7 */ TF_ACCEPT_FDS = 0x10; /** * Indicates the wait time for RPC, in seconds. It is NOT used in IPC case. + * @since 7 */ TF_WAIT_TIME = 4; @@ -1127,16 +1131,19 @@ declare namespace rpc { class RemoteProxy implements IRemoteObject { /** * Indicates the message code for a Ping operation. + * @since 7 */ PING_TRANSACTION = ('_' << 24) | ('P' << 16) | ('N' << 8) | 'G'; /** * Indicates the message code for a dump operation. + * @since 7 */ DUMP_TRANSACTION = ('_' << 24) | ('D' << 16) | ('M' << 8) | 'P'; /** * Indicates the message code for a transmission. + * @since 7 */ INTERFACE_TRANSACTION = ('_' << 24) | ('N' << 16) | ('T' << 8) | 'F'; @@ -1144,6 +1151,7 @@ declare namespace rpc { * Indicates the minimum value of a valid message code. * *

This constant is used to check the validity of an operation. + * @since 7 */ MIN_TRANSACTION_ID = 0x1; @@ -1151,6 +1159,7 @@ declare namespace rpc { * Indicates the maximum value of a valid message code. * *

This constant is used to check the validity of an operation. + * @since 7 */ MAX_TRANSACTION_ID = 0x00FFFFFF; -- Gitee