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 DEVICE_MANAGER_SERVICE_H 10 #define DEVICE_MANAGER_SERVICE_H 11 12 #include "devmgr_service_if.h" 13 #include "hdf_dlist.h" 14 #include "osal_mutex.h" 15 16 struct DevmgrService { 17 struct IDevmgrService super; 18 struct DListHead hosts; 19 struct OsalMutex devMgrMutex; 20 }; 21 22 int DevmgrServiceStartService(struct IDevmgrService *inst); 23 bool DevmgrServiceConstruct(struct DevmgrService *inst); 24 struct HdfObject *DevmgrServiceCreate(void); 25 void DevmgrServiceRelease(struct HdfObject *object); 26 struct IDevmgrService *DevmgrServiceGetInstance(void); 27 int32_t DevmgrServiceLoadLeftDriver(struct DevmgrService *devMgrSvc); 28 29 #endif /* DEVICE_MANAGER_SERVICE_H */ 30