1 /* 2 * Copyright (c) 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_BT_TRANSPORT_H 10 #define HDF_BT_TRANSPORT_H 11 #include "hdf_device_desc.h" 12 13 struct HdfBtTransportOps; 14 15 struct HdfBtTransport { 16 const struct HdfBtTransportOps *ops; 17 }; 18 19 struct HdfBtTransportOps { 20 int32_t (*Init)(struct HdfBtTransport *transport); 21 int32_t (*GetVfsDevName)(struct HdfBtTransport *transport, char *buf, uint32_t size); 22 void (*Deinit)(struct HdfBtTransport *transport); 23 void (*Destory)(struct HdfBtTransport *transport); 24 }; 25 26 struct HdfBtTransportService { 27 struct IDeviceIoService base; 28 struct HdfBtTransport *(*CreateTransport)(const struct DeviceResourceNode *node); 29 }; 30 31 #endif 32