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 HDF_HOST_INFO_H 10 #define HDF_HOST_INFO_H 11 12 #include "hdf_slist.h" 13 14 struct HdfHostInfo { 15 struct HdfSListNode node; 16 uint16_t hostId; 17 uint16_t priority; 18 const char *hostName; 19 }; 20 21 struct HdfHostInfo *HdfHostInfoNewInstance(void); 22 void HdfHostInfoFreeInstance(struct HdfHostInfo *hostInfo); 23 void HdfHostInfoDelete(struct HdfSListNode *listEntry); 24 25 #endif /* HDF_HOST_INFO_H */ 26