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 BUS_CENTER_INFO_KEY_H 17 #define BUS_CENTER_INFO_KEY_H 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #define DEVICE_TYPE_BUF_LEN 17 24 #define NET_IF_NAME_LEN 20 25 #define IP_MAX_LEN 46 26 #define ID_MAX_LEN 72 27 #define VERSION_MAX_LEN 16 28 #define MAC_LEN 18 29 30 typedef enum { 31 STRING_KEY_BEGIN = 0, 32 STRING_KEY_HICE_VERSION = STRING_KEY_BEGIN, 33 STRING_KEY_DEV_UDID, 34 STRING_KEY_NETWORKID, 35 STRING_KEY_UUID, 36 STRING_KEY_DEV_TYPE, 37 STRING_KEY_DEV_NAME, 38 STRING_KEY_BT_MAC, 39 STRING_KEY_WLAN_IP, 40 STRING_KEY_NET_IF_NAME, 41 STRING_KEY_MASTER_NODE_UDID, 42 STRING_KEY_P2P_MAC, 43 STRING_KEY_P2P_GO_MAC, 44 STRING_KEY_END, 45 NUM_KEY_BEGIN = 100, 46 NUM_KEY_SESSION_PORT = NUM_KEY_BEGIN, 47 NUM_KEY_AUTH_PORT, 48 NUM_KEY_PROXY_PORT, 49 NUM_KEY_NET_CAP, 50 NUM_KEY_DEV_TYPE_ID, 51 NUM_KEY_MASTER_NODE_WEIGHT, 52 NUM_KEY_P2P_ROLE, 53 NUM_KEY_DISCOVERY_TYPE, 54 NUM_KEY_END, 55 } InfoKey; 56 57 #ifdef __cplusplus 58 } 59 #endif 60 #endif // BUS_CENTER_INFO_KEY_H