Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / gdp / gdp_version.template @ master

History | View | Annotate | Download (2.26 KB)

1
/* vim: set ai sw=4 sts=4 ts=4 :*/
2

    
3
/*
4
**  GDP Library Version
5
**
6
**        ----- BEGIN LICENSE BLOCK -----
7
**        GDP: Global Data Plane Support Library
8
**        From the Ubiquitous Swarm Lab, 490 Cory Hall, U.C. Berkeley.
9
**
10
**        Copyright (c) 2015, Regents of the University of California.
11
**        All rights reserved.
12
**
13
**        Permission is hereby granted, without written agreement and without
14
**        license or royalty fees, to use, copy, modify, and distribute this
15
**        software and its documentation for any purpose, provided that the above
16
**        copyright notice and the following two paragraphs appear in all copies
17
**        of this software.
18
**
19
**        IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
20
**        SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
21
**        PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
22
**        EVEN IF REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
**
24
**        REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
25
**        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26
**        FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION,
27
**        IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO
28
**        OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
29
**        OR MODIFICATIONS.
30
**        ----- END LICENSE BLOCK -----
31
*/
32

    
33
/**********************************************************************
34
**
35
**  VERSION NUMBER
36
**
37
**        Patches shouldn't include new functionality, just bug fixes.
38
**
39
**********************************************************************/
40

    
41
#ifndef _GDP_VERSION_H_
42
#define _GDP_VERSION_H_
43

    
44
#include <ep/ep.h>
45

    
46
// get the actual auto-generated version info
47
//   ***DO NOT EDIT THESE VALUES.  THIS FILE IS AUTO-GENERATED ***
48
#define        GDP_VERSION_MAJOR        @GDP_VERSION_MAJOR@
49
#define        GDP_VERSION_MINOR        @GDP_VERSION_MINOR@
50
#define        GDP_VERSION_PATCH        @GDP_VERSION_PATCH@
51

    
52
#define __GDP_STRING(x)                #x
53
#define __GDP_VER_CONCAT(a, b, c)                                                        \
54
                                __GDP_STRING(a) "." __GDP_STRING(b) "." __GDP_STRING(c)
55
#define GDP_VER_STRING                                                                                \
56
                                __GDP_VER_CONCAT(GDP_VERSION_MAJOR,                        \
57
                                                GDP_VERSION_MINOR,                                        \
58
                                                GDP_VERSION_PATCH)
59

    
60
#define GDP_LIB_VERSION                                                                                \
61
                                ((GDP_VERSION_MAJOR << 16) |                                \
62
                                 (GDP_VERSION_MINOR << 8) |                                        \
63
                                 (GDP_VERSION_PATCH      ))
64

    
65
extern const char        GdpVersion[];
66

    
67
#endif