CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::plugin_manager::PluginManifest Struct Reference

#include <PluginManifest.h>

Static Public Member Functions

static bool parse (const char *json, size_t len, PluginManifest &out)
 Parse meta.json content. Returns false on schema errors.

Public Attributes

std::string id
std::string version
std::string author
std::string icon
std::string host_api_level_min
uint16_t api_level_major = 0
uint16_t api_level_minor = 0
uint32_t linear_memory_kb = 64
std::string default_language
std::map< std::string, LocalizedStringi18n_meta
std::map< std::string, LocalizedStringi18n_strings
PluginCapabilities capabilities
std::vector< PrerequisiteSpecprerequisites

Detailed Description

Definition at line 70 of file PluginManifest.h.

Member Function Documentation

◆ parse()

Member Data Documentation

◆ api_level_major

uint16_t cdc::plugin_manager::PluginManifest::api_level_major = 0

Definition at line 76 of file PluginManifest.h.

Referenced by parse(), and cdc::plugin_manager::CapabilityChecker::validate().

◆ api_level_minor

uint16_t cdc::plugin_manager::PluginManifest::api_level_minor = 0

Definition at line 77 of file PluginManifest.h.

Referenced by parse(), and cdc::plugin_manager::CapabilityChecker::validate().

◆ author

std::string cdc::plugin_manager::PluginManifest::author

Definition at line 73 of file PluginManifest.h.

Referenced by parse().

◆ capabilities

PluginCapabilities cdc::plugin_manager::PluginManifest::capabilities

Definition at line 82 of file PluginManifest.h.

Referenced by parse(), and cdc::plugin_manager::CapabilityChecker::validate().

◆ default_language

std::string cdc::plugin_manager::PluginManifest::default_language

Definition at line 79 of file PluginManifest.h.

Referenced by parse().

◆ host_api_level_min

std::string cdc::plugin_manager::PluginManifest::host_api_level_min

Definition at line 75 of file PluginManifest.h.

Referenced by parse(), and cdc::plugin_manager::CapabilityChecker::validate().

◆ i18n_meta

std::map<std::string, LocalizedString> cdc::plugin_manager::PluginManifest::i18n_meta

Definition at line 80 of file PluginManifest.h.

Referenced by parse().

◆ i18n_strings

std::map<std::string, LocalizedString> cdc::plugin_manager::PluginManifest::i18n_strings

◆ icon

std::string cdc::plugin_manager::PluginManifest::icon

Definition at line 74 of file PluginManifest.h.

Referenced by parse().

◆ id

std::string cdc::plugin_manager::PluginManifest::id

Definition at line 71 of file PluginManifest.h.

Referenced by parse().

◆ linear_memory_kb

uint32_t cdc::plugin_manager::PluginManifest::linear_memory_kb = 64

Definition at line 78 of file PluginManifest.h.

Referenced by parse(), and cdc::plugin_manager::CapabilityChecker::validate().

◆ prerequisites

std::vector<PrerequisiteSpec> cdc::plugin_manager::PluginManifest::prerequisites

Definition at line 83 of file PluginManifest.h.

Referenced by parse(), and cdc::plugin_manager::Prerequisites::walk().

◆ version

std::string cdc::plugin_manager::PluginManifest::version

Definition at line 72 of file PluginManifest.h.

Referenced by parse().


The documentation for this struct was generated from the following files: