1f857971dSopenharmony_ci /*
2f857971dSopenharmony_ci * Copyright (c) 2022-2023 Huawei Device Co., Ltd.
3f857971dSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License") };
4f857971dSopenharmony_ci * you may not use this file except in compliance with the License.
5f857971dSopenharmony_ci * You may obtain a copy of the License at
6f857971dSopenharmony_ci *
7f857971dSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8f857971dSopenharmony_ci *
9f857971dSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10f857971dSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11f857971dSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12f857971dSopenharmony_ci * See the License for the specific language governing permissions and
13f857971dSopenharmony_ci * limitations under the License.
14f857971dSopenharmony_ci */
15f857971dSopenharmony_ci
16f857971dSopenharmony_ci#ifndef NAPI_CONSTANTS_H
17f857971dSopenharmony_ci#define NAPI_CONSTANTS_H
18f857971dSopenharmony_ci
19f857971dSopenharmony_ci#include <cstddef>
20f857971dSopenharmony_ci#include <string_view>
21f857971dSopenharmony_ci
22f857971dSopenharmony_cinamespace OHOS {
23f857971dSopenharmony_cinamespace Msdp {
24f857971dSopenharmony_cinamespace DeviceStatus {
25f857971dSopenharmony_ciinline constexpr std::string_view COOPERATE_NAME { "cooperate" };
26f857971dSopenharmony_ciinline constexpr std::string_view COOPERATE_MESSAGE_NAME { "cooperateMessage" };
27f857971dSopenharmony_ciinline constexpr std::string_view COOPERATE_MOUSE_NAME { "cooperateMouse" };
28f857971dSopenharmony_ciinline constexpr std::string_view DRAG_TYPE { "drag" };
29f857971dSopenharmony_ciinline const std::string DEV_INPUT_PATH { "/dev/input/" };
30f857971dSopenharmony_ciinline constexpr std::string_view CALL_FUNCTION { "napi_call_function" };
31f857971dSopenharmony_ciinline constexpr std::string_view CREATE_OBJECT { "napi_create_object" };
32f857971dSopenharmony_ciinline constexpr std::string_view CREATE_INT32 { "napi_create_int32" };
33f857971dSopenharmony_ciinline constexpr std::string_view CREATE_REFERENCE { "napi_create_reference" };
34f857971dSopenharmony_ciinline constexpr std::string_view DEFINE_PROPERTIES { "napi_define_properties" };
35f857971dSopenharmony_ciinline constexpr std::string_view DEFINE_CLASS { "napi_define_class" };
36f857971dSopenharmony_ciinline constexpr std::string_view GET_CB_INFO { "napi_get_cb_info" };
37f857971dSopenharmony_ciinline constexpr std::string_view GET_GLOBAL { "napi_get_global" };
38f857971dSopenharmony_ciinline constexpr std::string_view GET_REFERENCE_VALUE { "napi_get_reference_value" };
39f857971dSopenharmony_ciinline constexpr std::string_view GET_UV_EVENT_LOOP { "napi_get_uv_event_loop" };
40f857971dSopenharmony_ciinline constexpr std::string_view GET_NAMED_PROPERTY { "napi_get_named_property" };
41f857971dSopenharmony_ciinline constexpr std::string_view HAS_NAMED_PROPERTY { "napi_has_named_property" };
42f857971dSopenharmony_ciinline constexpr std::string_view NEW_INSTANCE { "napi_new_instance" };
43f857971dSopenharmony_ciinline constexpr std::string_view SET_NAMED_PROPERTY { "napi_set_named_property" };
44f857971dSopenharmony_ciinline constexpr std::string_view STRICT_EQUALS { "napi_strict_equals" };
45f857971dSopenharmony_ciinline constexpr std::string_view TYPEOF { "napi_typeof" };
46f857971dSopenharmony_ciinline constexpr std::string_view UNWRAP { "napi_unwrap" };
47f857971dSopenharmony_ciinline constexpr std::string_view WRAP { "napi_wrap" };
48f857971dSopenharmony_ciinline constexpr std::string_view CREATE_STRING_UTF8 { "napi_create_string_utf8" };
49f857971dSopenharmony_ciinline constexpr std::string_view CREATE_ARRAY { "napi_create_array" };
50f857971dSopenharmony_ciinline constexpr std::string_view CREATE_INT64 { "napi_create_int64" };
51f857971dSopenharmony_ciinline constexpr std::string_view SET_ELEMENT { "napi_set_element" };
52f857971dSopenharmony_ciinline constexpr int32_t ZERO_PARAM { 0 };
53f857971dSopenharmony_ciinline constexpr int32_t ONE_PARAM { 1 };
54f857971dSopenharmony_ciinline constexpr int32_t TWO_PARAM { 2 };
55f857971dSopenharmony_ciinline constexpr int32_t THREE_PARAM { 3 };
56f857971dSopenharmony_ci} // namespace DeviceStatus
57f857971dSopenharmony_ci} // namespace Msdp
58f857971dSopenharmony_ci} // namespace OHOS
59f857971dSopenharmony_ci#endif // NAPI_CONSTANTS_H