Bump version.
[shibboleth/cpp-opensaml.git] / saml / version.h
1 /**
2  * Licensed to the University Corporation for Advanced Internet
3  * Development, Inc. (UCAID) under one or more contributor license
4  * agreements. See the NOTICE file distributed with this work for
5  * additional information regarding copyright ownership.
6  *
7  * UCAID licenses this file to you under the Apache License,
8  * Version 2.0 (the "License"); you may not use this file except
9  * in compliance with the License. You may obtain a copy of the
10  * License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing,
15  * software distributed under the License is distributed on an
16  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
17  * either express or implied. See the License for the specific
18  * language governing permissions and limitations under the License.
19  */
20
21 /**
22  * saml/version.h
23  * 
24  * Library version macros and constants 
25  */
26
27 #ifndef __saml_version_h__
28 #define __saml_version_h__
29
30 // This is all based on Xerces, on the theory it might be useful to
31 // support this kind of stuff in the future. If they ever yank some
32 // of this stuff, it can be copied into here.
33
34 #include <xercesc/util/XercesVersion.hpp>
35
36 // ---------------------------------------------------------------------------
37 // V E R S I O N   S P E C I F I C A T I O N
38
39 /**
40  * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH OPENSAML VERSION
41  * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE
42  */
43
44 #define OPENSAML_VERSION_MAJOR 2
45 #define OPENSAML_VERSION_MINOR 4
46 #define OPENSAML_VERSION_REVISION 3
47
48 /** DO NOT MODIFY BELOW THIS LINE */
49
50 /**
51  * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING:
52  *
53  *      gOpenSAMLVersionStr, gOpenSAMLFullVersionStr, gOpenSAMLMajVersion, gOpenSAMLMinVersion, gOpenSAMLRevision
54  */
55
56 // ---------------------------------------------------------------------------
57 // V E R S I O N   I N F O R M A T I O N
58
59 // OpenSAML version strings; these particular macros cannot be used for
60 // conditional compilation as they are not numeric constants
61
62 #define OPENSAML_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION)
63 #define OPENSAML_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION)
64 #define OPENSAML_FULLVERSIONNUM INVK_CAT3_SEP_NIL(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION)
65 #define OPENSAML_VERSIONSTR     INVK_CAT2_SEP_UNDERSCORE(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR)
66
67 const char* const    gOpenSAMLVersionStr = OPENSAML_VERSIONSTR;
68 const char* const    gOpenSAMLFullVersionStr = OPENSAML_FULLVERSIONSTR;
69 const unsigned int   gOpenSAMLMajVersion = OPENSAML_VERSION_MAJOR;
70 const unsigned int   gOpenSAMLMinVersion = OPENSAML_VERSION_MINOR;
71 const unsigned int   gOpenSAMLRevision   = OPENSAML_VERSION_REVISION;
72
73 // OpenSAML version numeric constants that can be used for conditional
74 // compilation purposes.
75
76 #define _OPENSAML_VERSION CALC_EXPANDED_FORM (OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION)
77
78 #endif /* __saml_version_h__ */