ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
update_checker.h File Reference

🔄 Update checker for GitHub releases with DNS connectivity test and cache More...

Go to the source code of this file.

Data Structures

struct  update_check_result_t
 Update check result data. More...
 

Enumerations

enum  install_method_t { INSTALL_METHOD_HOMEBREW , INSTALL_METHOD_ARCH_AUR , INSTALL_METHOD_GITHUB , INSTALL_METHOD_UNKNOWN }
 Installation method for suggesting upgrade command. More...
 

Functions

asciichat_error_t update_check_perform (update_check_result_t *result)
 Check for updates from GitHub releases API.
 
asciichat_error_t update_check_load_cache (update_check_result_t *result)
 Load cached update check result.
 
asciichat_error_t update_check_save_cache (const update_check_result_t *result)
 Save update check result to cache.
 
bool update_check_is_cache_fresh (const update_check_result_t *result)
 Check if cache is fresh (< 7 days old)
 
install_method_t update_check_detect_install_method (void)
 Detect installation method.
 
void update_check_get_upgrade_suggestion (install_method_t method, const char *latest_version, char *buffer, size_t buffer_size)
 Get upgrade suggestion string.
 
void update_check_format_notification (const update_check_result_t *result, char *buffer, size_t buffer_size)
 Format update notification message.
 
asciichat_error_t update_check_startup (update_check_result_t *result)
 Perform startup update check with caching.
 

Detailed Description

🔄 Update checker for GitHub releases with DNS connectivity test and cache

Definition in file update_checker.h.