mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Properly serialize UUIDs in remotexpc
This commit is contained in:
@@ -252,7 +252,6 @@ impl XPCObject {
|
|||||||
}
|
}
|
||||||
XPCObject::Uuid(uuid) => {
|
XPCObject::Uuid(uuid) => {
|
||||||
buf.extend_from_slice(&(XPCType::Uuid as u32).to_le_bytes());
|
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());
|
buf.extend_from_slice(uuid.as_bytes());
|
||||||
}
|
}
|
||||||
XPCObject::FileTransfer { msg_id, data } => {
|
XPCObject::FileTransfer { msg_id, data } => {
|
||||||
@@ -412,6 +411,13 @@ impl XPCObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn to_dictionary(self) -> Option<Dictionary> {
|
||||||
|
match self {
|
||||||
|
XPCObject::Dictionary(dict) => Some(dict),
|
||||||
|
_ => None,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn as_array(&self) -> Option<&Vec<Self>> {
|
pub fn as_array(&self) -> Option<&Vec<Self>> {
|
||||||
match self {
|
match self {
|
||||||
XPCObject::Array(array) => Some(array),
|
XPCObject::Array(array) => Some(array),
|
||||||
|
|||||||
Reference in New Issue
Block a user