Loading...
Searching...
No Matches
store_persist.c File Reference

The save that skips an unchanged reading and the restore that feeds it, in one copy every store links against. More...

Functions

bool store_save_changed (uint32_t key, void *state, size_t size, size_t reading_size, uint8_t tag, uint32_t *saved_sum)
 Save a store's blob only when its reading is different from what is already on flash.
bool store_restore_reading (uint32_t key, void *state, size_t size, size_t reading_size, uint8_t tag, uint32_t *saved_sum)
 Restore a saved blob as store_restore does, and record the sum of the reading it holds.

Detailed Description

The save that skips an unchanged reading and the restore that feeds it, in one copy every store links against.