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