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 DEVSVC_RECORD_H 10 #define DEVSVC_RECORD_H 11 12 #include "hdf_object.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 }; 23 24 struct DevSvcRecord *DevSvcRecordNewInstance(void); 25 void DevSvcRecordFreeInstance(struct DevSvcRecord *inst); 26 27 #endif /* DEVSVC_RECORD_H */ 28 29