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 HDI_DEVICE_INTERFACE_H
17 #define HDI_DEVICE_INTERFACE_H
18 #include <unordered_map>
19 #include <vector>
20 #include <memory>
21 #include "hdi_display.h"
22 
23 namespace OHOS {
24 namespace HDI {
25 namespace DISPLAY {
26 class HdiDeviceInterface {
27 public:
28     static std::vector<std::shared_ptr<HdiDeviceInterface>> DiscoveryDevice();
29     virtual std::unordered_map<uint32_t, std::shared_ptr<HdiDisplay>> DiscoveryDisplay() = 0;
30     virtual bool HandleHotplug(uint32_t dispId, bool plugIn) = 0;
31     virtual int32_t Init() = 0;
32     virtual void DeInit() = 0;
~HdiDeviceInterface()33     virtual ~HdiDeviceInterface() {};
34 };
35 } // namespace OHOS
36 } // namespace HDI
37 } // namespace DISPLAY
38 
39 #endif // HDI_DEVICE_INTERFACE_H