This commit is contained in:
2026-09-12 03:40:10 +02:00
parent 029ceee69a
commit 8ac465229c
20 changed files with 220 additions and 422 deletions

View File

@@ -31,18 +31,17 @@ esp_err_t scryfall_client_start(void);
esp_err_t scryfall_fetch_request(const char *card_name, const char *uid);
/**
* @brief Synchronously ensure the card cache exists for uid; fetch if missing.
* Safe to call from net_task only.
*/
esp_err_t scryfall_ensure_cached(const char *card_name, const char *uid);
/**
* @brief True if net_task finished caching a card since last consumption.
* @brief True if net_task finished a fetch attempt since last consumption.
*/
bool scryfall_has_pending_result(void);
/**
* @brief UID of the most recently cached card.
* @brief True if the last fetch succeeded, false if it failed.
*/
bool scryfall_last_result_success(void);
/**
* @brief UID of the most recently fetched card.
*/
const char *scryfall_last_result_uid(void);