1 /* 2 * Copyright (c) 2023 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 TETHERING_IPC_INTERFACE_CODE_H 17 #define TETHERING_IPC_INTERFACE_CODE_H 18 19 /* SAID:1154 */ 20 namespace OHOS { 21 namespace NetManagerStandard { 22 enum class TetheringInterfaceCode { 23 CMD_GET_SHARING_SUPPORTED, 24 CMD_GET_IS_SHARING, 25 CMD_START_NETWORKSHARE, 26 CMD_STOP_NETWORKSHARE, 27 CMD_GET_SHARABLE_REGEXS, 28 CMD_GET_SHARING_STATE, 29 CMD_GET_SHARING_IFACES, 30 CMD_REGISTER_EVENT_CALLBACK, 31 CMD_UNREGISTER_EVENT_CALLBACK, 32 CMD_GET_ACTIVATE_INTERFACE, 33 CMD_GET_RX_BYTES, 34 CMD_GET_TX_BYTES, 35 CMD_GET_TOTAL_BYTES, 36 }; 37 38 enum class TetheringEventInterfaceCode { 39 GLOBAL_SHARING_STATE_CHANGED, 40 INTERFACE_SHARING_STATE_CHANGED, 41 SHARING_UPSTREAM_CHANGED, 42 }; 43 44 enum class TetheringResultInterfaceCode { 45 RESULT, 46 }; 47 } // namespace NetManagerStandard 48 } // namespace OHOS 49 #endif // TETHERING_IPC_INTERFACE_CODE_H 50