UniMRCP  1.7.0
Macros
uni_version.h File Reference

UniMRCP Version. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNI_MAJOR_VERSION   1
 
#define UNI_MINOR_VERSION   7
 
#define UNI_PATCH_VERSION   0
 
#define UNI_VERSION_AT_LEAST(major, minor, patch)
 
#define UNI_STRINGIFY(n)   UNI_STRINGIFY_HELPER(n)
 
#define UNI_STRINGIFY_HELPER(n)   #n
 
#define UNI_VERSION_STRING
 
#define UNI_VERSION_STRING_CSV
 
#define UNI_COPYRIGHT   "Copyright 2008-2020 Arsen Chaloyan"
 
#define UNI_LICENSE
 

Detailed Description

UniMRCP Version.

UniMRCP uses a version numbering scheme derived from the APR project.

APR's Version Numbering

Macro Definition Documentation

◆ UNI_COPYRIGHT

#define UNI_COPYRIGHT   "Copyright 2008-2020 Arsen Chaloyan"

The Copyright.

◆ UNI_LICENSE

#define UNI_LICENSE
Value:
" * Licensed under the Apache License, Version 2.0 (the ""License"");\n" \
" * you may not use this file except in compliance with the License.\n" \
" * You may obtain a copy of the License at\n" \
" * \n" \
" * http://www.apache.org/licenses/LICENSE-2.0 \n" \
" * \n" \
" * Unless required by applicable law or agreed to in writing, software\n" \
" * distributed under the License is distributed on an ""AS IS"" BASIS,\n" \
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" \
" * See the License for the specific language governing permissions and\n" \
" * limitations under the License.\n"

The License (full description).

◆ UNI_MAJOR_VERSION

#define UNI_MAJOR_VERSION   1

major version Major API changes that could cause compatibility problems for older programs such as structure size changes. No binary compatibility is possible across a change in the major version.

◆ UNI_MINOR_VERSION

#define UNI_MINOR_VERSION   7

minor version Minor API changes that do not cause binary compatibility problems. Reset to 0 when upgrading UNI_MAJOR_VERSION.

◆ UNI_PATCH_VERSION

#define UNI_PATCH_VERSION   0

patch level The Patch Level never includes API changes, simply bug fixes. Reset to 0 when upgrading UNI_MINOR_VERSION.

◆ UNI_STRINGIFY

#define UNI_STRINGIFY (   n)    UNI_STRINGIFY_HELPER(n)

Properly quote a value as a string in the C preprocessor.

◆ UNI_STRINGIFY_HELPER

#define UNI_STRINGIFY_HELPER (   n)    #n

Helper macro for UNI_STRINGIFY.

◆ UNI_VERSION_AT_LEAST

#define UNI_VERSION_AT_LEAST (   major,
  minor,
  patch 
)
Value:
(((major) < UNI_MAJOR_VERSION) \
|| ((major) == UNI_MAJOR_VERSION && (minor) < UNI_MINOR_VERSION) \
|| ((major) == UNI_MAJOR_VERSION && (minor) == UNI_MINOR_VERSION && (patch) <= UNI_PATCH_VERSION))
#define UNI_MAJOR_VERSION
Definition: uni_version.h:34
#define UNI_PATCH_VERSION
Definition: uni_version.h:46
#define UNI_MINOR_VERSION
Definition: uni_version.h:40

Check at compile time if the version of UniMRCP is at least a certain level.

◆ UNI_VERSION_STRING

#define UNI_VERSION_STRING
Value:
UNI_STRINGIFY(UNI_MINOR_VERSION) "." \
UNI_STRINGIFY(UNI_PATCH_VERSION)
#define UNI_MAJOR_VERSION
Definition: uni_version.h:34
#define UNI_STRINGIFY(n)
Definition: uni_version.h:56
#define UNI_PATCH_VERSION
Definition: uni_version.h:46
#define UNI_MINOR_VERSION
Definition: uni_version.h:40

The formatted string of UniMRCP's version.

◆ UNI_VERSION_STRING_CSV

#define UNI_VERSION_STRING_CSV
Value:
##UNI_MINOR_VERSION ##, \
##UNI_PATCH_VERSION
#define UNI_MAJOR_VERSION
Definition: uni_version.h:34

An alternative formatted string of UniMRCP's version macro for Win32 .rc files using numeric CSV representation.