Cordio BLE: Add hook to HCI driver and transport.

A friend class living in the namespace ble::vendor::cordio and named CordioHCITransportDriver can be added in applications requiring access to internal data of the HCI driver and HCI transport driver.

This is meant to be internal and not easily exploitable by application code.
pull/7163/head
Vincent Coubard 2018-06-07 12:29:57 +01:00
parent d364d367fe
commit 569fd9ed30
2 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,10 @@ struct buf_pool_desc_t {
* - Access to the write function of the underlying HCITransport driver.
*/
class CordioHCIDriver {
// hook for internal tests and passthrough driver
friend class CordioHCIHook;
public:
/**
* Construct a new instance of an HCI driver.

View File

@ -28,6 +28,10 @@ namespace cordio {
* It allow the stack to write data in the HCI channel.
*/
class CordioHCITransportDriver {
// hook for internal tests and passthrough driver
friend class CordioHCIHook;
public:
/**
* Driver destructor.