Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_err_t ra8_fs_set_lock(const ra8_fs_lock_t *lock)
Install (or remove) the lock taken around every public ra8_fs call.
ra8_err_t ra8_fs_set_clock(const ra8_fs_clock_t *clock)
Install (or remove) the calendar source used to stamp files.
On-disk and handle data types shared by the ra8_fs public API.
Caller-supplied calendar source used to stamp files.
void * ctx
Caller-owned context passed back into now.
ra8_err_t(* now)(void *ctx, ra8_fs_datetime_t *out)
Report the current civil time.
Broken-down civil date and time used at the filesystem boundary.
Dependency-injection seam for mutual exclusion around the public API.
void(* release)(void *ctx)
Release the lock taken by the matching acquire call.
void * ctx
Caller-owned cookie handed back to both callbacks.
void(* acquire)(void *ctx)
Take the lock; must block until it is held.