2 * Copyright 2001-2009 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * Base header file definitions
21 * Must be included prior to including any other header
24 #ifndef __shibsp_base_h__
25 #define __shibsp_base_h__
28 # define XMLTOOLING_LITE
29 # include <xmltooling/base.h>
31 # include <saml/base.h>
34 // Windows and GCC4 Symbol Visibility Macros
36 #define SHIBSP_IMPORT __declspec(dllimport)
37 #define SHIBSP_EXPORT __declspec(dllexport)
38 #define SHIBSP_DLLLOCAL
39 #define SHIBSP_DLLPUBLIC
42 #ifdef GCC_HASCLASSVISIBILITY
43 #define SHIBSP_EXPORT __attribute__ ((visibility("default")))
44 #define SHIBSP_DLLLOCAL __attribute__ ((visibility("hidden")))
45 #define SHIBSP_DLLPUBLIC __attribute__ ((visibility("default")))
48 #define SHIBSP_DLLLOCAL
49 #define SHIBSP_DLLPUBLIC
53 // Define SHIBSP_API for DLL builds
55 #define SHIBSP_API SHIBSP_EXPORT
57 #define SHIBSP_API SHIBSP_IMPORT
60 // Throwable classes must always be visible on GCC in all binaries
62 #define SHIBSP_EXCEPTIONAPI(api) api
63 #elif defined(GCC_HASCLASSVISIBILITY)
64 #define SHIBSP_EXCEPTIONAPI(api) SHIBSP_EXPORT
66 #define SHIBSP_EXCEPTIONAPI(api)
71 /** Default catalog path on Windows. */
72 # define SHIBSP_SCHEMAS "c:/opt/shibboleth-sp/share/xml/xmltooling/catalog.xml;c:/opt/shibboleth-sp/share/xml/opensaml/saml20-catalog.xml;c:/opt/shibboleth-sp/share/xml/opensaml/saml11-catalog.xml;c:/opt/shibboleth-sp/share/xml/shibboleth/catalog.xml"
74 /** Default name of configuration file on Windows. */
75 # define SHIBSP_CONFIG "shibboleth2.xml"
78 * Controls default logging level of console tools and other situations
79 * where fully-configured logging isn't used.
81 #define SHIBSP_LOGGING "console.logger"
83 /** Default prefix for installation (used to resolve relative paths). */
84 #define SHIBSP_PREFIX "c:/opt/shibboleth-sp"
86 /** Library directory for installation (used to resolve relative paths). */
87 #define SHIBSP_LIBDIR "lib"
89 /** Log directory for installation (used to resolve relative paths). */
90 #define SHIBSP_LOGDIR "var/log"
92 /** Configuration directory for installation (used to resolve relative paths). */
93 #define SHIBSP_CFGDIR "etc"
95 /** Runtime state directory for installation (used to resolve relative paths). */
96 #define SHIBSP_RUNDIR "var/run"
98 /** XML directory for installation (used to resolve relative paths). */
99 #define SHIBSP_XMLDIR "share/xml"
102 # include <shibsp/paths.h>
105 /** Logging category for Service Provider functions. */
106 #define SHIBSP_LOGCAT "Shibboleth"
108 /** Logging category for Service Provider auditing. */
109 #define SHIBSP_TX_LOGCAT "Shibboleth-TRANSACTION"
111 #endif /* __shibsp_base_h__ */