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_TOKEN_CLNT_H 10 #define DEVICE_TOKEN_CLNT_H 11 12 #include "device_token_if.h" 13 #include "hdf_device_info.h" 14 #include "hdf_slist.h" 15 16 struct DeviceTokenClnt { 17 struct HdfSListNode node; 18 struct IHdfDeviceToken *tokenIf; 19 const struct HdfDeviceInfo *deviceInfo; 20 }; 21 22 struct DeviceTokenClnt *DeviceTokenClntNewInstance(struct IHdfDeviceToken *tokenIf); 23 void DeviceTokenClntFreeInstance(struct DeviceTokenClnt *tokenClnt); 24 void DeviceTokenClntDelete(struct HdfSListNode *listEntry); 25 26 #endif /* DEVICE_TOKEN_CLNT_H */ 27