Files
breeze/tests/sync_status_link_behavior.zi
waozi b5356aaac7 Port Inbe screens, storage, and platform hosts to Ziran
Replace the remaining .kry and C application sources with Ziran modules,
move vendored dependencies to their current pointers, and add Ziran tests for
the ported hosts and policies.
2026-09-27 15:40:52 -03:00

22 lines
625 B
Ziran

#import, file "../src/storage/sync_status.zi";
#program_export
Answer :: () -> s32 {
status: SyncStatus
if !SyncStatusRead(*status) { return 1 }
if status.has_account != 1 || status.enabled != 1 ||
status.review_pending != 1 ||
status.full_upload_done != 0 ||
status.server_clock != 4294967297 ||
status.queued_changes != 4294967298 { return 2 }
return 42
}
#program_export
FailureClearsStatus :: () -> bool {
status: SyncStatus
status.queued_changes = 99
if SyncStatusRead(*status) { return false }
return status.queued_changes == 0 && status.has_account == 0
}