2 * Licensed to UCAID under one or more contributor license agreements.
3 * See the NOTICE file distributed with this work for additional information
4 * regarding copyright ownership. The ASF licenses this file to you under
5 * the Apache License, Version 2.0 (the "License"); you may not use this
6 * file except in compliance with the License. You may obtain a copy of the
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * Library version macros and constants.
24 #ifndef __shibsp_version_h__
25 #define __shibsp_version_h__
27 // This is all based on Xerces, on the theory it might be useful to
28 // support this kind of stuff in the future. If they ever yank some
29 // of this stuff, it can be copied into here.
31 #include <shibsp/base.h>
32 #include <xercesc/util/XercesVersion.hpp>
34 // ---------------------------------------------------------------------------
35 // V E R S I O N S P E C I F I C A T I O N
38 * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH SHIBSP LIBRARY VERSION
39 * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE
42 #define SHIBSP_VERSION_MAJOR 1
43 #define SHIBSP_VERSION_MINOR 5
44 #define SHIBSP_VERSION_REVISION 0
46 /** DO NOT MODIFY BELOW THIS LINE */
49 * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING:
51 * gShibSPVersionStr, gShibSPFullVersionStr, gShibSPMajVersion, gShibSPMinVersion, gShibSPRevision
54 // ---------------------------------------------------------------------------
55 // V E R S I O N I N F O R M A T I O N
57 // ShibSP version strings; these particular macros cannot be used for
58 // conditional compilation as they are not numeric constants
60 #define SHIBSP_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
61 #define SHIBSP_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
62 #define SHIBSP_FULLVERSIONNUM INVK_CAT3_SEP_NIL(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
63 #define SHIBSP_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR)
65 extern SHIBSP_API const char* const gShibSPVersionStr;
66 extern SHIBSP_API const char* const gShibSPFullVersionStr;
67 extern SHIBSP_API const char* const gShibSPDotVersionStr;
68 extern SHIBSP_API const unsigned int gShibSPMajVersion;
69 extern SHIBSP_API const unsigned int gShibSPMinVersion;
70 extern SHIBSP_API const unsigned int gShibSPRevision;
72 // ShibSP version numeric constants that can be used for conditional
73 // compilation purposes.
75 #define _SHIBSP_VERSION CALC_EXPANDED_FORM (SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
77 #endif /* __shibsp_version_h__ */