Move services into subdirectory

This commit is contained in:
Jackson Coxson
2025-05-09 14:25:42 -06:00
parent b4503d8e8f
commit baa9ffcc29
28 changed files with 32 additions and 36 deletions

View File

@@ -1,36 +1,11 @@
#![doc = include_str!("../README.md")]
// Jackson Coxson
#[cfg(feature = "afc")]
pub mod afc;
#[cfg(feature = "amfi")]
pub mod amfi;
#[cfg(feature = "pair")]
mod ca;
#[cfg(feature = "core_device_proxy")]
pub mod core_device_proxy;
#[cfg(feature = "crashreportcopymobile")]
pub mod crashreportcopymobile;
#[cfg(feature = "debug_proxy")]
pub mod debug_proxy;
#[cfg(feature = "dvt")]
pub mod dvt;
#[cfg(feature = "heartbeat")]
pub mod heartbeat;
#[cfg(feature = "xpc")]
mod http2;
#[cfg(feature = "installation_proxy")]
pub mod installation_proxy;
pub mod lockdown;
#[cfg(feature = "misagent")]
pub mod misagent;
#[cfg(feature = "mobile_image_mounter")]
pub mod mobile_image_mounter;
pub mod pairing_file;
pub mod provider;
mod sni;
#[cfg(feature = "springboardservices")]
pub mod springboardservices;
#[cfg(feature = "tunnel_tcp_stack")]
pub mod tcp;
#[cfg(feature = "tss")]
@@ -40,8 +15,9 @@ pub mod tunneld;
#[cfg(feature = "usbmuxd")]
pub mod usbmuxd;
mod util;
#[cfg(feature = "xpc")]
pub mod xpc;
pub mod services;
pub use services::*;
use log::{debug, error, trace};
use provider::IdeviceProvider;

View File

@@ -0,0 +1,25 @@
#[cfg(feature = "afc")]
pub mod afc;
#[cfg(feature = "amfi")]
pub mod amfi;
#[cfg(feature = "core_device_proxy")]
pub mod core_device_proxy;
#[cfg(feature = "crashreportcopymobile")]
pub mod crashreportcopymobile;
#[cfg(feature = "debug_proxy")]
pub mod debug_proxy;
#[cfg(feature = "dvt")]
pub mod dvt;
#[cfg(feature = "heartbeat")]
pub mod heartbeat;
#[cfg(feature = "installation_proxy")]
pub mod installation_proxy;
pub mod lockdown;
#[cfg(feature = "misagent")]
pub mod misagent;
#[cfg(feature = "mobile_image_mounter")]
pub mod mobile_image_mounter;
#[cfg(feature = "springboardservices")]
pub mod springboardservices;
#[cfg(feature = "xpc")]
pub mod xpc;

View File

@@ -1,6 +1,6 @@
// DebianArch
use crate::http2::error::Http2Error;
use super::http2::error::Http2Error;
use std::{
array::TryFromSliceError, error::Error, ffi::FromVecWithNulError, io, num::TryFromIntError,
str::Utf8Error,

View File

@@ -4,16 +4,12 @@
//! which is used for inter-process communication between iOS/macOS components.
use std::collections::HashMap;
mod http2;
use crate::{
http2::{
self,
h2::{SettingsFrame, WindowUpdateFrame},
},
IdeviceError, ReadWrite,
};
use crate::{IdeviceError, ReadWrite};
use error::XPCError;
use format::{XPCFlag, XPCMessage, XPCObject};
use http2::h2::{SettingsFrame, WindowUpdateFrame};
use log::{debug, warn};
use serde::Deserialize;
@@ -292,4 +288,3 @@ impl<R: ReadWrite> XPCConnection<R> {
}
}
}