mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-28 22:01:50 +00:00
linux-rust: remove ATT temporarily
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::bluetooth::aacp::{AACPManager, ProximityKeyType, AACPEvent};
|
||||
use crate::bluetooth::aacp::ControlCommandIdentifiers;
|
||||
use crate::bluetooth::att::ATTManager;
|
||||
// use crate::bluetooth::att::ATTManager;
|
||||
use crate::media_controller::MediaController;
|
||||
use bluer::Address;
|
||||
use log::{debug, info, error};
|
||||
@@ -13,7 +13,7 @@ use crate::ui::tray::MyTray;
|
||||
pub struct AirPodsDevice {
|
||||
pub mac_address: Address,
|
||||
pub aacp_manager: AACPManager,
|
||||
pub att_manager: ATTManager,
|
||||
// pub att_manager: ATTManager,
|
||||
pub media_controller: Arc<Mutex<MediaController>>,
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ impl AirPodsDevice {
|
||||
let mut aacp_manager = AACPManager::new();
|
||||
aacp_manager.connect(mac_address).await;
|
||||
|
||||
let mut att_manager = ATTManager::new();
|
||||
att_manager.connect(mac_address).await.expect("Failed to connect ATT");
|
||||
// let mut att_manager = ATTManager::new();
|
||||
// att_manager.connect(mac_address).await.expect("Failed to connect ATT");
|
||||
|
||||
tray_handle.update(|tray: &mut MyTray| tray.connected = true).await;
|
||||
|
||||
@@ -214,7 +214,7 @@ impl AirPodsDevice {
|
||||
AirPodsDevice {
|
||||
mac_address,
|
||||
aacp_manager,
|
||||
att_manager,
|
||||
// att_manager,
|
||||
media_controller,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -676,11 +676,11 @@ impl AACPManager {
|
||||
buffer.extend_from_slice(&[0x01, 0xE5, 0x4A]);
|
||||
buffer.extend_from_slice(b"playingApp");
|
||||
buffer.push(0x42);
|
||||
buffer.extend_from_slice(b"NA");;
|
||||
buffer.extend_from_slice(b"NA");
|
||||
buffer.push(0x52);
|
||||
buffer.extend_from_slice(b"hostStreamingState");
|
||||
buffer.push(0x42);
|
||||
buffer.extend_from_slice(b"NO");;
|
||||
buffer.extend_from_slice(b"NO");
|
||||
buffer.push(0x49);
|
||||
buffer.extend_from_slice(b"btAddress");
|
||||
buffer.push(0x51);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
pub(crate) mod discovery;
|
||||
pub mod aacp;
|
||||
pub mod att;
|
||||
// pub mod att;
|
||||
Reference in New Issue
Block a user