|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
cdc_log bridge for the plugin manager translation units that need to coexist with wasm_export.h. More...
Go to the source code of this file.
Functions | |
| void | plg_log_info (const char *msg) |
| void | plg_log_warn (const char *msg) |
| void | plg_log_error (const char *msg) |
| void | plg_set_active_plugin (void *p) |
| void * | plg_get_active_plugin (void) |
Variables | |
| static const char * | TAG = "PLUGIN" |
| static std::atomic< void * > | s_active_plugin {nullptr} |
cdc_log bridge for the plugin manager translation units that need to coexist with wasm_export.h.
wasm_export.h and cdc_log.h both define log_level_t. Any source file that wants both has to go through this bridge. It also tracks the currently active Plugin pointer so the per-call capability checks in the host_api_* implementations can look up which manifest applies.
Definition in file plugin_log_bridge.cpp.
| void * plg_get_active_plugin | ( | void | ) |
Definition at line 24 of file plugin_log_bridge.cpp.
References s_active_plugin.
Referenced by cdc::plugin_manager::PluginUiState::acquireExclusive(), cdc::plugin_manager::Plugin::callI(), host_ble_connect(), host_ble_discover(), host_ble_read_char(), host_ble_register_service(), host_ble_subscribe(), host_ble_unregister_service(), host_event_subscribe(), host_http_open(), host_lockscreen_alert(), host_lockscreen_register_action(), host_lockscreen_unregister_action(), host_msg_register_handler(), host_msg_unregister_handler(), host_set_sleep_inhibit(), host_socket_open(), and periph_send().
| void plg_log_error | ( | const char * | msg | ) |
Definition at line 21 of file plugin_log_bridge.cpp.
Referenced by cdc::plugin_manager::Plugin::callI(), cdc::plugin_manager::Plugin::load(), and cdc::plugin_manager::register_host_imports().
| void plg_log_info | ( | const char * | msg | ) |
Definition at line 19 of file plugin_log_bridge.cpp.
Referenced by cdc::plugin_manager::register_host_imports().
| void plg_log_warn | ( | const char * | msg | ) |
Definition at line 20 of file plugin_log_bridge.cpp.
Referenced by cdc::plugin_manager::Plugin::callI(), host_event_subscribe(), and cdc::plugin_manager::Plugin::loadLangOverlay().
| void plg_set_active_plugin | ( | void * | p | ) |
Definition at line 23 of file plugin_log_bridge.cpp.
References s_active_plugin.
Referenced by cdc::plugin_manager::Plugin::callI().
|
static |
Definition at line 17 of file plugin_log_bridge.cpp.
Referenced by plg_get_active_plugin(), and plg_set_active_plugin().
|
static |
Definition at line 16 of file plugin_log_bridge.cpp.