Main Page | Data Structures | File List | Data Fields | Globals

etl_resolver.h File Reference

Functions for manipulating resolvers for use in including files. More...

#include "etl_error.h"
#include <apr_buckets.h>

Go to the source code of this file.

Typedefs

typedef etl_resolver_t etl_resolver_t
 A resolver object.
typedef etl_error_t *(* etl_resolver_resolve_func_t )(apr_bucket_brigade **bb, void *baton, const char *fname, apr_bucket_alloc_t *alloc, apr_pool_t *pool)
 If you want to build your own resolver, you just take a function with * this prototype, and pass it to etl_resolver_create, along with a baton pointer that'll get passed to your callback when etl_resolver_resolve is called on your resolver.

Functions

etl_error_tetl_resolver_resolve (apr_bucket_brigade **bb, etl_resolver_t *resolver, const char *fname, apr_bucket_alloc_t *alloc, apr_pool_t *pool)
 Use resolver to find a "file" named fname and return its contents in *bb.
etl_resolver_tetl_resolver_file_create (apr_array_header_t *search_paths, apr_pool_t *pool)
 Create a resolver that searches through search_paths (which is an array of char * paths) to find files.
etl_resolver_tetl_resolver_create (etl_resolver_resolve_func_t resolve_func, void *resolve_baton, apr_pool_t *pool)
 Return a resolver that uses resolve_func and resolve_baton, allocated in pool.


Detailed Description

Functions for manipulating resolvers for use in including files.

Definition in file etl_resolver.h.


Function Documentation

etl_error_t* etl_resolver_resolve apr_bucket_brigade **  bb,
etl_resolver_t resolver,
const char *  fname,
apr_bucket_alloc_t *  alloc,
apr_pool_t *  pool
 

Use resolver to find a "file" named fname and return its contents in *bb.

*bb is allocated via alloc and pool is used for all other allocations.


Generated on Sat Jun 3 10:17:28 2006 for ETL by  doxygen 1.4.4