HardFOC Flux V1 HAL
Unified HAL API for the HardFOC Flux valve-control platform (ESP32-S3)
Loading...
Searching...
No Matches
FluxVersionManifest.h
Go to the documentation of this file.
1
43#ifndef FLUX_VERSION_MANIFEST_H_
44#define FLUX_VERSION_MANIFEST_H_
45
46#include <cstddef>
47
48namespace flux_version {
49
52struct Entry {
53 const char* name;
54 const char* version;
55 const char* git_sha;
56};
57
59struct EntrySpan {
60 const Entry* data;
61 std::size_t size;
62
63 constexpr const Entry* begin() const noexcept { return data; }
64 constexpr const Entry* end() const noexcept { return data + size; }
65};
66
74EntrySpan GetHalManifest() noexcept;
75
80const char* GetHalBuildStamp() noexcept;
81
82} // namespace flux_version
83
84#endif // FLUX_VERSION_MANIFEST_H_
Definition FluxVersionManifest.cpp:86
const char * GetHalBuildStamp() noexcept
Build timestamp captured by the HAL at CMake configure time.
Definition FluxVersionManifest.cpp:128
EntrySpan GetHalManifest() noexcept
Inventory of every component the HAL itself links against.
Definition FluxVersionManifest.cpp:124
Definition FluxVersionManifest.h:52
const char * version
"x.y.z" or "n/a" when no version pattern.
Definition FluxVersionManifest.h:54
const char * git_sha
Short SHA captured at HAL configure time.
Definition FluxVersionManifest.h:55
const char * name
Component identifier (e.g. "fdo2", "hf-iiwrap").
Definition FluxVersionManifest.h:53
Read-only view over a contiguous run of Entry records.
Definition FluxVersionManifest.h:59
constexpr const Entry * begin() const noexcept
Definition FluxVersionManifest.h:63
const Entry * data
Definition FluxVersionManifest.h:60
constexpr const Entry * end() const noexcept
Definition FluxVersionManifest.h:64
std::size_t size
Definition FluxVersionManifest.h:61