CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
BackupImport.h File Reference
#include "cdc_core/IModule.h"
#include "cJSON.h"

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::ui
 Centralized key-code constants for cdc_views.

Typedefs

using cdc::ui::BackupEntryHandler = bool (*)(const cJSON* entry, void* user)
 Per-entry restore callback for importJsonArray().

Functions

cdc::core::IModule::BackupResult cdc::ui::importJsonArray (const cJSON *array, BackupEntryHandler handler, void *user)
 Iterates a JSON backup array best-effort and tallies the outcome.