1 /* 2 * Copyright (c) 2020-2021 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 HDF_DRIVER_INSTALLER_H 10 #define HDF_DRIVER_INSTALLER_H 11 12 #include "hdf_object.h" 13 #include "hdf_slist.h" 14 15 struct IDriverInstaller { 16 struct HdfObject object; 17 int (*StartDeviceHost)(uint32_t, const char *); 18 int (*StopDeviceHost)(uint32_t, const char *); 19 }; 20 21 struct DriverInstaller { 22 struct IDriverInstaller super; 23 }; 24 25 struct HdfObject *DriverInstallerCreate(void); 26 struct IDriverInstaller *DriverInstallerGetInstance(void); 27 28 #endif /* HDF_DRIVER_INSTALLER_H */ 29