# Oboe: include/oboe/Version.h Source File

Version.h
/*
* Copyright 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OBOE_VERSIONINFO_H
#define OBOE_VERSIONINFO_H
#include <cstdint>
// Type: 8-bit unsigned int. Min value: 0 Max value: 255. See below for description.
#define OBOE_VERSION_MAJOR 1
// Type: 8-bit unsigned int. Min value: 0 Max value: 255. See below for description.
#define OBOE_VERSION_MINOR 5
// Type: 16-bit unsigned int. Min value: 0 Max value: 65535. See below for description.
#define OBOE_VERSION_PATCH 0
#define OBOE_STRINGIFY(x) #x
#define OBOE_TOSTRING(x) OBOE_STRINGIFY(x)
// Type: String literal. See below for description.
#define OBOE_VERSION_TEXT \
OBOE_TOSTRING(OBOE_VERSION_MAJOR) "." \
OBOE_TOSTRING(OBOE_VERSION_MINOR) "." \
OBOE_TOSTRING(OBOE_VERSION_PATCH)
// Type: 32-bit unsigned int. See below for description.
#define OBOE_VERSION_NUMBER ((OBOE_VERSION_MAJOR << 24) | (OBOE_VERSION_MINOR << 16) | OBOE_VERSION_PATCH)
namespace oboe {
const char * getVersionText();
struct Version {
static constexpr uint8_t Major = OBOE_VERSION_MAJOR;
static constexpr uint8_t Minor = OBOE_VERSION_MINOR;
static constexpr uint16_t Patch = OBOE_VERSION_PATCH;
static constexpr const char * Text = OBOE_VERSION_TEXT;
static constexpr uint32_t Number = OBOE_VERSION_NUMBER;
};
} // namespace oboe
#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