#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_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. | |
| etl_resolver_t * | etl_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_t * | etl_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. | |
Definition in file etl_resolver.h.
|
||||||||||||||||||||||||
|
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. |
1.4.4