use const for remote_device_db pointers

This commit is contained in:
matthias.ringwald 2011-11-09 15:43:28 +00:00
parent 069c1f50bb
commit 4f4fc1df43
3 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ static void (*bluetooth_status_handler)(BLUETOOTH_STATE state) = dummy_bluetooth
static int global_enable = 0;
static remote_device_db_t * remote_device_db = NULL;
static remote_device_db_t const * remote_device_db = NULL;
static int rfcomm_channel_generator = 1;
static void dummy_bluetooth_status_handler(BLUETOOTH_STATE state){

View File

@ -679,7 +679,7 @@ void hci_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *p
hci_stack.packet_handler = handler;
}
void hci_init(hci_transport_t *transport, void *config, bt_control_t *control, remote_device_db_t * remote_device_db){
void hci_init(hci_transport_t *transport, void *config, bt_control_t *control, remote_device_db_t const* remote_device_db){
// reference to use transport layer implementation
hci_stack.hci_transport = transport;

View File

@ -278,7 +278,7 @@ typedef struct {
void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size);
/* remote device db */
remote_device_db_t *remote_device_db;
remote_device_db_t const*remote_device_db;
/* hci state machine */
HCI_STATE state;
@ -302,7 +302,7 @@ uint16_t hci_create_cmd(uint8_t *hci_cmd_buffer, hci_cmd_t *cmd, ...);
uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, const hci_cmd_t *cmd, va_list argptr);
// set up HCI
void hci_init(hci_transport_t *transport, void *config, bt_control_t *control, remote_device_db_t * remote_device_db);
void hci_init(hci_transport_t *transport, void *config, bt_control_t *control, remote_device_db_t const* remote_device_db);
void hci_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet, uint16_t size));
void hci_close(void);