llapr.cpp File Reference

Helper functions for using the apache portable runtime library. More...

#include "linden_common.h"
#include "llapr.h"

Include dependency graph for llapr.cpp:

Go to the source code of this file.

Functions

void ll_init_apr ()
 initialize the common apr constructs -- apr itself, the global pool, and a mutex.
void ll_cleanup_apr ()
 Cleanup those common apr constructs.
bool ll_apr_warn_status (apr_status_t status)
 Function which approprately logs error or remains quiet on APR_SUCCESS.
void ll_apr_assert_status (apr_status_t status)
apr_file_t * ll_apr_file_open (const LLString &filename, apr_int32_t flags, S32 *sizep, apr_pool_t *pool)
apr_file_t * ll_apr_file_open (const LLString &filename, apr_int32_t flags, S32 *sizep)
apr_file_t * ll_apr_file_open (const LLString &filename, apr_int32_t flags, apr_pool_t *pool)
apr_file_t * ll_apr_file_open (const LLString &filename, apr_int32_t flags)
S32 ll_apr_file_read (apr_file_t *apr_file, void *buf, S32 nbytes)
S32 ll_apr_file_read_ex (const LLString &filename, apr_pool_t *pool, void *buf, S32 offset, S32 nbytes)
S32 ll_apr_file_write (apr_file_t *apr_file, const void *buf, S32 nbytes)
S32 ll_apr_file_write_ex (const LLString &filename, apr_pool_t *pool, void *buf, S32 offset, S32 nbytes)
S32 ll_apr_file_seek (apr_file_t *apr_file, apr_seek_where_t where, S32 offset)
bool ll_apr_file_remove (const LLString &filename, apr_pool_t *pool)
bool ll_apr_file_rename (const LLString &filename, const LLString &newname, apr_pool_t *pool)
bool ll_apr_file_exists (const LLString &filename, apr_pool_t *pool)
S32 ll_apr_file_size (const LLString &filename, apr_pool_t *pool)
bool ll_apr_dir_make (const LLString &dirname, apr_pool_t *pool)
bool ll_apr_dir_remove (const LLString &dirname, apr_pool_t *pool)

Variables

apr_pool_tgAPRPoolp = NULL
apr_thread_mutex_t * gLogMutexp = NULL


Detailed Description

Helper functions for using the apache portable runtime library.

Author:
Phoenix
Date:
2004-11-28
LicenseInfo
firstyear=2004&license=viewergpl

Copyright (c) 2004-2008, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llapr.cpp.


Function Documentation

void ll_apr_assert_status ( apr_status_t  status  ) 

Definition at line 126 of file llapr.cpp.

References ll_apr_warn_status(), and llassert.

Referenced by LLAres::process().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ll_apr_dir_make ( const LLString dirname,
apr_pool_t pool 
)

Definition at line 361 of file llapr.cpp.

References gAPRPoolp, ll_apr_warn_status(), LL_DEBUGS, LL_ENDL, and NULL.

Here is the call graph for this function:

bool ll_apr_dir_remove ( const LLString dirname,
apr_pool_t pool 
)

Definition at line 375 of file llapr.cpp.

References gAPRPoolp, ll_apr_warn_status(), LL_DEBUGS, LL_ENDL, and NULL.

Here is the call graph for this function:

bool ll_apr_file_exists ( const LLString filename,
apr_pool_t pool 
)

Definition at line 318 of file llapr.cpp.

References gAPRPoolp, and NULL.

Referenced by LLTextureCache::readHeaderCache().

Here is the caller graph for this function:

apr_file_t* ll_apr_file_open ( const LLString filename,
apr_int32_t  flags 
)

Definition at line 171 of file llapr.cpp.

References ll_apr_file_open(), and NULL.

Here is the call graph for this function:

apr_file_t* ll_apr_file_open ( const LLString filename,
apr_int32_t  flags,
apr_pool_t pool 
)

