1 /* 2 * Copyright (c) 2020-2022 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_SERVICE_RECORD_H 10 #define HDF_SERVICE_RECORD_H 11 12 #include "hdf_device.h" 13 #include "hdf_dlist.h" 14 15 struct DevSvcRecord { 16 struct DListHead entry; 17 uint32_t key; 18 struct HdfDeviceObject *value; 19 const char *servName; 20 const char *servInfo; 21 uint16_t devClass; 22 devid_t devId; 23 const char *interfaceDesc; 24 }; 25 26 struct DevSvcRecord *DevSvcRecordNewInstance(void); 27 void DevSvcRecordFreeInstance(struct DevSvcRecord *inst); 28 29 #endif /* HDF_SERVICE_RECORD_H */ 30 31