X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fupdate.h;h=c092cf5e54e81a25b7088f2a0870d82c5d9d37f9;hb=fa9803042fcf9161cef764a77d707f0b4bba2d58;hp=ba3740272acc5fd857d434aa7d5ec0ab3a11c4ea;hpb=85f5092ee68d13fd4056848d5a2124e753fc69f5;p=vlc diff --git a/src/misc/update.h b/src/misc/update.h index ba3740272a..c092cf5e54 100644 --- a/src/misc/update.h +++ b/src/misc/update.h @@ -115,7 +115,7 @@ struct signature_packet_t } specific; /* The part below is made of consecutive MPIs, their number and size being - * public-key-algorithm dependant. + * public-key-algorithm dependent. * * Since we use DSA signatures only, there is 2 integers, r & s, made of: * 2 bytes for the integer length (scalar number) @@ -142,6 +142,26 @@ struct public_key_t typedef struct public_key_t public_key_t; +/** + * Non blocking binary download + */ +typedef struct +{ + VLC_COMMON_MEMBERS + update_t *p_update; + char *psz_destdir; +} update_download_thread_t; + +/** + * Non blocking update availability verification + */ +typedef struct +{ + VLC_COMMON_MEMBERS + update_t *p_update; + void (*pf_callback)( void *, bool ); + void *p_data; +} update_check_thread_t; /** * The update object. Stores (and caches) all information relative to updates */ @@ -151,5 +171,7 @@ struct update_t vlc_mutex_t lock; struct update_release_t release; ///< Release (version) public_key_t *p_pkey; + update_download_thread_t *p_download; + update_check_thread_t *p_check; };