18590a0fdSAndre Fischer /************************************************************** 28590a0fdSAndre Fischer * 38590a0fdSAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 48590a0fdSAndre Fischer * or more contributor license agreements. See the NOTICE file 58590a0fdSAndre Fischer * distributed with this work for additional information 68590a0fdSAndre Fischer * regarding copyright ownership. The ASF licenses this file 78590a0fdSAndre Fischer * to you under the Apache License, Version 2.0 (the 88590a0fdSAndre Fischer * "License"); you may not use this file except in compliance 98590a0fdSAndre Fischer * with the License. You may obtain a copy of the License at 108590a0fdSAndre Fischer * 118590a0fdSAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 128590a0fdSAndre Fischer * 138590a0fdSAndre Fischer * Unless required by applicable law or agreed to in writing, 148590a0fdSAndre Fischer * software distributed under the License is distributed on an 158590a0fdSAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 168590a0fdSAndre Fischer * KIND, either express or implied. See the License for the 178590a0fdSAndre Fischer * specific language governing permissions and limitations 188590a0fdSAndre Fischer * under the License. 198590a0fdSAndre Fischer * 208590a0fdSAndre Fischer *************************************************************/ 218590a0fdSAndre Fischer 228590a0fdSAndre Fischer // MARKER(update_precomp.py): autogen include statement, do not remove 238590a0fdSAndre Fischer #include "precompiled_ucb.hxx" 248590a0fdSAndre Fischer 25*c1c10f68SAriel Constenla-Haile #include "AprEnv.hxx" 268590a0fdSAndre Fischer 278590a0fdSAndre Fischer namespace apr_environment 288590a0fdSAndre Fischer { 298590a0fdSAndre Fischer AprEnv()308590a0fdSAndre FischerAprEnv::AprEnv() 318590a0fdSAndre Fischer : mpAprPool( 0 ) 328590a0fdSAndre Fischer { 338590a0fdSAndre Fischer apr_initialize(); 348590a0fdSAndre Fischer 358590a0fdSAndre Fischer apr_pool_create(&mpAprPool, NULL); 368590a0fdSAndre Fischer } 378590a0fdSAndre Fischer ~AprEnv()388590a0fdSAndre FischerAprEnv::~AprEnv() 398590a0fdSAndre Fischer { 408590a0fdSAndre Fischer apr_pool_destroy(mpAprPool); 418590a0fdSAndre Fischer 428590a0fdSAndre Fischer apr_terminate(); 438590a0fdSAndre Fischer } 448590a0fdSAndre Fischer 458590a0fdSAndre Fischer /* static */ getAprEnv()468590a0fdSAndre FischerAprEnv* AprEnv::getAprEnv() 478590a0fdSAndre Fischer { 488590a0fdSAndre Fischer static AprEnv rAprEnv; 498590a0fdSAndre Fischer 508590a0fdSAndre Fischer return &rAprEnv; 518590a0fdSAndre Fischer } 528590a0fdSAndre Fischer getAprPool()538590a0fdSAndre Fischerapr_pool_t* AprEnv::getAprPool() 548590a0fdSAndre Fischer { 558590a0fdSAndre Fischer return mpAprPool; 568590a0fdSAndre Fischer } 578590a0fdSAndre Fischer 588590a0fdSAndre Fischer } // namespace apr_environment 59