Oboe  1.0
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 
31 // Type: 8-bit unsigned int. Min value: 0 Max value: 255. See below for description.
32 #define OBOE_VERSION_MAJOR 0
33 
34 // Type: 8-bit unsigned int. Min value: 0 Max value: 255. See below for description.
35 #define OBOE_VERSION_MINOR 12
36 
37 // Type: 16-bit unsigned int. Min value: 0 Max value: 65535. See below for description.
38 #define OBOE_VERSION_PATCH 0
39 
40 #define OBOE_STRINGIFY(x) #x
41 #define OBOE_TOSTRING(x) OBOE_STRINGIFY(x)
42 
43 // Type: String literal. See below for description.
44 #define OBOE_VERSION_TEXT \
45  OBOE_TOSTRING(OBOE_VERSION_MAJOR) "." \
46  OBOE_TOSTRING(OBOE_VERSION_MINOR) "." \
47  OBOE_TOSTRING(OBOE_VERSION_PATCH)
48 
49 // Type: 32-bit unsigned int. See below for description.
50 #define OBOE_VERSION_NUMBER ((OBOE_VERSION_MAJOR << 24) | (OBOE_VERSION_MINOR << 16) | OBOE_VERSION_PATCH)
51 
52 namespace oboe {
53 
57 struct Version {
61  static constexpr uint8_t Major = OBOE_VERSION_MAJOR;
62 
67  static constexpr uint8_t Minor = OBOE_VERSION_MINOR;
68 
73  static constexpr uint16_t Patch = OBOE_VERSION_PATCH;
74 
78  static constexpr const char * Text = OBOE_VERSION_TEXT;
79 
84  static constexpr uint32_t Number = OBOE_VERSION_NUMBER;
85 };
86 
87 } // namespace oboe
88 #endif //OBOE_VERSIONINFO_H
Definition: Version.h:57
static constexpr uint8_t Minor
Definition: Version.h:67
static constexpr uint8_t Major
Definition: Version.h:61
static constexpr uint32_t Number
Definition: Version.h:84
static constexpr const char * Text
Definition: Version.h:78
Definition: AudioStream.h:29
static constexpr uint16_t Patch
Definition: Version.h:73