Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

apr_brigade.c File Reference

#include "apr.h"
#include "apr_lib.h"
#include "apr_strings.h"
#include "apr_pools.h"
#include "apr_tables.h"
#include "apr_buckets.h"
#include "apr_errno.h"
#include "apr_want.h"

Include dependency graph for apr_brigade.c:

Go to the source code of this file.

Defines

#define APR_WANT_MEMFUNC
#define APR_WANT_STRFUNC

Functions

static apr_status_t brigade_cleanup (void *data)
 APU_DECLARE (apr_status_t)
 APU_DECLARE (apr_bucket_brigade *)
 APU_DECLARE_NONSTD (apr_status_t)
static apr_status_t brigade_flush (apr_vformatter_buff_t *buff)


Define Documentation

#define APR_WANT_MEMFUNC
 

Definition at line 24 of file apr_brigade.c.

#define APR_WANT_STRFUNC
 

Definition at line 25 of file apr_brigade.c.


Function Documentation

APU_DECLARE apr_bucket_brigade  ) 
 

Split a bucket brigade into two, such that the given bucket is the first in the new bucket brigade. This function is useful when a filter wants to pass only the initial part of a brigade to the next filter.

Parameters:
b The brigade to split
e The first element of the new brigade
Returns:
The new brigade

Definition at line 62 of file apr_brigade.c.

References APR_RING_INIT, b, and brigade_cleanup().

Here is the call graph for this function:

APU_DECLARE_NONSTD apr_status_t   ) 
 

Evaluate a printf and put the resulting string at the end of the bucket brigade.

Parameters:
b The brigade to write to
flush The flush function to use if the brigade is full
ctx The structure to pass to the flush function
fmt The format of the string to write
... The arguments to fill out the format
Returns:
APR_SUCCESS or error code

Definition at line 572 of file apr_brigade.c.

static apr_status_t brigade_cleanup void *  data  )  [static]
 

Definition at line 32 of file apr_brigade.c.

Referenced by APU_DECLARE().

static apr_status_t brigade_flush apr_vformatter_buff_t buff  )  [static]
 

Definition at line 609 of file apr_brigade.c.

References APR_BUCKET_BUFF_SIZE, APR_SUCCESS, brigade_vprintf_data_t::b, brigade_vprintf_data_t::cbuff, brigade_vprintf_data_t::ctx, apr_vformatter_buff_t::curpos, apr_vformatter_buff_t::endpos, brigade_vprintf_data_t::flusher, and brigade_vprintf_data_t::vbuff.