1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef VDI_SAMPLE2_DRIVER_H
10 #define VDI_SAMPLE2_DRIVER_H
11 
12 #include "hdf_load_vdi.h"
13 
14 namespace OHOS {
15 namespace VDI {
16 namespace Sample {
17 namespace V1_0 {
18 class IVdiSample {
19 public:
20     virtual int ServiceA(void) = 0;
21     virtual int ServiceB(IVdiSample *) = 0;
22 };
23 
24 class VdiSample : public IVdiSample {
25 public:
26     int ServiceA(void) override;
27     int ServiceB(IVdiSample *vdi) override;
28     explicit VdiSample(int para);
29     virtual ~VdiSample() = default;
30 private:
31     int priData;
32 };
33 
34 struct VdiWrapperB {
35     struct HdfVdiBase base;
36     IVdiSample *module;
37 };
38 } // namespace V1_0
39 } // namespace Sample
40 } // namespace VDI
41 } // namespace OHOS
42 
43 #endif /* VDI_SAMPLE1_DRIVER_H */
44