Add the repository-facing scaffolding: - Community/legal: README.md, LICENSE (GPL-3.0-or-later), NOTICE, CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, .gitleaks.toml - CI: .github/ workflows (ci.yml aggregate gate, nightly.yml, codeql.yml), issue/PR templates, dependabot config (pinned Actions per README) - Host tooling: tools/frame_tools (ruff/pyright/pytest gates, partition, evidence-schema, doc-links, SBOM checks), tests/, pyproject.toml, uv.lock - poc/ host side: poc/host contract-test suite (ASan/TSan-capable), poc/README.md, poc/poc-a.code-workspace Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
22 lines
748 B
C
22 lines
748 B
C
#include <stddef.h>
|
|
|
|
#include "frame_poc/frame_abi.h"
|
|
|
|
_Static_assert(sizeof(frame_abi_header_t) == 16, "ABI header size changed");
|
|
_Static_assert(offsetof(frame_abi_header_t, struct_size) == 0, "ABI header prefix changed");
|
|
_Static_assert(sizeof(plugin_instance_handle_t) == sizeof(uint64_t), "handle width changed");
|
|
_Static_assert(FRAME_ERR_RATE_LIMITED == -29, "error value changed");
|
|
|
|
int main(void) {
|
|
const frame_abi_header_t abi = {
|
|
.struct_size = sizeof(frame_abi_header_t),
|
|
.abi_major = FRAME_ABI_MAJOR,
|
|
.abi_minor = FRAME_ABI_MINOR,
|
|
.feature_bits = 0,
|
|
};
|
|
|
|
return frame_abi_supports(&abi, FRAME_ABI_MAJOR, FRAME_ABI_MINOR, sizeof(frame_abi_header_t), 0)
|
|
? 0
|
|
: 1;
|
|
}
|