Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / gdp / gdp_version.template @ master

History | View | Annotate | Download (2.26 KB)

1 a8d1cfe0 Eric Allman
/* vim: set ai sw=4 sts=4 ts=4 :*/
2
3
/*
4
**  GDP Library Version
5 055d3009 Eric Allman
**
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 6bd5476b Eric Allman
**        All rights reserved.
12 055d3009 Eric Allman
**
13 6bd5476b Eric Allman
**        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 055d3009 Eric Allman
**
19 6bd5476b Eric Allman
**        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 055d3009 Eric Allman
**
24 6bd5476b Eric Allman
**        REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
25 055d3009 Eric Allman
**        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 6bd5476b Eric Allman
**        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 055d3009 Eric Allman
**        ----- END LICENSE BLOCK -----
31 a8d1cfe0 Eric Allman
*/
32
33 937851e5 Eric Allman
/**********************************************************************
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 ab6157ea Eric Allman
// 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 937851e5 Eric Allman
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 a8d1cfe0 Eric Allman
#endif