VLC 4.0.0-dev
Loading...
Searching...
No Matches
update.c File Reference

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

Include dependency graph for update.c:

Macros

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

Functions

update_tupdate_New (vlc_object_t *p_this)
 Create a new update VLC struct.
 
void update_Delete (update_t *p_update)
 Delete an update_t struct.
 
static void EmptyRelease (update_t *p_update)
 Empty the release struct.
 
static bool GetUpdateFile (update_t *p_update)
 Get the update file and parse it p_update has to be locked when calling this function.
 
static void * update_CheckReal (void *)
 
void update_Check (update_t *p_update, void(*pf_callback)(void *, bool), void *p_data)
 Check for updates.
 
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.
 
static void * update_DownloadReal (void *)
 
void update_Download (update_t *p_update, const char *psz_destdir)
 Download the file given in the update_t.
 
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_VLC_STATUS_URL

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

Function Documentation

◆ EmptyRelease()

static void EmptyRelease ( update_t p_update)
static

◆ 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()