37 if (!array || !handler || !cJSON_IsArray(array))
return result;
39 const cJSON* entry =
nullptr;
40 cJSON_ArrayForEach(entry, array) {
41 if (handler(entry, user)) {
Centralized key-code constants for cdc_views.
cdc::core::IModule::BackupResult importJsonArray(const cJSON *array, BackupEntryHandler handler, void *user)
Iterates a JSON backup array best-effort and tallies the outcome.
bool(*)(const cJSON *entry, void *user) BackupEntryHandler
Per-entry restore callback for importJsonArray().
Per-module restore outcome reported by importBackup().
uint16_t failed
Records skipped due to errors.
uint16_t imported
Records restored successfully.