VLC 4.0.0-dev
update.c File Reference

This file contains functions related to VLC update management. More...

Include dependency graph for update.c:

Macros

#define UPDATE_OS_SUFFIX   ""
 
#define UPDATE_VLC_STATUS_URL   "http://update-test.videolan.org/vlc/status-win-x86"
 
#define dialog_FatalWait(p_obj, psz_title, psz_fmt, ...)
 

Functions

update_tupdate_New (vlc_object_t *p_this)
 Create a new update VLC struct. More...
 
void update_Delete (update_t *p_update)
 Delete an update_t struct. More...
 
static void EmptyRelease (update_t *p_update)
 Empty the release struct. More...
 
static bool GetUpdateFile (update_t *p_update)
 Get the update file and parse it p_update has to be locked when calling this function. More...
 
static void * update_CheckReal (void *)
 
void update_Check (update_t *p_update, void(*pf_callback)(void *, bool), void *p_data)
 Check for updates. More...
 
bool update_NeedUpgrade (update_t *p_update)
 
static char * size_str (uint64_t l_size)
 Convert a long int size in bytes to a string. More...
 
static void * update_DownloadReal (void *)
 
void update_Download (update_t *p_update, const char *psz_destdir)
 Download the file given in the update_t. More...
 
update_release_tupdate_GetRelease (update_t *p_update)
 

Detailed Description

This file contains functions related to VLC update management.

Macro Definition Documentation

◆ dialog_FatalWait

#define dialog_FatalWait (   p_obj,
  psz_title,
  psz_fmt,
  ... 
)
Value:
NULL, psz_title, psz_fmt, ##__VA_ARGS__ );
#define vlc_dialog_wait_question(a, b, c, d, e, f, g,...)
Definition: vlc_dialog.h:150
@ VLC_DIALOG_QUESTION_CRITICAL
Definition: vlc_dialog.h:57

◆ UPDATE_OS_SUFFIX

#define UPDATE_OS_SUFFIX   ""

◆ UPDATE_VLC_STATUS_URL

#define UPDATE_VLC_STATUS_URL   "http://update-test.videolan.org/vlc/status-win-x86"

Function Documentation

◆ EmptyRelease()

static void EmptyRelease ( update_t p_update)
static

Empty the release struct.

Parameters
p_updateupdate_t* pointer
Returns
nothing

References FREENULL, update_release_t::i_major, update_release_t::i_minor, update_release_t::i_revision, update_release_t::psz_desc, update_release_t::psz_url, and update_t::release.

Referenced by update_CheckReal().

◆ GetUpdateFile()

◆ size_str()

static char * size_str ( uint64_t  l_size)
static

Convert a long int size in bytes to a string.

Parameters
l_sizethe size in bytes
Returns
the size as a string

References _, and asprintf().

Referenced by update_DownloadReal().

◆ update_CheckReal()

◆ update_DownloadReal()