mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Start thinking about how to implement channels
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// Jackson Coxson
|
||||
|
||||
pub mod message_aux;
|
||||
pub mod process_control;
|
||||
pub mod remote_server;
|
||||
|
||||
5
idevice/src/dvt/process_control.rs
Normal file
5
idevice/src/dvt/process_control.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
// Jackson Coxson
|
||||
|
||||
pub struct ProcessControlClient {
|
||||
client: super::remote_server::RemoteServerClient,
|
||||
}
|
||||
25
idevice/src/dvt/remote_server.rs
Normal file
25
idevice/src/dvt/remote_server.rs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Jackson Coxson
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::{IdeviceError, ReadWrite};
|
||||
|
||||
pub struct RemoteServerClient {
|
||||
idevice: Box<dyn ReadWrite>,
|
||||
current_message: usize,
|
||||
last_channel: usize,
|
||||
channels: HashMap<u8, Vec<super::message_aux::MessageAux>>,
|
||||
}
|
||||
|
||||
impl RemoteServerClient {
|
||||
pub fn new(idevice: Box<dyn ReadWrite>) -> Result<Self, IdeviceError> {
|
||||
Ok(Self {
|
||||
idevice,
|
||||
current_message: 0,
|
||||
last_channel: 0,
|
||||
channels: HashMap::new(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Channel {}
|
||||
Reference in New Issue
Block a user