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