VLC  4.0.0-dev
vlc_update.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_update.h: VLC update download
3  *****************************************************************************
4  * Copyright © 2005-2007 VLC authors and VideoLAN
5  *
6  * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
7  * Rafaël Carré <funman@videolanorg>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either release 2 of the License, or
12  * (at your option) any later release.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #ifndef VLC_UPDATE_H
25 #define VLC_UPDATE_H
26 
27 /**
28  * \defgroup update Software updates
29  * \ingroup interface
30  * Over-the-air VLC software updates
31  * @{
32  * \file
33  *VLC software update interface
34  */
35 
36 /**
37  * Describes an update VLC release number
38  */
39 struct update_release_t
40 {
41  int i_major; ///< Version major
42  int i_minor; ///< Version minor
43  int i_revision; ///< Version revision
44  int i_extra; ///< Version extra
45  char* psz_url; ///< Download URL
46  char* psz_desc; ///< Release description
47 };
48 
49 typedef struct update_release_t update_release_t;
50 
52 #define update_New( a ) update_New( VLC_OBJECT( a ) )
54 VLC_API void update_Check( update_t *, void (*callback)( void*, bool ), void * );
56 VLC_API void update_Download( update_t *, const char* );
58 
59 /**
60  * @}
61  */
62 
63 #endif /* _VLC_UPDATE_H */
int i_minor
Version minor.
Definition: vlc_update.h:43
int i_extra
Version extra.
Definition: vlc_update.h:45
Describes an update VLC release number.
Definition: vlc_update.h:40
int i_revision
Version revision.
Definition: vlc_update.h:44
#define update_New(a)
Definition: vlc_update.h:53
char * psz_desc
Release description.
Definition: vlc_update.h:47
The update object.
Definition: update.h:158
int i_major
Version major.
Definition: vlc_update.h:42
char * psz_url
Download URL.
Definition: vlc_update.h:46
void update_Download(update_t *, const char *)
Download the file given in the update_t.
Definition: update.c:499
#define VLC_API
Definition: fourcc_gen.c:31
void update_Delete(update_t *)
Delete an update_t struct.
Definition: update.c:133
bool update_NeedUpgrade(update_t *)
Definition: update.c:433
VLC object common members.
Definition: vlc_objects.h:43
void update_Check(update_t *, void(*callback)(void *, bool), void *)
Check for updates.
Definition: update.c:391
update_release_t * update_GetRelease(update_t *)
Definition: update.c:751