4#ifndef PROTOCORE_MNT_RAM_H
5#define PROTOCORE_MNT_RAM_H
The mount: which store is behind the filesystem, and the vtable it answers through.
void protocore_mnt_ram_format(const uint8_t *work)
Empty the pool and close every handle.
const protocore_mnt_backend * protocore_mnt_ram_backend(const uint8_t *work)
Publish the vtable, for the caller to mount.
#define PROTOCORE_UNUSED
Suppress the unused warning. Every module ends in a namespace most callers only partly use.
#define PROTOCORE_NS_LAYOUT(T,...)
Pin every dispatch slot of a table that is nothing but function pointers.
#define PROTOCORE_NS
Storage for a dispatch table. The const is load bearing.
Dispatch table. Addressed by offset, so the layout is asserted below.
void(* format)(const uint8_t *)
A storage backend. Each open call returns a small handle (>= 0) or -1.