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 #include "hdf_sbuf.h" 16 17 struct IDevHostService { 18 struct HdfObject object; 19 int (*AddDevice)(struct IDevHostService *hostService, const struct HdfDeviceInfo *devInfo); 20 int (*DelDevice)(struct IDevHostService *hostService, devid_t devId); 21 int (*StartService)(struct IDevHostService *hostService); 22 int (*PmNotify)(struct IDevHostService *service, uint32_t powerState); 23 int (*Dump)(struct IDevHostService *hostService, struct HdfSBuf *data, struct HdfSBuf *reply); 24 }; 25 26 #endif /* DEVHOST_SERVICE_IF_H */ 27