Macro plist creation in tss

This commit is contained in:
Jackson Coxson
2025-08-23 09:48:17 -06:00
parent 4d5e646a6b
commit ac551c9bc8

View File

@@ -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 }
} }