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 DEVHOST_SERVICE_IF_H 10 #define DEVHOST_SERVICE_IF_H 11 12 #include "hdf_device.h" 13 #include "hdf_device_info.h" 14 #include "hdf_object.h" 15 16 struct IDevHostService { 17 struct HdfObject object; 18 int (*AddDevice)(struct IDevHostService *hostService, const struct HdfDeviceInfo *devInfo); 19 int (*DelDevice)(struct IDevHostService *hostService, devid_t devId); 20 int (*StartService)(struct IDevHostService *hostService); 21 int (*PmNotify)(struct IDevHostService *service, uint32_t powerState); 22 }; 23 24 #endif /* DEVHOST_SERVICE_IF_H */ 25