• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023-2025 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 /**
17  * @file softbus_broadcast_adapter_interface.h
18  * @brief Different broadcast protocol stacks adapt layer interfaces
19  *
20  * @since 4.1
21  * @version 1.0
22  */
23 
24 #ifndef SOFTBUS_BROADCAST_ADAPTER_INTERFACE_H
25 #define SOFTBUS_BROADCAST_ADAPTER_INTERFACE_H
26 
27 #include "softbus_broadcast_adapter_type.h"
28 #include "softbus_broadcast_adapter_interface_struct.h"
29 #include "softbus_broadcast_type.h"
30 
31 #ifdef __cplusplus
32 extern "C"{
33 #endif
34 
35 /**
36  * @brief Defines interface functions for registering different media
37  *
38  * @since 4.1
39  * @version 1.0
40  */
41 int32_t RegisterBroadcastMediumFunction(BroadcastProtocol type, const SoftbusBroadcastMediumInterface *interface);
42 
43 /**
44  * @brief Defines interface functions for unregistering different media
45  *
46  * @since 4.1
47  * @version 1.0
48  */
49 int32_t UnRegisterBroadcastMediumFunction(BroadcastProtocol type);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* SOFTBUS_BROADCAST_ADAPTER_INTERFACE_H */
56