Debian Codegraph @

srtcore/version.h.in

raw
1 /*
2 * SRT - Secure, Reliable, Transport
3 * Copyright (c) 2018 Haivision Systems Inc.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 */
10
11 /*****************************************************************************
12 written by
13 Haivision Systems Inc.
14 *****************************************************************************/
15
16 #ifndef INC_SRT_VERSION_H
17 #define INC_SRT_VERSION_H
18
19 // To construct version value
20 #define SRT_MAKE_VERSION(major, minor, patch) \
21 ((patch) + ((minor)*0x100) + ((major)*0x10000))
22 #define SRT_MAKE_VERSION_VALUE SRT_MAKE_VERSION
23
24 #define SRT_VERSION_MAJOR @SRT_VERSION_MAJOR@
25 #define SRT_VERSION_MINOR @SRT_VERSION_MINOR@
26 #define SRT_VERSION_PATCH @SRT_VERSION_PATCH@
27 #cmakedefine SRT_VERSION_BUILD @CI_BUILD_NUMBER_STRING@
28
29 #define SRT_VERSION_STRING "@SRT_VERSION@"
30 #define SRT_VERSION_VALUE \
31 SRT_MAKE_VERSION_VALUE( \
32 SRT_VERSION_MAJOR, SRT_VERSION_MINOR, SRT_VERSION_PATCH )
33
34 #endif // INC_SRT_VERSION_H