VLC 4.0.0-dev
Loading...
Searching...
No Matches
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 */
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
52#define update_New( a ) update_New( VLC_OBJECT( a ) )
54VLC_API void update_Check( update_t *, void (*callback)( void*, bool ), void * );
56VLC_API void update_Download( update_t *, const char* );
58
59/**
60 * @}
61 */
62
63#endif /* _VLC_UPDATE_H */
#define VLC_API
Definition fourcc_gen.c:31
void update_Check(update_t *, void(*callback)(void *, bool), void *)
Check for updates.
Definition update.c:397
#define update_New(a)
Definition vlc_update.h:53
void update_Delete(update_t *)
Delete an update_t struct.
Definition update.c:126
update_release_t * update_GetRelease(update_t *)
Definition update.c:764
void update_Download(update_t *, const char *)
Download the file given in the update_t.
Definition update.c:506
bool update_NeedUpgrade(update_t *)
Definition update.c:441
Describes an update VLC release number.
Definition vlc_update.h:41
int i_minor
Version minor.
Definition vlc_update.h:43
int i_extra
Version extra.
Definition vlc_update.h:45
char * psz_desc
Release description.
Definition vlc_update.h:47
int i_major
Version major.
Definition vlc_update.h:42
int i_revision
Version revision.
Definition vlc_update.h:44
char * psz_url
Download URL.
Definition vlc_update.h:46
The update object.
Definition update.h:159
VLC object common members.
Definition vlc_objects.h:53
This file is a collection of common definitions and types.