Lines Matching refs:EventCode
240 void register_event(EventCode event, ContextualCallback<void(EventView)> handler) { in register_event()
242 event != EventCode::LE_META_EVENT, in register_event()
244 EventCode::LE_META_EVENT, in register_event()
245 EventCodeText(EventCode::LE_META_EVENT).c_str()); in register_event()
251 void unregister_event(EventCode event) { in unregister_event()
257 event_handlers_.count(EventCode::LE_META_EVENT) == 0, in register_le_meta_event()
259 EventCode::LE_META_EVENT, in register_le_meta_event()
260 EventCodeText(EventCode::LE_META_EVENT).c_str()); in register_le_meta_event()
261 event_handlers_[EventCode::LE_META_EVENT] = handler; in register_le_meta_event()
265 unregister_event(EventCode::LE_META_EVENT); in unregister_le_meta_event()
303 EventCode event_code = event.GetEventCode(); in on_hci_event()
305 if (event_code == EventCode::VENDOR_SPECIFIC) { in on_hci_event()
341 std::map<EventCode, ContextualCallback<void(EventView)>> event_handlers_;
409 void HciLayer::RegisterEventHandler(EventCode event, ContextualCallback<void(EventView)> handler) { in RegisterEventHandler()
417 void HciLayer::UnregisterEventHandler(EventCode event) { in UnregisterEventHandler()
543 …RegisterEventHandler(EventCode::COMMAND_COMPLETE, handler->BindOn(impl_, &impl::on_command_complet… in Start()
544 RegisterEventHandler(EventCode::COMMAND_STATUS, handler->BindOn(impl_, &impl::on_command_status)); in Start()
548 … EventCode::DISCONNECTION_COMPLETE, handler->BindOn(this, &HciLayer::on_disconnection_complete)); in Start()
550 EventCode::READ_REMOTE_VERSION_INFORMATION_COMPLETE, in Start()
554 RegisterEventHandler(EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE, drop_packet); in Start()
555 RegisterEventHandler(EventCode::MAX_SLOTS_CHANGE, drop_packet); in Start()