Oboe 1.2 A library for creating real-time audio apps on Android

Version.h
1 /*
2 * Copyright 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef OBOE_VERSIONINFO_H
18 #define OBOE_VERSIONINFO_H
19
20 #include <cstdint>
21
33 // Type: 8-bit unsigned int. Min value: 0 Max value: 255. See below for description.
34 #define OBOE_VERSION_MAJOR 1
35
36 // Type: 8-bit unsigned int. Min value: 0 Max value: 255. See below for description.
37 #define OBOE_VERSION_MINOR 2
38
39 // Type: 16-bit unsigned int. Min value: 0 Max value: 65535. See below for description.
40 #define OBOE_VERSION_PATCH 4
41
42 #define OBOE_STRINGIFY(x) #x
43 #define OBOE_TOSTRING(x) OBOE_STRINGIFY(x)
44
45 // Type: String literal. See below for description.
46 #define OBOE_VERSION_TEXT \
47 OBOE_TOSTRING(OBOE_VERSION_MAJOR) "." \
48 OBOE_TOSTRING(OBOE_VERSION_MINOR) "." \
49 OBOE_TOSTRING(OBOE_VERSION_PATCH)
50
51 // Type: 32-bit unsigned int. See below for description.
52 #define OBOE_VERSION_NUMBER ((OBOE_VERSION_MAJOR << 24) | (OBOE_VERSION_MINOR << 16) | OBOE_VERSION_PATCH)
53
54 namespace oboe {
55
56 const char * getVersionText();
57
61 struct Version {
65 static constexpr uint8_t Major = OBOE_VERSION_MAJOR;
66
71 static constexpr uint8_t Minor = OBOE_VERSION_MINOR;
72
77 static constexpr uint16_t Patch = OBOE_VERSION_PATCH;
78
82 static constexpr const char * Text = OBOE_VERSION_TEXT;
83
88 static constexpr uint32_t Number = OBOE_VERSION_NUMBER;
89 };
90
91 } // namespace oboe
92 #endif //OBOE_VERSIONINFO_H
oboe::Version
Definition: Version.h:61
oboe::Version::Minor
static constexpr uint8_t Minor
Definition: Version.h:71
oboe::Version::Major
static constexpr uint8_t Major
Definition: Version.h:65
oboe::Version::Number
static constexpr uint32_t Number
Definition: Version.h:88
oboe::Version::Text
static constexpr const char * Text
Definition: Version.h:82
oboe
Definition: AudioStream.h:31
oboe::Version::Patch
static constexpr uint16_t Patch
Definition: Version.h:77