Skip to content
Snippets Groups Projects
Commit 58250e13 authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: Le Rand Callback interface declaration

Bug: 232547719
Test: mma -j $(nproc)
Test: ./build.py
Test: system/gd/cert/run --clean --topshim
Tag: #floss
Change-Id: I996cf9e49f8324f07f3c6d7c6fd78369532a8f16
parent 6ad0bdfe
No related branches found
No related tags found
No related merge requests found
......@@ -566,6 +566,9 @@ pub(crate) trait BtifBluetoothCallbacks {
link_type: BtTransport,
hci_reason: BtHciErrorCode,
);
#[btif_callback(LeRandCallback)]
fn le_rand_cb(&mut self, random: u64);
}
#[btif_callbacks_dispatcher(Bluetooth, dispatch_sdp_callbacks, SdpCallbacks)]
......@@ -593,6 +596,10 @@ pub fn get_bt_dispatcher(tx: Sender<Message>) -> BaseCallbacksDispatcher {
}
impl BtifBluetoothCallbacks for Bluetooth {
fn le_rand_cb(&mut self, random: u64) {
println!("Random: {:?}", random);
}
fn adapter_state_changed(&mut self, state: BtState) {
let prev_state = self.state.clone();
self.state = state;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment