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 #include "disc_virtual_link_ble.h"
17
18 #include "disc_manager.h"
19 #include "softbus_errcode.h"
20
IsConcern(uint32_t capability)21 static bool IsConcern(uint32_t capability)
22 {
23 (void)capability;
24 return false;
25 }
26
StartSubscribe(const SubscribeOption * option)27 static int32_t StartSubscribe(const SubscribeOption *option)
28 {
29 (void)option;
30 return SOFTBUS_NOT_IMPLEMENT;
31 }
32
StopSubscribe(const SubscribeOption * option)33 static int32_t StopSubscribe(const SubscribeOption *option)
34 {
35 (void)option;
36 return SOFTBUS_NOT_IMPLEMENT;
37 }
38
StartPublish(const PublishOption * option)39 static int32_t StartPublish(const PublishOption *option)
40 {
41 (void)option;
42 return SOFTBUS_NOT_IMPLEMENT;
43 }
44
StopPublish(const PublishOption * option)45 static int32_t StopPublish(const PublishOption *option)
46 {
47 (void)option;
48 return SOFTBUS_NOT_IMPLEMENT;
49 }
50
StartScan(const PublishOption * option)51 static int32_t StartScan(const PublishOption *option)
52 {
53 (void)option;
54 return SOFTBUS_NOT_IMPLEMENT;
55 }
56
StopScan(const PublishOption * option)57 static int32_t StopScan(const PublishOption *option)
58 {
59 (void)option;
60 return SOFTBUS_NOT_IMPLEMENT;
61 }
62
StartAdvertise(const SubscribeOption * option)63 static int32_t StartAdvertise(const SubscribeOption *option)
64 {
65 (void)option;
66 return SOFTBUS_NOT_IMPLEMENT;
67 }
68
StopAdvertise(const SubscribeOption * option)69 static int32_t StopAdvertise(const SubscribeOption *option)
70 {
71 (void)option;
72 return SOFTBUS_NOT_IMPLEMENT;
73 }
74
LinkStatusChanged(LinkStatus status)75 static void LinkStatusChanged(LinkStatus status)
76 {
77 (void)status;
78 }
79
UpdateLocalDeviceInfo(InfoTypeChanged type)80 static void UpdateLocalDeviceInfo(InfoTypeChanged type)
81 {
82 (void)type;
83 }
84
85 static DiscoveryFuncInterface g_discVLinkInterface = {
86 .Subscribe = StartSubscribe,
87 .Unsubscribe = StopSubscribe,
88 .Publish = StartPublish,
89 .Unpublish = StopPublish,
90 .StartScan = StartScan,
91 .StopScan = StopScan,
92 .StartAdvertise = StartAdvertise,
93 .StopAdvertise = StopAdvertise,
94 .LinkStatusChanged = LinkStatusChanged,
95 .UpdateLocalDeviceInfo = UpdateLocalDeviceInfo
96 };
97
98 static DiscoveryBleDispatcherInterface g_vLinkBleInterface = {
99 .IsConcern = IsConcern,
100 .mediumInterface = &g_discVLinkInterface,
101 };
102
DiscVLinkBleInit(DiscInnerCallback * discInnerCb)103 DiscoveryBleDispatcherInterface *DiscVLinkBleInit(DiscInnerCallback *discInnerCb)
104 {
105 (void)discInnerCb;
106 return &g_vLinkBleInterface;
107 }
108
DiscVLinkBleDeinit(void)109 void DiscVLinkBleDeinit(void)
110 {
111 }
112
DiscVLinkBleEventInit(void)113 int32_t DiscVLinkBleEventInit(void)
114 {
115 return SOFTBUS_OK;
116 }
117
DiscVLinkBleEventDeinit(void)118 void DiscVLinkBleEventDeinit(void)
119 {
120 }
121