diff --git a/idevice/src/xpc/format.rs b/idevice/src/xpc/format.rs index ccfd6cb..bc67f63 100644 --- a/idevice/src/xpc/format.rs +++ b/idevice/src/xpc/format.rs @@ -252,7 +252,6 @@ impl XPCObject { } XPCObject::Uuid(uuid) => { buf.extend_from_slice(&(XPCType::Uuid as u32).to_le_bytes()); - buf.extend_from_slice(&16_u32.to_le_bytes()); buf.extend_from_slice(uuid.as_bytes()); } XPCObject::FileTransfer { msg_id, data } => { @@ -412,6 +411,13 @@ impl XPCObject { } } + pub fn to_dictionary(self) -> Option { + match self { + XPCObject::Dictionary(dict) => Some(dict), + _ => None, + } + } + pub fn as_array(&self) -> Option<&Vec> { match self { XPCObject::Array(array) => Some(array),