various bug fixes

This commit is contained in:
2026-09-11 19:10:31 +02:00
parent e8b6ee2dcc
commit 029ceee69a
23 changed files with 2861 additions and 991 deletions

View File

@@ -45,12 +45,32 @@ esp_err_t storage_write_text(const char *path, const char *text);
*/
esp_err_t storage_manager_bind_uid(const char *uid, const char *card_name);
/**
* @brief Remove a UID mapping and its cached card JSON/JPG files.
*/
esp_err_t storage_manager_unbind_uid(const char *uid);
/**
* @brief Lookup a card name for a UID in mappings.json. Caller frees *out.
* @return ESP_OK and non-NULL *out on success; ESP_ERR_NOT_FOUND otherwise.
*/
esp_err_t storage_manager_lookup_name(const char *uid, char **out);
/**
* @brief Get partition usage information.
*/
esp_err_t storage_manager_get_info(size_t *total_bytes, size_t *used_bytes);
/**
* @brief Count number of cached cards (.json and .jpg) in /spiffs/cards.
*/
esp_err_t storage_manager_count_cached(int *json_count, int *jpg_count);
/**
* @brief Wipe all cached cards and optionally reset mappings.json for a new deck.
*/
esp_err_t storage_manager_clear_all_cards(bool reset_mappings);
#ifdef __cplusplus
}
#endif