Next integration phase, metadata and trust conversion.
[shibboleth/cpp-sp.git] / shibsp / internal.h
1 /*
2  *  Copyright 2001-2005 Internet2
3  * 
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 /*
18  *  internal.h - internally visible classes
19  */
20
21 #ifndef __shibsp_internal_h__
22 #define __shibsp_internal_h__
23
24 #ifndef FD_SETSIZE
25 # define FD_SETSIZE 1024
26 #endif
27
28 #ifdef WIN32
29 # define _CRT_SECURE_NO_DEPRECATE 1
30 # define _CRT_NONSTDC_NO_DEPRECATE 1
31 #endif
32
33 // Export public APIs
34 #define SHIBSP_EXPORTS
35
36 // eventually we might be able to support autoconf via cygwin...
37 #if defined (_MSC_VER) || defined(__BORLANDC__)
38 # include "config_win32.h"
39 #else
40 # include "config.h"
41 #endif
42
43 #include "base.h"
44 #include "SPConfig.h"
45
46 namespace shibsp {
47     
48     /// @cond OFF
49     class SPInternalConfig : public SPConfig
50     {
51     public:
52         SPInternalConfig() {}
53
54         static SPInternalConfig& getInternalConfig();
55
56         bool init(const char* catalog_path);
57         void term();
58
59     private:
60     };
61     /// @endcond
62
63 };
64
65 #endif /* __shibsp_internal_h__ */