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