Skip to content

Commit

Permalink
tune gc::Controller api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 15, 2024
1 parent 945c7a8 commit 8ce2619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cidre/src/gc/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ impl Controller {
pub fn set_should_monitor_background_events(val: bool);

#[objc::msg_send(startWirelessControllerDiscoveryWithCompletionHandler:)]
pub fn start_wireless_controller_discovery_bl(ch: Option<&mut blocks::CompletionBlock>);
pub fn start_wireless_discovery_ch(ch: Option<&mut blocks::CompletionBlock>);

pub fn start_wireless_controller_discovery_ch(ch: impl FnMut() + 'static) {
pub fn start_wireless_discovery(ch: impl FnMut() + 'static) {
let mut block = blocks::CompletionBlock::new0(ch);
Self::start_wireless_controller_discovery_bl(Some(&mut block));
Self::start_wireless_discovery_ch(Some(&mut block));
}

#[objc::msg_send(stopWirelessControllerDiscovery)]
pub fn stop_wireless_controller_discovery();
pub fn stop_wireless_discovery();
}

/// Notifications
Expand Down

0 comments on commit 8ce2619

Please sign in to comment.