1 /* 2 * Copyright (c) 2024 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 NET_EXT_NAPI_ETHERNET_CONSTANT_H 17 #define NET_EXT_NAPI_ETHERNET_CONSTANT_H 18 19 #include <cstdint> 20 21 namespace OHOS { 22 namespace NetManagerStandard { 23 // No ginseng input 24 constexpr int32_t PARAM_NONE = 0; 25 // One input parameter 26 constexpr int32_t PARAM_JUST_OPTIONS = 1; 27 // Two input parameters 28 constexpr int32_t PARAM_DOUBLE_OPTIONS = 2; 29 constexpr int32_t PARAM_TRIPLE_OPTIONS = 3; 30 constexpr int32_t PARAM_FOUR_OPTIONS = 4; 31 32 // Callback without input parameters 33 constexpr int32_t PARAM_JUST_CALLBACK = 1; 34 // Callback when entering a parameter 35 constexpr int32_t PARAM_OPTIONS_AND_CALLBACK = 2; 36 // Callback when entering two parameters 37 constexpr int32_t PARAM_DOUBLE_OPTIONS_AND_CALLBACK = 3; 38 constexpr int32_t PARAM_TRIPLE_OPTIONS_AND_CALLBACK = 4; 39 constexpr int32_t PARAM_FOUR_OPTIONS_AND_CALLBACK = 5; 40 41 enum { 42 ARG_NUM_0 = 0, 43 ARG_NUM_1, 44 ARG_NUM_2, 45 }; 46 47 enum { 48 ARG_INDEX_0 = 0, 49 ARG_INDEX_1, 50 ARG_INDEX_2, 51 ARG_INDEX_3, 52 ARG_INDEX_4, 53 }; 54 } // namespace NetManagerStandard 55 } // namespace OHOS 56 #endif // NET_EXT_NAPI_ETHERNET_CONSTANT_H 57