• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  * Description: link type of channel and the calling module type
15  * Author: sunhong
16  * Create: 2022-01-19
17  */
18 
19 #ifndef CHANNEL_INFO_H
20 #define CHANNEL_INFO_H
21 
22 #include <array>
23 
24 namespace OHOS {
25 namespace CastEngine {
26 namespace CastEngineService {
27 enum class ChannelLinkType {
28     SOFT_BUS,
29     TCP,
30     VTP
31 };
32 
33 enum class ModuleType {
34     AUTH,
35     RTSP,
36     RTCP,
37     VIDEO,
38     AUDIO,
39     REMOTE_CONTROL,
40     STREAM,
41     UI_FILES,
42     UI_BYTES,
43     MODULE_TYPE_MAX
44 };
45 
46 const std::array<std::string, static_cast<size_t>(ModuleType::MODULE_TYPE_MAX)> MODULE_TYPE_STRING = {
47     "AUTH", "RTSP", "RTCP", "VIDEO", "AUDIO", "REMOTE_CONTROL", "STREAM", "UI_FILES", "UI_BYTES"
48 };
49 } // namespace CastEngineService
50 } // namespace CastEngine
51 } // namespace OHOS
52 
53 #endif // CHANNEL_INFO_H