Lines Matching refs:packet_handler
110 …x bd_addr: %s, handler %p", status, bd_addr_to_str(channel->remote_addr), channel->packet_handler); in bnep_emit_open_channel_complete()
111 if (!channel->packet_handler) return; in bnep_emit_open_channel_complete()
125 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_open_channel_complete()
130 …L_TIMEOUT bd_addr: %s, handler %p", bd_addr_to_str(channel->remote_addr), channel->packet_handler); in bnep_emit_channel_timeout()
131 if (!channel->packet_handler) return; in bnep_emit_channel_timeout()
142 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_channel_timeout()
147 …EL_CLOSED bd_addr: %s, handler %p", bd_addr_to_str(channel->remote_addr), channel->packet_handler); in bnep_emit_channel_closed()
148 if (!channel->packet_handler) return; in bnep_emit_channel_closed()
158 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_channel_closed()
163 if (!channel->packet_handler) return; in bnep_emit_ready_to_send()
170 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_ready_to_send()
896 channel->packet_handler = service->packet_handler; in bnep_handle_connection_request()
1146 if (channel->packet_handler){ in bnep_handle_ethernet_packet()
1147 (*channel->packet_handler)(BNEP_DATA_PACKET, channel->l2cap_cid, ethernet_packet, in bnep_handle_ethernet_packet()
1625 int bnep_connect(btstack_packet_handler_t packet_handler, bd_addr_t addr, uint16_t l2cap_psm, uint1… in bnep_connect() argument
1637 channel->packet_handler = packet_handler; in bnep_connect()
1657 uint8_t bnep_register_service(btstack_packet_handler_t packet_handler, uint16_t service_uuid, uint1… in bnep_register_service() argument
1687 service->packet_handler = packet_handler; in bnep_register_service()