X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Finternal.h;h=d441ad43efae6df524661a8c095a25652d3f038e;hb=81b488b2790e7bdeb2f43560b1d4a7d22c3dfdf5;hp=d4eb294cf16db0a19e0cb7a97c61d346fdc76b78;hpb=f57948da5b257784f9d1ae7ffb035e5066c9bad6;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/internal.h b/xmltooling/internal.h index d4eb294..d441ad4 100644 --- a/xmltooling/internal.h +++ b/xmltooling/internal.h @@ -1,17 +1,21 @@ -/* - * Copyright 2001-2010 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at +/** + * Licensed to the University Corporation for Advanced Internet + * Development, Inc. (UCAID) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. + * + * UCAID licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the + * License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. */ /* @@ -75,16 +79,11 @@ namespace xmltooling { /// @cond OFF - class XMLToolingInternalConfig : public XMLToolingConfig + class XMLTOOL_DLLLOCAL XMLToolingInternalConfig : public XMLToolingConfig { public: - XMLToolingInternalConfig() : -#ifndef XMLTOOLING_NO_XMLSEC - m_xsecProvider(nullptr), -#endif - m_lock(nullptr), m_parserPool(nullptr), m_validatingPool(nullptr) - { - } + XMLToolingInternalConfig(); + ~XMLToolingInternalConfig(); static XMLToolingInternalConfig& getInternalConfig(); @@ -125,8 +124,9 @@ namespace xmltooling { #endif private: + int m_initCount; + Mutex* m_lock; std::vector m_libhandles; - void* m_lock; ParserPool* m_parserPool; ParserPool* m_validatingPool; };