Harden Apple Watch snapshot synchronization

This commit is contained in:
hugo committed 2026-08-17 18:06:09 +02:00
1 parent 5c88d3ace0
commit 2a59803b6c
8 files changed
+372 -64

No files matched your search

+12
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()