VLC 4.0.0-dev
|
This file contains functions related to VLC update management. More...
Macros | |
#define | UPDATE_VLC_STATUS_URL "http://update-test.videolan.org/vlc/status" |
#define | dialog_FatalWait(p_obj, psz_title, psz_fmt, ...) |
Functions | |
update_t * | update_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_t * | update_GetRelease (update_t *p_update) |
This file contains functions related to VLC update management.
#define dialog_FatalWait | ( | p_obj, | |
psz_title, | |||
psz_fmt, | |||
... | |||
) |
#define UPDATE_VLC_STATUS_URL "http://update-test.videolan.org/vlc/status" |
|
static |
Empty the release struct.
p_update | update_t* pointer |
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().
|
static |
Get the update file and parse it p_update has to be locked when calling this function.
p_update | pointer to update struct |
References BINARY_SIGNATURE, download_key(), download_signature(), FREENULL, hash_from_public_key(), hash_from_text(), signature_packet_t::hash_verification, update_release_t::i_extra, update_release_t::i_major, update_release_t::i_minor, update_release_t::i_revision, signature_packet_t::issuer_longid, public_key_t::key, public_key_t::longid, msg_Dbg, msg_Err, msg_Info, msg_Warn, update_t::p_libvlc, update_t::p_pkey, parse_public_key(), update_release_t::psz_desc, update_release_t::psz_url, update_t::release, public_key_t::sig, TEXT_SIGNATURE, signature_packet_t::type, UPDATE_VLC_STATUS_URL, verify_signature(), videolan_public_key, videolan_public_key_longid, VLC_OBJECT, vlc_stream_Delete(), vlc_stream_GetSize(), vlc_stream_NewURL, vlc_stream_Read(), and VLC_SUCCESS.
Referenced by update_CheckReal().
|
static |
Convert a long int size in bytes to a string.
l_size | the size in bytes |
References _, and asprintf().
Referenced by update_DownloadReal().
|
static |
|
static |
References _, update_download_thread_t::aborted, asprintf(), BINARY_SIGNATURE, dialog_FatalWait, download_signature(), hash_from_file(), signature_packet_t::hash_verification, signature_packet_t::issuer_longid, public_key_t::key, libvlc_Quit(), public_key_t::longid, msg_Dbg, msg_Err, msg_Info, update_t::p_pkey, update_download_thread_t::p_update, update_download_thread_t::psz_destdir, update_release_t::psz_url, update_t::release, size_str(), signature_packet_t::type, unlikely, verify_signature(), vlc_dialog_display_progress, vlc_dialog_is_cancelled, VLC_DIALOG_QUESTION_NORMAL, vlc_dialog_release, vlc_dialog_update_progress_text, vlc_dialog_wait_question, vlc_fopen(), VLC_OBJECT, vlc_object_instance, vlc_restorecancel(), vlc_savecancel(), vlc_stream_Delete(), vlc_stream_GetSize(), vlc_stream_NewURL, vlc_stream_Read(), VLC_SUCCESS, vlc_thread_set_name(), and vlc_unlink().
Referenced by update_Download().