Skip to content

Commit

Permalink
Add RemoveDevice command
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcoxson committed Jan 8, 2025
1 parent a81383a commit b54f1c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,19 @@ async fn handle_stream(
// No more further communication for this packet
return;
}
"RemoveDevice" => {
let udid = parsed
.plist
.clone()
.dict_get_item("DeviceID")
.unwrap()
.get_string_val()
.unwrap();

let central_data = data.lock().await;
central_data.remove_device(udid);
return;
}
//////////////////////////////
// usbmuxd protocol packets //
//////////////////////////////
Expand Down

0 comments on commit b54f1c4

Please sign in to comment.