Definition at line 167 of file llapr.cpp.

References ll_apr_file_open(), and NULL.

Here is the call graph for this function:

apr_file_t* ll_apr_file_open ( const LLString filename,
apr_int32_t  flags,
S32 sizep 
)

Definition at line 163 of file llapr.cpp.

References ll_apr_file_open(), and NULL.

Here is the call graph for this function:

apr_file_t* ll_apr_file_open ( const LLString filename,
apr_int32_t  flags,
S32 sizep,
apr_pool_t pool 
)

S32 ll_apr_file_read ( apr_file_t *  apr_file,
void *  buf,
S32  nbytes 
)

S32 ll_apr_file_read_ex ( const LLString filename,
apr_pool_t pool,
void *  buf,
S32  offset,
S32  nbytes 
)

Definition at line 191 of file llapr.cpp.

References gAPRPoolp, ll_apr_file_open(), ll_apr_file_read(), ll_apr_file_seek(), NULL, and S32.

Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), LLTextureCache::getHeaderCacheEntry(), LLTextureCache::purgeTextures(), and LLTextureCache::readHeaderCache().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ll_apr_file_remove ( const LLString filename,
apr_pool_t pool 
)

bool ll_apr_file_rename ( const LLString filename,
const LLString newname,
apr_pool_t pool 
)

Definition at line 304 of file llapr.cpp.

References gAPRPoolp, ll_apr_warn_status(), LL_DEBUGS, LL_ENDL, and NULL.

Here is the call graph for this function:

S32 ll_apr_file_seek ( apr_file_t *  apr_file,
apr_seek_where_t  where,
S32  offset 
)

Definition at line 265 of file llapr.cpp.

References llassert_always, and S32.

Referenced by check_for_invalid_wav_formats(), encode_vorbis_file(), ll_apr_file_read_ex(), ll_apr_file_write_ex(), and LLLFSThread::Request::processRequest().

Here is the caller graph for this function:

S32 ll_apr_file_size ( const LLString filename,
apr_pool_t pool 
)

Definition at line 335 of file llapr.cpp.

References gAPRPoolp, NULL, and S32.

Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), and LLTextureCache::purgeTextures().

Here is the caller graph for this function:

S32 ll_apr_file_write ( apr_file_t *  apr_file,
const void *  buf,
S32  nbytes 
)

Definition at line 218 of file llapr.cpp.

References llassert_always, and S32.

Referenced by LLVFS::dumpFiles(), encode_vorbis_file(), ll_apr_file_write_ex(), LLLFSThread::Request::processRequest(), and LLImageFormatted::save().

Here is the caller graph for this function:

S32 ll_apr_file_write_ex ( const LLString filename,
apr_pool_t pool,
void *  buf,
S32  offset,
S32  nbytes 
)

bool ll_apr_warn_status ( apr_status_t  status  ) 

void ll_cleanup_apr (  ) 

Cleanup those common apr constructs.

Definition at line 55 of file llapr.cpp.

References gAPRPoolp, gLogMutexp, LL_ENDL, LL_INFOS, and NULL.

Referenced by LLCommon::cleanupClass().

Here is the caller graph for this function:

void ll_init_apr (  ) 

initialize the common apr constructs -- apr itself, the global pool, and a mutex.

Definition at line 41 of file llapr.cpp.

References gAPRPoolp, gLogMutexp, and NULL.

Referenced by tut::LLTemplateMessageBuilderTestData::defaultTemplate(), LLCommon::initClass(), LLMessageSystem::LLMessageSystem(), tut::LLMessageSystemTestData::LLMessageSystemTestData(), and LLAres::process().

Here is the caller graph for this function:


Variable Documentation

apr_thread_mutex_t* gLogMutexp = NULL

Definition at line 38 of file llapr.cpp.

Referenced by ll_cleanup_apr(), and ll_init_apr().


Generated on Fri May 16 08:34:36 2008 for SecondLife by  doxygen 1.5.5