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

Plugin lifecycle host API: opt-in background residency. More...

Go to the source code of this file.

Functions

void * plg_get_active_plugin (void)
int host_set_resident (bool resident)
 Request (true) or drop (false) background residency. Needs the background or autoload capability to have any effect.

Detailed Description

Plugin lifecycle host API: opt-in background residency.

A background/autoload capability is only permission. By default a plugin is torn down when the user leaves it (or, for autoload, right after boot init). Calling host_set_resident(true) — typically in plugin_init for an autoload service, or while running for a background one — makes PluginManager keep the instance resident. Calling it with false opts back out.

Definition in file host_api_lifecycle.cpp.

Function Documentation

◆ plg_get_active_plugin()

void * plg_get_active_plugin ( void )

Definition at line 24 of file plugin_log_bridge.cpp.

Referenced by host_set_resident().