struct initialization in old style

This commit is contained in:
mila@ringwald.ch 2013-12-06 09:28:43 +00:00
parent 82db68a572
commit 4eb637e285
2 changed files with 14 additions and 10 deletions

View File

@ -102,7 +102,9 @@ static uint16_t tx_len;
static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = dummy_handler;
static data_source_t hci_transport_h4_dma_ds = {
.process = h4_process
/* .item = */ NULL,
/* .fd = */ NULL,
/* .process = */ h4_process
};
static hci_transport_h4_t hci_transport_h4_dma = {

View File

@ -134,19 +134,21 @@ static uint8_t tx_packet_type;
// data source used in run_loop
static data_source_t hci_transport_h4_dma_ds = {
.process = h4_process
/* .item = */ NULL,
/* .fd = */ NULL,
/* .process = */ h4_process
};
// hci_transport for use by hci
static const hci_transport_h4_t hci_transport_h4_ehcill_dma = {
.transport.open = h4_open,
.transport.close = h4_close,
.transport.send_packet = ehcill_send_packet,
.transport.register_packet_handler = h4_register_packet_handler,
.transport.get_transport_name = h4_get_transport_name,
.transport.set_baudrate = h4_set_baudrate,
.transport.can_send_packet_now = h4_can_send_packet_now,
.ds = &hci_transport_h4_dma_ds
/* .transport.open = */ h4_open,
/* .transport.close = */ h4_close,
/* .transport.send_packet = */ ehcill_send_packet,
/* .transport.register_packet_handler = */ h4_register_packet_handler,
/* .transport.get_transport_name = */ h4_get_transport_name,
/* .transport.set_baudrate = */ h4_set_baudrate,
/* .transport.can_send_packet_now = */ h4_can_send_packet_now,
/* .ds = */ &hci_transport_h4_dma_ds
};