diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index fa2647ace38..305cc982986 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -840,6 +840,7 @@ impl Constellation Layout(FromLayoutMsg), NetworkListener((PipelineId, FetchResponseMsg)), FromSWManager(SWManagerMsg), + FromBluetoothManager(BluetoothManagerMsg), } // Get one incoming request. @@ -859,6 +860,7 @@ impl Constellation let receiver_from_layout = &self.layout_receiver; let receiver_from_network_listener = &self.network_listener_receiver; let receiver_from_swmanager = &self.swmanager_receiver; + let receiver_from_bluetoothmanager = &self.bluetoothmanager_receiver; select! { msg = receiver_from_script.recv() => msg.expect("Unexpected script channel panic in constellation").map(Request::Script), @@ -871,7 +873,9 @@ impl Constellation msg.expect("Unexpected network listener channel panic in constellation") )), msg = receiver_from_swmanager.recv() => - msg.expect("Unexpected panic channel panic in constellation").map(Request::FromSWManager) + msg.expect("Unexpected panic channel panic in constellation").map(Request::FromSWManager), + msg = receiver_from_bluetoothmanager.recv() => + msg.expect("Unexpected bluetooth channel panic in constellation").map(Request::FromBluetoothManager) } }; @@ -895,6 +899,9 @@ impl Constellation }, Request::FromSWManager(message) => { self.handle_request_from_swmanager(message); + }, + Request::FromBluetoothManager(message) => { + self.handle_request_from_bluetoothmanager(message); } } } @@ -924,6 +931,10 @@ impl Constellation } } + fn handle_request_from_bluetoothmanager(&mut self, message:BluetoothManagerMsg) { + + } + fn handle_request_from_compositor(&mut self, message: FromCompositorMsg) { match message { FromCompositorMsg::Exit => {