• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef NAPI_IPC_OHOS_MESSAGE_OPTION_H
17 #define NAPI_IPC_OHOS_MESSAGE_OPTION_H
18 
19 #include "message_option.h"
20 #include "napi/native_api.h"
21 #include "napi/native_common.h"
22 #include "napi/native_node_api.h"
23 
24 namespace OHOS {
25 /*
26  * Get flags field from ohos.rpc.MessageOption.
27  */
28 napi_value NapiOhosRpcMessageOptionGetFlags(napi_env env, napi_callback_info info);
29 
30 /*
31  * Set flags to ohos.rpc.MessageOption
32  */
33 napi_value NapiOhosRpcMessageOptionSetFlags(napi_env env, napi_callback_info info);
34 
35 /*
36  * Get async to ohos.rpc.MessageOption
37  */
38 napi_value NapiOhosRpcMessageOptionIsAsync(napi_env env, napi_callback_info info);
39 
40 /*
41  * Set async to ohos.rpc.MessageOption
42  */
43 napi_value NapiOhosRpcMessageOptionSetAsync(napi_env env, napi_callback_info info);
44 
45 /*
46  * Get wait time field from ohos.rpc.MessageOption.
47  */
48 napi_value NapiOhosRpcMessageOptionGetWaittime(napi_env env, napi_callback_info info);
49 
50 /*
51  * Set wait time to ohos.rpc.MessageOption
52  */
53 napi_value NapiOhosRpcMessageOptionSetWaittime(napi_env env, napi_callback_info info);
54 } // namespace OHOS
55 #endif // NAPI_IPC_OHOS_MESSAGE_OPTION_H