]> git.sesse.net Git - vlc/blobdiff - src/misc/update.h
Move last.fm password from PasswordShowOnEdit to Password.
[vlc] / src / misc / update.h
index ba3740272acc5fd857d434aa7d5ec0ab3a11c4ea..c092cf5e54e81a25b7088f2a0870d82c5d9d37f9 100644 (file)
@@ -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;
 };