VLC 4.0.0-dev
Loading...
Searching...
No Matches
libvlc_version.h
Go to the documentation of this file.
1/*****************************************************************************
2 * libvlc_version.h
3 *****************************************************************************
4 * Copyright (C) 2010 RĂ©mi Denis-Courmont
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20
21/**
22 * \file
23 * This file defines version macros for LibVLC.
24 * Those macros are primilarly intended for conditional (pre)compilation.
25 * To get the run-time LibVLC version, use libvlc_get_version() instead
26 * (the run-time version may be more recent than build-time one, thanks to
27 * backward binary compatibility).
28 *
29 * \version This header file is available in LibVLC 1.1.4 and higher.
30 */
31
32#ifndef LIBVLC_VERSION_H
33# define LIBVLC_VERSION_H 1
34
35/** LibVLC major version number */
36# define LIBVLC_VERSION_MAJOR (4)
37
38/** LibVLC minor version number */
39# define LIBVLC_VERSION_MINOR (0)
40
41/** LibVLC revision */
42# define LIBVLC_VERSION_REVISION (0)
43
44# define LIBVLC_VERSION_EXTRA (0)
45
46/** Makes a single integer from a LibVLC version numbers */
47# define LIBVLC_VERSION(maj,min,rev,extra) \
48 ((maj << 24) | (min << 16) | (rev << 8) | (extra))
49
50/** LibVLC full version as a single integer (for comparison) */
51# define LIBVLC_VERSION_INT \
52 LIBVLC_VERSION(LIBVLC_VERSION_MAJOR, LIBVLC_VERSION_MINOR, \
53 LIBVLC_VERSION_REVISION, LIBVLC_VERSION_EXTRA)
54
55
56/** LibVLC ABI major version number, updated when incompatible changes are added */
57# define LIBVLC_ABI_VERSION_MAJOR (12)
58
59/** LibVLC ABI minor version number, updated when compatible changes are added */
60# define LIBVLC_ABI_VERSION_MINOR (0)
61
62/** LibVLC ABI micro version number, updated with new releases */
63# define LIBVLC_ABI_VERSION_MICRO (0)
64
65/** LibVLC full ABI version combining the major VLC version and the .so version:
66 * - A 0xFF000000 mask gives the VLC major version,
67 * - A 0x00FF0000 mask gives the LibVLC major ABI version,
68 * - A 0x0000FF00 mask gives the LibVLC minor ABI version,
69 * - A 0x000000FF mask gives the LibVLC ABI revision.
70 *
71 * LibVLC is considered compatible with your code if the VLC major and LibVLC
72 * major values are equal and the minor ABI version is equal or higher than the
73 * value you compiled with.
74 */
75# define LIBVLC_ABI_VERSION_INT \
76 LIBVLC_VERSION(LIBVLC_VERSION_MAJOR, LIBVLC_ABI_VERSION_MAJOR, \
77 LIBVLC_ABI_VERSION_MINOR, LIBVLC_ABI_VERSION_MICRO )
78
79#endif