CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_api_lifecycle.cpp
Go to the documentation of this file.
1
11
12
#include "
plugin_manager/host_api.h
"
13
#include "
plugin_manager/Plugin.h
"
14
15
namespace
pm
=
cdc::plugin_manager
;
16
17
extern
"C"
void
*
plg_get_active_plugin
(
void
);
18
19
extern
"C"
int
host_set_resident
(
bool
resident
)
20
{
21
auto
* p =
static_cast<
pm::Plugin
*
>
(
plg_get_active_plugin
());
22
if
(!p)
return
HOST_ERR_GENERIC
;
23
p->setResidentRequested(
resident
);
24
return
HOST_OK
;
25
}
Plugin.h
Owned WAMR module instance + per-plugin state.
cdc::plugin_manager::Plugin
Definition
Plugin.h:48
resident
bool resident
Definition
fido2_storage.cpp:77
host_set_resident
int host_set_resident(bool resident)
Request (true) or drop (false) background residency. Needs the background or autoload capability to h...
Definition
host_api_lifecycle.cpp:19
host_api.h
CDC Badge OS plugin host API - canonical C ABI contract.
HOST_OK
#define HOST_OK
Definition
host_api.h:37
HOST_ERR_GENERIC
#define HOST_ERR_GENERIC
Definition
host_api.h:38
plg_get_active_plugin
void * plg_get_active_plugin(void)
Definition
plugin_log_bridge.cpp:24
cdc::plugin_manager
Definition
CapabilityChecker.h:22
components
plugin_manager
src
host_api_lifecycle.cpp
Generated by
1.16.1