24typedef enum : uint32_t {
87 const char* input_path,
88 const char* card_name,
89 uint64_t minimum_bytes,
90 uint64_t maximum_bytes,
void priv_mkfontimg_diag(const char *text)
Write one complete best-effort diagnostic fragment to standard error.
bool priv_mkfontimg_host_seed(mkfontimg_host_t *host, const uint8_t *bytes, uint32_t length)
Seed exact bytes at the beginning of the temporary image.
bool priv_mkfontimg_host_begin(const char *final_path, uint64_t block_count, uint32_t block_size, mkfontimg_host_t *host)
Create, size, and bind one private sibling-temporary image.
bool priv_mkfontimg_host_commit(mkfontimg_host_t *host)
Sync and atomically publish a complete temporary image.
void priv_mkfontimg_diag_u64(uint64_t value)
Write one unsigned decimal value to standard error without stdio.
void priv_mkfontimg_host_abort(mkfontimg_host_t *host)
Close and unlink an unpublished temporary image.
bool priv_mkfontimg_host_copy(const mkfontimg_host_t *host, ra8_fs_mount_t *mount, const char *input_path, const char *card_name, uint64_t minimum_bytes, uint64_t maximum_bytes, uint64_t *out_bytes)
Stream one stable host input into a card file and verify it by reread.
mkfontimg_host_limit_t
Fixed private storage bounds for the hosted adapter.
@ k_mkfontimg_host_name_cap
Hosted leaf capacity.
@ k_mkfontimg_host_path_cap
Hosted path capacity.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Minimal FAT12/FAT16/FAT32 filesystem adapter (read + write).
Descriptor-backed block-device state bound into ra8_fs.
bool io_failed
Sticky positioned-I/O failure.
int fd
Temporary image descriptor.
uint32_t block_size
Bytes per sector.
uint64_t block_count
Addressable sectors.
Caller-owned sibling-temporary and block-backend binding.
ra8_fs_backend_t backend
Portable FS facade.
mkfontimg_disk_t disk
Bound block state.
int image_fd
Image descriptor.
int directory_fd
Parent descriptor.
char final_name[k_mkfontimg_host_name_cap]
Destination leaf.
char temp_name[k_mkfontimg_host_name_cap]
Temporary leaf.
bool temp_exists
Temp cleanup guard.
Block-device interface that ra8_fs runs on top of.
Cached parse of one mounted FAT volume.