hci.h: mark transport config as const

This commit is contained in:
Matthias Ringwald 2016-02-11 17:23:14 +01:00
parent 95d7176479
commit 9d294ab530
2 changed files with 2 additions and 2 deletions

View File

@ -1880,7 +1880,7 @@ static void hci_state_reset(void){
hci_stack->le_connection_parameter_range.le_supervision_timeout_max = 3200;
}
void hci_init(const hci_transport_t *transport, void *config, btstack_link_key_db_t const * link_key_db){
void hci_init(const hci_transport_t *transport, const void *config, btstack_link_key_db_t const * link_key_db){
#ifdef HAVE_MALLOC
if (!hci_stack) {

View File

@ -696,7 +696,7 @@ void hci_local_bd_addr(bd_addr_t address_buffer);
/**
* @brief Set up HCI. Needs to be called before any other function.
*/
void hci_init(const hci_transport_t *transport, void *config, btstack_link_key_db_t const * btstack_link_key_db);
void hci_init(const hci_transport_t *transport, const void *config, btstack_link_key_db_t const * btstack_link_key_db);
/**
* @brief Configure Bluetooth chipset driver. Has to be called before power on, or right after receiving the local version information.