CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
Prerequisites.h File Reference

Walks the prerequisites list of a plugin manifest before plugin_on_enter. More...

Go to the source code of this file.

Classes

class  cdc::plugin_manager::Prerequisites

Namespaces

namespace  cdc
namespace  cdc::plugin_manager

Enumerations

enum class  cdc::plugin_manager::PrereqResult { cdc::plugin_manager::Ok , cdc::plugin_manager::SoftFailed , cdc::plugin_manager::HardFailed }

Detailed Description

Walks the prerequisites list of a plugin manifest before plugin_on_enter.

Each prerequisite either checks a precondition (time_synced, battery_min, unlocked, ...) or actively brings up a resource (wifi_connected, ble_active). Successfully-acquired resources are tracked on the Plugin so PluginManager can release them in reverse order during stopPlugin / on_exit.

Definition in file Prerequisites.h.