Harden Apple Watch snapshot synchronization

This commit is contained in:
2026-08-17 18:06:09 +02:00
parent 5c88d3ace0
commit 2a59803b6c
8 changed files with 372 additions and 64 deletions

View File

@@ -185,6 +185,18 @@ impl WatchCore {
.map_err(Into::into)
}
pub fn apply_authoritative_snapshot(
&self,
snapshot: Vec<u8>,
) -> Result<WatchSnapshotUpdate, WatchFfiError> {
self.runtime
.lock()
.map_err(|_| lock_error())?
.apply_authoritative_snapshot(snapshot)
.map(Into::into)
.map_err(Into::into)
}
pub fn presentation_at(&self, unix_seconds: u64) -> Result<WatchPresentation, WatchFfiError> {
self.runtime
.lock()