ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
update_check_result_t Struct Reference

update check result keeps the values that move through the subsystem: update_available, last_check_time, dismissed_until, check_succeeded. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself. More...

#include <include/ascii-chat/network/update_checker.h>

Data Fields

bool update_available
 True if newer version exists.
char latest_version [64]
 Latest version tag (e.g., "v0.9.0").
char latest_sha [41]
 Latest release commit SHA (full 40 chars + null).
char current_version [64]
 Current version string.
char current_sha [41]
 Current commit SHA.
char release_url [512]
 GitHub release page URL.
time_t last_check_time
 Timestamp of last check.
time_t dismissed_until
 Suppress this available release until this time.
bool check_succeeded
 True if check completed (even if no update).

Detailed Description

update check result keeps the values that move through the subsystem: update_available, last_check_time, dismissed_until, check_succeeded. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself.

Update check result data

Definition at line 38 of file update_checker.h.

Field Documentation

◆ check_succeeded

bool update_check_result_t::check_succeeded

True if check completed (even if no update).

Definition at line 47 of file update_checker.h.

Referenced by update_banner_set_result(), update_check_load_cache(), and update_check_perform().

◆ current_sha

char update_check_result_t::current_sha[41]

Current commit SHA.

Definition at line 43 of file update_checker.h.

Referenced by action_check_update_immediate(), update_check_load_cache(), and update_check_perform().

◆ current_version

char update_check_result_t::current_version[64]

◆ dismissed_until

time_t update_check_result_t::dismissed_until

Suppress this available release until this time.

Definition at line 46 of file update_checker.h.

Referenced by update_check_dismiss_for_a_week(), update_check_is_dismissed(), update_check_load_cache(), update_check_perform(), and update_check_save_cache().

◆ last_check_time

time_t update_check_result_t::last_check_time

◆ latest_sha

char update_check_result_t::latest_sha[41]

Latest release commit SHA (full 40 chars + null).

Definition at line 41 of file update_checker.h.

Referenced by update_check_load_cache(), update_check_perform(), and update_check_save_cache().

◆ latest_version

char update_check_result_t::latest_version[64]

◆ release_url

char update_check_result_t::release_url[512]

◆ update_available

bool update_check_result_t::update_available

The documentation for this struct was generated from the following file: