ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_verify.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <stddef.h>
13
14#include "mdl_export.h"
15#include "mdl_storage.h"
16#include "ra8_err.h"
17
24
44ra8_err_t mdl_format_from_path(const char* path, mdl_format_t* out_format);
45
63
95 mdl_format_t format,
96 fw_fs_file_t* file,
97 uint64_t size_bytes,
98 mdl_export_workspace_t* workspace,
99 mdl_verify_report_t* report);
100
131 mdl_format_t format,
132 const char* path,
133 mdl_export_workspace_t* workspace,
134 mdl_verify_report_t* report);
Package a downloaded chapter folder into a reader-openable container.
struct mdl_export_workspace mdl_export_workspace_t
Caller-owned bounded arena for all exporter scratch state.
mdl_format_t
Artifact format selected by a media-download composition root.
Definition mdl_format.h:35
Injected portable storage resources for downloader domain code.
ra8_err_t mdl_verify_open_file(mdl_storage_t *storage, mdl_format_t format, fw_fs_file_t *file, uint64_t size_bytes, mdl_export_workspace_t *workspace, mdl_verify_report_t *report)
Validate an artifact through a borrowed open filesystem handle.
Definition mdl_verify.c:491
ra8_err_t mdl_verify_file(mdl_storage_t *storage, mdl_format_t format, const char *path, mdl_export_workspace_t *workspace, mdl_verify_report_t *report)
Validate a completed artifact using caller-owned scratch only.
Definition mdl_verify.c:520
bool mdl_format_is_verifiable(mdl_format_t format)
Report whether a format has an in-process structural validator.
Definition mdl_verify.c:131
ra8_err_t mdl_format_from_path(const char *path, mdl_format_t *out_format)
Infer an artifact format from its complete path suffix.
Definition mdl_verify.c:107
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Caller-owned open file; fields are private to the facade.
One non-reentrant downloader filesystem dependency bundle.
Definition mdl_storage.h:40
size_t member_count
Total members reported by the container.
Definition mdl_verify.h:21
size_t page_count
Image members found in the artifact.
Definition mdl_verify.h:20
mdl_format_t format
Format selected for validation.
Definition mdl_verify.h:19
bool metadata_present
Required format metadata was present.
Definition mdl_verify.h:22