1 /* version.h
2 **
3 ** Copyright 2011, The Android Open Source Project
4 **
5 ** Redistribution and use in source and binary forms, with or without
6 ** modification, are permitted provided that the following conditions are met:
7 **     * Redistributions of source code must retain the above copyright
8 **       notice, this list of conditions and the following disclaimer.
9 **     * Redistributions in binary form must reproduce the above copyright
10 **       notice, this list of conditions and the following disclaimer in the
11 **       documentation and/or other materials provided with the distribution.
12 **     * Neither the name of The Android Open Source Project nor the names of
13 **       its contributors may be used to endorse or promote products derived
14 **       from this software without specific prior written permission.
15 **
16 ** THIS SOFTWARE IS PROVIDED BY The Android Open Source Project ``AS IS'' AND
17 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 ** ARE DISCLAIMED. IN NO EVENT SHALL The Android Open Source Project BE LIABLE
20 ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 ** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 ** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 ** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 ** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26 ** DAMAGE.
27 */
28 
29 #ifndef TINYALSA_VERSION_H
30 #define TINYALSA_VERSION_H
31 
32 /* Macros for expanding the version numbers into string literals */
33 #define TINYALSA_VERSION_STR_EX(number) #number
34 #define TINYALSA_VERSION_STR(number) TINYALSA_VERSION_STR_EX (number)
35 
36 #define TINYALSA_VERSION_MAJOR 2
37 
38 #define TINYALSA_VERSION_MINOR 0
39 
40 #define TINYALSA_VERSION_PATCH 0
41 
42 /* The final version number is constructed based on minor, major and patch */
43 #define TINYALSA_VERSION \
44     ((unsigned long) \
45     ((TINYALSA_VERSION_MAJOR << 16)   | \
46      (TINYALSA_VERSION_MINOR << 8 )   | \
47      (TINYALSA_VERSION_PATCH      )))
48 
49 /* The version string is constructed by concatenating individual ver. strings */
50 #define TINYALSA_VERSION_STRING \
51     TINYALSA_VERSION_STR (TINYALSA_VERSION_MAJOR) \
52     "." \
53     TINYALSA_VERSION_STR (TINYALSA_VERSION_MINOR) \
54     "." \
55     TINYALSA_VERSION_STR (TINYALSA_VERSION_PATCH)
56 
57 #endif /* TINYALSA_VERSION_H */
58 
59