• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 LNN_FEATURE_CAPABILITY_H
17 #define LNN_FEATURE_CAPABILITY_H
18 
19 #include "softbus_bus_center.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef enum {
26     BIT_WIFI_P2P_REUSE = 1,
27     BIT_BR_DUP,
28     BIT_WIFI_DIRECT_TLV_NEGOTIATION,
29     BIT_META_NODE_CAPABILITY,
30     BIT_INFO_COMPRESS,
31     BIT_SUPPOURT_EX_CAPABILITY,
32     BIT_WIFI_DIRECT_NO_DISCONNECT_RESP,
33     BIT_SUPPORT_UNIFORM_NAME_CAPABILITY,
34     BIT_BLE_ONLINE_REUSE_CAPABILITY,
35     BIT_COC_CONNECT_CAPABILITY,
36     BIT_BLE_SUPPORT_LP_HEARTBEAT, // support burst and lowpower
37     BIT_BLE_DIRECT_ONLINE,
38     BIT_BLE_DIRECT_CONNECT_CAPABILITY,
39     BIT_SUPPORT_NEGO_P2P_BY_CHANNEL_CAPABILITY,
40     BIT_WIFI_DIRECT_ENHANCE_CAPABILITY,
41     BIT_SUPPORT_THREE_STATE,
42     BIT_CLOUD_SYNC_DEVICE_INFO,
43     BIT_FEATURE_COUNT,
44 } FeatureCapability;
45 
46 uint64_t LnnGetFeatureCapabilty(void);
47 bool IsFeatureSupport(uint64_t feature, FeatureCapability capaBit);
48 int32_t LnnSetFeatureCapability(uint64_t *feature, FeatureCapability capaBit);
49 int32_t LnnClearFeatureCapability(uint64_t *feature, FeatureCapability capaBit);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif // LNN_FEATURE_CAPABILITY_H