mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Macro plist creation in tss
This commit is contained in:
@@ -30,13 +30,11 @@ impl TSSRequest {
|
|||||||
/// - Client version string
|
/// - Client version string
|
||||||
/// - Random UUID for request identification
|
/// - Random UUID for request identification
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let mut inner = plist::Dictionary::new();
|
let inner = crate::plist!(dict {
|
||||||
inner.insert("@HostPlatformInfo".into(), "mac".into());
|
"@HostPlatformInfo": "mac",
|
||||||
inner.insert("@VersionInfo".into(), TSS_CLIENT_VERSION_STRING.into());
|
"@VersionInfo": TSS_CLIENT_VERSION_STRING,
|
||||||
inner.insert(
|
"@UUID": uuid::Uuid::new_v4().to_string().to_uppercase()
|
||||||
"@UUID".into(),
|
});
|
||||||
uuid::Uuid::new_v4().to_string().to_uppercase().into(),
|
|
||||||
);
|
|
||||||
Self { inner }
|
Self { inner }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user