1 /* 2 * Copyright (c) 2022 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 COMMUNICATIONNETMANAGERBASE_NAPI_CONSTANT_H 17 #define COMMUNICATIONNETMANAGERBASE_NAPI_CONSTANT_H 18 19 #include <cstddef> 20 21 #include "net_manager_constants.h" 22 23 namespace OHOS { 24 namespace NetManagerStandard { 25 constexpr int PARAM_NONE = 0; 26 constexpr int PARAM_JUST_OPTIONS = 1; 27 constexpr int PARAM_JUST_CALLBACK = 1; 28 constexpr int PARAM_DOUBLE_OPTIONS = 2; 29 constexpr int PARAM_TRIPLE_OPTIONS = 3; 30 constexpr int PARAM_FOUR_OPTIONS = 4; 31 constexpr int PARAM_OPTIONS_AND_CALLBACK = 2; 32 constexpr int PARAM_DOUBLE_OPTIONS_AND_CALLBACK = 3; 33 constexpr int PARAM_TRIPLE_OPTIONS_AND_CALLBACK = 4; 34 constexpr int PARAM_FOUR_OPTIONS_AND_CALLBACK = 5; 35 36 enum { 37 ARG_NUM_0 = 0, 38 ARG_NUM_1, 39 ARG_NUM_2, 40 }; 41 42 enum { 43 ARG_INDEX_0 = 0, 44 ARG_INDEX_1, 45 ARG_INDEX_2, 46 ARG_INDEX_3, 47 ARG_INDEX_4, 48 }; 49 } // namespace NetManagerStandard 50 } // namespace OHOS 51 #endif // COMMUNICATIONNETMANAGERBASE_NAPI_CONSTANT_H 52