various bug fixes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user