CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
Prerequisites.h
Go to the documentation of this file.
1
11
12#pragma once
13
15
16namespace cdc::plugin_manager {
17
18enum class PrereqResult {
20 SoftFailed, // on_fail = warn or callback - host may continue
21 HardFailed, // on_fail = abort - host must not start plugin
22};
23
25public:
32 [[nodiscard]] static PrereqResult walk(Plugin& plugin,
33 std::string& out_failed_name,
34 std::string& out_on_fail);
35
40 static void release(Plugin& plugin);
41};
42
43} // namespace cdc::plugin_manager
Owned WAMR module instance + per-plugin state.
static PrereqResult walk(Plugin &plugin, std::string &out_failed_name, std::string &out_on_fail)
Walk the plugin's prerequisite list in order. Marks acquired resources on the Plugin so release() can...
static void release(Plugin &plugin)
Release every resource the plugin acquired during walk(), in reverse order of acquisition.