zephyr/subsys/bluetooth/host/hci_raw_internal.h
Johan Hedberg 5517893543 Bluetooth: Make bt_hci_driver instances link-time constants
Declaring these as const lets the linker generate more optimal code.
Some extra care is needed with hci_ecc.c since it was overwriting the
send callback. Now the choice of send() call is done directly in the
bt_send() function

Change-Id: Iac74f5ee9bee097bbb34c11bd13d1d886700f5cc
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2017-03-21 17:05:42 -07:00

25 lines
381 B
C

/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __BT_HCI_RAW_INTERNAL_H
#define __BT_HCI_RAW_INTERNAL_H
#ifdef __cplusplus
extern "C" {
#endif
struct bt_dev_raw {
/* Registered HCI driver */
const struct bt_hci_driver *drv;
};
extern struct bt_dev_raw bt_dev;
#ifdef __cplusplus
}
#endif
#endif /* __BT_HCI_RAW_INTERNAL_H */